2025-07-17 16:52:56,874 - INFO - Domain Default found not creating 2025-07-17 16:52:57,015 - INFO - Project ctest-TestBasicPolicy-57546994 not found, creating it 2025-07-17 16:52:57,479 - INFO - Created Project:ctest-TestBasicPolicy-57546994, ID : c1a00ddc-704d-455f-873d-19d81f2373c5 2025-07-17 16:52:58,959 - INFO - ================================================================================ 2025-07-17 16:52:58,959 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-07-17 16:52:58,959 - 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-07-17 16:52:59,236 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with 2025-07-17 16:52:59,236 - INFO - Initial checks done. Running the testcase now 2025-07-17 16:52:59,236 - INFO - 2025-07-17 16:52:59,832 - DEBUG - Response for create_network : {'network': {'id': 'd4eeca67-9af7-4fcf-b8cd-c745aca5027c', 'name': 'ctest-vn-24818759', 'tenant_id': 'c1a00ddc704d455f873d19d81f2373c5', 'project_id': 'c1a00ddc704d455f873d19d81f2373c5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-57546994', 'ctest-vn-24818759'], 'port_security_enabled': True, 'description': ''}} 2025-07-17 16:53:00,067 - DEBUG - Response for create_subnet : {'subnet': {'id': '050de4d4-ef11-46d3-912f-1ee4a1061875', 'name': '', 'tenant_id': 'c1a00ddc704d455f873d19d81f2373c5', 'network_id': 'd4eeca67-9af7-4fcf-b8cd-c745aca5027c', 'ip_version': 4, 'cidr': '53.10.160.64/26', 'allocation_pools': [{'start': '53.10.160.66', 'end': '53.10.160.126'}], 'gateway_ip': '53.10.160.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '53.10.160.66', 'tags': [], 'project_id': 'c1a00ddc704d455f873d19d81f2373c5'}} 2025-07-17 16:53:00,085 - INFO - Created VN ctest-vn-24818759 2025-07-17 16:53:00,137 - DEBUG - VN ctest-vn-24818759 UUID is d4eeca67-9af7-4fcf-b8cd-c745aca5027c 2025-07-17 16:53:00,433 - DEBUG - Response for create_network : {'network': {'id': 'c28a8970-8a3a-4d9b-88ed-b25f37012c1b', 'name': 'ctest-vn-90375037', 'tenant_id': 'c1a00ddc704d455f873d19d81f2373c5', 'project_id': 'c1a00ddc704d455f873d19d81f2373c5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-57546994', 'ctest-vn-90375037'], 'port_security_enabled': True, 'description': ''}} 2025-07-17 16:53:00,636 - DEBUG - Response for create_subnet : {'subnet': {'id': '51efecb2-25a2-4c2a-b816-809cdcfa081e', 'name': '', 'tenant_id': 'c1a00ddc704d455f873d19d81f2373c5', 'network_id': 'c28a8970-8a3a-4d9b-88ed-b25f37012c1b', 'ip_version': 4, 'cidr': '122.252.142.192/26', 'allocation_pools': [{'start': '122.252.142.194', 'end': '122.252.142.254'}], 'gateway_ip': '122.252.142.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '122.252.142.194', 'tags': [], 'project_id': 'c1a00ddc704d455f873d19d81f2373c5'}} 2025-07-17 16:53:00,655 - INFO - Created VN ctest-vn-90375037 2025-07-17 16:53:00,709 - DEBUG - VN ctest-vn-90375037 UUID is c28a8970-8a3a-4d9b-88ed-b25f37012c1b 2025-07-17 16:53:00,830 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-57546994:ctest-vn-24818759, 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-57546994:ctest-vn-90375037, 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-07-17 16:53:01,149 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'd4eeca67-9af7-4fcf-b8cd-c745aca5027c', 'name': 'ctest-vn-24818759', 'tenant_id': 'c1a00ddc704d455f873d19d81f2373c5', 'project_id': 'c1a00ddc704d455f873d19d81f2373c5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['050de4d4-ef11-46d3-912f-1ee4a1061875'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-57546994', 'ctest-vn-24818759'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-57546994', 'ctest-policy-allow-all-05855297']], 'subnet_ipam': [{'subnet_cidr': '53.10.160.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-07-17 16:53:01,452 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'c28a8970-8a3a-4d9b-88ed-b25f37012c1b', 'name': 'ctest-vn-90375037', 'tenant_id': 'c1a00ddc704d455f873d19d81f2373c5', 'project_id': 'c1a00ddc704d455f873d19d81f2373c5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['51efecb2-25a2-4c2a-b816-809cdcfa081e'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-57546994', 'ctest-vn-90375037'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-57546994', 'ctest-policy-allow-all-05855297']], 'subnet_ipam': [{'subnet_cidr': '122.252.142.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-07-17 16:53:01,605 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-07-17 16:53:01,903 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-07-17 16:53:01,931 - DEBUG - Requesting: http://10.0.0.50:8082/domain/07336dcf-6ffa-4c2d-a139-798206c25467 2025-07-17 16:53:01,946 - DEBUG - Requesting: http://10.0.0.50:8082/project/c1a00ddc-704d-455f-873d-19d81f2373c5 2025-07-17 16:53:02,020 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/d4eeca67-9af7-4fcf-b8cd-c745aca5027c 2025-07-17 16:53:02,032 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/d4eeca67-9af7-4fcf-b8cd-c745aca5027c 2025-07-17 16:53:02,043 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/9e14284d-5834-4395-a54f-4cfaf8e1eeb7 2025-07-17 16:53:02,051 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/9e14284d-5834-4395-a54f-4cfaf8e1eeb7 2025-07-17 16:53:02,059 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/27e209b8-249b-43c2-a297-b6173ef4c318 2025-07-17 16:53:02,066 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-07-17 16:53:02,066 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/d4eeca67-9af7-4fcf-b8cd-c745aca5027c 2025-07-17 16:53:02,084 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/9e14284d-5834-4395-a54f-4cfaf8e1eeb7 2025-07-17 16:53:02,112 - INFO - Verified VN network id 7 for VN d4eeca67-9af7-4fcf-b8cd-c745aca5027c 2025-07-17 16:53:02,112 - INFO - Verifications in API Server for VN ctest-vn-24818759 passed 2025-07-17 16:53:02,112 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/d4eeca67-9af7-4fcf-b8cd-c745aca5027c 2025-07-17 16:53:02,125 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/9e14284d-5834-4395-a54f-4cfaf8e1eeb7 2025-07-17 16:53:02,135 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/9e14284d-5834-4395-a54f-4cfaf8e1eeb7 2025-07-17 16:53:02,142 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/27e209b8-249b-43c2-a297-b6173ef4c318 2025-07-17 16:53:02,155 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-57546994:ctest-vn-24818759', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-57546994', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15343423526828199887', 'uuid-lslong': '13316518775267590780'}, 'enable': 'true', 'created': '2025-07-17T16:52:59', 'last-modified': '2025-07-17T16:53:01', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.032790'} 2025-07-17 16:53:02,163 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-07-17 16:53:02,163 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-24818759 passed 2025-07-17 16:53:02,163 - DEBUG - ====Verifying policy data for ctest-vn-24818759 in API_Server ====== 2025-07-17 16:53:02,163 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-07-17 16:53:02,169 - DEBUG - Requesting: http://10.0.0.50:8082/domain/07336dcf-6ffa-4c2d-a139-798206c25467 2025-07-17 16:53:02,181 - DEBUG - Requesting: http://10.0.0.50:8082/project/c1a00ddc-704d-455f-873d-19d81f2373c5 2025-07-17 16:53:02,263 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/d4eeca67-9af7-4fcf-b8cd-c745aca5027c 2025-07-17 16:53:02,278 - DEBUG - ==>Verifying data for policy with id: 81253b0b-77b0-4def-87e0-8a7021608d9e, fqn: ['default-domain', 'ctest-TestBasicPolicy-57546994', 'ctest-policy-allow-all-05855297'] 2025-07-17 16:53:02,278 - INFO - VN ctest-vn-24818759 Policy verification: verify_vn_policy_in_api_server, status: True 2025-07-17 16:53:02,278 - DEBUG - Verifying the vn in opserver 2025-07-17 16:53:02,278 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-57546994:ctest-vn-24818759 virtual network link through opserver 10.0.0.50 2025-07-17 16:53:02,279 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2025-07-17 16:53:02,581 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2025-07-17 16:53:02,647 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-57546994:ctest-vn-24818759', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-57546994:ctest-vn-24818759?flat'} 2025-07-17 16:53:02,647 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-57546994:ctest-vn-24818759 is found in opserver 2025-07-17 16:53:02,658 - DEBUG - Do not have enough data to verify VN in agent 2025-07-17 16:53:02,664 - DEBUG - VRF ids for VN ctest-vn-24818759: {} 2025-07-17 16:53:02,664 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-07-17 16:53:02,670 - DEBUG - Requesting: http://10.0.0.50:8082/domain/07336dcf-6ffa-4c2d-a139-798206c25467 2025-07-17 16:53:02,681 - DEBUG - Requesting: http://10.0.0.50:8082/project/c1a00ddc-704d-455f-873d-19d81f2373c5 2025-07-17 16:53:02,757 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/c28a8970-8a3a-4d9b-88ed-b25f37012c1b 2025-07-17 16:53:02,769 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/c28a8970-8a3a-4d9b-88ed-b25f37012c1b 2025-07-17 16:53:02,781 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/a594d956-8357-4297-b39f-6725bf61a881 2025-07-17 16:53:02,791 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/a594d956-8357-4297-b39f-6725bf61a881 2025-07-17 16:53:02,799 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/5208ba71-2529-4784-9e95-d54bec265752 2025-07-17 16:53:02,807 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-07-17 16:53:02,807 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/c28a8970-8a3a-4d9b-88ed-b25f37012c1b 2025-07-17 16:53:02,819 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/a594d956-8357-4297-b39f-6725bf61a881 2025-07-17 16:53:02,835 - INFO - Verified VN network id 8 for VN c28a8970-8a3a-4d9b-88ed-b25f37012c1b 2025-07-17 16:53:02,835 - INFO - Verifications in API Server for VN ctest-vn-90375037 passed 2025-07-17 16:53:02,835 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/c28a8970-8a3a-4d9b-88ed-b25f37012c1b 2025-07-17 16:53:02,848 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/a594d956-8357-4297-b39f-6725bf61a881 2025-07-17 16:53:02,856 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/a594d956-8357-4297-b39f-6725bf61a881 2025-07-17 16:53:02,866 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/5208ba71-2529-4784-9e95-d54bec265752 2025-07-17 16:53:02,880 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-57546994:ctest-vn-90375037', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-57546994', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14018167906592509339', 'uuid-lslong': '9866738480653085723'}, 'enable': 'true', 'created': '2025-07-17T16:53:00', 'last-modified': '2025-07-17T16:53:01', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.510524'} 2025-07-17 16:53:02,887 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-07-17 16:53:02,887 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-90375037 passed 2025-07-17 16:53:02,887 - DEBUG - ====Verifying policy data for ctest-vn-90375037 in API_Server ====== 2025-07-17 16:53:02,887 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-07-17 16:53:02,894 - DEBUG - Requesting: http://10.0.0.50:8082/domain/07336dcf-6ffa-4c2d-a139-798206c25467 2025-07-17 16:53:02,907 - DEBUG - Requesting: http://10.0.0.50:8082/project/c1a00ddc-704d-455f-873d-19d81f2373c5 2025-07-17 16:53:02,979 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/c28a8970-8a3a-4d9b-88ed-b25f37012c1b 2025-07-17 16:53:02,989 - DEBUG - ==>Verifying data for policy with id: 81253b0b-77b0-4def-87e0-8a7021608d9e, fqn: ['default-domain', 'ctest-TestBasicPolicy-57546994', 'ctest-policy-allow-all-05855297'] 2025-07-17 16:53:02,989 - INFO - VN ctest-vn-90375037 Policy verification: verify_vn_policy_in_api_server, status: True 2025-07-17 16:53:02,989 - DEBUG - Verifying the vn in opserver 2025-07-17 16:53:02,989 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-57546994:ctest-vn-90375037 virtual network link through opserver 10.0.0.50 2025-07-17 16:53:02,989 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2025-07-17 16:53:03,002 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-57546994:ctest-vn-90375037', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-57546994:ctest-vn-90375037?flat'} 2025-07-17 16:53:03,002 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-57546994:ctest-vn-90375037 is found in opserver 2025-07-17 16:53:03,014 - DEBUG - Do not have enough data to verify VN in agent 2025-07-17 16:53:03,019 - DEBUG - VRF ids for VN ctest-vn-90375037: {} 2025-07-17 16:53:03,080 - DEBUG - Services list from nova: [, , ] 2025-07-17 16:53:04,192 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3659-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3659-1) 2025-07-17 16:53:05,309 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3659-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3659-1) 2025-07-17 16:53:05,309 - INFO - Waiting for VM ctest-TestBasicPolicy-57546994-60609140 to be up.. 2025-07-17 16:53:05,393 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-07-17 16:53:10,483 - DEBUG - VM is in ACTIVE state now 2025-07-17 16:53:10,483 - INFO - VM name : ctest-TestBasicPolicy-57546994-60609140 2025-07-17 16:53:10,577 - DEBUG - VM ctest-TestBasicPolicy-57546994-60609140 ID is 1c3bc2a8-8daf-4215-a91d-818bf51dd7f2 2025-07-17 16:53:10,597 - DEBUG - VM ctest-TestBasicPolicy-57546994-60609140 launched on Node cn-jenkins-deploy-platform-ansible-os-3659-1 2025-07-17 16:53:10,679 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine/1c3bc2a8-8daf-4215-a91d-818bf51dd7f2 2025-07-17 16:53:10,689 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine-interface/65b5e7cb-30db-4924-94d2-4fd74c38009a 2025-07-17 16:53:13,908 - 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-07-17 16:53:13,908 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-57546994-60609140 failed! 2025-07-17 16:53:13,965 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-57546994:ctest-vn-24818759 is 53.10.160.65 and allocation pool is NOT set 2025-07-17 16:53:16,029 - 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.3 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.452 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.452/5.376/10.300/4.924 ms') 2025-07-17 16:53:16,029 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-57546994-60609140 passed 2025-07-17 16:53:16,177 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-07-17 16:53:16,177 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-57546994-60609140, IP 53.10.160.67, Port 22 2025-07-17 16:53:16,329 - DEBUG - VM ctest-TestBasicPolicy-57546994-60609140 is ready for SSH connections 2025-07-17 16:53:16,329 - INFO - Waiting for VM ctest-TestBasicPolicy-57546994-75249025 to be up.. 2025-07-17 16:53:16,416 - DEBUG - VM is in ACTIVE state now 2025-07-17 16:53:16,416 - INFO - VM name : ctest-TestBasicPolicy-57546994-75249025 2025-07-17 16:53:16,497 - DEBUG - VM ctest-TestBasicPolicy-57546994-75249025 ID is 20ffb28a-b5bc-4d87-afc9-558b3db118b9 2025-07-17 16:53:16,498 - DEBUG - VM ctest-TestBasicPolicy-57546994-75249025 launched on Node cn-jenkins-deploy-platform-ansible-os-3659-1 2025-07-17 16:53:16,579 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine/20ffb28a-b5bc-4d87-afc9-558b3db118b9 2025-07-17 16:53:16,591 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine-interface/f775fbb6-ea87-4249-ac34-fb2698a4d05c 2025-07-17 16:53:17,842 - 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=2.79 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=2.80 ms\r\n\r\n--- 169.254.0.4 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1002ms\r\nrtt min/avg/max/mdev = 2.786/2.792/2.798/0.006 ms') 2025-07-17 16:53:17,842 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-57546994-75249025 passed 2025-07-17 16:53:17,997 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-07-17 16:53:17,997 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-57546994-75249025, IP 122.252.142.195, Port 22 2025-07-17 16:53:18,052 - 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-07-17 16:53:18,127 - DEBUG - VM ctest-TestBasicPolicy-57546994-75249025 is NOT ready for SSH connections, VM status: ACTIVE 2025-07-17 16:53:23,128 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-07-17 16:53:23,128 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-57546994-75249025, IP 122.252.142.195, Port 22 2025-07-17 16:53:23,284 - DEBUG - VM ctest-TestBasicPolicy-57546994-75249025 is ready for SSH connections 2025-07-17 16:53:23,285 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-07-17 16:53:23,285 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 122.252.142.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.50, gateway password: c0ntrail123 2025-07-17 16:53:23,285 - DEBUG - ping -s 56 -c 3 -W 1 122.252.142.195 2025-07-17 16:53:26,982 - DEBUG - PING 122.252.142.195 (122.252.142.195): 56 data bytes 64 bytes from 122.252.142.195: seq=0 ttl=63 time=4.872 ms 64 bytes from 122.252.142.195: seq=1 ttl=63 time=0.789 ms 64 bytes from 122.252.142.195: seq=2 ttl=63 time=1.034 ms --- 122.252.142.195 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.789/2.231/4.872 ms 2025-07-17 16:53:26,982 - INFO - Ping to IP 122.252.142.195 from VM ctest-TestBasicPolicy-57546994-60609140 passed 2025-07-17 16:53:27,185 - DEBUG - Policy Update Response {"network-policy": {"uuid": "81253b0b-77b0-4def-87e0-8a7021608d9e", "href": "http://10.0.0.50:8082/network-policy/81253b0b-77b0-4def-87e0-8a7021608d9e"}} 2025-07-17 16:53:27,185 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-07-17 16:53:27,185 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 122.252.142.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.50, gateway password: c0ntrail123 2025-07-17 16:53:27,185 - DEBUG - ping -s 56 -c 3 -W 1 122.252.142.195 2025-07-17 16:53:30,404 - DEBUG - PING 122.252.142.195 (122.252.142.195): 56 data bytes 64 bytes from 122.252.142.195: seq=0 ttl=63 time=1.775 ms --- 122.252.142.195 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.775/1.775/1.775 ms 2025-07-17 16:53:30,404 - WARNING - Ping to IP 122.252.142.195 from VM ctest-TestBasicPolicy-57546994-60609140 failed 2025-07-17 16:53:30,405 - INFO - Deleting VM ctest-TestBasicPolicy-57546994-75249025 2025-07-17 16:53:30,481 - INFO - Deleting VM ctest-TestBasicPolicy-57546994-60609140 2025-07-17 16:53:30,924 - INFO - Deleted policy ctest-policy-allow-all-05855297 2025-07-17 16:53:30,925 - INFO - Deleting VN ctest-vn-90375037 2025-07-17 16:53:30,977 - DEBUG - VN c28a8970-8a3a-4d9b-88ed-b25f37012c1b still in use: Unable to complete operation on network c28a8970-8a3a-4d9b-88ed-b25f37012c1b. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-8dd8b12c-972e-45d5-8bfe-c5acd5db60c3'] 2025-07-17 16:53:30,978 - WARNING - Deleting VN ctest-vn-90375037 failed..Will retry 2025-07-17 16:53:33,106 - DEBUG - Response for deleting network () 2025-07-17 16:53:33,107 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/a594d956-8357-4297-b39f-6725bf61a881 2025-07-17 16:53:33,116 - DEBUG - Response Code: 404 2025-07-17 16:53:33,116 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-07-17 16:53:33,122 - DEBUG - Requesting: http://10.0.0.50:8082/domain/07336dcf-6ffa-4c2d-a139-798206c25467 2025-07-17 16:53:33,176 - DEBUG - Requesting: http://10.0.0.50:8082/project/c1a00ddc-704d-455f-873d-19d81f2373c5 2025-07-17 16:53:33,250 - INFO - Validated that VN ctest-vn-90375037 is not found in API Server 2025-07-17 16:53:33,261 - DEBUG - VN ctest-vn-90375037 is not present in Agent 10.0.0.50 2025-07-17 16:53:33,261 - INFO - Validated that VN ctest-vn-90375037 is not in any agent 2025-07-17 16:53:33,282 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-90375037 info 2025-07-17 16:53:33,282 - INFO - Deleting VN ctest-vn-24818759 2025-07-17 16:53:33,403 - DEBUG - Response for deleting network () 2025-07-17 16:53:33,403 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/9e14284d-5834-4395-a54f-4cfaf8e1eeb7 2025-07-17 16:53:33,410 - DEBUG - Response Code: 404 2025-07-17 16:53:33,411 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-07-17 16:53:33,416 - DEBUG - Requesting: http://10.0.0.50:8082/domain/07336dcf-6ffa-4c2d-a139-798206c25467 2025-07-17 16:53:33,471 - DEBUG - Requesting: http://10.0.0.50:8082/project/c1a00ddc-704d-455f-873d-19d81f2373c5 2025-07-17 16:53:33,550 - INFO - Validated that VN ctest-vn-24818759 is not found in API Server 2025-07-17 16:53:33,565 - DEBUG - VN ctest-vn-24818759 is not present in Agent 10.0.0.50 2025-07-17 16:53:33,565 - INFO - Validated that VN ctest-vn-24818759 is not in any agent 2025-07-17 16:53:33,586 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-24818759 info 2025-07-17 16:53:33,843 - DEBUG - No XMPP flaps were noticed during the test 2025-07-17 16:53:33,843 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:35] 2025-07-17 16:53:33,843 - INFO - -------------------------------------------------------------------------------- 2025-07-17 16:53:34,535 - INFO - Deleted project: ctest-TestBasicPolicy-57546994, ID : c1a00ddc-704d-455f-873d-19d81f2373c5