2025-08-15 08:15:57,619 - INFO - Domain Default found not creating 2025-08-15 08:15:57,757 - INFO - Project ctest-TestBasicPolicy-51136935 not found, creating it 2025-08-15 08:15:58,211 - INFO - Created Project:ctest-TestBasicPolicy-51136935, ID : 2d00983b-9c7c-425f-aa35-27820d285e39 2025-08-15 08:15:59,812 - INFO - ================================================================================ 2025-08-15 08:15:59,812 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-08-15 08:15:59,812 - 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-15 08:16:00,070 - DEBUG - Nothing to compare xmpp stats {'10.0.0.19': {'10.20.0.254': '0'}} with 2025-08-15 08:16:00,070 - INFO - Initial checks done. Running the testcase now 2025-08-15 08:16:00,070 - INFO - 2025-08-15 08:16:00,668 - DEBUG - Response for create_network : {'network': {'id': 'b000955f-966c-41fe-b854-a518f253b3ad', 'name': 'ctest-vn-38745730', 'tenant_id': '2d00983b9c7c425faa3527820d285e39', 'project_id': '2d00983b9c7c425faa3527820d285e39', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-51136935', 'ctest-vn-38745730'], 'port_security_enabled': True, 'description': ''}} 2025-08-15 08:16:00,891 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd8dcea3a-546b-4a67-9260-2bfd81c7cae3', 'name': '', 'tenant_id': '2d00983b9c7c425faa3527820d285e39', 'network_id': 'b000955f-966c-41fe-b854-a518f253b3ad', 'ip_version': 4, 'cidr': '40.31.41.0/26', 'allocation_pools': [{'start': '40.31.41.2', 'end': '40.31.41.62'}], 'gateway_ip': '40.31.41.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '40.31.41.2', 'tags': [], 'project_id': '2d00983b9c7c425faa3527820d285e39'}} 2025-08-15 08:16:00,909 - INFO - Created VN ctest-vn-38745730 2025-08-15 08:16:00,960 - DEBUG - VN ctest-vn-38745730 UUID is b000955f-966c-41fe-b854-a518f253b3ad 2025-08-15 08:16:01,249 - DEBUG - Response for create_network : {'network': {'id': '6dc76c5c-4b06-49d4-b75c-57eda5c9484b', 'name': 'ctest-vn-74029813', 'tenant_id': '2d00983b9c7c425faa3527820d285e39', 'project_id': '2d00983b9c7c425faa3527820d285e39', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-51136935', 'ctest-vn-74029813'], 'port_security_enabled': True, 'description': ''}} 2025-08-15 08:16:01,461 - DEBUG - Response for create_subnet : {'subnet': {'id': '27de8c0f-1978-4032-b168-f2c49dacd321', 'name': '', 'tenant_id': '2d00983b9c7c425faa3527820d285e39', 'network_id': '6dc76c5c-4b06-49d4-b75c-57eda5c9484b', 'ip_version': 4, 'cidr': '2.38.84.128/26', 'allocation_pools': [{'start': '2.38.84.130', 'end': '2.38.84.190'}], 'gateway_ip': '2.38.84.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2.38.84.130', 'tags': [], 'project_id': '2d00983b9c7c425faa3527820d285e39'}} 2025-08-15 08:16:01,478 - INFO - Created VN ctest-vn-74029813 2025-08-15 08:16:01,532 - DEBUG - VN ctest-vn-74029813 UUID is 6dc76c5c-4b06-49d4-b75c-57eda5c9484b 2025-08-15 08:16:01,643 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-51136935:ctest-vn-38745730, 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-51136935:ctest-vn-74029813, 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-15 08:16:01,943 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b000955f-966c-41fe-b854-a518f253b3ad', 'name': 'ctest-vn-38745730', 'tenant_id': '2d00983b9c7c425faa3527820d285e39', 'project_id': '2d00983b9c7c425faa3527820d285e39', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['d8dcea3a-546b-4a67-9260-2bfd81c7cae3'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-51136935', 'ctest-vn-38745730'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-51136935', 'ctest-policy-allow-all-49136401']], 'subnet_ipam': [{'subnet_cidr': '40.31.41.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-08-15 08:16:02,185 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '6dc76c5c-4b06-49d4-b75c-57eda5c9484b', 'name': 'ctest-vn-74029813', 'tenant_id': '2d00983b9c7c425faa3527820d285e39', 'project_id': '2d00983b9c7c425faa3527820d285e39', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['27de8c0f-1978-4032-b168-f2c49dacd321'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-51136935', 'ctest-vn-74029813'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-51136935', 'ctest-policy-allow-all-49136401']], 'subnet_ipam': [{'subnet_cidr': '2.38.84.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-08-15 08:16:02,332 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2025-08-15 08:16:02,677 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2025-08-15 08:16:02,705 - DEBUG - Requesting: http://10.0.0.19:8082/domain/cc066c09-3141-41f8-a8ed-11d50408a64d 2025-08-15 08:16:02,719 - DEBUG - Requesting: http://10.0.0.19:8082/project/2d00983b-9c7c-425f-aa35-27820d285e39 2025-08-15 08:16:02,794 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/b000955f-966c-41fe-b854-a518f253b3ad 2025-08-15 08:16:02,805 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/b000955f-966c-41fe-b854-a518f253b3ad 2025-08-15 08:16:02,816 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/d164b638-47c1-4ef4-9905-6d5d695b97bd 2025-08-15 08:16:02,824 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/d164b638-47c1-4ef4-9905-6d5d695b97bd 2025-08-15 08:16:02,831 - DEBUG - Requesting: http://10.0.0.19:8082/route-target/d7468329-131e-4db2-bf83-06225a1def38 2025-08-15 08:16:02,837 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-15 08:16:02,838 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/b000955f-966c-41fe-b854-a518f253b3ad 2025-08-15 08:16:02,847 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/d164b638-47c1-4ef4-9905-6d5d695b97bd 2025-08-15 08:16:02,862 - INFO - Verified VN network id 12 for VN b000955f-966c-41fe-b854-a518f253b3ad 2025-08-15 08:16:02,862 - INFO - Verifications in API Server for VN ctest-vn-38745730 passed 2025-08-15 08:16:02,862 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/b000955f-966c-41fe-b854-a518f253b3ad 2025-08-15 08:16:02,873 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/d164b638-47c1-4ef4-9905-6d5d695b97bd 2025-08-15 08:16:02,880 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/d164b638-47c1-4ef4-9905-6d5d695b97bd 2025-08-15 08:16:02,888 - DEBUG - Requesting: http://10.0.0.19:8082/route-target/d7468329-131e-4db2-bf83-06225a1def38 2025-08-15 08:16:02,901 - DEBUG - Control-node 10.0.0.19 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-51136935:ctest-vn-38745730', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-51136935', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12682300788453425662', 'uuid-lslong': '13282422727585805229'}, 'enable': 'true', 'created': '2025-08-15T08:16:00', 'last-modified': '2025-08-15T08:16:01', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.979488'} 2025-08-15 08:16:02,908 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-15 08:16:02,908 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-38745730 passed 2025-08-15 08:16:02,908 - DEBUG - ====Verifying policy data for ctest-vn-38745730 in API_Server ====== 2025-08-15 08:16:02,908 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2025-08-15 08:16:02,913 - DEBUG - Requesting: http://10.0.0.19:8082/domain/cc066c09-3141-41f8-a8ed-11d50408a64d 2025-08-15 08:16:02,925 - DEBUG - Requesting: http://10.0.0.19:8082/project/2d00983b-9c7c-425f-aa35-27820d285e39 2025-08-15 08:16:03,001 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/b000955f-966c-41fe-b854-a518f253b3ad 2025-08-15 08:16:03,011 - DEBUG - ==>Verifying data for policy with id: 64be3c01-1f33-4794-9959-3d082b434dd5, fqn: ['default-domain', 'ctest-TestBasicPolicy-51136935', 'ctest-policy-allow-all-49136401'] 2025-08-15 08:16:03,012 - INFO - VN ctest-vn-38745730 Policy verification: verify_vn_policy_in_api_server, status: True 2025-08-15 08:16:03,012 - DEBUG - Verifying the vn in opserver 2025-08-15 08:16:03,012 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-51136935:ctest-vn-38745730 virtual network link through opserver 10.0.0.19 2025-08-15 08:16:03,012 - DEBUG - Requesting: http://10.0.0.19:8081/analytics/uves/virtual-networks 2025-08-15 08:16:03,343 - DEBUG - Requesting: http://10.0.0.19:8081/analytics/uves/virtual-networks 2025-08-15 08:16:03,400 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-51136935:ctest-vn-38745730', 'href': 'http://10.0.0.19:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-51136935:ctest-vn-38745730?flat'} 2025-08-15 08:16:03,400 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-51136935:ctest-vn-38745730 is found in opserver 2025-08-15 08:16:03,411 - DEBUG - Do not have enough data to verify VN in agent 2025-08-15 08:16:03,416 - DEBUG - VRF ids for VN ctest-vn-38745730: {} 2025-08-15 08:16:03,417 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2025-08-15 08:16:03,422 - DEBUG - Requesting: http://10.0.0.19:8082/domain/cc066c09-3141-41f8-a8ed-11d50408a64d 2025-08-15 08:16:03,434 - DEBUG - Requesting: http://10.0.0.19:8082/project/2d00983b-9c7c-425f-aa35-27820d285e39 2025-08-15 08:16:03,510 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/6dc76c5c-4b06-49d4-b75c-57eda5c9484b 2025-08-15 08:16:03,523 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/6dc76c5c-4b06-49d4-b75c-57eda5c9484b 2025-08-15 08:16:03,533 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/a3396d62-9b76-4cc1-8bdc-2faca86fe166 2025-08-15 08:16:03,540 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/a3396d62-9b76-4cc1-8bdc-2faca86fe166 2025-08-15 08:16:03,548 - DEBUG - Requesting: http://10.0.0.19:8082/route-target/275842ef-5a7b-4f55-b4f7-db00d01c764e 2025-08-15 08:16:03,555 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-08-15 08:16:03,555 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/6dc76c5c-4b06-49d4-b75c-57eda5c9484b 2025-08-15 08:16:03,570 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/a3396d62-9b76-4cc1-8bdc-2faca86fe166 2025-08-15 08:16:03,590 - INFO - Verified VN network id 13 for VN 6dc76c5c-4b06-49d4-b75c-57eda5c9484b 2025-08-15 08:16:03,590 - INFO - Verifications in API Server for VN ctest-vn-74029813 passed 2025-08-15 08:16:03,590 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/6dc76c5c-4b06-49d4-b75c-57eda5c9484b 2025-08-15 08:16:03,604 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/a3396d62-9b76-4cc1-8bdc-2faca86fe166 2025-08-15 08:16:03,611 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/a3396d62-9b76-4cc1-8bdc-2faca86fe166 2025-08-15 08:16:03,618 - DEBUG - Requesting: http://10.0.0.19:8082/route-target/275842ef-5a7b-4f55-b4f7-db00d01c764e 2025-08-15 08:16:03,630 - DEBUG - Control-node 10.0.0.19 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-51136935:ctest-vn-74029813', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-51136935', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7910410414151059924', 'uuid-lslong': '13212532084998490187'}, 'enable': 'true', 'created': '2025-08-15T08:16:01', 'last-modified': '2025-08-15T08:16:02', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.467085'} 2025-08-15 08:16:03,636 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-08-15 08:16:03,636 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-74029813 passed 2025-08-15 08:16:03,636 - DEBUG - ====Verifying policy data for ctest-vn-74029813 in API_Server ====== 2025-08-15 08:16:03,636 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2025-08-15 08:16:03,641 - DEBUG - Requesting: http://10.0.0.19:8082/domain/cc066c09-3141-41f8-a8ed-11d50408a64d 2025-08-15 08:16:03,654 - DEBUG - Requesting: http://10.0.0.19:8082/project/2d00983b-9c7c-425f-aa35-27820d285e39 2025-08-15 08:16:03,726 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/6dc76c5c-4b06-49d4-b75c-57eda5c9484b 2025-08-15 08:16:03,737 - DEBUG - ==>Verifying data for policy with id: 64be3c01-1f33-4794-9959-3d082b434dd5, fqn: ['default-domain', 'ctest-TestBasicPolicy-51136935', 'ctest-policy-allow-all-49136401'] 2025-08-15 08:16:03,737 - INFO - VN ctest-vn-74029813 Policy verification: verify_vn_policy_in_api_server, status: True 2025-08-15 08:16:03,738 - DEBUG - Verifying the vn in opserver 2025-08-15 08:16:03,738 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-51136935:ctest-vn-74029813 virtual network link through opserver 10.0.0.19 2025-08-15 08:16:03,738 - DEBUG - Requesting: http://10.0.0.19:8081/analytics/uves/virtual-networks 2025-08-15 08:16:03,748 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-51136935:ctest-vn-74029813', 'href': 'http://10.0.0.19:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-51136935:ctest-vn-74029813?flat'} 2025-08-15 08:16:03,749 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-51136935:ctest-vn-74029813 is found in opserver 2025-08-15 08:16:03,760 - DEBUG - Do not have enough data to verify VN in agent 2025-08-15 08:16:03,767 - DEBUG - VRF ids for VN ctest-vn-74029813: {} 2025-08-15 08:16:03,822 - DEBUG - Services list from nova: [, , ] 2025-08-15 08:16:04,888 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3859-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3859-1) 2025-08-15 08:16:06,095 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3859-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3859-1) 2025-08-15 08:16:06,095 - INFO - Waiting for VM ctest-TestBasicPolicy-51136935-34376846 to be up.. 2025-08-15 08:16:06,167 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-08-15 08:16:11,242 - DEBUG - VM is in ACTIVE state now 2025-08-15 08:16:11,242 - INFO - VM name : ctest-TestBasicPolicy-51136935-34376846 2025-08-15 08:16:11,326 - DEBUG - VM ctest-TestBasicPolicy-51136935-34376846 ID is 804c18ce-e483-4bc5-b3ab-5442b1aca7b3 2025-08-15 08:16:11,346 - DEBUG - VM ctest-TestBasicPolicy-51136935-34376846 launched on Node cn-jenkins-deploy-platform-ansible-os-3859-1 2025-08-15 08:16:11,418 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-machine/804c18ce-e483-4bc5-b3ab-5442b1aca7b3 2025-08-15 08:16:11,428 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-machine-interface/4af1dad7-b4d7-427d-ad58-e08eaf73722a 2025-08-15 08:16:14,669 - 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 1007ms') 2025-08-15 08:16:14,669 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-51136935-34376846 failed! 2025-08-15 08:16:14,724 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-51136935:ctest-vn-38745730 is 40.31.41.1 and allocation pool is NOT set 2025-08-15 08:16:16,786 - 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=8.36 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.342 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.342/4.352/8.362/4.010 ms') 2025-08-15 08:16:16,786 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-51136935-34376846 passed 2025-08-15 08:16:16,940 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-15 08:16:16,940 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-51136935-34376846, IP 40.31.41.3, Port 22 2025-08-15 08:16:17,095 - DEBUG - VM ctest-TestBasicPolicy-51136935-34376846 is ready for SSH connections 2025-08-15 08:16:17,096 - INFO - Waiting for VM ctest-TestBasicPolicy-51136935-89882730 to be up.. 2025-08-15 08:16:17,172 - DEBUG - VM is in ACTIVE state now 2025-08-15 08:16:17,172 - INFO - VM name : ctest-TestBasicPolicy-51136935-89882730 2025-08-15 08:16:17,245 - DEBUG - VM ctest-TestBasicPolicy-51136935-89882730 ID is 2d902815-9780-4ff6-837c-54ae848e55e9 2025-08-15 08:16:17,245 - DEBUG - VM ctest-TestBasicPolicy-51136935-89882730 launched on Node cn-jenkins-deploy-platform-ansible-os-3859-1 2025-08-15 08:16:17,316 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-machine/2d902815-9780-4ff6-837c-54ae848e55e9 2025-08-15 08:16:17,326 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-machine-interface/fc2c196b-cda1-4659-a5d8-dac056528b85 2025-08-15 08:16:18,571 - 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=3.29 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.381 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.381/1.836/3.292/1.455 ms') 2025-08-15 08:16:18,571 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-51136935-89882730 passed 2025-08-15 08:16:18,736 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-15 08:16:18,736 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-51136935-89882730, IP 2.38.84.131, Port 22 2025-08-15 08:16:18,806 - 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-15 08:16:18,920 - DEBUG - VM ctest-TestBasicPolicy-51136935-89882730 is NOT ready for SSH connections, VM status: ACTIVE 2025-08-15 08:16:23,920 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-15 08:16:23,921 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-51136935-89882730, IP 2.38.84.131, Port 22 2025-08-15 08:16:24,076 - DEBUG - VM ctest-TestBasicPolicy-51136935-89882730 is ready for SSH connections 2025-08-15 08:16:24,076 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-15 08:16:24,076 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 2.38.84.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.19, gateway password: c0ntrail123 2025-08-15 08:16:24,076 - DEBUG - ping -s 56 -c 3 -W 1 2.38.84.131 2025-08-15 08:16:27,782 - DEBUG - PING 2.38.84.131 (2.38.84.131): 56 data bytes 64 bytes from 2.38.84.131: seq=0 ttl=63 time=3.770 ms 64 bytes from 2.38.84.131: seq=1 ttl=63 time=0.891 ms 64 bytes from 2.38.84.131: seq=2 ttl=63 time=0.832 ms --- 2.38.84.131 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.832/1.831/3.770 ms 2025-08-15 08:16:27,782 - INFO - Ping to IP 2.38.84.131 from VM ctest-TestBasicPolicy-51136935-34376846 passed 2025-08-15 08:16:27,964 - DEBUG - Policy Update Response {"network-policy": {"uuid": "64be3c01-1f33-4794-9959-3d082b434dd5", "href": "http://10.0.0.19:8082/network-policy/64be3c01-1f33-4794-9959-3d082b434dd5"}} 2025-08-15 08:16:27,964 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-15 08:16:27,964 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 2.38.84.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.19, gateway password: c0ntrail123 2025-08-15 08:16:27,964 - DEBUG - ping -s 56 -c 3 -W 1 2.38.84.131 2025-08-15 08:16:31,205 - DEBUG - PING 2.38.84.131 (2.38.84.131): 56 data bytes --- 2.38.84.131 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2025-08-15 08:16:31,205 - WARNING - Ping to IP 2.38.84.131 from VM ctest-TestBasicPolicy-51136935-34376846 failed 2025-08-15 08:16:31,205 - INFO - Deleting VM ctest-TestBasicPolicy-51136935-89882730 2025-08-15 08:16:31,272 - INFO - Deleting VM ctest-TestBasicPolicy-51136935-34376846 2025-08-15 08:16:31,653 - INFO - Deleted policy ctest-policy-allow-all-49136401 2025-08-15 08:16:31,653 - INFO - Deleting VN ctest-vn-74029813 2025-08-15 08:16:31,696 - DEBUG - VN 6dc76c5c-4b06-49d4-b75c-57eda5c9484b still in use: Unable to complete operation on network 6dc76c5c-4b06-49d4-b75c-57eda5c9484b. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-6fea195d-f207-48a4-927e-2ef200f0a83c'] 2025-08-15 08:16:31,696 - WARNING - Deleting VN ctest-vn-74029813 failed..Will retry 2025-08-15 08:16:33,801 - DEBUG - Response for deleting network () 2025-08-15 08:16:33,801 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/a3396d62-9b76-4cc1-8bdc-2faca86fe166 2025-08-15 08:16:33,807 - DEBUG - Response Code: 404 2025-08-15 08:16:33,807 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2025-08-15 08:16:33,814 - DEBUG - Requesting: http://10.0.0.19:8082/domain/cc066c09-3141-41f8-a8ed-11d50408a64d 2025-08-15 08:16:33,870 - DEBUG - Requesting: http://10.0.0.19:8082/project/2d00983b-9c7c-425f-aa35-27820d285e39 2025-08-15 08:16:33,949 - INFO - Validated that VN ctest-vn-74029813 is not found in API Server 2025-08-15 08:16:33,962 - DEBUG - VN ctest-vn-74029813 is not present in Agent 10.0.0.19 2025-08-15 08:16:33,962 - INFO - Validated that VN ctest-vn-74029813 is not in any agent 2025-08-15 08:16:33,979 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-74029813 info 2025-08-15 08:16:33,979 - INFO - Deleting VN ctest-vn-38745730 2025-08-15 08:16:34,081 - DEBUG - Response for deleting network () 2025-08-15 08:16:34,081 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/d164b638-47c1-4ef4-9905-6d5d695b97bd 2025-08-15 08:16:34,090 - DEBUG - Response Code: 404 2025-08-15 08:16:34,091 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2025-08-15 08:16:34,097 - DEBUG - Requesting: http://10.0.0.19:8082/domain/cc066c09-3141-41f8-a8ed-11d50408a64d 2025-08-15 08:16:34,149 - DEBUG - Requesting: http://10.0.0.19:8082/project/2d00983b-9c7c-425f-aa35-27820d285e39 2025-08-15 08:16:34,226 - INFO - Validated that VN ctest-vn-38745730 is not found in API Server 2025-08-15 08:16:34,238 - DEBUG - VN ctest-vn-38745730 is not present in Agent 10.0.0.19 2025-08-15 08:16:34,238 - INFO - Validated that VN ctest-vn-38745730 is not in any agent 2025-08-15 08:16:34,253 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-38745730 info 2025-08-15 08:16:34,510 - DEBUG - No XMPP flaps were noticed during the test 2025-08-15 08:16:34,510 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:35] 2025-08-15 08:16:34,510 - INFO - -------------------------------------------------------------------------------- 2025-08-15 08:16:35,210 - INFO - Deleted project: ctest-TestBasicPolicy-51136935, ID : 2d00983b-9c7c-425f-aa35-27820d285e39