2026-08-26 12:45:47,761 - INFO - Domain Default found not creating 2026-08-26 12:45:47,942 - INFO - Project ctest-TestBasicPolicy-56043064 not found, creating it 2026-08-26 12:45:48,438 - INFO - Created Project:ctest-TestBasicPolicy-56043064, ID : 683bf3ff-70b8-4bf4-80e8-b637d9ce29dc 2026-08-26 12:45:50,049 - INFO - ================================================================================ 2026-08-26 12:45:50,049 - INFO - STARTING TEST : test_basic_policy_allow_deny 2026-08-26 12:45:50,049 - 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 2026-08-26 12:45:50,310 - DEBUG - Nothing to compare xmpp stats {'10.0.0.177': {'10.20.0.17': '0'}} with 2026-08-26 12:45:50,310 - INFO - Initial checks done. Running the testcase now 2026-08-26 12:45:50,310 - INFO - 2026-08-26 12:45:50,914 - DEBUG - Response for create_network : {'network': {'id': 'fadbb2c1-bff0-4eb5-a03e-0e33e33a1056', 'name': 'ctest-vn-88787198', 'tenant_id': '683bf3ff70b84bf480e8b637d9ce29dc', 'project_id': '683bf3ff70b84bf480e8b637d9ce29dc', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-56043064', 'ctest-vn-88787198'], 'port_security_enabled': True, 'description': ''}} 2026-08-26 12:45:51,092 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e99d5516-316f-4909-aa78-52cea3908d8c', 'name': '', 'tenant_id': '683bf3ff70b84bf480e8b637d9ce29dc', 'network_id': 'fadbb2c1-bff0-4eb5-a03e-0e33e33a1056', 'ip_version': 4, 'cidr': '81.234.30.192/26', 'allocation_pools': [{'start': '81.234.30.194', 'end': '81.234.30.254'}], 'gateway_ip': '81.234.30.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '81.234.30.194', 'tags': [], 'project_id': '683bf3ff70b84bf480e8b637d9ce29dc'}} 2026-08-26 12:45:51,109 - INFO - Created VN ctest-vn-88787198 2026-08-26 12:45:51,160 - DEBUG - VN ctest-vn-88787198 UUID is fadbb2c1-bff0-4eb5-a03e-0e33e33a1056 2026-08-26 12:45:51,498 - DEBUG - Response for create_network : {'network': {'id': '2ee5246a-483b-4391-a894-47d6b93f8b08', 'name': 'ctest-vn-32464368', 'tenant_id': '683bf3ff70b84bf480e8b637d9ce29dc', 'project_id': '683bf3ff70b84bf480e8b637d9ce29dc', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-56043064', 'ctest-vn-32464368'], 'port_security_enabled': True, 'description': ''}} 2026-08-26 12:45:51,702 - DEBUG - Response for create_subnet : {'subnet': {'id': '5627daff-72ce-4f3b-8989-937b01c6a0f9', 'name': '', 'tenant_id': '683bf3ff70b84bf480e8b637d9ce29dc', 'network_id': '2ee5246a-483b-4391-a894-47d6b93f8b08', 'ip_version': 4, 'cidr': '123.45.199.64/26', 'allocation_pools': [{'start': '123.45.199.66', 'end': '123.45.199.126'}], 'gateway_ip': '123.45.199.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '123.45.199.66', 'tags': [], 'project_id': '683bf3ff70b84bf480e8b637d9ce29dc'}} 2026-08-26 12:45:51,721 - INFO - Created VN ctest-vn-32464368 2026-08-26 12:45:51,776 - DEBUG - VN ctest-vn-32464368 UUID is 2ee5246a-483b-4391-a894-47d6b93f8b08 2026-08-26 12:45:51,928 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-56043064:ctest-vn-88787198, 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-56043064:ctest-vn-32464368, 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] 2026-08-26 12:45:52,244 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'fadbb2c1-bff0-4eb5-a03e-0e33e33a1056', 'name': 'ctest-vn-88787198', 'tenant_id': '683bf3ff70b84bf480e8b637d9ce29dc', 'project_id': '683bf3ff70b84bf480e8b637d9ce29dc', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['e99d5516-316f-4909-aa78-52cea3908d8c'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-56043064', 'ctest-vn-88787198'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-56043064', 'ctest-policy-allow-all-91429783']], 'subnet_ipam': [{'subnet_cidr': '81.234.30.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-08-26 12:45:52,485 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '2ee5246a-483b-4391-a894-47d6b93f8b08', 'name': 'ctest-vn-32464368', 'tenant_id': '683bf3ff70b84bf480e8b637d9ce29dc', 'project_id': '683bf3ff70b84bf480e8b637d9ce29dc', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['5627daff-72ce-4f3b-8989-937b01c6a0f9'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-56043064', 'ctest-vn-32464368'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-56043064', 'ctest-policy-allow-all-91429783']], 'subnet_ipam': [{'subnet_cidr': '123.45.199.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-08-26 12:45:52,644 - DEBUG - Requesting: http://10.0.0.177:8082/domains 2026-08-26 12:45:52,974 - DEBUG - Requesting: http://10.0.0.177:8082/domains 2026-08-26 12:45:53,005 - DEBUG - Requesting: http://10.0.0.177:8082/domain/eb09514e-90f8-4347-a2ec-88f26e45e208 2026-08-26 12:45:53,018 - DEBUG - Requesting: http://10.0.0.177:8082/project/683bf3ff-70b8-4bf4-80e8-b637d9ce29dc 2026-08-26 12:45:53,099 - DEBUG - Requesting: http://10.0.0.177:8082/virtual-network/fadbb2c1-bff0-4eb5-a03e-0e33e33a1056 2026-08-26 12:45:53,112 - DEBUG - Requesting: http://10.0.0.177:8082/virtual-network/fadbb2c1-bff0-4eb5-a03e-0e33e33a1056 2026-08-26 12:45:53,123 - DEBUG - Requesting: http://10.0.0.177:8082/routing-instance/e9f5971f-9017-4731-b64c-115a59b0cb90 2026-08-26 12:45:53,133 - DEBUG - Requesting: http://10.0.0.177:8082/routing-instance/e9f5971f-9017-4731-b64c-115a59b0cb90 2026-08-26 12:45:53,141 - DEBUG - Requesting: http://10.0.0.177:8082/route-target/84295037-f2f3-490c-8528-46525d9a2bf2 2026-08-26 12:45:53,149 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-08-26 12:45:53,149 - DEBUG - Requesting: http://10.0.0.177:8082/virtual-network/fadbb2c1-bff0-4eb5-a03e-0e33e33a1056 2026-08-26 12:45:53,159 - DEBUG - Requesting: http://10.0.0.177:8082/routing-instance/e9f5971f-9017-4731-b64c-115a59b0cb90 2026-08-26 12:45:53,173 - INFO - Verified VN network id 12 for VN fadbb2c1-bff0-4eb5-a03e-0e33e33a1056 2026-08-26 12:45:53,173 - INFO - Verifications in API Server for VN ctest-vn-88787198 passed 2026-08-26 12:45:53,173 - DEBUG - Requesting: http://10.0.0.177:8082/virtual-network/fadbb2c1-bff0-4eb5-a03e-0e33e33a1056 2026-08-26 12:45:53,183 - DEBUG - Requesting: http://10.0.0.177:8082/routing-instance/e9f5971f-9017-4731-b64c-115a59b0cb90 2026-08-26 12:45:53,191 - DEBUG - Requesting: http://10.0.0.177:8082/routing-instance/e9f5971f-9017-4731-b64c-115a59b0cb90 2026-08-26 12:45:53,200 - DEBUG - Requesting: http://10.0.0.177:8082/route-target/84295037-f2f3-490c-8528-46525d9a2bf2 2026-08-26 12:45:53,214 - DEBUG - Control-node 10.0.0.177 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-56043064:ctest-vn-88787198', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-56043064', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '18076238074600246965', 'uuid-lslong': '11546682110642884694'}, 'enable': 'true', 'created': '2026-08-26T12:45:50', 'last-modified': '2026-08-26T12:45:52', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.000885'} 2026-08-26 12:45:53,221 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-08-26 12:45:53,221 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-88787198 passed 2026-08-26 12:45:53,221 - DEBUG - ====Verifying policy data for ctest-vn-88787198 in API_Server ====== 2026-08-26 12:45:53,221 - DEBUG - Requesting: http://10.0.0.177:8082/domains 2026-08-26 12:45:53,227 - DEBUG - Requesting: http://10.0.0.177:8082/domain/eb09514e-90f8-4347-a2ec-88f26e45e208 2026-08-26 12:45:53,238 - DEBUG - Requesting: http://10.0.0.177:8082/project/683bf3ff-70b8-4bf4-80e8-b637d9ce29dc 2026-08-26 12:45:53,311 - DEBUG - Requesting: http://10.0.0.177:8082/virtual-network/fadbb2c1-bff0-4eb5-a03e-0e33e33a1056 2026-08-26 12:45:53,322 - DEBUG - ==>Verifying data for policy with id: 6ed61b94-71ea-4ae1-be6f-c970e2d870c5, fqn: ['default-domain', 'ctest-TestBasicPolicy-56043064', 'ctest-policy-allow-all-91429783'] 2026-08-26 12:45:53,322 - INFO - VN ctest-vn-88787198 Policy verification: verify_vn_policy_in_api_server, status: True 2026-08-26 12:45:53,322 - DEBUG - Verifying the vn in opserver 2026-08-26 12:45:53,322 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-56043064:ctest-vn-88787198 virtual network link through opserver 10.0.0.177 2026-08-26 12:45:53,322 - DEBUG - Requesting: http://10.0.0.177:8081/analytics/uves/virtual-networks 2026-08-26 12:45:53,648 - DEBUG - Requesting: http://10.0.0.177:8081/analytics/uves/virtual-networks 2026-08-26 12:45:53,704 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-56043064:ctest-vn-88787198', 'href': 'http://10.0.0.177:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-56043064:ctest-vn-88787198?flat'} 2026-08-26 12:45:53,704 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-56043064:ctest-vn-88787198 is found in opserver 2026-08-26 12:45:53,715 - DEBUG - Do not have enough data to verify VN in agent 2026-08-26 12:45:53,721 - DEBUG - VRF ids for VN ctest-vn-88787198: {} 2026-08-26 12:45:53,721 - DEBUG - Requesting: http://10.0.0.177:8082/domains 2026-08-26 12:45:53,727 - DEBUG - Requesting: http://10.0.0.177:8082/domain/eb09514e-90f8-4347-a2ec-88f26e45e208 2026-08-26 12:45:53,738 - DEBUG - Requesting: http://10.0.0.177:8082/project/683bf3ff-70b8-4bf4-80e8-b637d9ce29dc 2026-08-26 12:45:53,815 - DEBUG - Requesting: http://10.0.0.177:8082/virtual-network/2ee5246a-483b-4391-a894-47d6b93f8b08 2026-08-26 12:45:53,829 - DEBUG - Requesting: http://10.0.0.177:8082/virtual-network/2ee5246a-483b-4391-a894-47d6b93f8b08 2026-08-26 12:45:53,839 - DEBUG - Requesting: http://10.0.0.177:8082/routing-instance/9c3ff48f-babc-410f-a503-f6331708bd2c 2026-08-26 12:45:53,847 - DEBUG - Requesting: http://10.0.0.177:8082/routing-instance/9c3ff48f-babc-410f-a503-f6331708bd2c 2026-08-26 12:45:53,857 - DEBUG - Requesting: http://10.0.0.177:8082/route-target/8c327eaf-2334-4958-9277-0c00a85c7b03 2026-08-26 12:45:53,865 - DEBUG - Route Targets: ['target:64512:8000006'] 2026-08-26 12:45:53,865 - DEBUG - Requesting: http://10.0.0.177:8082/virtual-network/2ee5246a-483b-4391-a894-47d6b93f8b08 2026-08-26 12:45:53,877 - DEBUG - Requesting: http://10.0.0.177:8082/routing-instance/9c3ff48f-babc-410f-a503-f6331708bd2c 2026-08-26 12:45:53,894 - INFO - Verified VN network id 13 for VN 2ee5246a-483b-4391-a894-47d6b93f8b08 2026-08-26 12:45:53,894 - INFO - Verifications in API Server for VN ctest-vn-32464368 passed 2026-08-26 12:45:53,894 - DEBUG - Requesting: http://10.0.0.177:8082/virtual-network/2ee5246a-483b-4391-a894-47d6b93f8b08 2026-08-26 12:45:53,905 - DEBUG - Requesting: http://10.0.0.177:8082/routing-instance/9c3ff48f-babc-410f-a503-f6331708bd2c 2026-08-26 12:45:53,913 - DEBUG - Requesting: http://10.0.0.177:8082/routing-instance/9c3ff48f-babc-410f-a503-f6331708bd2c 2026-08-26 12:45:53,920 - DEBUG - Requesting: http://10.0.0.177:8082/route-target/8c327eaf-2334-4958-9277-0c00a85c7b03 2026-08-26 12:45:53,933 - DEBUG - Control-node 10.0.0.177 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-56043064:ctest-vn-32464368', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-56043064', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3379147134308402065', 'uuid-lslong': '12147413082481593096'}, 'enable': 'true', 'created': '2026-08-26T12:45:51', 'last-modified': '2026-08-26T12:45:52', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.476620'} 2026-08-26 12:45:53,940 - DEBUG - Route Targets: ['target:64512:8000006'] 2026-08-26 12:45:53,940 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-32464368 passed 2026-08-26 12:45:53,940 - DEBUG - ====Verifying policy data for ctest-vn-32464368 in API_Server ====== 2026-08-26 12:45:53,940 - DEBUG - Requesting: http://10.0.0.177:8082/domains 2026-08-26 12:45:53,946 - DEBUG - Requesting: http://10.0.0.177:8082/domain/eb09514e-90f8-4347-a2ec-88f26e45e208 2026-08-26 12:45:53,958 - DEBUG - Requesting: http://10.0.0.177:8082/project/683bf3ff-70b8-4bf4-80e8-b637d9ce29dc 2026-08-26 12:45:54,044 - DEBUG - Requesting: http://10.0.0.177:8082/virtual-network/2ee5246a-483b-4391-a894-47d6b93f8b08 2026-08-26 12:45:54,054 - DEBUG - ==>Verifying data for policy with id: 6ed61b94-71ea-4ae1-be6f-c970e2d870c5, fqn: ['default-domain', 'ctest-TestBasicPolicy-56043064', 'ctest-policy-allow-all-91429783'] 2026-08-26 12:45:54,054 - INFO - VN ctest-vn-32464368 Policy verification: verify_vn_policy_in_api_server, status: True 2026-08-26 12:45:54,054 - DEBUG - Verifying the vn in opserver 2026-08-26 12:45:54,054 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-56043064:ctest-vn-32464368 virtual network link through opserver 10.0.0.177 2026-08-26 12:45:54,054 - DEBUG - Requesting: http://10.0.0.177:8081/analytics/uves/virtual-networks 2026-08-26 12:45:54,065 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-56043064:ctest-vn-32464368', 'href': 'http://10.0.0.177:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-56043064:ctest-vn-32464368?flat'} 2026-08-26 12:45:54,065 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-56043064:ctest-vn-32464368 is found in opserver 2026-08-26 12:45:54,077 - DEBUG - Do not have enough data to verify VN in agent 2026-08-26 12:45:54,082 - DEBUG - VRF ids for VN ctest-vn-32464368: {} 2026-08-26 12:45:54,153 - DEBUG - Services list from nova: [, , ] 2026-08-26 12:45:54,586 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-6233-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-6233-1) 2026-08-26 12:45:54,976 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-6233-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-6233-1) 2026-08-26 12:45:54,976 - INFO - Waiting for VM ctest-TestBasicPolicy-56043064-07974679 to be up.. 2026-08-26 12:45:55,016 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2026-08-26 12:46:00,101 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2026-08-26 12:46:05,183 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2026-08-26 12:46:10,265 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2026-08-26 12:46:15,350 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2026-08-26 12:46:20,432 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2026-08-26 12:46:25,523 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2026-08-26 12:46:30,611 - DEBUG - VM is in ACTIVE state now 2026-08-26 12:46:30,611 - INFO - VM name : ctest-TestBasicPolicy-56043064-07974679 2026-08-26 12:46:30,700 - DEBUG - VM ctest-TestBasicPolicy-56043064-07974679 ID is 2299d833-e9be-4978-a0be-1446a33c4df1 2026-08-26 12:46:30,726 - DEBUG - VM ctest-TestBasicPolicy-56043064-07974679 launched on Node cn-jenkins-deploy-platform-ansible-os-6233-1 2026-08-26 12:46:30,808 - DEBUG - Requesting: http://10.0.0.177:8082/virtual-machine/2299d833-e9be-4978-a0be-1446a33c4df1 2026-08-26 12:46:30,817 - DEBUG - Requesting: http://10.0.0.177:8082/virtual-machine-interface/48d52bbe-6787-463f-9fda-7142aaba26e1 2026-08-26 12:46:34,073 - 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 1012ms') 2026-08-26 12:46:34,073 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-56043064-07974679 failed! 2026-08-26 12:46:34,128 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-56043064:ctest-vn-88787198 is 81.234.30.193 and allocation pool is NOT set 2026-08-26 12:46:36,198 - 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=4.26 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.479 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.479/2.371/4.263/1.892 ms') 2026-08-26 12:46:36,198 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-56043064-07974679 passed 2026-08-26 12:46:36,352 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2026-08-26 12:46:36,352 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-56043064-07974679, IP 81.234.30.195, Port 22 2026-08-26 12:46:36,517 - DEBUG - VM ctest-TestBasicPolicy-56043064-07974679 is ready for SSH connections 2026-08-26 12:46:36,518 - INFO - Waiting for VM ctest-TestBasicPolicy-56043064-71017011 to be up.. 2026-08-26 12:46:36,607 - DEBUG - VM is in ACTIVE state now 2026-08-26 12:46:36,607 - INFO - VM name : ctest-TestBasicPolicy-56043064-71017011 2026-08-26 12:46:36,691 - DEBUG - VM ctest-TestBasicPolicy-56043064-71017011 ID is b70e3ecb-b688-43d1-b270-4ad680a5e3d2 2026-08-26 12:46:36,691 - DEBUG - VM ctest-TestBasicPolicy-56043064-71017011 launched on Node cn-jenkins-deploy-platform-ansible-os-6233-1 2026-08-26 12:46:36,770 - DEBUG - Requesting: http://10.0.0.177:8082/virtual-machine/b70e3ecb-b688-43d1-b270-4ad680a5e3d2 2026-08-26 12:46:36,778 - DEBUG - Requesting: http://10.0.0.177:8082/virtual-machine-interface/ef8944e8-b448-4a33-b795-b99d46ed79ff 2026-08-26 12:46:40,023 - DEBUG - (True, 'PING 169.254.0.4 (169.254.0.4) 56(84) bytes of data.\r\n\r\n--- 169.254.0.4 ping statistics ---\r\n2 packets transmitted, 0 received, 100% packet loss, time 1006ms') 2026-08-26 12:46:40,023 - DEBUG - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-56043064-71017011 failed! 2026-08-26 12:46:40,080 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-56043064:ctest-vn-32464368 is 123.45.199.65 and allocation pool is NOT set 2026-08-26 12:46:42,138 - 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=11.0 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.489 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.489/5.753/11.018/5.264 ms') 2026-08-26 12:46:42,138 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-56043064-71017011 passed 2026-08-26 12:46:42,296 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2026-08-26 12:46:42,296 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-56043064-71017011, IP 123.45.199.67, Port 22 2026-08-26 12:46:42,362 - 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': ''} 2026-08-26 12:46:42,439 - DEBUG - VM ctest-TestBasicPolicy-56043064-71017011 is NOT ready for SSH connections, VM status: ACTIVE 2026-08-26 12:46:47,440 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2026-08-26 12:46:47,440 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-56043064-71017011, IP 123.45.199.67, Port 22 2026-08-26 12:46:47,600 - DEBUG - VM ctest-TestBasicPolicy-56043064-71017011 is ready for SSH connections 2026-08-26 12:46:47,600 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2026-08-26 12:46:47,600 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 123.45.199.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.177, gateway password: c0ntrail123 2026-08-26 12:46:47,600 - DEBUG - ping -s 56 -c 3 -W 1 123.45.199.67 2026-08-26 12:46:51,649 - DEBUG - PING 123.45.199.67 (123.45.199.67): 56 data bytes 64 bytes from 123.45.199.67: seq=0 ttl=63 time=4.413 ms 64 bytes from 123.45.199.67: seq=1 ttl=63 time=0.999 ms 64 bytes from 123.45.199.67: seq=2 ttl=63 time=1.213 ms --- 123.45.199.67 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.999/2.208/4.413 ms 2026-08-26 12:46:51,649 - INFO - Ping to IP 123.45.199.67 from VM ctest-TestBasicPolicy-56043064-07974679 passed 2026-08-26 12:46:51,843 - DEBUG - Policy Update Response {"network-policy": {"uuid": "6ed61b94-71ea-4ae1-be6f-c970e2d870c5", "href": "http://10.0.0.177:8082/network-policy/6ed61b94-71ea-4ae1-be6f-c970e2d870c5"}} 2026-08-26 12:46:51,844 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2026-08-26 12:46:51,844 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 123.45.199.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.177, gateway password: c0ntrail123 2026-08-26 12:46:51,844 - DEBUG - ping -s 56 -c 3 -W 1 123.45.199.67 2026-08-26 12:46:54,990 - DEBUG - PING 123.45.199.67 (123.45.199.67): 56 data bytes 64 bytes from 123.45.199.67: seq=0 ttl=63 time=1.972 ms --- 123.45.199.67 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.972/1.972/1.972 ms 2026-08-26 12:46:54,990 - WARNING - Ping to IP 123.45.199.67 from VM ctest-TestBasicPolicy-56043064-07974679 failed 2026-08-26 12:46:54,990 - INFO - Deleting VM ctest-TestBasicPolicy-56043064-71017011 2026-08-26 12:46:55,072 - INFO - Deleting VM ctest-TestBasicPolicy-56043064-07974679 2026-08-26 12:46:55,453 - INFO - Deleted policy ctest-policy-allow-all-91429783 2026-08-26 12:46:55,453 - INFO - Deleting VN ctest-vn-32464368 2026-08-26 12:46:55,489 - DEBUG - VN 2ee5246a-483b-4391-a894-47d6b93f8b08 still in use: Unable to complete operation on network 2ee5246a-483b-4391-a894-47d6b93f8b08. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-e8c34adb-8cf3-46ee-8e91-fab14ea40af3'] 2026-08-26 12:46:55,490 - WARNING - Deleting VN ctest-vn-32464368 failed..Will retry 2026-08-26 12:46:57,616 - DEBUG - Response for deleting network () 2026-08-26 12:46:57,616 - DEBUG - Requesting: http://10.0.0.177:8082/routing-instance/9c3ff48f-babc-410f-a503-f6331708bd2c 2026-08-26 12:46:57,624 - DEBUG - Response Code: 404 2026-08-26 12:46:57,624 - DEBUG - Requesting: http://10.0.0.177:8082/domains 2026-08-26 12:46:57,631 - DEBUG - Requesting: http://10.0.0.177:8082/domain/eb09514e-90f8-4347-a2ec-88f26e45e208 2026-08-26 12:46:57,687 - DEBUG - Requesting: http://10.0.0.177:8082/project/683bf3ff-70b8-4bf4-80e8-b637d9ce29dc 2026-08-26 12:46:57,769 - INFO - Validated that VN ctest-vn-32464368 is not found in API Server 2026-08-26 12:46:57,784 - DEBUG - VN ctest-vn-32464368 is not present in Agent 10.0.0.177 2026-08-26 12:46:57,784 - INFO - Validated that VN ctest-vn-32464368 is not in any agent 2026-08-26 12:46:57,807 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-32464368 info 2026-08-26 12:46:57,807 - INFO - Deleting VN ctest-vn-88787198 2026-08-26 12:46:57,966 - DEBUG - Response for deleting network () 2026-08-26 12:46:57,966 - DEBUG - Requesting: http://10.0.0.177:8082/routing-instance/e9f5971f-9017-4731-b64c-115a59b0cb90 2026-08-26 12:46:57,985 - DEBUG - Response Code: 404 2026-08-26 12:46:57,986 - DEBUG - Requesting: http://10.0.0.177:8082/domains 2026-08-26 12:46:57,993 - DEBUG - Requesting: http://10.0.0.177:8082/domain/eb09514e-90f8-4347-a2ec-88f26e45e208 2026-08-26 12:46:58,005 - DEBUG - Requesting: http://10.0.0.177:8082/project/683bf3ff-70b8-4bf4-80e8-b637d9ce29dc 2026-08-26 12:46:58,087 - INFO - Validated that VN ctest-vn-88787198 is not found in API Server 2026-08-26 12:46:58,099 - DEBUG - VN ctest-vn-88787198 is not present in Agent 10.0.0.177 2026-08-26 12:46:58,099 - INFO - Validated that VN ctest-vn-88787198 is not in any agent 2026-08-26 12:46:58,118 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-88787198 info 2026-08-26 12:46:58,378 - DEBUG - No XMPP flaps were noticed during the test
2026-08-26 12:46:58,378 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:01:08]
2026-08-26 12:46:58,378 - INFO - -------------------------------------------------------------------------------- 2026-08-26 12:46:59,138 - INFO - Deleted project: ctest-TestBasicPolicy-56043064, ID : 683bf3ff-70b8-4bf4-80e8-b637d9ce29dc