2025-05-09 04:43:47,044 - INFO - Domain Default found not creating 2025-05-09 04:43:47,194 - INFO - Project ctest-TestBasicPolicy-27678113 not found, creating it 2025-05-09 04:43:47,658 - INFO - Created Project:ctest-TestBasicPolicy-27678113, ID : 3ff5d562-0ac8-481e-9921-ceba9926af09 2025-05-09 04:43:49,196 - INFO - ================================================================================ 2025-05-09 04:43:49,196 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-05-09 04:43:49,196 - 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-05-09 04:43:49,456 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with 2025-05-09 04:43:49,456 - INFO - Initial checks done. Running the testcase now 2025-05-09 04:43:49,457 - INFO - 2025-05-09 04:43:50,047 - DEBUG - Response for create_network : {'network': {'id': '30a95176-b932-46d7-9065-c940949336de', 'name': 'ctest-vn-83939670', 'tenant_id': '3ff5d5620ac8481e9921ceba9926af09', 'project_id': '3ff5d5620ac8481e9921ceba9926af09', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-27678113', 'ctest-vn-83939670'], 'port_security_enabled': True, 'description': ''}} 2025-05-09 04:43:50,256 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ea2e167e-5385-4b6d-a484-b5c518ddb8b1', 'name': '', 'tenant_id': '3ff5d5620ac8481e9921ceba9926af09', 'network_id': '30a95176-b932-46d7-9065-c940949336de', 'ip_version': 4, 'cidr': '77.12.13.128/26', 'allocation_pools': [{'start': '77.12.13.130', 'end': '77.12.13.190'}], 'gateway_ip': '77.12.13.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '77.12.13.130', 'tags': [], 'project_id': '3ff5d5620ac8481e9921ceba9926af09'}} 2025-05-09 04:43:50,276 - INFO - Created VN ctest-vn-83939670 2025-05-09 04:43:50,330 - DEBUG - VN ctest-vn-83939670 UUID is 30a95176-b932-46d7-9065-c940949336de 2025-05-09 04:43:50,643 - DEBUG - Response for create_network : {'network': {'id': '6e4819b6-fe7f-4bef-b91f-d46a9dd86d06', 'name': 'ctest-vn-20883600', 'tenant_id': '3ff5d5620ac8481e9921ceba9926af09', 'project_id': '3ff5d5620ac8481e9921ceba9926af09', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-27678113', 'ctest-vn-20883600'], 'port_security_enabled': True, 'description': ''}} 2025-05-09 04:43:50,830 - DEBUG - Response for create_subnet : {'subnet': {'id': '5e2d0c5a-a4dc-44dd-83fb-e4b5fa029e72', 'name': '', 'tenant_id': '3ff5d5620ac8481e9921ceba9926af09', 'network_id': '6e4819b6-fe7f-4bef-b91f-d46a9dd86d06', 'ip_version': 4, 'cidr': '38.20.89.128/26', 'allocation_pools': [{'start': '38.20.89.130', 'end': '38.20.89.190'}], 'gateway_ip': '38.20.89.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '38.20.89.130', 'tags': [], 'project_id': '3ff5d5620ac8481e9921ceba9926af09'}} 2025-05-09 04:43:50,968 - INFO - Created VN ctest-vn-20883600 2025-05-09 04:43:51,022 - DEBUG - VN ctest-vn-20883600 UUID is 6e4819b6-fe7f-4bef-b91f-d46a9dd86d06 2025-05-09 04:43:51,170 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-27678113:ctest-vn-83939670, 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-27678113:ctest-vn-20883600, 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-05-09 04:43:51,464 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '30a95176-b932-46d7-9065-c940949336de', 'name': 'ctest-vn-83939670', 'tenant_id': '3ff5d5620ac8481e9921ceba9926af09', 'project_id': '3ff5d5620ac8481e9921ceba9926af09', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['ea2e167e-5385-4b6d-a484-b5c518ddb8b1'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-27678113', 'ctest-vn-83939670'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-27678113', 'ctest-policy-allow-all-73875983']], 'subnet_ipam': [{'subnet_cidr': '77.12.13.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-05-09 04:43:51,703 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '6e4819b6-fe7f-4bef-b91f-d46a9dd86d06', 'name': 'ctest-vn-20883600', 'tenant_id': '3ff5d5620ac8481e9921ceba9926af09', 'project_id': '3ff5d5620ac8481e9921ceba9926af09', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['5e2d0c5a-a4dc-44dd-83fb-e4b5fa029e72'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-27678113', 'ctest-vn-20883600'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-27678113', 'ctest-policy-allow-all-73875983']], 'subnet_ipam': [{'subnet_cidr': '38.20.89.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-05-09 04:43:51,862 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-05-09 04:43:52,203 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-05-09 04:43:52,231 - DEBUG - Requesting: http://10.0.0.254:8082/domain/d4c8c82e-0dce-434e-9a71-8e896e214877 2025-05-09 04:43:52,244 - DEBUG - Requesting: http://10.0.0.254:8082/project/3ff5d562-0ac8-481e-9921-ceba9926af09 2025-05-09 04:43:52,319 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/30a95176-b932-46d7-9065-c940949336de 2025-05-09 04:43:52,330 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/30a95176-b932-46d7-9065-c940949336de 2025-05-09 04:43:52,339 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/31ed43f2-dbd3-4941-ad86-203c24cb1cab 2025-05-09 04:43:52,347 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/31ed43f2-dbd3-4941-ad86-203c24cb1cab 2025-05-09 04:43:52,353 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/ba29accb-88f4-4e31-8e8d-0746c54f8554 2025-05-09 04:43:52,360 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-05-09 04:43:52,360 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/30a95176-b932-46d7-9065-c940949336de 2025-05-09 04:43:52,372 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/31ed43f2-dbd3-4941-ad86-203c24cb1cab 2025-05-09 04:43:52,386 - INFO - Verified VN network id 8 for VN 30a95176-b932-46d7-9065-c940949336de 2025-05-09 04:43:52,386 - INFO - Verifications in API Server for VN ctest-vn-83939670 passed 2025-05-09 04:43:52,386 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/30a95176-b932-46d7-9065-c940949336de 2025-05-09 04:43:52,395 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/31ed43f2-dbd3-4941-ad86-203c24cb1cab 2025-05-09 04:43:52,403 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/31ed43f2-dbd3-4941-ad86-203c24cb1cab 2025-05-09 04:43:52,412 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/ba29accb-88f4-4e31-8e8d-0746c54f8554 2025-05-09 04:43:52,424 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-27678113:ctest-vn-83939670', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-27678113', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3506423355239712471', 'uuid-lslong': '10404943793317164766'}, 'enable': 'true', 'created': '2025-05-09T04:43:50', 'last-modified': '2025-05-09T04:43:51', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.982815'} 2025-05-09 04:43:52,432 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-05-09 04:43:52,432 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-83939670 passed 2025-05-09 04:43:52,432 - DEBUG - ====Verifying policy data for ctest-vn-83939670 in API_Server ====== 2025-05-09 04:43:52,432 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-05-09 04:43:52,438 - DEBUG - Requesting: http://10.0.0.254:8082/domain/d4c8c82e-0dce-434e-9a71-8e896e214877 2025-05-09 04:43:52,449 - DEBUG - Requesting: http://10.0.0.254:8082/project/3ff5d562-0ac8-481e-9921-ceba9926af09 2025-05-09 04:43:52,527 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/30a95176-b932-46d7-9065-c940949336de 2025-05-09 04:43:52,537 - DEBUG - ==>Verifying data for policy with id: d4b5726f-3f5e-453b-a019-13dfe63b661f, fqn: ['default-domain', 'ctest-TestBasicPolicy-27678113', 'ctest-policy-allow-all-73875983'] 2025-05-09 04:43:52,537 - INFO - VN ctest-vn-83939670 Policy verification: verify_vn_policy_in_api_server, status: True 2025-05-09 04:43:52,537 - DEBUG - Verifying the vn in opserver 2025-05-09 04:43:52,537 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-27678113:ctest-vn-83939670 virtual network link through opserver 10.0.0.254 2025-05-09 04:43:52,537 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-05-09 04:43:52,867 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-05-09 04:43:52,918 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-27678113:ctest-vn-83939670', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-27678113:ctest-vn-83939670?flat'} 2025-05-09 04:43:52,918 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-27678113:ctest-vn-83939670 is found in opserver 2025-05-09 04:43:52,930 - DEBUG - Do not have enough data to verify VN in agent 2025-05-09 04:43:52,935 - DEBUG - VRF ids for VN ctest-vn-83939670: {} 2025-05-09 04:43:52,936 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-05-09 04:43:52,941 - DEBUG - Requesting: http://10.0.0.254:8082/domain/d4c8c82e-0dce-434e-9a71-8e896e214877 2025-05-09 04:43:52,955 - DEBUG - Requesting: http://10.0.0.254:8082/project/3ff5d562-0ac8-481e-9921-ceba9926af09 2025-05-09 04:43:53,028 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/6e4819b6-fe7f-4bef-b91f-d46a9dd86d06 2025-05-09 04:43:53,040 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/6e4819b6-fe7f-4bef-b91f-d46a9dd86d06 2025-05-09 04:43:53,050 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/8985ac2b-5b0b-43a9-960c-4fd9731d2c78 2025-05-09 04:43:53,058 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/8985ac2b-5b0b-43a9-960c-4fd9731d2c78 2025-05-09 04:43:53,066 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/a7d04d0c-25f7-4ebe-885b-72f69cb5b67a 2025-05-09 04:43:53,072 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-05-09 04:43:53,073 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/6e4819b6-fe7f-4bef-b91f-d46a9dd86d06 2025-05-09 04:43:53,082 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/8985ac2b-5b0b-43a9-960c-4fd9731d2c78 2025-05-09 04:43:53,096 - INFO - Verified VN network id 9 for VN 6e4819b6-fe7f-4bef-b91f-d46a9dd86d06 2025-05-09 04:43:53,096 - INFO - Verifications in API Server for VN ctest-vn-20883600 passed 2025-05-09 04:43:53,096 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/6e4819b6-fe7f-4bef-b91f-d46a9dd86d06 2025-05-09 04:43:53,106 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/8985ac2b-5b0b-43a9-960c-4fd9731d2c78 2025-05-09 04:43:53,113 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/8985ac2b-5b0b-43a9-960c-4fd9731d2c78 2025-05-09 04:43:53,120 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/a7d04d0c-25f7-4ebe-885b-72f69cb5b67a 2025-05-09 04:43:53,132 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-27678113:ctest-vn-20883600', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-27678113', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7946629816239737839', 'uuid-lslong': '13339614175674526982'}, 'enable': 'true', 'created': '2025-05-09T04:43:50', 'last-modified': '2025-05-09T04:43:51', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.454415'} 2025-05-09 04:43:53,139 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-05-09 04:43:53,139 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-20883600 passed 2025-05-09 04:43:53,139 - DEBUG - ====Verifying policy data for ctest-vn-20883600 in API_Server ====== 2025-05-09 04:43:53,139 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-05-09 04:43:53,145 - DEBUG - Requesting: http://10.0.0.254:8082/domain/d4c8c82e-0dce-434e-9a71-8e896e214877 2025-05-09 04:43:53,157 - DEBUG - Requesting: http://10.0.0.254:8082/project/3ff5d562-0ac8-481e-9921-ceba9926af09 2025-05-09 04:43:53,232 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/6e4819b6-fe7f-4bef-b91f-d46a9dd86d06 2025-05-09 04:43:53,243 - DEBUG - ==>Verifying data for policy with id: d4b5726f-3f5e-453b-a019-13dfe63b661f, fqn: ['default-domain', 'ctest-TestBasicPolicy-27678113', 'ctest-policy-allow-all-73875983'] 2025-05-09 04:43:53,243 - INFO - VN ctest-vn-20883600 Policy verification: verify_vn_policy_in_api_server, status: True 2025-05-09 04:43:53,243 - DEBUG - Verifying the vn in opserver 2025-05-09 04:43:53,244 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-27678113:ctest-vn-20883600 virtual network link through opserver 10.0.0.254 2025-05-09 04:43:53,244 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-05-09 04:43:53,254 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-27678113:ctest-vn-20883600', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-27678113:ctest-vn-20883600?flat'} 2025-05-09 04:43:53,254 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-27678113:ctest-vn-20883600 is found in opserver 2025-05-09 04:43:53,266 - DEBUG - Do not have enough data to verify VN in agent 2025-05-09 04:43:53,271 - DEBUG - VRF ids for VN ctest-vn-20883600: {} 2025-05-09 04:43:53,330 - DEBUG - Services list from nova: [, , ] 2025-05-09 04:43:54,403 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3292-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3292-1) 2025-05-09 04:43:55,681 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3292-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3292-1) 2025-05-09 04:43:55,681 - INFO - Waiting for VM ctest-TestBasicPolicy-27678113-69212168 to be up.. 2025-05-09 04:43:55,764 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-05-09 04:44:00,842 - DEBUG - VM is in ACTIVE state now 2025-05-09 04:44:00,842 - INFO - VM name : ctest-TestBasicPolicy-27678113-69212168 2025-05-09 04:44:00,916 - DEBUG - VM ctest-TestBasicPolicy-27678113-69212168 ID is e032b8bf-d10a-460e-b3ea-2cb10cd78804 2025-05-09 04:44:00,936 - DEBUG - VM ctest-TestBasicPolicy-27678113-69212168 launched on Node cn-jenkins-deploy-platform-ansible-os-3292-1 2025-05-09 04:44:01,020 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine/e032b8bf-d10a-460e-b3ea-2cb10cd78804 2025-05-09 04:44:01,034 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine-interface/02025204-b11a-45d9-b409-d5bf82792ec4 2025-05-09 04:44:04,311 - 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 1031ms') 2025-05-09 04:44:04,311 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-27678113-69212168 failed! 2025-05-09 04:44:04,374 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-27678113:ctest-vn-83939670 is 77.12.13.129 and allocation pool is NOT set 2025-05-09 04:44:06,441 - 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=7.88 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.365 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 = 0.365/4.122/7.879/3.757 ms') 2025-05-09 04:44:06,441 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-27678113-69212168 passed 2025-05-09 04:44:06,594 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-05-09 04:44:06,594 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-27678113-69212168, IP 77.12.13.131, Port 22 2025-05-09 04:44:06,749 - DEBUG - VM ctest-TestBasicPolicy-27678113-69212168 is ready for SSH connections 2025-05-09 04:44:06,750 - INFO - Waiting for VM ctest-TestBasicPolicy-27678113-84683742 to be up.. 2025-05-09 04:44:06,838 - DEBUG - VM is in ACTIVE state now 2025-05-09 04:44:06,838 - INFO - VM name : ctest-TestBasicPolicy-27678113-84683742 2025-05-09 04:44:06,913 - DEBUG - VM ctest-TestBasicPolicy-27678113-84683742 ID is fab8c8b9-a695-456f-ba07-63261c0e4afe 2025-05-09 04:44:06,914 - DEBUG - VM ctest-TestBasicPolicy-27678113-84683742 launched on Node cn-jenkins-deploy-platform-ansible-os-3292-1 2025-05-09 04:44:06,993 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine/fab8c8b9-a695-456f-ba07-63261c0e4afe 2025-05-09 04:44:07,001 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine-interface/dcbfc1da-910d-4a81-8f9f-ffb253883115 2025-05-09 04:44:08,244 - 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.83 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=1.07 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 = 1.074/2.952/4.831/1.878 ms') 2025-05-09 04:44:08,244 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-27678113-84683742 passed 2025-05-09 04:44:08,398 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-05-09 04:44:08,398 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-27678113-84683742, IP 38.20.89.131, Port 22 2025-05-09 04:44:08,453 - 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-05-09 04:44:08,527 - DEBUG - VM ctest-TestBasicPolicy-27678113-84683742 is NOT ready for SSH connections, VM status: ACTIVE 2025-05-09 04:44:13,529 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-05-09 04:44:13,529 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-27678113-84683742, IP 38.20.89.131, Port 22 2025-05-09 04:44:13,689 - DEBUG - VM ctest-TestBasicPolicy-27678113-84683742 is ready for SSH connections 2025-05-09 04:44:13,690 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-05-09 04:44:13,690 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 38.20.89.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.254, gateway password: c0ntrail123 2025-05-09 04:44:13,690 - DEBUG - ping -s 56 -c 3 -W 1 38.20.89.131 2025-05-09 04:44:17,723 - DEBUG - PING 38.20.89.131 (38.20.89.131): 56 data bytes 64 bytes from 38.20.89.131: seq=0 ttl=63 time=3.846 ms 64 bytes from 38.20.89.131: seq=1 ttl=63 time=0.954 ms 64 bytes from 38.20.89.131: seq=2 ttl=63 time=0.914 ms --- 38.20.89.131 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.914/1.904/3.846 ms 2025-05-09 04:44:17,724 - INFO - Ping to IP 38.20.89.131 from VM ctest-TestBasicPolicy-27678113-69212168 passed 2025-05-09 04:44:17,902 - DEBUG - Policy Update Response {"network-policy": {"uuid": "d4b5726f-3f5e-453b-a019-13dfe63b661f", "href": "http://10.0.0.254:8082/network-policy/d4b5726f-3f5e-453b-a019-13dfe63b661f"}} 2025-05-09 04:44:17,902 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-05-09 04:44:17,902 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 38.20.89.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.254, gateway password: c0ntrail123 2025-05-09 04:44:17,902 - DEBUG - ping -s 56 -c 3 -W 1 38.20.89.131 2025-05-09 04:44:21,118 - DEBUG - PING 38.20.89.131 (38.20.89.131): 56 data bytes --- 38.20.89.131 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2025-05-09 04:44:21,118 - WARNING - Ping to IP 38.20.89.131 from VM ctest-TestBasicPolicy-27678113-69212168 failed 2025-05-09 04:44:21,118 - INFO - Deleting VM ctest-TestBasicPolicy-27678113-84683742 2025-05-09 04:44:21,185 - INFO - Deleting VM ctest-TestBasicPolicy-27678113-69212168 2025-05-09 04:44:21,584 - INFO - Deleted policy ctest-policy-allow-all-73875983 2025-05-09 04:44:21,584 - INFO - Deleting VN ctest-vn-20883600 2025-05-09 04:44:21,632 - DEBUG - VN 6e4819b6-fe7f-4bef-b91f-d46a9dd86d06 still in use: Unable to complete operation on network 6e4819b6-fe7f-4bef-b91f-d46a9dd86d06. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-437ece03-eb71-48aa-a97e-3d96361e9547'] 2025-05-09 04:44:21,632 - WARNING - Deleting VN ctest-vn-20883600 failed..Will retry 2025-05-09 04:44:23,737 - DEBUG - Response for deleting network () 2025-05-09 04:44:23,737 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/8985ac2b-5b0b-43a9-960c-4fd9731d2c78 2025-05-09 04:44:23,747 - DEBUG - Response Code: 404 2025-05-09 04:44:23,747 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-05-09 04:44:23,752 - DEBUG - Requesting: http://10.0.0.254:8082/domain/d4c8c82e-0dce-434e-9a71-8e896e214877 2025-05-09 04:44:23,809 - DEBUG - Requesting: http://10.0.0.254:8082/project/3ff5d562-0ac8-481e-9921-ceba9926af09 2025-05-09 04:44:23,885 - INFO - Validated that VN ctest-vn-20883600 is not found in API Server 2025-05-09 04:44:23,897 - DEBUG - VN ctest-vn-20883600 is not present in Agent 10.0.0.254 2025-05-09 04:44:23,897 - INFO - Validated that VN ctest-vn-20883600 is not in any agent 2025-05-09 04:44:23,914 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-20883600 info 2025-05-09 04:44:23,914 - INFO - Deleting VN ctest-vn-83939670 2025-05-09 04:44:24,019 - DEBUG - Response for deleting network () 2025-05-09 04:44:24,020 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/31ed43f2-dbd3-4941-ad86-203c24cb1cab 2025-05-09 04:44:24,025 - DEBUG - Response Code: 404 2025-05-09 04:44:24,025 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-05-09 04:44:24,031 - DEBUG - Requesting: http://10.0.0.254:8082/domain/d4c8c82e-0dce-434e-9a71-8e896e214877 2025-05-09 04:44:24,083 - DEBUG - Requesting: http://10.0.0.254:8082/project/3ff5d562-0ac8-481e-9921-ceba9926af09 2025-05-09 04:44:24,155 - INFO - Validated that VN ctest-vn-83939670 is not found in API Server 2025-05-09 04:44:24,166 - DEBUG - VN ctest-vn-83939670 is not present in Agent 10.0.0.254 2025-05-09 04:44:24,166 - INFO - Validated that VN ctest-vn-83939670 is not in any agent 2025-05-09 04:44:24,183 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-83939670 info 2025-05-09 04:44:24,440 - DEBUG - No XMPP flaps were noticed during the test
2025-05-09 04:44:24,440 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:35]
2025-05-09 04:44:24,441 - INFO - -------------------------------------------------------------------------------- 2025-05-09 04:44:25,162 - INFO - Deleted project: ctest-TestBasicPolicy-27678113, ID : 3ff5d562-0ac8-481e-9921-ceba9926af09