2025-10-13 12:33:06,127 - INFO - Domain Default found not creating 2025-10-13 12:33:06,282 - INFO - Project ctest-TestBasicPolicy-23551140 not found, creating it 2025-10-13 12:33:06,749 - INFO - Created Project:ctest-TestBasicPolicy-23551140, ID : f757c6e4-0ff1-4689-9c6c-f22fd0bcfcc3 2025-10-13 12:33:08,252 - INFO - ================================================================================ 2025-10-13 12:33:08,252 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-10-13 12:33:08,252 - 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-10-13 12:33:08,506 - DEBUG - Nothing to compare xmpp stats {'10.0.0.249': {'10.20.0.254': '0'}} with 2025-10-13 12:33:08,506 - INFO - Initial checks done. Running the testcase now 2025-10-13 12:33:08,506 - INFO - 2025-10-13 12:33:09,053 - DEBUG - Response for create_network : {'network': {'id': '1113c9cb-eec5-4a09-8875-7894be1d019a', 'name': 'ctest-vn-69121543', 'tenant_id': 'f757c6e40ff146899c6cf22fd0bcfcc3', 'project_id': 'f757c6e40ff146899c6cf22fd0bcfcc3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-23551140', 'ctest-vn-69121543'], 'port_security_enabled': True, 'description': ''}} 2025-10-13 12:33:09,220 - DEBUG - Response for create_subnet : {'subnet': {'id': '23f34969-deee-4bb8-9491-12722063b705', 'name': '', 'tenant_id': 'f757c6e40ff146899c6cf22fd0bcfcc3', 'network_id': '1113c9cb-eec5-4a09-8875-7894be1d019a', 'ip_version': 4, 'cidr': '147.94.221.128/26', 'allocation_pools': [{'start': '147.94.221.130', 'end': '147.94.221.190'}], 'gateway_ip': '147.94.221.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '147.94.221.130', 'tags': [], 'project_id': 'f757c6e40ff146899c6cf22fd0bcfcc3'}} 2025-10-13 12:33:09,237 - INFO - Created VN ctest-vn-69121543 2025-10-13 12:33:09,289 - DEBUG - VN ctest-vn-69121543 UUID is 1113c9cb-eec5-4a09-8875-7894be1d019a 2025-10-13 12:33:09,617 - DEBUG - Response for create_network : {'network': {'id': 'd03cbda0-3e1c-4ff0-b78b-184c182c7bad', 'name': 'ctest-vn-52802672', 'tenant_id': 'f757c6e40ff146899c6cf22fd0bcfcc3', 'project_id': 'f757c6e40ff146899c6cf22fd0bcfcc3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-23551140', 'ctest-vn-52802672'], 'port_security_enabled': True, 'description': ''}} 2025-10-13 12:33:09,842 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b2272e60-056c-4342-a4fb-3f317d73c257', 'name': '', 'tenant_id': 'f757c6e40ff146899c6cf22fd0bcfcc3', 'network_id': 'd03cbda0-3e1c-4ff0-b78b-184c182c7bad', 'ip_version': 4, 'cidr': '222.121.22.128/26', 'allocation_pools': [{'start': '222.121.22.130', 'end': '222.121.22.190'}], 'gateway_ip': '222.121.22.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '222.121.22.130', 'tags': [], 'project_id': 'f757c6e40ff146899c6cf22fd0bcfcc3'}} 2025-10-13 12:33:09,860 - INFO - Created VN ctest-vn-52802672 2025-10-13 12:33:09,913 - DEBUG - VN ctest-vn-52802672 UUID is d03cbda0-3e1c-4ff0-b78b-184c182c7bad 2025-10-13 12:33:10,029 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-23551140:ctest-vn-69121543, 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-23551140:ctest-vn-52802672, 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-10-13 12:33:10,324 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '1113c9cb-eec5-4a09-8875-7894be1d019a', 'name': 'ctest-vn-69121543', 'tenant_id': 'f757c6e40ff146899c6cf22fd0bcfcc3', 'project_id': 'f757c6e40ff146899c6cf22fd0bcfcc3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['23f34969-deee-4bb8-9491-12722063b705'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-23551140', 'ctest-vn-69121543'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-23551140', 'ctest-policy-allow-all-39813065']], 'subnet_ipam': [{'subnet_cidr': '147.94.221.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-10-13 12:33:10,557 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'd03cbda0-3e1c-4ff0-b78b-184c182c7bad', 'name': 'ctest-vn-52802672', 'tenant_id': 'f757c6e40ff146899c6cf22fd0bcfcc3', 'project_id': 'f757c6e40ff146899c6cf22fd0bcfcc3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b2272e60-056c-4342-a4fb-3f317d73c257'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-23551140', 'ctest-vn-52802672'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-23551140', 'ctest-policy-allow-all-39813065']], 'subnet_ipam': [{'subnet_cidr': '222.121.22.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-10-13 12:33:10,729 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2025-10-13 12:33:11,038 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2025-10-13 12:33:11,071 - DEBUG - Requesting: http://10.0.0.249:8082/domain/b9181f91-8211-48fc-91a1-ec11ad6c708d 2025-10-13 12:33:11,084 - DEBUG - Requesting: http://10.0.0.249:8082/project/f757c6e4-0ff1-4689-9c6c-f22fd0bcfcc3 2025-10-13 12:33:11,160 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/1113c9cb-eec5-4a09-8875-7894be1d019a 2025-10-13 12:33:11,172 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/1113c9cb-eec5-4a09-8875-7894be1d019a 2025-10-13 12:33:11,182 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/a6642433-5099-4b10-8d9f-e76ba9444919 2025-10-13 12:33:11,190 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/a6642433-5099-4b10-8d9f-e76ba9444919 2025-10-13 12:33:11,196 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/cc6b3b6f-baf0-4531-ba4b-96deff81f38d 2025-10-13 12:33:11,203 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-13 12:33:11,203 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/1113c9cb-eec5-4a09-8875-7894be1d019a 2025-10-13 12:33:11,211 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/a6642433-5099-4b10-8d9f-e76ba9444919 2025-10-13 12:33:11,226 - INFO - Verified VN network id 11 for VN 1113c9cb-eec5-4a09-8875-7894be1d019a 2025-10-13 12:33:11,226 - INFO - Verifications in API Server for VN ctest-vn-69121543 passed 2025-10-13 12:33:11,226 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/1113c9cb-eec5-4a09-8875-7894be1d019a 2025-10-13 12:33:11,234 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/a6642433-5099-4b10-8d9f-e76ba9444919 2025-10-13 12:33:11,241 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/a6642433-5099-4b10-8d9f-e76ba9444919 2025-10-13 12:33:11,248 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/cc6b3b6f-baf0-4531-ba4b-96deff81f38d 2025-10-13 12:33:11,261 - DEBUG - Control-node 10.0.0.249 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-23551140:ctest-vn-69121543', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-23551140', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1230549000923728393', 'uuid-lslong': '9832897941673410970'}, 'enable': 'true', 'created': '2025-10-13T12:33:09', 'last-modified': '2025-10-13T12:33:10', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.959477'} 2025-10-13 12:33:11,266 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-13 12:33:11,266 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-69121543 passed 2025-10-13 12:33:11,267 - DEBUG - ====Verifying policy data for ctest-vn-69121543 in API_Server ====== 2025-10-13 12:33:11,267 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2025-10-13 12:33:11,272 - DEBUG - Requesting: http://10.0.0.249:8082/domain/b9181f91-8211-48fc-91a1-ec11ad6c708d 2025-10-13 12:33:11,282 - DEBUG - Requesting: http://10.0.0.249:8082/project/f757c6e4-0ff1-4689-9c6c-f22fd0bcfcc3 2025-10-13 12:33:11,350 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/1113c9cb-eec5-4a09-8875-7894be1d019a 2025-10-13 12:33:11,360 - DEBUG - ==>Verifying data for policy with id: 9e27a55e-d1e9-43e1-8a76-801ee7d45fa9, fqn: ['default-domain', 'ctest-TestBasicPolicy-23551140', 'ctest-policy-allow-all-39813065'] 2025-10-13 12:33:11,360 - INFO - VN ctest-vn-69121543 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-13 12:33:11,360 - DEBUG - Verifying the vn in opserver 2025-10-13 12:33:11,360 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-23551140:ctest-vn-69121543 virtual network link through opserver 10.0.0.249 2025-10-13 12:33:11,361 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks 2025-10-13 12:33:11,654 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks 2025-10-13 12:33:11,709 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-23551140:ctest-vn-69121543', 'href': 'http://10.0.0.249:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-23551140:ctest-vn-69121543?flat'} 2025-10-13 12:33:11,709 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-23551140:ctest-vn-69121543 is found in opserver 2025-10-13 12:33:11,718 - DEBUG - Do not have enough data to verify VN in agent 2025-10-13 12:33:11,722 - DEBUG - VRF ids for VN ctest-vn-69121543: {} 2025-10-13 12:33:11,723 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2025-10-13 12:33:11,728 - DEBUG - Requesting: http://10.0.0.249:8082/domain/b9181f91-8211-48fc-91a1-ec11ad6c708d 2025-10-13 12:33:11,738 - DEBUG - Requesting: http://10.0.0.249:8082/project/f757c6e4-0ff1-4689-9c6c-f22fd0bcfcc3 2025-10-13 12:33:11,804 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/d03cbda0-3e1c-4ff0-b78b-184c182c7bad 2025-10-13 12:33:11,814 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/d03cbda0-3e1c-4ff0-b78b-184c182c7bad 2025-10-13 12:33:11,823 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/b5d05c3f-737b-4feb-b151-5e95fa7ef828 2025-10-13 12:33:11,830 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/b5d05c3f-737b-4feb-b151-5e95fa7ef828 2025-10-13 12:33:11,836 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/36c9f7d7-b194-4f6f-b78f-5b25e67333a9 2025-10-13 12:33:11,842 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-10-13 12:33:11,842 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/d03cbda0-3e1c-4ff0-b78b-184c182c7bad 2025-10-13 12:33:11,850 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/b5d05c3f-737b-4feb-b151-5e95fa7ef828 2025-10-13 12:33:11,865 - INFO - Verified VN network id 12 for VN d03cbda0-3e1c-4ff0-b78b-184c182c7bad 2025-10-13 12:33:11,865 - INFO - Verifications in API Server for VN ctest-vn-52802672 passed 2025-10-13 12:33:11,865 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/d03cbda0-3e1c-4ff0-b78b-184c182c7bad 2025-10-13 12:33:11,877 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/b5d05c3f-737b-4feb-b151-5e95fa7ef828 2025-10-13 12:33:11,884 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/b5d05c3f-737b-4feb-b151-5e95fa7ef828 2025-10-13 12:33:11,891 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/36c9f7d7-b194-4f6f-b78f-5b25e67333a9 2025-10-13 12:33:11,901 - DEBUG - Control-node 10.0.0.249 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-23551140:ctest-vn-52802672', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-23551140', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15005076554426109936', 'uuid-lslong': '13225691445805743021'}, 'enable': 'true', 'created': '2025-10-13T12:33:09', 'last-modified': '2025-10-13T12:33:10', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.376314'} 2025-10-13 12:33:11,908 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-10-13 12:33:11,908 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-52802672 passed 2025-10-13 12:33:11,908 - DEBUG - ====Verifying policy data for ctest-vn-52802672 in API_Server ====== 2025-10-13 12:33:11,908 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2025-10-13 12:33:11,914 - DEBUG - Requesting: http://10.0.0.249:8082/domain/b9181f91-8211-48fc-91a1-ec11ad6c708d 2025-10-13 12:33:11,925 - DEBUG - Requesting: http://10.0.0.249:8082/project/f757c6e4-0ff1-4689-9c6c-f22fd0bcfcc3 2025-10-13 12:33:11,992 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/d03cbda0-3e1c-4ff0-b78b-184c182c7bad 2025-10-13 12:33:12,002 - DEBUG - ==>Verifying data for policy with id: 9e27a55e-d1e9-43e1-8a76-801ee7d45fa9, fqn: ['default-domain', 'ctest-TestBasicPolicy-23551140', 'ctest-policy-allow-all-39813065'] 2025-10-13 12:33:12,002 - INFO - VN ctest-vn-52802672 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-13 12:33:12,002 - DEBUG - Verifying the vn in opserver 2025-10-13 12:33:12,002 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-23551140:ctest-vn-52802672 virtual network link through opserver 10.0.0.249 2025-10-13 12:33:12,002 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks 2025-10-13 12:33:12,012 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-23551140:ctest-vn-52802672', 'href': 'http://10.0.0.249:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-23551140:ctest-vn-52802672?flat'} 2025-10-13 12:33:12,012 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-23551140:ctest-vn-52802672 is found in opserver 2025-10-13 12:33:12,020 - DEBUG - Do not have enough data to verify VN in agent 2025-10-13 12:33:12,026 - DEBUG - VRF ids for VN ctest-vn-52802672: {} 2025-10-13 12:33:12,087 - DEBUG - Services list from nova: [, , ] 2025-10-13 12:33:13,110 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-4302-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-4302-1) 2025-10-13 12:33:14,284 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-4302-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-4302-1) 2025-10-13 12:33:14,284 - INFO - Waiting for VM ctest-TestBasicPolicy-23551140-93519509 to be up.. 2025-10-13 12:33:14,359 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-10-13 12:33:19,447 - DEBUG - VM is in ACTIVE state now 2025-10-13 12:33:19,447 - INFO - VM name : ctest-TestBasicPolicy-23551140-93519509 2025-10-13 12:33:19,540 - DEBUG - VM ctest-TestBasicPolicy-23551140-93519509 ID is 7bc59238-4ea4-4df9-a000-55f9a0d90cb5 2025-10-13 12:33:19,565 - DEBUG - VM ctest-TestBasicPolicy-23551140-93519509 launched on Node cn-jenkins-deploy-platform-ansible-os-4302-1 2025-10-13 12:33:19,655 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-machine/7bc59238-4ea4-4df9-a000-55f9a0d90cb5 2025-10-13 12:33:19,664 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-machine-interface/f307ad39-6700-43b7-bd84-d11070726f96 2025-10-13 12:33:22,926 - 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 1023ms') 2025-10-13 12:33:22,927 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-23551140-93519509 failed! 2025-10-13 12:33:22,981 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-23551140:ctest-vn-69121543 is 147.94.221.129 and allocation pool is NOT set 2025-10-13 12:33:25,045 - 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=9.59 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=1.11 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1002ms\r\nrtt min/avg/max/mdev = 1.111/5.351/9.592/4.240 ms') 2025-10-13 12:33:25,045 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-23551140-93519509 passed 2025-10-13 12:33:25,193 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-13 12:33:25,194 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-23551140-93519509, IP 147.94.221.131, Port 22 2025-10-13 12:33:25,349 - DEBUG - VM ctest-TestBasicPolicy-23551140-93519509 is ready for SSH connections 2025-10-13 12:33:25,349 - INFO - Waiting for VM ctest-TestBasicPolicy-23551140-68673629 to be up.. 2025-10-13 12:33:25,433 - DEBUG - VM is in ACTIVE state now 2025-10-13 12:33:25,433 - INFO - VM name : ctest-TestBasicPolicy-23551140-68673629 2025-10-13 12:33:25,516 - DEBUG - VM ctest-TestBasicPolicy-23551140-68673629 ID is ea75e0cd-90cd-4c99-abf2-9fdc9af82b5b 2025-10-13 12:33:25,516 - DEBUG - VM ctest-TestBasicPolicy-23551140-68673629 launched on Node cn-jenkins-deploy-platform-ansible-os-4302-1 2025-10-13 12:33:25,587 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-machine/ea75e0cd-90cd-4c99-abf2-9fdc9af82b5b 2025-10-13 12:33:25,596 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-machine-interface/7767646f-eda3-42a5-8029-d84757565add 2025-10-13 12:33:26,843 - 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.54 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.657 ms\r\n\r\n--- 169.254.0.4 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1002ms\r\nrtt min/avg/max/mdev = 0.657/2.599/4.542/1.942 ms') 2025-10-13 12:33:26,844 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-23551140-68673629 passed 2025-10-13 12:33:26,993 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-13 12:33:26,993 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-23551140-68673629, IP 222.121.22.131, Port 22 2025-10-13 12:33:27,059 - 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-10-13 12:33:27,134 - DEBUG - VM ctest-TestBasicPolicy-23551140-68673629 is NOT ready for SSH connections, VM status: ACTIVE 2025-10-13 12:33:32,135 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-13 12:33:32,136 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-23551140-68673629, IP 222.121.22.131, Port 22 2025-10-13 12:33:32,293 - DEBUG - VM ctest-TestBasicPolicy-23551140-68673629 is ready for SSH connections 2025-10-13 12:33:32,293 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-13 12:33:32,293 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 222.121.22.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.249, gateway password: c0ntrail123 2025-10-13 12:33:32,293 - DEBUG - ping -s 56 -c 3 -W 1 222.121.22.131 2025-10-13 12:33:36,424 - DEBUG - PING 222.121.22.131 (222.121.22.131): 56 data bytes 64 bytes from 222.121.22.131: seq=0 ttl=63 time=3.793 ms 64 bytes from 222.121.22.131: seq=1 ttl=63 time=0.880 ms 64 bytes from 222.121.22.131: seq=2 ttl=63 time=1.125 ms --- 222.121.22.131 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.880/1.932/3.793 ms 2025-10-13 12:33:36,424 - INFO - Ping to IP 222.121.22.131 from VM ctest-TestBasicPolicy-23551140-93519509 passed 2025-10-13 12:33:36,609 - DEBUG - Policy Update Response {"network-policy": {"uuid": "9e27a55e-d1e9-43e1-8a76-801ee7d45fa9", "href": "http://10.0.0.249:8082/network-policy/9e27a55e-d1e9-43e1-8a76-801ee7d45fa9"}} 2025-10-13 12:33:36,609 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-13 12:33:36,609 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 222.121.22.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.249, gateway password: c0ntrail123 2025-10-13 12:33:36,609 - DEBUG - ping -s 56 -c 3 -W 1 222.121.22.131 2025-10-13 12:33:39,843 - DEBUG - PING 222.121.22.131 (222.121.22.131): 56 data bytes --- 222.121.22.131 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2025-10-13 12:33:39,844 - WARNING - Ping to IP 222.121.22.131 from VM ctest-TestBasicPolicy-23551140-93519509 failed 2025-10-13 12:33:39,844 - INFO - Deleting VM ctest-TestBasicPolicy-23551140-68673629 2025-10-13 12:33:39,932 - INFO - Deleting VM ctest-TestBasicPolicy-23551140-93519509 2025-10-13 12:33:40,331 - INFO - Deleted policy ctest-policy-allow-all-39813065 2025-10-13 12:33:40,331 - INFO - Deleting VN ctest-vn-52802672 2025-10-13 12:33:40,369 - DEBUG - VN d03cbda0-3e1c-4ff0-b78b-184c182c7bad still in use: Unable to complete operation on network d03cbda0-3e1c-4ff0-b78b-184c182c7bad. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-b94b0b5a-fb98-4dd9-9bb4-81addbbf729f'] 2025-10-13 12:33:40,369 - WARNING - Deleting VN ctest-vn-52802672 failed..Will retry 2025-10-13 12:33:42,479 - DEBUG - Response for deleting network () 2025-10-13 12:33:42,480 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/b5d05c3f-737b-4feb-b151-5e95fa7ef828 2025-10-13 12:33:42,486 - DEBUG - Response Code: 404 2025-10-13 12:33:42,486 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2025-10-13 12:33:42,492 - DEBUG - Requesting: http://10.0.0.249:8082/domain/b9181f91-8211-48fc-91a1-ec11ad6c708d 2025-10-13 12:33:42,547 - DEBUG - Requesting: http://10.0.0.249:8082/project/f757c6e4-0ff1-4689-9c6c-f22fd0bcfcc3 2025-10-13 12:33:42,623 - INFO - Validated that VN ctest-vn-52802672 is not found in API Server 2025-10-13 12:33:42,634 - DEBUG - VN ctest-vn-52802672 is not present in Agent 10.0.0.249 2025-10-13 12:33:42,635 - INFO - Validated that VN ctest-vn-52802672 is not in any agent 2025-10-13 12:33:42,648 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-52802672 info 2025-10-13 12:33:42,648 - INFO - Deleting VN ctest-vn-69121543 2025-10-13 12:33:42,754 - DEBUG - Response for deleting network () 2025-10-13 12:33:42,754 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/a6642433-5099-4b10-8d9f-e76ba9444919 2025-10-13 12:33:42,764 - DEBUG - Response Code: 404 2025-10-13 12:33:42,764 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2025-10-13 12:33:42,769 - DEBUG - Requesting: http://10.0.0.249:8082/domain/b9181f91-8211-48fc-91a1-ec11ad6c708d 2025-10-13 12:33:42,823 - DEBUG - Requesting: http://10.0.0.249:8082/project/f757c6e4-0ff1-4689-9c6c-f22fd0bcfcc3 2025-10-13 12:33:42,895 - INFO - Validated that VN ctest-vn-69121543 is not found in API Server 2025-10-13 12:33:42,905 - DEBUG - VN ctest-vn-69121543 is not present in Agent 10.0.0.249 2025-10-13 12:33:42,905 - INFO - Validated that VN ctest-vn-69121543 is not in any agent 2025-10-13 12:33:42,918 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-69121543 info 2025-10-13 12:33:43,171 - DEBUG - No XMPP flaps were noticed during the test 2025-10-13 12:33:43,171 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:35] 2025-10-13 12:33:43,171 - INFO - -------------------------------------------------------------------------------- 2025-10-13 12:33:43,880 - INFO - Deleted project: ctest-TestBasicPolicy-23551140, ID : f757c6e4-0ff1-4689-9c6c-f22fd0bcfcc3