2025-08-06 14:17:44,581 - INFO - Domain Default found not creating 2025-08-06 14:17:44,771 - INFO - Project ctest-TestBasicPolicy-36809552 not found, creating it 2025-08-06 14:17:45,297 - INFO - Created Project:ctest-TestBasicPolicy-36809552, ID : b1ab2b35-d8e4-4694-a0a2-ac1fa7dedb8a 2025-08-06 14:17:47,062 - INFO - ================================================================================ 2025-08-06 14:17:47,062 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-08-06 14:17:47,062 - 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-08-06 14:17:47,338 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with 2025-08-06 14:17:47,338 - INFO - Initial checks done. Running the testcase now 2025-08-06 14:17:47,338 - INFO - 2025-08-06 14:17:47,958 - DEBUG - Response for create_network : {'network': {'id': '8c4de669-420a-42d4-b42c-baded3780f15', 'name': 'ctest-vn-71821703', 'tenant_id': 'b1ab2b35d8e44694a0a2ac1fa7dedb8a', 'project_id': 'b1ab2b35d8e44694a0a2ac1fa7dedb8a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-36809552', 'ctest-vn-71821703'], 'port_security_enabled': True, 'description': ''}} 2025-08-06 14:17:48,120 - DEBUG - Response for create_subnet : {'subnet': {'id': '699db90e-6507-4bdc-8e3b-ec617f95a309', 'name': '', 'tenant_id': 'b1ab2b35d8e44694a0a2ac1fa7dedb8a', 'network_id': '8c4de669-420a-42d4-b42c-baded3780f15', 'ip_version': 4, 'cidr': '1.96.218.64/26', 'allocation_pools': [{'start': '1.96.218.66', 'end': '1.96.218.126'}], 'gateway_ip': '1.96.218.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '1.96.218.66', 'tags': [], 'project_id': 'b1ab2b35d8e44694a0a2ac1fa7dedb8a'}} 2025-08-06 14:17:48,142 - INFO - Created VN ctest-vn-71821703 2025-08-06 14:17:48,196 - DEBUG - VN ctest-vn-71821703 UUID is 8c4de669-420a-42d4-b42c-baded3780f15 2025-08-06 14:17:48,516 - DEBUG - Response for create_network : {'network': {'id': 'f3ea69cd-c184-4437-8450-9f7baaed74e2', 'name': 'ctest-vn-30532083', 'tenant_id': 'b1ab2b35d8e44694a0a2ac1fa7dedb8a', 'project_id': 'b1ab2b35d8e44694a0a2ac1fa7dedb8a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-36809552', 'ctest-vn-30532083'], 'port_security_enabled': True, 'description': ''}} 2025-08-06 14:17:48,750 - DEBUG - Response for create_subnet : {'subnet': {'id': '48d3a052-9886-4209-bf56-4f879e330408', 'name': '', 'tenant_id': 'b1ab2b35d8e44694a0a2ac1fa7dedb8a', 'network_id': 'f3ea69cd-c184-4437-8450-9f7baaed74e2', 'ip_version': 4, 'cidr': '84.185.157.0/26', 'allocation_pools': [{'start': '84.185.157.2', 'end': '84.185.157.62'}], 'gateway_ip': '84.185.157.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '84.185.157.2', 'tags': [], 'project_id': 'b1ab2b35d8e44694a0a2ac1fa7dedb8a'}} 2025-08-06 14:17:48,772 - INFO - Created VN ctest-vn-30532083 2025-08-06 14:17:48,830 - DEBUG - VN ctest-vn-30532083 UUID is f3ea69cd-c184-4437-8450-9f7baaed74e2 2025-08-06 14:17:48,959 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-36809552:ctest-vn-71821703, 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-36809552:ctest-vn-30532083, 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-08-06 14:17:49,275 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '8c4de669-420a-42d4-b42c-baded3780f15', 'name': 'ctest-vn-71821703', 'tenant_id': 'b1ab2b35d8e44694a0a2ac1fa7dedb8a', 'project_id': 'b1ab2b35d8e44694a0a2ac1fa7dedb8a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['699db90e-6507-4bdc-8e3b-ec617f95a309'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-36809552', 'ctest-vn-71821703'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-36809552', 'ctest-policy-allow-all-38671152']], 'subnet_ipam': [{'subnet_cidr': '1.96.218.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-08-06 14:17:49,565 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f3ea69cd-c184-4437-8450-9f7baaed74e2', 'name': 'ctest-vn-30532083', 'tenant_id': 'b1ab2b35d8e44694a0a2ac1fa7dedb8a', 'project_id': 'b1ab2b35d8e44694a0a2ac1fa7dedb8a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['48d3a052-9886-4209-bf56-4f879e330408'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-36809552', 'ctest-vn-30532083'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-36809552', 'ctest-policy-allow-all-38671152']], 'subnet_ipam': [{'subnet_cidr': '84.185.157.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-08-06 14:17:49,716 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-08-06 14:17:50,061 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-08-06 14:17:50,099 - DEBUG - Requesting: http://10.0.0.50:8082/domain/f7978a71-7977-4bc1-b5f2-0fd76822ff8b 2025-08-06 14:17:50,116 - DEBUG - Requesting: http://10.0.0.50:8082/project/b1ab2b35-d8e4-4694-a0a2-ac1fa7dedb8a 2025-08-06 14:17:50,194 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/8c4de669-420a-42d4-b42c-baded3780f15 2025-08-06 14:17:50,208 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/8c4de669-420a-42d4-b42c-baded3780f15 2025-08-06 14:17:50,221 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/b7b49d24-d846-46e1-b0a1-1f8de1642f4a 2025-08-06 14:17:50,231 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/b7b49d24-d846-46e1-b0a1-1f8de1642f4a 2025-08-06 14:17:50,241 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/6dd7dcd7-f468-43bb-a0c8-22f9a107681d 2025-08-06 14:17:50,250 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-06 14:17:50,250 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/8c4de669-420a-42d4-b42c-baded3780f15 2025-08-06 14:17:50,262 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/b7b49d24-d846-46e1-b0a1-1f8de1642f4a 2025-08-06 14:17:50,281 - INFO - Verified VN network id 11 for VN 8c4de669-420a-42d4-b42c-baded3780f15 2025-08-06 14:17:50,281 - INFO - Verifications in API Server for VN ctest-vn-71821703 passed 2025-08-06 14:17:50,281 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/8c4de669-420a-42d4-b42c-baded3780f15 2025-08-06 14:17:50,295 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/b7b49d24-d846-46e1-b0a1-1f8de1642f4a 2025-08-06 14:17:50,304 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/b7b49d24-d846-46e1-b0a1-1f8de1642f4a 2025-08-06 14:17:50,313 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/6dd7dcd7-f468-43bb-a0c8-22f9a107681d 2025-08-06 14:17:50,329 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-36809552:ctest-vn-71821703', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-36809552', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10109990078270554836', 'uuid-lslong': '12982957291995664149'}, 'enable': 'true', 'created': '2025-08-06T14:17:47', 'last-modified': '2025-08-06T14:17:49', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.078902'} 2025-08-06 14:17:50,337 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-06 14:17:50,337 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-71821703 passed 2025-08-06 14:17:50,337 - DEBUG - ====Verifying policy data for ctest-vn-71821703 in API_Server ====== 2025-08-06 14:17:50,337 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-08-06 14:17:50,347 - DEBUG - Requesting: http://10.0.0.50:8082/domain/f7978a71-7977-4bc1-b5f2-0fd76822ff8b 2025-08-06 14:17:50,364 - DEBUG - Requesting: http://10.0.0.50:8082/project/b1ab2b35-d8e4-4694-a0a2-ac1fa7dedb8a 2025-08-06 14:17:50,443 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/8c4de669-420a-42d4-b42c-baded3780f15 2025-08-06 14:17:50,455 - DEBUG - ==>Verifying data for policy with id: a05b7f2a-74f4-40ae-9401-321e6a45aebd, fqn: ['default-domain', 'ctest-TestBasicPolicy-36809552', 'ctest-policy-allow-all-38671152'] 2025-08-06 14:17:50,455 - INFO - VN ctest-vn-71821703 Policy verification: verify_vn_policy_in_api_server, status: True 2025-08-06 14:17:50,455 - DEBUG - Verifying the vn in opserver 2025-08-06 14:17:50,455 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-36809552:ctest-vn-71821703 virtual network link through opserver 10.0.0.50 2025-08-06 14:17:50,455 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2025-08-06 14:17:50,792 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2025-08-06 14:17:50,861 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-36809552:ctest-vn-71821703', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-36809552:ctest-vn-71821703?flat'} 2025-08-06 14:17:50,861 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-36809552:ctest-vn-71821703 is found in opserver 2025-08-06 14:17:50,875 - DEBUG - Do not have enough data to verify VN in agent 2025-08-06 14:17:50,881 - DEBUG - VRF ids for VN ctest-vn-71821703: {} 2025-08-06 14:17:50,881 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-08-06 14:17:50,888 - DEBUG - Requesting: http://10.0.0.50:8082/domain/f7978a71-7977-4bc1-b5f2-0fd76822ff8b 2025-08-06 14:17:50,902 - DEBUG - Requesting: http://10.0.0.50:8082/project/b1ab2b35-d8e4-4694-a0a2-ac1fa7dedb8a 2025-08-06 14:17:50,989 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/f3ea69cd-c184-4437-8450-9f7baaed74e2 2025-08-06 14:17:51,004 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/f3ea69cd-c184-4437-8450-9f7baaed74e2 2025-08-06 14:17:51,017 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/258354be-596e-4e31-9429-fafb8d29b20d 2025-08-06 14:17:51,027 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/258354be-596e-4e31-9429-fafb8d29b20d 2025-08-06 14:17:51,037 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/79bbeac1-0167-4b67-a3ff-e6979287d3cd 2025-08-06 14:17:51,048 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-08-06 14:17:51,048 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/f3ea69cd-c184-4437-8450-9f7baaed74e2 2025-08-06 14:17:51,064 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/258354be-596e-4e31-9429-fafb8d29b20d 2025-08-06 14:17:51,085 - INFO - Verified VN network id 12 for VN f3ea69cd-c184-4437-8450-9f7baaed74e2 2025-08-06 14:17:51,085 - INFO - Verifications in API Server for VN ctest-vn-30532083 passed 2025-08-06 14:17:51,085 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/f3ea69cd-c184-4437-8450-9f7baaed74e2 2025-08-06 14:17:51,098 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/258354be-596e-4e31-9429-fafb8d29b20d 2025-08-06 14:17:51,108 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/258354be-596e-4e31-9429-fafb8d29b20d 2025-08-06 14:17:51,119 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/79bbeac1-0167-4b67-a3ff-e6979287d3cd 2025-08-06 14:17:51,136 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-36809552:ctest-vn-30532083', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-36809552', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17575976828202665015', 'uuid-lslong': '9534295764640822498'}, 'enable': 'true', 'created': '2025-08-06T14:17:48', 'last-modified': '2025-08-06T14:17:49', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.643265'} 2025-08-06 14:17:51,146 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-08-06 14:17:51,147 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-30532083 passed 2025-08-06 14:17:51,147 - DEBUG - ====Verifying policy data for ctest-vn-30532083 in API_Server ====== 2025-08-06 14:17:51,147 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-08-06 14:17:51,156 - DEBUG - Requesting: http://10.0.0.50:8082/domain/f7978a71-7977-4bc1-b5f2-0fd76822ff8b 2025-08-06 14:17:51,171 - DEBUG - Requesting: http://10.0.0.50:8082/project/b1ab2b35-d8e4-4694-a0a2-ac1fa7dedb8a 2025-08-06 14:17:51,249 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/f3ea69cd-c184-4437-8450-9f7baaed74e2 2025-08-06 14:17:51,261 - DEBUG - ==>Verifying data for policy with id: a05b7f2a-74f4-40ae-9401-321e6a45aebd, fqn: ['default-domain', 'ctest-TestBasicPolicy-36809552', 'ctest-policy-allow-all-38671152'] 2025-08-06 14:17:51,261 - INFO - VN ctest-vn-30532083 Policy verification: verify_vn_policy_in_api_server, status: True 2025-08-06 14:17:51,261 - DEBUG - Verifying the vn in opserver 2025-08-06 14:17:51,261 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-36809552:ctest-vn-30532083 virtual network link through opserver 10.0.0.50 2025-08-06 14:17:51,262 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2025-08-06 14:17:51,275 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-36809552:ctest-vn-30532083', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-36809552:ctest-vn-30532083?flat'} 2025-08-06 14:17:51,275 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-36809552:ctest-vn-30532083 is found in opserver 2025-08-06 14:17:51,294 - DEBUG - Do not have enough data to verify VN in agent 2025-08-06 14:17:51,300 - DEBUG - VRF ids for VN ctest-vn-30532083: {} 2025-08-06 14:17:51,372 - DEBUG - Services list from nova: [, , ] 2025-08-06 14:17:52,576 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3762-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3762-1) 2025-08-06 14:17:53,880 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3762-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3762-1) 2025-08-06 14:17:53,880 - INFO - Waiting for VM ctest-TestBasicPolicy-36809552-97141740 to be up.. 2025-08-06 14:17:53,999 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-08-06 14:17:59,085 - DEBUG - VM is in ACTIVE state now 2025-08-06 14:17:59,085 - INFO - VM name : ctest-TestBasicPolicy-36809552-97141740 2025-08-06 14:17:59,174 - DEBUG - VM ctest-TestBasicPolicy-36809552-97141740 ID is 2fe68f59-9937-4af0-bf50-a4f7c3b5689e 2025-08-06 14:17:59,195 - DEBUG - VM ctest-TestBasicPolicy-36809552-97141740 launched on Node cn-jenkins-deploy-platform-ansible-os-3762-1 2025-08-06 14:17:59,279 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine/2fe68f59-9937-4af0-bf50-a4f7c3b5689e 2025-08-06 14:17:59,291 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine-interface/0f4ce9c0-c393-4164-bb74-0700891f5086 2025-08-06 14:18:02,578 - 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 1017ms') 2025-08-06 14:18:02,578 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-36809552-97141740 failed! 2025-08-06 14:18:02,636 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-36809552:ctest-vn-71821703 is 1.96.218.65 and allocation pool is NOT set 2025-08-06 14:18:04,699 - 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=5.07 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=3.11 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 = 3.113/4.091/5.069/0.978 ms') 2025-08-06 14:18:04,700 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-36809552-97141740 passed 2025-08-06 14:18:04,861 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-06 14:18:04,861 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-36809552-97141740, IP 1.96.218.67, Port 22 2025-08-06 14:18:05,030 - DEBUG - VM ctest-TestBasicPolicy-36809552-97141740 is ready for SSH connections 2025-08-06 14:18:05,030 - INFO - Waiting for VM ctest-TestBasicPolicy-36809552-69786416 to be up.. 2025-08-06 14:18:05,130 - DEBUG - VM is in ACTIVE state now 2025-08-06 14:18:05,130 - INFO - VM name : ctest-TestBasicPolicy-36809552-69786416 2025-08-06 14:18:05,228 - DEBUG - VM ctest-TestBasicPolicy-36809552-69786416 ID is d2df140b-46e4-43f7-8bfd-ecb235b8de63 2025-08-06 14:18:05,228 - DEBUG - VM ctest-TestBasicPolicy-36809552-69786416 launched on Node cn-jenkins-deploy-platform-ansible-os-3762-1 2025-08-06 14:18:05,315 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine/d2df140b-46e4-43f7-8bfd-ecb235b8de63 2025-08-06 14:18:05,328 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine-interface/b61b0dcd-00a8-4e01-97a9-939789659aa2 2025-08-06 14:18:06,594 - 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.48 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=1.39 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.394/2.938/4.483/1.544 ms') 2025-08-06 14:18:06,594 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-36809552-69786416 passed 2025-08-06 14:18:06,765 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-06 14:18:06,765 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-36809552-69786416, IP 84.185.157.3, Port 22 2025-08-06 14:18:06,834 - 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-08-06 14:18:06,956 - DEBUG - VM ctest-TestBasicPolicy-36809552-69786416 is NOT ready for SSH connections, VM status: ACTIVE 2025-08-06 14:18:11,956 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-06 14:18:11,957 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-36809552-69786416, IP 84.185.157.3, Port 22 2025-08-06 14:18:12,123 - DEBUG - VM ctest-TestBasicPolicy-36809552-69786416 is ready for SSH connections 2025-08-06 14:18:12,123 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-06 14:18:12,123 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 84.185.157.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.50, gateway password: c0ntrail123 2025-08-06 14:18:12,123 - DEBUG - ping -s 56 -c 3 -W 1 84.185.157.3 2025-08-06 14:18:16,250 - DEBUG - PING 84.185.157.3 (84.185.157.3): 56 data bytes 64 bytes from 84.185.157.3: seq=0 ttl=63 time=5.215 ms 64 bytes from 84.185.157.3: seq=1 ttl=63 time=0.971 ms 64 bytes from 84.185.157.3: seq=2 ttl=63 time=1.215 ms --- 84.185.157.3 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.971/2.467/5.215 ms 2025-08-06 14:18:16,250 - INFO - Ping to IP 84.185.157.3 from VM ctest-TestBasicPolicy-36809552-97141740 passed 2025-08-06 14:18:16,452 - DEBUG - Policy Update Response {"network-policy": {"uuid": "a05b7f2a-74f4-40ae-9401-321e6a45aebd", "href": "http://10.0.0.50:8082/network-policy/a05b7f2a-74f4-40ae-9401-321e6a45aebd"}} 2025-08-06 14:18:16,452 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-06 14:18:16,452 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 84.185.157.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.50, gateway password: c0ntrail123 2025-08-06 14:18:16,453 - DEBUG - ping -s 56 -c 3 -W 1 84.185.157.3 2025-08-06 14:18:19,685 - DEBUG - PING 84.185.157.3 (84.185.157.3): 56 data bytes --- 84.185.157.3 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2025-08-06 14:18:19,685 - WARNING - Ping to IP 84.185.157.3 from VM ctest-TestBasicPolicy-36809552-97141740 failed 2025-08-06 14:18:19,685 - INFO - Deleting VM ctest-TestBasicPolicy-36809552-69786416 2025-08-06 14:18:19,779 - INFO - Deleting VM ctest-TestBasicPolicy-36809552-97141740 2025-08-06 14:18:20,261 - INFO - Deleted policy ctest-policy-allow-all-38671152 2025-08-06 14:18:20,261 - INFO - Deleting VN ctest-vn-30532083 2025-08-06 14:18:20,314 - DEBUG - VN f3ea69cd-c184-4437-8450-9f7baaed74e2 still in use: Unable to complete operation on network f3ea69cd-c184-4437-8450-9f7baaed74e2. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-c3fa7cf3-06aa-4e49-81c7-630de6a9f23a'] 2025-08-06 14:18:20,314 - WARNING - Deleting VN ctest-vn-30532083 failed..Will retry 2025-08-06 14:18:22,466 - DEBUG - Response for deleting network () 2025-08-06 14:18:22,466 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/258354be-596e-4e31-9429-fafb8d29b20d 2025-08-06 14:18:22,479 - DEBUG - Response Code: 404 2025-08-06 14:18:22,479 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-08-06 14:18:22,487 - DEBUG - Requesting: http://10.0.0.50:8082/domain/f7978a71-7977-4bc1-b5f2-0fd76822ff8b 2025-08-06 14:18:22,549 - DEBUG - Requesting: http://10.0.0.50:8082/project/b1ab2b35-d8e4-4694-a0a2-ac1fa7dedb8a 2025-08-06 14:18:22,629 - INFO - Validated that VN ctest-vn-30532083 is not found in API Server 2025-08-06 14:18:22,643 - DEBUG - VN ctest-vn-30532083 is not present in Agent 10.0.0.50 2025-08-06 14:18:22,643 - INFO - Validated that VN ctest-vn-30532083 is not in any agent 2025-08-06 14:18:22,663 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-30532083 info 2025-08-06 14:18:22,663 - INFO - Deleting VN ctest-vn-71821703 2025-08-06 14:18:22,787 - DEBUG - Response for deleting network () 2025-08-06 14:18:22,787 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/b7b49d24-d846-46e1-b0a1-1f8de1642f4a 2025-08-06 14:18:22,796 - DEBUG - Response Code: 404 2025-08-06 14:18:22,796 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-08-06 14:18:22,804 - DEBUG - Requesting: http://10.0.0.50:8082/domain/f7978a71-7977-4bc1-b5f2-0fd76822ff8b 2025-08-06 14:18:22,866 - DEBUG - Requesting: http://10.0.0.50:8082/project/b1ab2b35-d8e4-4694-a0a2-ac1fa7dedb8a 2025-08-06 14:18:22,950 - INFO - Validated that VN ctest-vn-71821703 is not found in API Server 2025-08-06 14:18:22,964 - DEBUG - VN ctest-vn-71821703 is not present in Agent 10.0.0.50 2025-08-06 14:18:22,964 - INFO - Validated that VN ctest-vn-71821703 is not in any agent 2025-08-06 14:18:22,984 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-71821703 info 2025-08-06 14:18:23,246 - DEBUG - No XMPP flaps were noticed during the test
2025-08-06 14:18:23,246 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:36]
2025-08-06 14:18:23,246 - INFO - -------------------------------------------------------------------------------- 2025-08-06 14:18:24,024 - INFO - Deleted project: ctest-TestBasicPolicy-36809552, ID : b1ab2b35-d8e4-4694-a0a2-ac1fa7dedb8a