2025-04-13 14:24:59,560 - INFO - Domain Default found not creating 2025-04-13 14:24:59,718 - INFO - Project ctest-TestBasicPolicy-75325429 not found, creating it 2025-04-13 14:25:00,186 - INFO - Created Project:ctest-TestBasicPolicy-75325429, ID : 218e927e-7b4f-4037-8f77-7e8674989464 2025-04-13 14:25:01,827 - INFO - ================================================================================ 2025-04-13 14:25:01,827 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-04-13 14:25:01,828 - INFO - TEST DESCRIPTION : Create 2 Vns and allow icmp traffic between them and validate with pings Update the policy to deny the same traffic Check that pings fail 2025-04-13 14:25:02,094 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with 2025-04-13 14:25:02,094 - INFO - Initial checks done. Running the testcase now 2025-04-13 14:25:02,094 - INFO - 2025-04-13 14:25:02,702 - DEBUG - Response for create_network : {'network': {'id': '245ad4b7-a891-40ef-a9da-1407dd1c9f16', 'name': 'ctest-vn-94583907', 'tenant_id': '218e927e7b4f40378f777e8674989464', 'project_id': '218e927e7b4f40378f777e8674989464', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-75325429', 'ctest-vn-94583907'], 'port_security_enabled': True, 'description': ''}} 2025-04-13 14:25:02,871 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a63e4015-8541-4499-b21f-7ccc4c1f2093', 'name': '', 'tenant_id': '218e927e7b4f40378f777e8674989464', 'network_id': '245ad4b7-a891-40ef-a9da-1407dd1c9f16', 'ip_version': 4, 'cidr': '212.147.183.64/26', 'allocation_pools': [{'start': '212.147.183.66', 'end': '212.147.183.126'}], 'gateway_ip': '212.147.183.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '212.147.183.66', 'tags': [], 'project_id': '218e927e7b4f40378f777e8674989464'}} 2025-04-13 14:25:02,891 - INFO - Created VN ctest-vn-94583907 2025-04-13 14:25:02,950 - DEBUG - VN ctest-vn-94583907 UUID is 245ad4b7-a891-40ef-a9da-1407dd1c9f16 2025-04-13 14:25:03,274 - DEBUG - Response for create_network : {'network': {'id': '353328f0-b64e-4cd5-a667-a13a13969d32', 'name': 'ctest-vn-79841450', 'tenant_id': '218e927e7b4f40378f777e8674989464', 'project_id': '218e927e7b4f40378f777e8674989464', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-75325429', 'ctest-vn-79841450'], 'port_security_enabled': True, 'description': ''}} 2025-04-13 14:25:03,498 - DEBUG - Response for create_subnet : {'subnet': {'id': '2d1e9160-8940-460b-945a-814eb4a7e167', 'name': '', 'tenant_id': '218e927e7b4f40378f777e8674989464', 'network_id': '353328f0-b64e-4cd5-a667-a13a13969d32', 'ip_version': 4, 'cidr': '177.238.223.192/26', 'allocation_pools': [{'start': '177.238.223.194', 'end': '177.238.223.254'}], 'gateway_ip': '177.238.223.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '177.238.223.194', 'tags': [], 'project_id': '218e927e7b4f40378f777e8674989464'}} 2025-04-13 14:25:03,521 - INFO - Created VN ctest-vn-79841450 2025-04-13 14:25:03,574 - DEBUG - VN ctest-vn-79841450 UUID is 353328f0-b64e-4cd5-a667-a13a13969d32 2025-04-13 14:25:03,717 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-75325429:ctest-vn-94583907, security_group = None, network_policy = None, subnet_list = []], src_ports = [start_port = -1, end_port = -1], application = [], dst_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-75325429:ctest-vn-79841450, security_group = None, network_policy = None, subnet_list = []], dst_ports = [start_port = -1, end_port = -1], action_list = simple_action = pass, gateway_name = None, apply_service = [], service_properties = None, mirror_to = None, assign_routing_instance = None, log = False, alert = False, qos_action = None, host_based_service = False, ethertype = None, created = None, last_modified = None, description = None] 2025-04-13 14:25:04,061 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '245ad4b7-a891-40ef-a9da-1407dd1c9f16', 'name': 'ctest-vn-94583907', 'tenant_id': '218e927e7b4f40378f777e8674989464', 'project_id': '218e927e7b4f40378f777e8674989464', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['a63e4015-8541-4499-b21f-7ccc4c1f2093'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-75325429', 'ctest-vn-94583907'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-75325429', 'ctest-policy-allow-all-27372068']], 'subnet_ipam': [{'subnet_cidr': '212.147.183.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-04-13 14:25:04,352 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '353328f0-b64e-4cd5-a667-a13a13969d32', 'name': 'ctest-vn-79841450', 'tenant_id': '218e927e7b4f40378f777e8674989464', 'project_id': '218e927e7b4f40378f777e8674989464', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['2d1e9160-8940-460b-945a-814eb4a7e167'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-75325429', 'ctest-vn-79841450'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-75325429', 'ctest-policy-allow-all-27372068']], 'subnet_ipam': [{'subnet_cidr': '177.238.223.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-04-13 14:25:04,498 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-04-13 14:25:04,801 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-04-13 14:25:04,834 - DEBUG - Requesting: http://10.0.0.254:8082/domain/95b255ab-72a1-4bbf-988d-44191bb9fb10 2025-04-13 14:25:04,854 - DEBUG - Requesting: http://10.0.0.254:8082/project/218e927e-7b4f-4037-8f77-7e8674989464 2025-04-13 14:25:04,935 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/245ad4b7-a891-40ef-a9da-1407dd1c9f16 2025-04-13 14:25:04,949 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/245ad4b7-a891-40ef-a9da-1407dd1c9f16 2025-04-13 14:25:04,961 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/59c7f7ac-84f2-45f6-992b-6494d26d4541 2025-04-13 14:25:04,973 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/59c7f7ac-84f2-45f6-992b-6494d26d4541 2025-04-13 14:25:04,984 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/af7e9108-a74d-4ef9-8609-2692a3dc3e9c 2025-04-13 14:25:04,996 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-04-13 14:25:04,996 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/245ad4b7-a891-40ef-a9da-1407dd1c9f16 2025-04-13 14:25:05,009 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/59c7f7ac-84f2-45f6-992b-6494d26d4541 2025-04-13 14:25:05,029 - INFO - Verified VN network id 8 for VN 245ad4b7-a891-40ef-a9da-1407dd1c9f16 2025-04-13 14:25:05,029 - INFO - Verifications in API Server for VN ctest-vn-94583907 passed 2025-04-13 14:25:05,029 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/245ad4b7-a891-40ef-a9da-1407dd1c9f16 2025-04-13 14:25:05,041 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/59c7f7ac-84f2-45f6-992b-6494d26d4541 2025-04-13 14:25:05,049 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/59c7f7ac-84f2-45f6-992b-6494d26d4541 2025-04-13 14:25:05,059 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/af7e9108-a74d-4ef9-8609-2692a3dc3e9c 2025-04-13 14:25:05,073 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-75325429:ctest-vn-94583907', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-75325429', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2619640018541560047', 'uuid-lslong': '12239116961339711254'}, 'enable': 'true', 'created': '2025-04-13T14:25:02', 'last-modified': '2025-04-13T14:25:04', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.053736'} 2025-04-13 14:25:05,080 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-04-13 14:25:05,081 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-94583907 passed 2025-04-13 14:25:05,081 - DEBUG - ====Verifying policy data for ctest-vn-94583907 in API_Server ====== 2025-04-13 14:25:05,081 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-04-13 14:25:05,088 - DEBUG - Requesting: http://10.0.0.254:8082/domain/95b255ab-72a1-4bbf-988d-44191bb9fb10 2025-04-13 14:25:05,104 - DEBUG - Requesting: http://10.0.0.254:8082/project/218e927e-7b4f-4037-8f77-7e8674989464 2025-04-13 14:25:05,187 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/245ad4b7-a891-40ef-a9da-1407dd1c9f16 2025-04-13 14:25:05,199 - DEBUG - ==>Verifying data for policy with id: 1797ed7f-23e6-47b1-b7ae-7468963548db, fqn: ['default-domain', 'ctest-TestBasicPolicy-75325429', 'ctest-policy-allow-all-27372068'] 2025-04-13 14:25:05,199 - INFO - VN ctest-vn-94583907 Policy verification: verify_vn_policy_in_api_server, status: True 2025-04-13 14:25:05,199 - DEBUG - Verifying the vn in opserver 2025-04-13 14:25:05,199 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-75325429:ctest-vn-94583907 virtual network link through opserver 10.0.0.254 2025-04-13 14:25:05,199 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-04-13 14:25:05,496 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-04-13 14:25:05,561 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-75325429:ctest-vn-94583907', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-75325429:ctest-vn-94583907?flat'} 2025-04-13 14:25:05,561 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-75325429:ctest-vn-94583907 is found in opserver 2025-04-13 14:25:05,575 - DEBUG - Do not have enough data to verify VN in agent 2025-04-13 14:25:05,581 - DEBUG - VRF ids for VN ctest-vn-94583907: {} 2025-04-13 14:25:05,581 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-04-13 14:25:05,589 - DEBUG - Requesting: http://10.0.0.254:8082/domain/95b255ab-72a1-4bbf-988d-44191bb9fb10 2025-04-13 14:25:05,603 - DEBUG - Requesting: http://10.0.0.254:8082/project/218e927e-7b4f-4037-8f77-7e8674989464 2025-04-13 14:25:05,688 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/353328f0-b64e-4cd5-a667-a13a13969d32 2025-04-13 14:25:05,702 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/353328f0-b64e-4cd5-a667-a13a13969d32 2025-04-13 14:25:05,714 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/66637ab7-0481-4685-a441-0379972b27aa 2025-04-13 14:25:05,723 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/66637ab7-0481-4685-a441-0379972b27aa 2025-04-13 14:25:05,732 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/e8630bb2-0f8c-4ed2-9495-92482900bd85 2025-04-13 14:25:05,740 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-04-13 14:25:05,740 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/353328f0-b64e-4cd5-a667-a13a13969d32 2025-04-13 14:25:05,753 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/66637ab7-0481-4685-a441-0379972b27aa 2025-04-13 14:25:05,772 - INFO - Verified VN network id 9 for VN 353328f0-b64e-4cd5-a667-a13a13969d32 2025-04-13 14:25:05,772 - INFO - Verifications in API Server for VN ctest-vn-79841450 passed 2025-04-13 14:25:05,772 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/353328f0-b64e-4cd5-a667-a13a13969d32 2025-04-13 14:25:05,783 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/66637ab7-0481-4685-a441-0379972b27aa 2025-04-13 14:25:05,792 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/66637ab7-0481-4685-a441-0379972b27aa 2025-04-13 14:25:05,800 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/e8630bb2-0f8c-4ed2-9495-92482900bd85 2025-04-13 14:25:05,814 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-75325429:ctest-vn-79841450', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-75325429', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3833452722138270933', 'uuid-lslong': '11990729803706047794'}, 'enable': 'true', 'created': '2025-04-13T14:25:03', 'last-modified': '2025-04-13T14:25:04', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.538155'} 2025-04-13 14:25:05,826 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-04-13 14:25:05,826 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-79841450 passed 2025-04-13 14:25:05,826 - DEBUG - ====Verifying policy data for ctest-vn-79841450 in API_Server ====== 2025-04-13 14:25:05,826 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-04-13 14:25:05,833 - DEBUG - Requesting: http://10.0.0.254:8082/domain/95b255ab-72a1-4bbf-988d-44191bb9fb10 2025-04-13 14:25:05,846 - DEBUG - Requesting: http://10.0.0.254:8082/project/218e927e-7b4f-4037-8f77-7e8674989464 2025-04-13 14:25:05,919 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/353328f0-b64e-4cd5-a667-a13a13969d32 2025-04-13 14:25:05,936 - DEBUG - ==>Verifying data for policy with id: 1797ed7f-23e6-47b1-b7ae-7468963548db, fqn: ['default-domain', 'ctest-TestBasicPolicy-75325429', 'ctest-policy-allow-all-27372068'] 2025-04-13 14:25:05,936 - INFO - VN ctest-vn-79841450 Policy verification: verify_vn_policy_in_api_server, status: True 2025-04-13 14:25:05,937 - DEBUG - Verifying the vn in opserver 2025-04-13 14:25:05,937 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-75325429:ctest-vn-79841450 virtual network link through opserver 10.0.0.254 2025-04-13 14:25:05,937 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-04-13 14:25:05,956 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-75325429:ctest-vn-79841450', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-75325429:ctest-vn-79841450?flat'} 2025-04-13 14:25:05,956 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-75325429:ctest-vn-79841450 is found in opserver 2025-04-13 14:25:05,968 - DEBUG - Do not have enough data to verify VN in agent 2025-04-13 14:25:05,974 - DEBUG - VRF ids for VN ctest-vn-79841450: {} 2025-04-13 14:25:06,038 - DEBUG - Services list from nova: [, , ] 2025-04-13 14:25:07,212 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3085-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3085-1) 2025-04-13 14:25:08,411 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3085-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3085-1) 2025-04-13 14:25:08,411 - INFO - Waiting for VM ctest-TestBasicPolicy-75325429-31519660 to be up.. 2025-04-13 14:25:08,503 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-04-13 14:25:13,598 - DEBUG - VM is in ACTIVE state now 2025-04-13 14:25:13,598 - INFO - VM name : ctest-TestBasicPolicy-75325429-31519660 2025-04-13 14:25:13,688 - DEBUG - VM ctest-TestBasicPolicy-75325429-31519660 ID is 31ddb116-6d3e-4046-b2fd-72cbaef4daaf 2025-04-13 14:25:13,709 - DEBUG - VM ctest-TestBasicPolicy-75325429-31519660 launched on Node cn-jenkins-deploy-platform-ansible-os-3085-1 2025-04-13 14:25:13,793 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine/31ddb116-6d3e-4046-b2fd-72cbaef4daaf 2025-04-13 14:25:13,806 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine-interface/7e734433-910d-44b0-b415-5bee882e1a1f 2025-04-13 14:25:17,075 - DEBUG - (True, 'PING 169.254.0.3 (169.254.0.3) 56(84) bytes of data.\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 0 received, 100% packet loss, time 1022ms') 2025-04-13 14:25:17,076 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-75325429-31519660 failed! 2025-04-13 14:25:17,130 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-75325429:ctest-vn-94583907 is 212.147.183.65 and allocation pool is NOT set 2025-04-13 14:25:19,190 - DEBUG - (True, 'PING 169.254.0.3 (169.254.0.3) 56(84) bytes of data.\r\n64 bytes from 169.254.0.3: icmp_seq=1 ttl=63 time=8.38 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=1.23 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1002ms\r\nrtt min/avg/max/mdev = 1.227/4.802/8.378/3.575 ms') 2025-04-13 14:25:19,190 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-75325429-31519660 passed 2025-04-13 14:25:19,346 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-13 14:25:19,347 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-75325429-31519660, IP 212.147.183.67, Port 22 2025-04-13 14:25:19,403 - DEBUG - Error on ssh to cirros@169.254.0.3:22, result: /bin/bash: connect: Connection refused /bin/bash: line 1: /dev/tcp/169.254.0.3/22: Connection refused {'failed': True, 'command': '(echo > /dev/tcp/169.254.0.3/22)', 'real_command': '/bin/bash -l -c "(echo > /dev/tcp/169.254.0.3/22)"', 'return_code': 1, 'succeeded': False, 'stderr': ''} 2025-04-13 14:25:19,492 - DEBUG - VM ctest-TestBasicPolicy-75325429-31519660 is NOT ready for SSH connections, VM status: ACTIVE 2025-04-13 14:25:24,493 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-13 14:25:24,494 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-75325429-31519660, IP 212.147.183.67, Port 22 2025-04-13 14:25:24,651 - DEBUG - VM ctest-TestBasicPolicy-75325429-31519660 is ready for SSH connections 2025-04-13 14:25:24,651 - INFO - Waiting for VM ctest-TestBasicPolicy-75325429-09307840 to be up.. 2025-04-13 14:25:24,737 - DEBUG - VM is in ACTIVE state now 2025-04-13 14:25:24,737 - INFO - VM name : ctest-TestBasicPolicy-75325429-09307840 2025-04-13 14:25:24,822 - DEBUG - VM ctest-TestBasicPolicy-75325429-09307840 ID is 68b66389-86a4-492a-81e8-2749c59e5233 2025-04-13 14:25:24,822 - DEBUG - VM ctest-TestBasicPolicy-75325429-09307840 launched on Node cn-jenkins-deploy-platform-ansible-os-3085-1 2025-04-13 14:25:24,906 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine/68b66389-86a4-492a-81e8-2749c59e5233 2025-04-13 14:25:24,915 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine-interface/a7df04bc-7c3a-47b5-be6c-3c0d41d1c5c6 2025-04-13 14:25:26,161 - DEBUG - (True, 'PING 169.254.0.4 (169.254.0.4) 56(84) bytes of data.\r\n64 bytes from 169.254.0.4: icmp_seq=1 ttl=63 time=3.63 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.566 ms\r\n\r\n--- 169.254.0.4 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1001ms\r\nrtt min/avg/max/mdev = 0.566/2.100/3.634/1.534 ms') 2025-04-13 14:25:26,161 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-75325429-09307840 passed 2025-04-13 14:25:26,310 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-13 14:25:26,310 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-75325429-09307840, IP 177.238.223.195, Port 22 2025-04-13 14:25:26,481 - DEBUG - VM ctest-TestBasicPolicy-75325429-09307840 is ready for SSH connections 2025-04-13 14:25:26,481 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-13 14:25:26,482 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 177.238.223.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.254, gateway password: c0ntrail123 2025-04-13 14:25:26,482 - DEBUG - ping -s 56 -c 3 -W 1 177.238.223.195 2025-04-13 14:25:30,171 - DEBUG - PING 177.238.223.195 (177.238.223.195): 56 data bytes 64 bytes from 177.238.223.195: seq=0 ttl=63 time=3.962 ms 64 bytes from 177.238.223.195: seq=1 ttl=63 time=1.194 ms 64 bytes from 177.238.223.195: seq=2 ttl=63 time=0.951 ms --- 177.238.223.195 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.951/2.035/3.962 ms 2025-04-13 14:25:30,171 - INFO - Ping to IP 177.238.223.195 from VM ctest-TestBasicPolicy-75325429-31519660 passed 2025-04-13 14:25:30,358 - DEBUG - Policy Update Response {"network-policy": {"uuid": "1797ed7f-23e6-47b1-b7ae-7468963548db", "href": "http://10.0.0.254:8082/network-policy/1797ed7f-23e6-47b1-b7ae-7468963548db"}} 2025-04-13 14:25:30,358 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-13 14:25:30,359 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 177.238.223.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.254, gateway password: c0ntrail123 2025-04-13 14:25:30,359 - DEBUG - ping -s 56 -c 3 -W 1 177.238.223.195 2025-04-13 14:25:33,567 - DEBUG - PING 177.238.223.195 (177.238.223.195): 56 data bytes 64 bytes from 177.238.223.195: seq=0 ttl=63 time=1.644 ms --- 177.238.223.195 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.644/1.644/1.644 ms 2025-04-13 14:25:33,567 - WARNING - Ping to IP 177.238.223.195 from VM ctest-TestBasicPolicy-75325429-31519660 failed 2025-04-13 14:25:33,568 - INFO - Deleting VM ctest-TestBasicPolicy-75325429-09307840 2025-04-13 14:25:33,636 - INFO - Deleting VM ctest-TestBasicPolicy-75325429-31519660 2025-04-13 14:25:34,047 - INFO - Deleted policy ctest-policy-allow-all-27372068 2025-04-13 14:25:34,047 - INFO - Deleting VN ctest-vn-79841450 2025-04-13 14:25:34,084 - DEBUG - VN 353328f0-b64e-4cd5-a667-a13a13969d32 still in use: Unable to complete operation on network 353328f0-b64e-4cd5-a667-a13a13969d32. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-0c4192f5-457d-4c4b-941c-3033d38c3206'] 2025-04-13 14:25:34,084 - WARNING - Deleting VN ctest-vn-79841450 failed..Will retry 2025-04-13 14:25:36,205 - DEBUG - Response for deleting network () 2025-04-13 14:25:36,205 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/66637ab7-0481-4685-a441-0379972b27aa 2025-04-13 14:25:36,215 - DEBUG - Response Code: 404 2025-04-13 14:25:36,215 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-04-13 14:25:36,222 - DEBUG - Requesting: http://10.0.0.254:8082/domain/95b255ab-72a1-4bbf-988d-44191bb9fb10 2025-04-13 14:25:36,277 - DEBUG - Requesting: http://10.0.0.254:8082/project/218e927e-7b4f-4037-8f77-7e8674989464 2025-04-13 14:25:36,352 - INFO - Validated that VN ctest-vn-79841450 is not found in API Server 2025-04-13 14:25:36,366 - DEBUG - VN ctest-vn-79841450 is not present in Agent 10.0.0.254 2025-04-13 14:25:36,366 - INFO - Validated that VN ctest-vn-79841450 is not in any agent 2025-04-13 14:25:36,387 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-79841450 info 2025-04-13 14:25:36,387 - INFO - Deleting VN ctest-vn-94583907 2025-04-13 14:25:36,506 - DEBUG - Response for deleting network () 2025-04-13 14:25:36,506 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/59c7f7ac-84f2-45f6-992b-6494d26d4541 2025-04-13 14:25:36,512 - DEBUG - Response Code: 404 2025-04-13 14:25:36,512 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-04-13 14:25:36,522 - DEBUG - Requesting: http://10.0.0.254:8082/domain/95b255ab-72a1-4bbf-988d-44191bb9fb10 2025-04-13 14:25:36,576 - DEBUG - Requesting: http://10.0.0.254:8082/project/218e927e-7b4f-4037-8f77-7e8674989464 2025-04-13 14:25:36,650 - INFO - Validated that VN ctest-vn-94583907 is not found in API Server 2025-04-13 14:25:36,663 - DEBUG - VN ctest-vn-94583907 is not present in Agent 10.0.0.254 2025-04-13 14:25:36,663 - INFO - Validated that VN ctest-vn-94583907 is not in any agent 2025-04-13 14:25:36,679 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-94583907 info 2025-04-13 14:25:36,945 - DEBUG - No XMPP flaps were noticed during the test 2025-04-13 14:25:36,945 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:35] 2025-04-13 14:25:36,945 - INFO - -------------------------------------------------------------------------------- 2025-04-13 14:25:37,651 - INFO - Deleted project: ctest-TestBasicPolicy-75325429, ID : 218e927e-7b4f-4037-8f77-7e8674989464