2026-10-21 15:37:00,255 - INFO - Domain Default found not creating 2026-10-21 15:37:00,512 - INFO - Project ctest-TestBasicPolicy-79442373 not found, creating it 2026-10-21 15:37:01,074 - INFO - Created Project:ctest-TestBasicPolicy-79442373, ID : bc1ed265-434a-4ce1-ae53-3f9938164d05 2026-10-21 15:37:03,145 - INFO - ================================================================================ 2026-10-21 15:37:03,145 - INFO - STARTING TEST : test_basic_policy_allow_deny 2026-10-21 15:37:03,145 - 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-10-21 15:37:03,426 - DEBUG - Nothing to compare xmpp stats {'10.0.0.186': {'10.20.0.25': '0'}} with 2026-10-21 15:37:03,426 - INFO - Initial checks done. Running the testcase now 2026-10-21 15:37:03,426 - INFO - 2026-10-21 15:37:04,138 - DEBUG - Response for create_network : {'network': {'id': '78641def-3db3-41eb-8651-32abdc7dc0c3', 'name': 'ctest-vn-85947975', 'tenant_id': 'bc1ed265434a4ce1ae533f9938164d05', 'project_id': 'bc1ed265434a4ce1ae533f9938164d05', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-79442373', 'ctest-vn-85947975'], 'port_security_enabled': True, 'description': ''}} 2026-10-21 15:37:04,382 - DEBUG - Response for create_subnet : {'subnet': {'id': '23bb2a72-d580-4d98-a93f-46b1ba61b585', 'name': '', 'tenant_id': 'bc1ed265434a4ce1ae533f9938164d05', 'network_id': '78641def-3db3-41eb-8651-32abdc7dc0c3', 'ip_version': 4, 'cidr': '164.41.87.192/26', 'allocation_pools': [{'start': '164.41.87.194', 'end': '164.41.87.254'}], 'gateway_ip': '164.41.87.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '164.41.87.194', 'tags': [], 'project_id': 'bc1ed265434a4ce1ae533f9938164d05'}} 2026-10-21 15:37:04,406 - INFO - Created VN ctest-vn-85947975 2026-10-21 15:37:04,463 - DEBUG - VN ctest-vn-85947975 UUID is 78641def-3db3-41eb-8651-32abdc7dc0c3 2026-10-21 15:37:04,812 - DEBUG - Response for create_network : {'network': {'id': '6c83d24f-68d7-4a3a-867b-5da119c51147', 'name': 'ctest-vn-54675849', 'tenant_id': 'bc1ed265434a4ce1ae533f9938164d05', 'project_id': 'bc1ed265434a4ce1ae533f9938164d05', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-79442373', 'ctest-vn-54675849'], 'port_security_enabled': True, 'description': ''}} 2026-10-21 15:37:05,061 - DEBUG - Response for create_subnet : {'subnet': {'id': '085178bc-6189-42a1-8be1-0281cff80a27', 'name': '', 'tenant_id': 'bc1ed265434a4ce1ae533f9938164d05', 'network_id': '6c83d24f-68d7-4a3a-867b-5da119c51147', 'ip_version': 4, 'cidr': '108.167.104.192/26', 'allocation_pools': [{'start': '108.167.104.194', 'end': '108.167.104.254'}], 'gateway_ip': '108.167.104.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '108.167.104.194', 'tags': [], 'project_id': 'bc1ed265434a4ce1ae533f9938164d05'}} 2026-10-21 15:37:05,082 - INFO - Created VN ctest-vn-54675849 2026-10-21 15:37:05,138 - DEBUG - VN ctest-vn-54675849 UUID is 6c83d24f-68d7-4a3a-867b-5da119c51147 2026-10-21 15:37:05,261 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-79442373:ctest-vn-85947975, 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-79442373:ctest-vn-54675849, 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-10-21 15:37:05,613 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '78641def-3db3-41eb-8651-32abdc7dc0c3', 'name': 'ctest-vn-85947975', 'tenant_id': 'bc1ed265434a4ce1ae533f9938164d05', 'project_id': 'bc1ed265434a4ce1ae533f9938164d05', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['23bb2a72-d580-4d98-a93f-46b1ba61b585'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-79442373', 'ctest-vn-85947975'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-79442373', 'ctest-policy-allow-all-84685174']], 'subnet_ipam': [{'subnet_cidr': '164.41.87.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-10-21 15:37:05,862 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '6c83d24f-68d7-4a3a-867b-5da119c51147', 'name': 'ctest-vn-54675849', 'tenant_id': 'bc1ed265434a4ce1ae533f9938164d05', 'project_id': 'bc1ed265434a4ce1ae533f9938164d05', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['085178bc-6189-42a1-8be1-0281cff80a27'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-79442373', 'ctest-vn-54675849'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-79442373', 'ctest-policy-allow-all-84685174']], 'subnet_ipam': [{'subnet_cidr': '108.167.104.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-10-21 15:37:06,042 - DEBUG - Requesting: http://10.0.0.186:8082/domains 2026-10-21 15:37:06,426 - DEBUG - Requesting: http://10.0.0.186:8082/domains 2026-10-21 15:37:06,464 - DEBUG - Requesting: http://10.0.0.186:8082/domain/af4a5d29-1c9b-4e71-95d1-784bcd4a8579 2026-10-21 15:37:06,484 - DEBUG - Requesting: http://10.0.0.186:8082/project/bc1ed265-434a-4ce1-ae53-3f9938164d05 2026-10-21 15:37:06,574 - DEBUG - Requesting: http://10.0.0.186:8082/virtual-network/78641def-3db3-41eb-8651-32abdc7dc0c3 2026-10-21 15:37:06,590 - DEBUG - Requesting: http://10.0.0.186:8082/virtual-network/78641def-3db3-41eb-8651-32abdc7dc0c3 2026-10-21 15:37:06,603 - DEBUG - Requesting: http://10.0.0.186:8082/routing-instance/af0217f0-28cb-40b5-86f4-2a2e139b35ee 2026-10-21 15:37:06,614 - DEBUG - Requesting: http://10.0.0.186:8082/routing-instance/af0217f0-28cb-40b5-86f4-2a2e139b35ee 2026-10-21 15:37:06,624 - DEBUG - Requesting: http://10.0.0.186:8082/route-target/d3ee72f9-ab83-4f93-a3fe-b885cfa18f8b 2026-10-21 15:37:06,634 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-10-21 15:37:06,635 - DEBUG - Requesting: http://10.0.0.186:8082/virtual-network/78641def-3db3-41eb-8651-32abdc7dc0c3 2026-10-21 15:37:06,648 - DEBUG - Requesting: http://10.0.0.186:8082/routing-instance/af0217f0-28cb-40b5-86f4-2a2e139b35ee 2026-10-21 15:37:06,669 - INFO - Verified VN network id 12 for VN 78641def-3db3-41eb-8651-32abdc7dc0c3 2026-10-21 15:37:06,670 - INFO - Verifications in API Server for VN ctest-vn-85947975 passed 2026-10-21 15:37:06,670 - DEBUG - Requesting: http://10.0.0.186:8082/virtual-network/78641def-3db3-41eb-8651-32abdc7dc0c3 2026-10-21 15:37:06,685 - DEBUG - Requesting: http://10.0.0.186:8082/routing-instance/af0217f0-28cb-40b5-86f4-2a2e139b35ee 2026-10-21 15:37:06,697 - DEBUG - Requesting: http://10.0.0.186:8082/routing-instance/af0217f0-28cb-40b5-86f4-2a2e139b35ee 2026-10-21 15:37:06,709 - DEBUG - Requesting: http://10.0.0.186:8082/route-target/d3ee72f9-ab83-4f93-a3fe-b885cfa18f8b 2026-10-21 15:37:06,727 - DEBUG - Control-node 10.0.0.186 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-79442373:ctest-vn-85947975', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-79442373', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8675091695591965163', 'uuid-lslong': '9678572787915931843'}, 'enable': 'true', 'created': '2026-10-21T15:37:04', 'last-modified': '2026-10-21T15:37:05', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.149202'} 2026-10-21 15:37:06,737 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-10-21 15:37:06,737 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-85947975 passed 2026-10-21 15:37:06,737 - DEBUG - ====Verifying policy data for ctest-vn-85947975 in API_Server ====== 2026-10-21 15:37:06,737 - DEBUG - Requesting: http://10.0.0.186:8082/domains 2026-10-21 15:37:06,746 - DEBUG - Requesting: http://10.0.0.186:8082/domain/af4a5d29-1c9b-4e71-95d1-784bcd4a8579 2026-10-21 15:37:06,764 - DEBUG - Requesting: http://10.0.0.186:8082/project/bc1ed265-434a-4ce1-ae53-3f9938164d05 2026-10-21 15:37:06,860 - DEBUG - Requesting: http://10.0.0.186:8082/virtual-network/78641def-3db3-41eb-8651-32abdc7dc0c3 2026-10-21 15:37:06,875 - DEBUG - ==>Verifying data for policy with id: 8bf430e3-02d1-471e-8adb-597b990411eb, fqn: ['default-domain', 'ctest-TestBasicPolicy-79442373', 'ctest-policy-allow-all-84685174'] 2026-10-21 15:37:06,875 - INFO - VN ctest-vn-85947975 Policy verification: verify_vn_policy_in_api_server, status: True 2026-10-21 15:37:06,875 - DEBUG - Verifying the vn in opserver 2026-10-21 15:37:06,875 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-79442373:ctest-vn-85947975 virtual network link through opserver 10.0.0.186 2026-10-21 15:37:06,875 - DEBUG - Requesting: http://10.0.0.186:8081/analytics/uves/virtual-networks 2026-10-21 15:37:07,258 - DEBUG - Requesting: http://10.0.0.186:8081/analytics/uves/virtual-networks 2026-10-21 15:37:07,330 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-79442373:ctest-vn-85947975', 'href': 'http://10.0.0.186:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-79442373:ctest-vn-85947975?flat'} 2026-10-21 15:37:07,330 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-79442373:ctest-vn-85947975 is found in opserver 2026-10-21 15:37:07,345 - DEBUG - Do not have enough data to verify VN in agent 2026-10-21 15:37:07,353 - DEBUG - VRF ids for VN ctest-vn-85947975: {} 2026-10-21 15:37:07,354 - DEBUG - Requesting: http://10.0.0.186:8082/domains 2026-10-21 15:37:07,363 - DEBUG - Requesting: http://10.0.0.186:8082/domain/af4a5d29-1c9b-4e71-95d1-784bcd4a8579 2026-10-21 15:37:07,382 - DEBUG - Requesting: http://10.0.0.186:8082/project/bc1ed265-434a-4ce1-ae53-3f9938164d05 2026-10-21 15:37:07,470 - DEBUG - Requesting: http://10.0.0.186:8082/virtual-network/6c83d24f-68d7-4a3a-867b-5da119c51147 2026-10-21 15:37:07,487 - DEBUG - Requesting: http://10.0.0.186:8082/virtual-network/6c83d24f-68d7-4a3a-867b-5da119c51147 2026-10-21 15:37:07,499 - DEBUG - Requesting: http://10.0.0.186:8082/routing-instance/614777c6-45f7-47c4-88a2-ad230e0bf767 2026-10-21 15:37:07,509 - DEBUG - Requesting: http://10.0.0.186:8082/routing-instance/614777c6-45f7-47c4-88a2-ad230e0bf767 2026-10-21 15:37:07,517 - DEBUG - Requesting: http://10.0.0.186:8082/route-target/23720909-fad8-42b7-a874-83371449ef95 2026-10-21 15:37:07,527 - DEBUG - Route Targets: ['target:64512:8000006'] 2026-10-21 15:37:07,527 - DEBUG - Requesting: http://10.0.0.186:8082/virtual-network/6c83d24f-68d7-4a3a-867b-5da119c51147 2026-10-21 15:37:07,542 - DEBUG - Requesting: http://10.0.0.186:8082/routing-instance/614777c6-45f7-47c4-88a2-ad230e0bf767 2026-10-21 15:37:07,561 - INFO - Verified VN network id 13 for VN 6c83d24f-68d7-4a3a-867b-5da119c51147 2026-10-21 15:37:07,561 - INFO - Verifications in API Server for VN ctest-vn-54675849 passed 2026-10-21 15:37:07,561 - DEBUG - Requesting: http://10.0.0.186:8082/virtual-network/6c83d24f-68d7-4a3a-867b-5da119c51147 2026-10-21 15:37:07,575 - DEBUG - Requesting: http://10.0.0.186:8082/routing-instance/614777c6-45f7-47c4-88a2-ad230e0bf767 2026-10-21 15:37:07,584 - DEBUG - Requesting: http://10.0.0.186:8082/routing-instance/614777c6-45f7-47c4-88a2-ad230e0bf767 2026-10-21 15:37:07,593 - DEBUG - Requesting: http://10.0.0.186:8082/route-target/23720909-fad8-42b7-a874-83371449ef95 2026-10-21 15:37:07,611 - DEBUG - Control-node 10.0.0.186 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-79442373:ctest-vn-54675849', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-79442373', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7819324616548502074', 'uuid-lslong': '9690441969721217351'}, 'enable': 'true', 'created': '2026-10-21T15:37:04', 'last-modified': '2026-10-21T15:37:05', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.769725'} 2026-10-21 15:37:07,620 - DEBUG - Route Targets: ['target:64512:8000006'] 2026-10-21 15:37:07,620 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-54675849 passed 2026-10-21 15:37:07,620 - DEBUG - ====Verifying policy data for ctest-vn-54675849 in API_Server ====== 2026-10-21 15:37:07,620 - DEBUG - Requesting: http://10.0.0.186:8082/domains 2026-10-21 15:37:07,628 - DEBUG - Requesting: http://10.0.0.186:8082/domain/af4a5d29-1c9b-4e71-95d1-784bcd4a8579 2026-10-21 15:37:07,644 - DEBUG - Requesting: http://10.0.0.186:8082/project/bc1ed265-434a-4ce1-ae53-3f9938164d05 2026-10-21 15:37:07,731 - DEBUG - Requesting: http://10.0.0.186:8082/virtual-network/6c83d24f-68d7-4a3a-867b-5da119c51147 2026-10-21 15:37:07,744 - DEBUG - ==>Verifying data for policy with id: 8bf430e3-02d1-471e-8adb-597b990411eb, fqn: ['default-domain', 'ctest-TestBasicPolicy-79442373', 'ctest-policy-allow-all-84685174'] 2026-10-21 15:37:07,744 - INFO - VN ctest-vn-54675849 Policy verification: verify_vn_policy_in_api_server, status: True 2026-10-21 15:37:07,744 - DEBUG - Verifying the vn in opserver 2026-10-21 15:37:07,744 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-79442373:ctest-vn-54675849 virtual network link through opserver 10.0.0.186 2026-10-21 15:37:07,744 - DEBUG - Requesting: http://10.0.0.186:8081/analytics/uves/virtual-networks 2026-10-21 15:37:07,757 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-79442373:ctest-vn-54675849', 'href': 'http://10.0.0.186:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-79442373:ctest-vn-54675849?flat'} 2026-10-21 15:37:07,757 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-79442373:ctest-vn-54675849 is found in opserver 2026-10-21 15:37:07,773 - DEBUG - Do not have enough data to verify VN in agent 2026-10-21 15:37:07,780 - DEBUG - VRF ids for VN ctest-vn-54675849: {} 2026-10-21 15:37:07,858 - DEBUG - Services list from nova: [, , ] 2026-10-21 15:37:08,320 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-6379-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-6379-1) 2026-10-21 15:37:08,848 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-6379-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-6379-1) 2026-10-21 15:37:08,849 - INFO - Waiting for VM ctest-TestBasicPolicy-79442373-12057502 to be up.. 2026-10-21 15:37:08,897 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2026-10-21 15:37:13,995 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2026-10-21 15:37:19,095 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2026-10-21 15:37:24,216 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2026-10-21 15:37:29,318 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2026-10-21 15:37:34,425 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2026-10-21 15:37:39,521 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2026-10-21 15:37:44,753 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2026-10-21 15:37:49,875 - DEBUG - VM is in ACTIVE state now 2026-10-21 15:37:49,876 - INFO - VM name : ctest-TestBasicPolicy-79442373-12057502 2026-10-21 15:37:49,974 - DEBUG - VM ctest-TestBasicPolicy-79442373-12057502 ID is a4a13ddc-2e06-4c88-b6b9-4bfd400dcfad 2026-10-21 15:37:49,998 - DEBUG - VM ctest-TestBasicPolicy-79442373-12057502 launched on Node cn-jenkins-deploy-platform-ansible-os-6379-1 2026-10-21 15:37:50,099 - DEBUG - Requesting: http://10.0.0.186:8082/virtual-machine/a4a13ddc-2e06-4c88-b6b9-4bfd400dcfad 2026-10-21 15:37:50,110 - DEBUG - Requesting: http://10.0.0.186:8082/virtual-machine-interface/809388b9-071c-4bfb-8fb7-baa6ebc0bca1 2026-10-21 15:37:53,393 - 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 1024ms') 2026-10-21 15:37:53,393 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-79442373-12057502 failed! 2026-10-21 15:37:53,450 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-79442373:ctest-vn-85947975 is 164.41.87.193 and allocation pool is NOT set 2026-10-21 15:37:57,552 - 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=2 ttl=63 time=5.81 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 1 received, 50% packet loss, time 1032ms\r\nrtt min/avg/max/mdev = 5.812/5.812/5.812/0.000 ms') 2026-10-21 15:37:57,552 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-79442373-12057502 passed 2026-10-21 15:37:57,707 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2026-10-21 15:37:57,707 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-79442373-12057502, IP 164.41.87.195, Port 22 2026-10-21 15:37:57,772 - DEBUG - Error on ssh to cirros@169.254.0.3:22, result: /bin/bash: connect: Connection refused /bin/bash: line 1: /dev/tcp/169.254.0.3/22: Connection refused {'failed': True, 'command': '(echo > /dev/tcp/169.254.0.3/22)', 'real_command': '/bin/bash -l -c "(echo > /dev/tcp/169.254.0.3/22)"', 'return_code': 1, 'succeeded': False, 'stderr': ''} 2026-10-21 15:37:57,880 - DEBUG - VM ctest-TestBasicPolicy-79442373-12057502 is NOT ready for SSH connections, VM status: ACTIVE 2026-10-21 15:38:02,881 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2026-10-21 15:38:02,881 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-79442373-12057502, IP 164.41.87.195, Port 22 2026-10-21 15:38:02,953 - DEBUG - Error on ssh to cirros@169.254.0.3:22, result: /bin/bash: connect: Connection refused /bin/bash: line 1: /dev/tcp/169.254.0.3/22: Connection refused {'failed': True, 'command': '(echo > /dev/tcp/169.254.0.3/22)', 'real_command': '/bin/bash -l -c "(echo > /dev/tcp/169.254.0.3/22)"', 'return_code': 1, 'succeeded': False, 'stderr': ''} 2026-10-21 15:38:03,063 - DEBUG - VM ctest-TestBasicPolicy-79442373-12057502 is NOT ready for SSH connections, VM status: ACTIVE 2026-10-21 15:38:08,064 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2026-10-21 15:38:08,064 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-79442373-12057502, IP 164.41.87.195, Port 22 2026-10-21 15:38:08,133 - DEBUG - Error on ssh to cirros@169.254.0.3:22, result: /bin/bash: connect: Connection refused /bin/bash: line 1: /dev/tcp/169.254.0.3/22: Connection refused {'failed': True, 'command': '(echo > /dev/tcp/169.254.0.3/22)', 'real_command': '/bin/bash -l -c "(echo > /dev/tcp/169.254.0.3/22)"', 'return_code': 1, 'succeeded': False, 'stderr': ''} 2026-10-21 15:38:08,234 - DEBUG - VM ctest-TestBasicPolicy-79442373-12057502 is NOT ready for SSH connections, VM status: ACTIVE 2026-10-21 15:38:13,235 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2026-10-21 15:38:13,235 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-79442373-12057502, IP 164.41.87.195, Port 22 2026-10-21 15:38:13,301 - DEBUG - Error on ssh to cirros@169.254.0.3:22, result: /bin/bash: connect: Connection refused /bin/bash: line 1: /dev/tcp/169.254.0.3/22: Connection refused {'failed': True, 'command': '(echo > /dev/tcp/169.254.0.3/22)', 'real_command': '/bin/bash -l -c "(echo > /dev/tcp/169.254.0.3/22)"', 'return_code': 1, 'succeeded': False, 'stderr': ''} 2026-10-21 15:38:13,395 - DEBUG - VM ctest-TestBasicPolicy-79442373-12057502 is NOT ready for SSH connections, VM status: ACTIVE 2026-10-21 15:38:18,396 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2026-10-21 15:38:18,397 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-79442373-12057502, IP 164.41.87.195, Port 22 2026-10-21 15:38:18,465 - DEBUG - Error on ssh to cirros@169.254.0.3:22, result: /bin/bash: connect: Connection refused /bin/bash: line 1: /dev/tcp/169.254.0.3/22: Connection refused {'failed': True, 'command': '(echo > /dev/tcp/169.254.0.3/22)', 'real_command': '/bin/bash -l -c "(echo > /dev/tcp/169.254.0.3/22)"', 'return_code': 1, 'succeeded': False, 'stderr': ''} 2026-10-21 15:38:18,560 - DEBUG - VM ctest-TestBasicPolicy-79442373-12057502 is NOT ready for SSH connections, VM status: ACTIVE 2026-10-21 15:38:23,560 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2026-10-21 15:38:23,561 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-79442373-12057502, IP 164.41.87.195, Port 22 2026-10-21 15:38:23,629 - DEBUG - Error on ssh to cirros@169.254.0.3:22, result: /bin/bash: connect: Connection refused /bin/bash: line 1: /dev/tcp/169.254.0.3/22: Connection refused {'failed': True, 'command': '(echo > /dev/tcp/169.254.0.3/22)', 'real_command': '/bin/bash -l -c "(echo > /dev/tcp/169.254.0.3/22)"', 'return_code': 1, 'succeeded': False, 'stderr': ''} 2026-10-21 15:38:23,748 - DEBUG - VM ctest-TestBasicPolicy-79442373-12057502 is NOT ready for SSH connections, VM status: ACTIVE 2026-10-21 15:38:28,749 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2026-10-21 15:38:28,749 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-79442373-12057502, IP 164.41.87.195, Port 22 2026-10-21 15:38:28,817 - DEBUG - Error on ssh to cirros@169.254.0.3:22, result: /bin/bash: connect: Connection refused /bin/bash: line 1: /dev/tcp/169.254.0.3/22: Connection refused {'failed': True, 'command': '(echo > /dev/tcp/169.254.0.3/22)', 'real_command': '/bin/bash -l -c "(echo > /dev/tcp/169.254.0.3/22)"', 'return_code': 1, 'succeeded': False, 'stderr': ''} 2026-10-21 15:38:28,922 - DEBUG - VM ctest-TestBasicPolicy-79442373-12057502 is NOT ready for SSH connections, VM status: ACTIVE 2026-10-21 15:38:33,923 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2026-10-21 15:38:33,923 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-79442373-12057502, IP 164.41.87.195, Port 22 2026-10-21 15:38:33,989 - DEBUG - Error on ssh to cirros@169.254.0.3:22, result: /bin/bash: connect: Connection refused /bin/bash: line 1: /dev/tcp/169.254.0.3/22: Connection refused {'failed': True, 'command': '(echo > /dev/tcp/169.254.0.3/22)', 'real_command': '/bin/bash -l -c "(echo > /dev/tcp/169.254.0.3/22)"', 'return_code': 1, 'succeeded': False, 'stderr': ''} 2026-10-21 15:38:34,088 - DEBUG - VM ctest-TestBasicPolicy-79442373-12057502 is NOT ready for SSH connections, VM status: ACTIVE 2026-10-21 15:38:39,090 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2026-10-21 15:38:39,090 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-79442373-12057502, IP 164.41.87.195, Port 22 2026-10-21 15:38:39,265 - DEBUG - VM ctest-TestBasicPolicy-79442373-12057502 is ready for SSH connections 2026-10-21 15:38:39,265 - INFO - Waiting for VM ctest-TestBasicPolicy-79442373-14527675 to be up.. 2026-10-21 15:38:39,368 - DEBUG - VM is in ACTIVE state now 2026-10-21 15:38:39,369 - INFO - VM name : ctest-TestBasicPolicy-79442373-14527675 2026-10-21 15:38:39,464 - DEBUG - VM ctest-TestBasicPolicy-79442373-14527675 ID is cb9dd861-43e6-4357-9b6a-a96af170aace 2026-10-21 15:38:39,464 - DEBUG - VM ctest-TestBasicPolicy-79442373-14527675 launched on Node cn-jenkins-deploy-platform-ansible-os-6379-1 2026-10-21 15:38:39,559 - DEBUG - Requesting: http://10.0.0.186:8082/virtual-machine/cb9dd861-43e6-4357-9b6a-a96af170aace 2026-10-21 15:38:39,572 - DEBUG - Requesting: http://10.0.0.186:8082/virtual-machine-interface/2e1338c7-a379-478a-9d5a-e811a219e533 2026-10-21 15:38:40,834 - 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=5.06 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=1.16 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 = 1.158/3.107/5.056/1.949 ms') 2026-10-21 15:38:40,834 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-79442373-14527675 passed 2026-10-21 15:38:40,991 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2026-10-21 15:38:40,991 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-79442373-14527675, IP 108.167.104.195, Port 22 2026-10-21 15:38:41,165 - DEBUG - VM ctest-TestBasicPolicy-79442373-14527675 is ready for SSH connections 2026-10-21 15:38:41,165 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2026-10-21 15:38:41,165 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 108.167.104.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.186, gateway password: c0ntrail123 2026-10-21 15:38:41,166 - DEBUG - ping -s 56 -c 3 -W 1 108.167.104.195 2026-10-21 15:38:45,284 - DEBUG - PING 108.167.104.195 (108.167.104.195): 56 data bytes 64 bytes from 108.167.104.195: seq=0 ttl=63 time=2.725 ms 64 bytes from 108.167.104.195: seq=1 ttl=63 time=1.353 ms 64 bytes from 108.167.104.195: seq=2 ttl=63 time=1.400 ms --- 108.167.104.195 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.353/1.826/2.725 ms 2026-10-21 15:38:45,285 - INFO - Ping to IP 108.167.104.195 from VM ctest-TestBasicPolicy-79442373-12057502 passed 2026-10-21 15:38:45,526 - DEBUG - Policy Update Response {"network-policy": {"uuid": "8bf430e3-02d1-471e-8adb-597b990411eb", "href": "http://10.0.0.186:8082/network-policy/8bf430e3-02d1-471e-8adb-597b990411eb"}} 2026-10-21 15:38:45,526 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2026-10-21 15:38:45,527 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 108.167.104.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.186, gateway password: c0ntrail123 2026-10-21 15:38:45,527 - DEBUG - ping -s 56 -c 3 -W 1 108.167.104.195 2026-10-21 15:38:48,679 - DEBUG - PING 108.167.104.195 (108.167.104.195): 56 data bytes 64 bytes from 108.167.104.195: seq=0 ttl=63 time=4.404 ms --- 108.167.104.195 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 4.404/4.404/4.404 ms 2026-10-21 15:38:48,680 - WARNING - Ping to IP 108.167.104.195 from VM ctest-TestBasicPolicy-79442373-12057502 failed 2026-10-21 15:38:48,680 - INFO - Deleting VM ctest-TestBasicPolicy-79442373-14527675 2026-10-21 15:38:48,773 - INFO - Deleting VM ctest-TestBasicPolicy-79442373-12057502 2026-10-21 15:38:49,253 - INFO - Deleted policy ctest-policy-allow-all-84685174 2026-10-21 15:38:49,253 - INFO - Deleting VN ctest-vn-54675849 2026-10-21 15:38:49,302 - DEBUG - VN 6c83d24f-68d7-4a3a-867b-5da119c51147 still in use: Unable to complete operation on network 6c83d24f-68d7-4a3a-867b-5da119c51147. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-34cb5860-6170-401c-bae9-e3cc6f4889fc'] 2026-10-21 15:38:49,303 - WARNING - Deleting VN ctest-vn-54675849 failed..Will retry 2026-10-21 15:38:51,349 - DEBUG - VN 6c83d24f-68d7-4a3a-867b-5da119c51147 still in use: Unable to complete operation on network 6c83d24f-68d7-4a3a-867b-5da119c51147. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-5451f6df-30c5-4ab1-8582-395000cb7d5e'] 2026-10-21 15:38:51,349 - WARNING - Deleting VN ctest-vn-54675849 failed..Will retry 2026-10-21 15:38:53,504 - DEBUG - Response for deleting network () 2026-10-21 15:38:53,505 - DEBUG - Requesting: http://10.0.0.186:8082/routing-instance/614777c6-45f7-47c4-88a2-ad230e0bf767 2026-10-21 15:38:53,513 - DEBUG - Response Code: 404 2026-10-21 15:38:53,513 - DEBUG - Requesting: http://10.0.0.186:8082/domains 2026-10-21 15:38:53,521 - DEBUG - Requesting: http://10.0.0.186:8082/domain/af4a5d29-1c9b-4e71-95d1-784bcd4a8579 2026-10-21 15:38:53,584 - DEBUG - Requesting: http://10.0.0.186:8082/project/bc1ed265-434a-4ce1-ae53-3f9938164d05 2026-10-21 15:38:53,672 - INFO - Validated that VN ctest-vn-54675849 is not found in API Server 2026-10-21 15:38:53,692 - DEBUG - VN ctest-vn-54675849 is not present in Agent 10.0.0.186 2026-10-21 15:38:53,692 - INFO - Validated that VN ctest-vn-54675849 is not in any agent 2026-10-21 15:38:53,715 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-54675849 info 2026-10-21 15:38:53,715 - INFO - Deleting VN ctest-vn-85947975 2026-10-21 15:38:53,881 - DEBUG - Response for deleting network () 2026-10-21 15:38:53,882 - DEBUG - Requesting: http://10.0.0.186:8082/routing-instance/af0217f0-28cb-40b5-86f4-2a2e139b35ee 2026-10-21 15:38:53,894 - DEBUG - Response Code: 404 2026-10-21 15:38:53,894 - DEBUG - Requesting: http://10.0.0.186:8082/domains 2026-10-21 15:38:53,901 - DEBUG - Requesting: http://10.0.0.186:8082/domain/af4a5d29-1c9b-4e71-95d1-784bcd4a8579 2026-10-21 15:38:53,957 - DEBUG - Requesting: http://10.0.0.186:8082/project/bc1ed265-434a-4ce1-ae53-3f9938164d05 2026-10-21 15:38:54,042 - INFO - Validated that VN ctest-vn-85947975 is not found in API Server 2026-10-21 15:38:54,056 - DEBUG - VN ctest-vn-85947975 is not present in Agent 10.0.0.186 2026-10-21 15:38:54,056 - INFO - Validated that VN ctest-vn-85947975 is not in any agent 2026-10-21 15:38:54,082 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-85947975 info 2026-10-21 15:38:54,362 - DEBUG - No XMPP flaps were noticed during the test
2026-10-21 15:38:54,364 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:01:51]
2026-10-21 15:38:54,365 - INFO - -------------------------------------------------------------------------------- 2026-10-21 15:38:55,262 - INFO - Deleted project: ctest-TestBasicPolicy-79442373, ID : bc1ed265-434a-4ce1-ae53-3f9938164d05