2025-09-05 16:07:59,447 - INFO - Domain Default found not creating 2025-09-05 16:07:59,884 - INFO - Project ctest-TestBasicPolicy-91331436 not found, creating it 2025-09-05 16:08:00,589 - INFO - Created Project:ctest-TestBasicPolicy-91331436, ID : 7fccdeed-8f6a-4320-a334-24a1d54b7f53 2025-09-05 16:08:02,610 - INFO - ================================================================================ 2025-09-05 16:08:02,610 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-09-05 16:08:02,610 - 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-09-05 16:08:02,932 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.17': '0'}} with 2025-09-05 16:08:02,932 - INFO - Initial checks done. Running the testcase now 2025-09-05 16:08:02,932 - INFO - 2025-09-05 16:08:03,689 - DEBUG - Response for create_network : {'network': {'id': '15953222-7225-425f-aceb-f728fc67369c', 'name': 'ctest-vn-25004870', 'tenant_id': '7fccdeed8f6a4320a33424a1d54b7f53', 'project_id': '7fccdeed8f6a4320a33424a1d54b7f53', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-91331436', 'ctest-vn-25004870'], 'port_security_enabled': True, 'description': ''}} 2025-09-05 16:08:03,956 - DEBUG - Response for create_subnet : {'subnet': {'id': '87f97ead-4cea-45f2-958c-c5d25fa2d6ba', 'name': '', 'tenant_id': '7fccdeed8f6a4320a33424a1d54b7f53', 'network_id': '15953222-7225-425f-aceb-f728fc67369c', 'ip_version': 4, 'cidr': '33.53.198.64/26', 'allocation_pools': [{'start': '33.53.198.66', 'end': '33.53.198.126'}], 'gateway_ip': '33.53.198.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '33.53.198.66', 'tags': [], 'project_id': '7fccdeed8f6a4320a33424a1d54b7f53'}} 2025-09-05 16:08:03,983 - INFO - Created VN ctest-vn-25004870 2025-09-05 16:08:04,039 - DEBUG - VN ctest-vn-25004870 UUID is 15953222-7225-425f-aceb-f728fc67369c 2025-09-05 16:08:04,604 - DEBUG - Response for create_network : {'network': {'id': '187981af-f36a-4c58-9a5e-4471d92f046c', 'name': 'ctest-vn-44223962', 'tenant_id': '7fccdeed8f6a4320a33424a1d54b7f53', 'project_id': '7fccdeed8f6a4320a33424a1d54b7f53', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-91331436', 'ctest-vn-44223962'], 'port_security_enabled': True, 'description': ''}} 2025-09-05 16:08:04,878 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b7d43c6c-dbed-429a-bcfe-5ae4290f5b32', 'name': '', 'tenant_id': '7fccdeed8f6a4320a33424a1d54b7f53', 'network_id': '187981af-f36a-4c58-9a5e-4471d92f046c', 'ip_version': 4, 'cidr': '161.58.212.128/26', 'allocation_pools': [{'start': '161.58.212.130', 'end': '161.58.212.190'}], 'gateway_ip': '161.58.212.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '161.58.212.130', 'tags': [], 'project_id': '7fccdeed8f6a4320a33424a1d54b7f53'}} 2025-09-05 16:08:04,913 - INFO - Created VN ctest-vn-44223962 2025-09-05 16:08:04,983 - DEBUG - VN ctest-vn-44223962 UUID is 187981af-f36a-4c58-9a5e-4471d92f046c 2025-09-05 16:08:05,152 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-91331436:ctest-vn-25004870, 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-91331436:ctest-vn-44223962, 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-09-05 16:08:05,598 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '15953222-7225-425f-aceb-f728fc67369c', 'name': 'ctest-vn-25004870', 'tenant_id': '7fccdeed8f6a4320a33424a1d54b7f53', 'project_id': '7fccdeed8f6a4320a33424a1d54b7f53', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['87f97ead-4cea-45f2-958c-c5d25fa2d6ba'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-91331436', 'ctest-vn-25004870'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-91331436', 'ctest-policy-allow-all-29057667']], 'subnet_ipam': [{'subnet_cidr': '33.53.198.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-09-05 16:08:05,968 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '187981af-f36a-4c58-9a5e-4471d92f046c', 'name': 'ctest-vn-44223962', 'tenant_id': '7fccdeed8f6a4320a33424a1d54b7f53', 'project_id': '7fccdeed8f6a4320a33424a1d54b7f53', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b7d43c6c-dbed-429a-bcfe-5ae4290f5b32'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-91331436', 'ctest-vn-44223962'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-91331436', 'ctest-policy-allow-all-29057667']], 'subnet_ipam': [{'subnet_cidr': '161.58.212.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-09-05 16:08:06,163 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-09-05 16:08:06,529 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-09-05 16:08:06,562 - DEBUG - Requesting: http://10.0.0.22:8082/domain/f27c11e2-da49-4485-8c6b-c125be6c8d28 2025-09-05 16:08:06,573 - DEBUG - Requesting: http://10.0.0.22:8082/project/7fccdeed-8f6a-4320-a334-24a1d54b7f53 2025-09-05 16:08:06,664 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/15953222-7225-425f-aceb-f728fc67369c 2025-09-05 16:08:06,682 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/15953222-7225-425f-aceb-f728fc67369c 2025-09-05 16:08:06,698 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/9a9837a0-b170-43de-8ae2-d0fef637f57a 2025-09-05 16:08:06,711 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/9a9837a0-b170-43de-8ae2-d0fef637f57a 2025-09-05 16:08:06,723 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/5bce4aaf-9f71-4433-a537-935fc75bef0a 2025-09-05 16:08:06,735 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-09-05 16:08:06,735 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/15953222-7225-425f-aceb-f728fc67369c 2025-09-05 16:08:06,756 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/9a9837a0-b170-43de-8ae2-d0fef637f57a 2025-09-05 16:08:06,789 - INFO - Verified VN network id 11 for VN 15953222-7225-425f-aceb-f728fc67369c 2025-09-05 16:08:06,790 - INFO - Verifications in API Server for VN ctest-vn-25004870 passed 2025-09-05 16:08:06,790 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/15953222-7225-425f-aceb-f728fc67369c 2025-09-05 16:08:06,813 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/9a9837a0-b170-43de-8ae2-d0fef637f57a 2025-09-05 16:08:06,829 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/9a9837a0-b170-43de-8ae2-d0fef637f57a 2025-09-05 16:08:06,846 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/5bce4aaf-9f71-4433-a537-935fc75bef0a 2025-09-05 16:08:06,875 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-91331436:ctest-vn-25004870', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-91331436', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1555204369851695711', 'uuid-lslong': '12460324549455984284'}, 'enable': 'true', 'created': '2025-09-05T16:08:03', 'last-modified': '2025-09-05T16:08:05', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.332346'} 2025-09-05 16:08:06,891 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-09-05 16:08:06,892 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-25004870 passed 2025-09-05 16:08:06,892 - DEBUG - ====Verifying policy data for ctest-vn-25004870 in API_Server ====== 2025-09-05 16:08:06,892 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-09-05 16:08:06,911 - DEBUG - Requesting: http://10.0.0.22:8082/domain/f27c11e2-da49-4485-8c6b-c125be6c8d28 2025-09-05 16:08:06,939 - DEBUG - Requesting: http://10.0.0.22:8082/project/7fccdeed-8f6a-4320-a334-24a1d54b7f53 2025-09-05 16:08:07,067 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/15953222-7225-425f-aceb-f728fc67369c 2025-09-05 16:08:07,086 - DEBUG - ==>Verifying data for policy with id: fc465789-9d1e-4aa8-bccb-7fa7c7649a4d, fqn: ['default-domain', 'ctest-TestBasicPolicy-91331436', 'ctest-policy-allow-all-29057667'] 2025-09-05 16:08:07,086 - INFO - VN ctest-vn-25004870 Policy verification: verify_vn_policy_in_api_server, status: True 2025-09-05 16:08:07,086 - DEBUG - Verifying the vn in opserver 2025-09-05 16:08:07,086 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-91331436:ctest-vn-25004870 virtual network link through opserver 10.0.0.22 2025-09-05 16:08:07,087 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2025-09-05 16:08:07,446 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2025-09-05 16:08:07,547 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-91331436:ctest-vn-25004870', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-91331436:ctest-vn-25004870?flat'} 2025-09-05 16:08:07,547 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-91331436:ctest-vn-25004870 is found in opserver 2025-09-05 16:08:07,573 - DEBUG - Do not have enough data to verify VN in agent 2025-09-05 16:08:07,588 - DEBUG - VRF ids for VN ctest-vn-25004870: {} 2025-09-05 16:08:07,588 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-09-05 16:08:07,599 - DEBUG - Requesting: http://10.0.0.22:8082/domain/f27c11e2-da49-4485-8c6b-c125be6c8d28 2025-09-05 16:08:07,617 - DEBUG - Requesting: http://10.0.0.22:8082/project/7fccdeed-8f6a-4320-a334-24a1d54b7f53 2025-09-05 16:08:07,729 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/187981af-f36a-4c58-9a5e-4471d92f046c 2025-09-05 16:08:07,762 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/187981af-f36a-4c58-9a5e-4471d92f046c 2025-09-05 16:08:07,789 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/32af2364-e8fd-4d9e-b325-e05bdb055f8f 2025-09-05 16:08:07,808 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/32af2364-e8fd-4d9e-b325-e05bdb055f8f 2025-09-05 16:08:07,827 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/d1dc20c8-f184-44b0-bd68-c75aff93571b 2025-09-05 16:08:07,846 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-09-05 16:08:07,846 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/187981af-f36a-4c58-9a5e-4471d92f046c 2025-09-05 16:08:07,870 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/32af2364-e8fd-4d9e-b325-e05bdb055f8f 2025-09-05 16:08:07,902 - INFO - Verified VN network id 12 for VN 187981af-f36a-4c58-9a5e-4471d92f046c 2025-09-05 16:08:07,902 - INFO - Verifications in API Server for VN ctest-vn-44223962 passed 2025-09-05 16:08:07,903 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/187981af-f36a-4c58-9a5e-4471d92f046c 2025-09-05 16:08:07,928 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/32af2364-e8fd-4d9e-b325-e05bdb055f8f 2025-09-05 16:08:07,946 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/32af2364-e8fd-4d9e-b325-e05bdb055f8f 2025-09-05 16:08:07,964 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/d1dc20c8-f184-44b0-bd68-c75aff93571b 2025-09-05 16:08:07,995 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-91331436:ctest-vn-44223962', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-91331436', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1763583321795349592', 'uuid-lslong': '11123403385417434220'}, 'enable': 'true', 'created': '2025-09-05T16:08:04', 'last-modified': '2025-09-05T16:08:05', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.144723'} 2025-09-05 16:08:08,012 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-09-05 16:08:08,012 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-44223962 passed 2025-09-05 16:08:08,013 - DEBUG - ====Verifying policy data for ctest-vn-44223962 in API_Server ====== 2025-09-05 16:08:08,013 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-09-05 16:08:08,026 - DEBUG - Requesting: http://10.0.0.22:8082/domain/f27c11e2-da49-4485-8c6b-c125be6c8d28 2025-09-05 16:08:08,050 - DEBUG - Requesting: http://10.0.0.22:8082/project/7fccdeed-8f6a-4320-a334-24a1d54b7f53 2025-09-05 16:08:08,166 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/187981af-f36a-4c58-9a5e-4471d92f046c 2025-09-05 16:08:08,190 - DEBUG - ==>Verifying data for policy with id: fc465789-9d1e-4aa8-bccb-7fa7c7649a4d, fqn: ['default-domain', 'ctest-TestBasicPolicy-91331436', 'ctest-policy-allow-all-29057667'] 2025-09-05 16:08:08,190 - INFO - VN ctest-vn-44223962 Policy verification: verify_vn_policy_in_api_server, status: True 2025-09-05 16:08:08,191 - DEBUG - Verifying the vn in opserver 2025-09-05 16:08:08,191 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-91331436:ctest-vn-44223962 virtual network link through opserver 10.0.0.22 2025-09-05 16:08:08,191 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2025-09-05 16:08:08,215 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-91331436:ctest-vn-44223962', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-91331436:ctest-vn-44223962?flat'} 2025-09-05 16:08:08,215 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-91331436:ctest-vn-44223962 is found in opserver 2025-09-05 16:08:08,235 - DEBUG - Do not have enough data to verify VN in agent 2025-09-05 16:08:08,244 - DEBUG - VRF ids for VN ctest-vn-44223962: {} 2025-09-05 16:08:08,387 - DEBUG - Services list from nova: [, , ] 2025-09-05 16:08:09,938 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-4026-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-4026-1) 2025-09-05 16:08:11,486 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-4026-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-4026-1) 2025-09-05 16:08:11,486 - INFO - Waiting for VM ctest-TestBasicPolicy-91331436-97618748 to be up.. 2025-09-05 16:08:11,606 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-09-05 16:08:16,757 - DEBUG - VM is in ACTIVE state now 2025-09-05 16:08:16,758 - INFO - VM name : ctest-TestBasicPolicy-91331436-97618748 2025-09-05 16:08:16,871 - DEBUG - VM ctest-TestBasicPolicy-91331436-97618748 ID is 0362bcad-4833-4bf6-9cea-f13444138ca9 2025-09-05 16:08:16,892 - DEBUG - VM ctest-TestBasicPolicy-91331436-97618748 launched on Node cn-jenkins-deploy-platform-ansible-os-4026-1 2025-09-05 16:08:17,061 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-machine/0362bcad-4833-4bf6-9cea-f13444138ca9 2025-09-05 16:08:17,082 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-machine-interface/a97dd315-9e4c-47fb-a6d0-1943714a4dac 2025-09-05 16:08:20,435 - 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 1009ms') 2025-09-05 16:08:20,436 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-91331436-97618748 failed! 2025-09-05 16:08:20,499 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-91331436:ctest-vn-25004870 is 33.53.198.65 and allocation pool is NOT set 2025-09-05 16:08:22,576 - 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=10.5 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.569 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1001ms\r\nrtt min/avg/max/mdev = 0.569/5.528/10.488/4.959 ms') 2025-09-05 16:08:22,577 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-91331436-97618748 passed 2025-09-05 16:08:22,743 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-09-05 16:08:22,743 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-91331436-97618748, IP 33.53.198.67, Port 22 2025-09-05 16:08:22,939 - DEBUG - VM ctest-TestBasicPolicy-91331436-97618748 is ready for SSH connections 2025-09-05 16:08:22,939 - INFO - Waiting for VM ctest-TestBasicPolicy-91331436-42849824 to be up.. 2025-09-05 16:08:23,083 - DEBUG - VM is in ACTIVE state now 2025-09-05 16:08:23,083 - INFO - VM name : ctest-TestBasicPolicy-91331436-42849824 2025-09-05 16:08:23,170 - DEBUG - VM ctest-TestBasicPolicy-91331436-42849824 ID is 836aaa19-593a-4fab-be2b-1eea30ee2c88 2025-09-05 16:08:23,170 - DEBUG - VM ctest-TestBasicPolicy-91331436-42849824 launched on Node cn-jenkins-deploy-platform-ansible-os-4026-1 2025-09-05 16:08:23,280 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-machine/836aaa19-593a-4fab-be2b-1eea30ee2c88 2025-09-05 16:08:23,288 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-machine-interface/ab4bc687-3bad-4d79-a887-11ec33c9146b 2025-09-05 16:08:24,551 - 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=4.00 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=1.99 ms\r\n\r\n--- 169.254.0.4 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1000ms\r\nrtt min/avg/max/mdev = 1.988/2.992/3.997/1.004 ms') 2025-09-05 16:08:24,551 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-91331436-42849824 passed 2025-09-05 16:08:24,735 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-09-05 16:08:24,736 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-91331436-42849824, IP 161.58.212.131, Port 22 2025-09-05 16:08:24,827 - DEBUG - Error on ssh to cirros@169.254.0.4:22, result: /bin/bash: connect: Connection refused /bin/bash: line 1: /dev/tcp/169.254.0.4/22: Connection refused {'failed': True, 'command': '(echo > /dev/tcp/169.254.0.4/22)', 'real_command': '/bin/bash -l -c "(echo > /dev/tcp/169.254.0.4/22)"', 'return_code': 1, 'succeeded': False, 'stderr': ''} 2025-09-05 16:08:25,011 - DEBUG - VM ctest-TestBasicPolicy-91331436-42849824 is NOT ready for SSH connections, VM status: ACTIVE 2025-09-05 16:08:30,012 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-09-05 16:08:30,012 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-91331436-42849824, IP 161.58.212.131, Port 22 2025-09-05 16:08:30,214 - DEBUG - VM ctest-TestBasicPolicy-91331436-42849824 is ready for SSH connections 2025-09-05 16:08:30,214 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-09-05 16:08:30,214 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 161.58.212.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.22, gateway password: c0ntrail123 2025-09-05 16:08:30,215 - DEBUG - ping -s 56 -c 3 -W 1 161.58.212.131 2025-09-05 16:08:34,710 - DEBUG - PING 161.58.212.131 (161.58.212.131): 56 data bytes 64 bytes from 161.58.212.131: seq=0 ttl=63 time=11.207 ms 64 bytes from 161.58.212.131: seq=1 ttl=63 time=2.060 ms 64 bytes from 161.58.212.131: seq=2 ttl=63 time=1.209 ms --- 161.58.212.131 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.209/4.825/11.207 ms 2025-09-05 16:08:34,710 - INFO - Ping to IP 161.58.212.131 from VM ctest-TestBasicPolicy-91331436-97618748 passed 2025-09-05 16:08:34,919 - DEBUG - Policy Update Response {"network-policy": {"uuid": "fc465789-9d1e-4aa8-bccb-7fa7c7649a4d", "href": "http://10.0.0.22:8082/network-policy/fc465789-9d1e-4aa8-bccb-7fa7c7649a4d"}} 2025-09-05 16:08:34,919 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-09-05 16:08:34,919 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 161.58.212.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.22, gateway password: c0ntrail123 2025-09-05 16:08:34,920 - DEBUG - ping -s 56 -c 3 -W 1 161.58.212.131 2025-09-05 16:08:38,189 - DEBUG - PING 161.58.212.131 (161.58.212.131): 56 data bytes 64 bytes from 161.58.212.131: seq=0 ttl=63 time=1.490 ms --- 161.58.212.131 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.490/1.490/1.490 ms 2025-09-05 16:08:38,189 - WARNING - Ping to IP 161.58.212.131 from VM ctest-TestBasicPolicy-91331436-97618748 failed 2025-09-05 16:08:38,190 - INFO - Deleting VM ctest-TestBasicPolicy-91331436-42849824 2025-09-05 16:08:38,340 - INFO - Deleting VM ctest-TestBasicPolicy-91331436-97618748 2025-09-05 16:08:38,893 - INFO - Deleted policy ctest-policy-allow-all-29057667 2025-09-05 16:08:38,893 - INFO - Deleting VN ctest-vn-44223962 2025-09-05 16:08:38,933 - DEBUG - VN 187981af-f36a-4c58-9a5e-4471d92f046c still in use: Unable to complete operation on network 187981af-f36a-4c58-9a5e-4471d92f046c. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-17a73225-e0cf-4424-8432-3902432fb29c'] 2025-09-05 16:08:38,933 - WARNING - Deleting VN ctest-vn-44223962 failed..Will retry 2025-09-05 16:08:41,157 - DEBUG - Response for deleting network () 2025-09-05 16:08:41,157 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/32af2364-e8fd-4d9e-b325-e05bdb055f8f 2025-09-05 16:08:41,162 - DEBUG - Response Code: 404 2025-09-05 16:08:41,162 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-09-05 16:08:41,166 - DEBUG - Requesting: http://10.0.0.22:8082/domain/f27c11e2-da49-4485-8c6b-c125be6c8d28 2025-09-05 16:08:41,222 - DEBUG - Requesting: http://10.0.0.22:8082/project/7fccdeed-8f6a-4320-a334-24a1d54b7f53 2025-09-05 16:08:41,326 - INFO - Validated that VN ctest-vn-44223962 is not found in API Server 2025-09-05 16:08:41,340 - DEBUG - VN ctest-vn-44223962 is not present in Agent 10.0.0.22 2025-09-05 16:08:41,340 - INFO - Validated that VN ctest-vn-44223962 is not in any agent 2025-09-05 16:08:41,361 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-44223962 info 2025-09-05 16:08:41,362 - INFO - Deleting VN ctest-vn-25004870 2025-09-05 16:08:41,516 - DEBUG - Response for deleting network () 2025-09-05 16:08:41,516 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/9a9837a0-b170-43de-8ae2-d0fef637f57a 2025-09-05 16:08:41,523 - DEBUG - Response Code: 404 2025-09-05 16:08:41,523 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-09-05 16:08:41,529 - DEBUG - Requesting: http://10.0.0.22:8082/domain/f27c11e2-da49-4485-8c6b-c125be6c8d28 2025-09-05 16:08:41,587 - DEBUG - Requesting: http://10.0.0.22:8082/project/7fccdeed-8f6a-4320-a334-24a1d54b7f53 2025-09-05 16:08:41,697 - INFO - Validated that VN ctest-vn-25004870 is not found in API Server 2025-09-05 16:08:41,713 - DEBUG - VN ctest-vn-25004870 is not present in Agent 10.0.0.22 2025-09-05 16:08:41,713 - INFO - Validated that VN ctest-vn-25004870 is not in any agent 2025-09-05 16:08:41,739 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-25004870 info 2025-09-05 16:08:42,059 - DEBUG - No XMPP flaps were noticed during the test 2025-09-05 16:08:42,059 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:40] 2025-09-05 16:08:42,060 - INFO - -------------------------------------------------------------------------------- 2025-09-05 16:08:43,044 - INFO - Deleted project: ctest-TestBasicPolicy-91331436, ID : 7fccdeed-8f6a-4320-a334-24a1d54b7f53