2025-11-14 17:18:19,652 - INFO - Domain Default found not creating 2025-11-14 17:18:20,110 - INFO - Project ctest-TestBasicPolicy-26910084 not found, creating it 2025-11-14 17:18:20,797 - INFO - Created Project:ctest-TestBasicPolicy-26910084, ID : 71b1d5d1-50f0-4bf0-b9e8-155723598c19 2025-11-14 17:18:23,026 - INFO - ================================================================================ 2025-11-14 17:18:23,027 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-11-14 17:18:23,027 - 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-11-14 17:18:23,356 - DEBUG - Nothing to compare xmpp stats {'10.0.0.249': {'10.20.0.17': '0'}} with 2025-11-14 17:18:23,356 - INFO - Initial checks done. Running the testcase now 2025-11-14 17:18:23,356 - INFO - 2025-11-14 17:18:24,388 - DEBUG - Response for create_network : {'network': {'id': 'c6e0e7d1-9dd7-45eb-aced-2f6a3db812fe', 'name': 'ctest-vn-28559045', 'tenant_id': '71b1d5d150f04bf0b9e8155723598c19', 'project_id': '71b1d5d150f04bf0b9e8155723598c19', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-26910084', 'ctest-vn-28559045'], 'port_security_enabled': True, 'description': ''}} 2025-11-14 17:18:24,594 - DEBUG - Response for create_subnet : {'subnet': {'id': '91477808-d8bb-4e29-8e98-509555b477e3', 'name': '', 'tenant_id': '71b1d5d150f04bf0b9e8155723598c19', 'network_id': 'c6e0e7d1-9dd7-45eb-aced-2f6a3db812fe', 'ip_version': 4, 'cidr': '182.111.14.128/26', 'allocation_pools': [{'start': '182.111.14.130', 'end': '182.111.14.190'}], 'gateway_ip': '182.111.14.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '182.111.14.130', 'tags': [], 'project_id': '71b1d5d150f04bf0b9e8155723598c19'}} 2025-11-14 17:18:24,611 - INFO - Created VN ctest-vn-28559045 2025-11-14 17:18:24,663 - DEBUG - VN ctest-vn-28559045 UUID is c6e0e7d1-9dd7-45eb-aced-2f6a3db812fe 2025-11-14 17:18:25,014 - DEBUG - Response for create_network : {'network': {'id': 'a7f1f519-bdd8-4ee7-bbbe-960a6c5fd7d1', 'name': 'ctest-vn-76463234', 'tenant_id': '71b1d5d150f04bf0b9e8155723598c19', 'project_id': '71b1d5d150f04bf0b9e8155723598c19', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-26910084', 'ctest-vn-76463234'], 'port_security_enabled': True, 'description': ''}} 2025-11-14 17:18:25,173 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd51922ba-aef0-4221-b399-937ee7ce1a6f', 'name': '', 'tenant_id': '71b1d5d150f04bf0b9e8155723598c19', 'network_id': 'a7f1f519-bdd8-4ee7-bbbe-960a6c5fd7d1', 'ip_version': 4, 'cidr': '30.246.219.64/26', 'allocation_pools': [{'start': '30.246.219.66', 'end': '30.246.219.126'}], 'gateway_ip': '30.246.219.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '30.246.219.66', 'tags': [], 'project_id': '71b1d5d150f04bf0b9e8155723598c19'}} 2025-11-14 17:18:25,196 - INFO - Created VN ctest-vn-76463234 2025-11-14 17:18:25,251 - DEBUG - VN ctest-vn-76463234 UUID is a7f1f519-bdd8-4ee7-bbbe-960a6c5fd7d1 2025-11-14 17:18:25,424 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-26910084:ctest-vn-28559045, 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-26910084:ctest-vn-76463234, 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-11-14 17:18:25,899 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'c6e0e7d1-9dd7-45eb-aced-2f6a3db812fe', 'name': 'ctest-vn-28559045', 'tenant_id': '71b1d5d150f04bf0b9e8155723598c19', 'project_id': '71b1d5d150f04bf0b9e8155723598c19', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['91477808-d8bb-4e29-8e98-509555b477e3'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-26910084', 'ctest-vn-28559045'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-26910084', 'ctest-policy-allow-all-41999776']], 'subnet_ipam': [{'subnet_cidr': '182.111.14.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-11-14 17:18:26,265 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a7f1f519-bdd8-4ee7-bbbe-960a6c5fd7d1', 'name': 'ctest-vn-76463234', 'tenant_id': '71b1d5d150f04bf0b9e8155723598c19', 'project_id': '71b1d5d150f04bf0b9e8155723598c19', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['d51922ba-aef0-4221-b399-937ee7ce1a6f'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-26910084', 'ctest-vn-76463234'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-26910084', 'ctest-policy-allow-all-41999776']], 'subnet_ipam': [{'subnet_cidr': '30.246.219.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-11-14 17:18:26,419 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2025-11-14 17:18:26,754 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2025-11-14 17:18:26,825 - DEBUG - Requesting: http://10.0.0.249:8082/domain/edd50b99-dcf6-497e-a864-d9ef956656c2 2025-11-14 17:18:26,850 - DEBUG - Requesting: http://10.0.0.249:8082/project/71b1d5d1-50f0-4bf0-b9e8-155723598c19 2025-11-14 17:18:26,962 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/c6e0e7d1-9dd7-45eb-aced-2f6a3db812fe 2025-11-14 17:18:26,983 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/c6e0e7d1-9dd7-45eb-aced-2f6a3db812fe 2025-11-14 17:18:26,996 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/2b389557-b61e-45dc-bf08-b04c0973d7ea 2025-11-14 17:18:27,004 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/2b389557-b61e-45dc-bf08-b04c0973d7ea 2025-11-14 17:18:27,014 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/40b9ca33-9cfa-4e79-a1d3-634e23fcc0bf 2025-11-14 17:18:27,024 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-14 17:18:27,024 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/c6e0e7d1-9dd7-45eb-aced-2f6a3db812fe 2025-11-14 17:18:27,043 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/2b389557-b61e-45dc-bf08-b04c0973d7ea 2025-11-14 17:18:27,074 - INFO - Verified VN network id 11 for VN c6e0e7d1-9dd7-45eb-aced-2f6a3db812fe 2025-11-14 17:18:27,075 - INFO - Verifications in API Server for VN ctest-vn-28559045 passed 2025-11-14 17:18:27,075 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/c6e0e7d1-9dd7-45eb-aced-2f6a3db812fe 2025-11-14 17:18:27,096 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/2b389557-b61e-45dc-bf08-b04c0973d7ea 2025-11-14 17:18:27,110 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/2b389557-b61e-45dc-bf08-b04c0973d7ea 2025-11-14 17:18:27,128 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/40b9ca33-9cfa-4e79-a1d3-634e23fcc0bf 2025-11-14 17:18:27,162 - DEBUG - Control-node 10.0.0.249 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-26910084:ctest-vn-28559045', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-26910084', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14330708901775230443', 'uuid-lslong': '12460667877352542974'}, 'enable': 'true', 'created': '2025-11-14T17:18:24', 'last-modified': '2025-11-14T17:18:25', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.308643'} 2025-11-14 17:18:27,180 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-14 17:18:27,180 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-28559045 passed 2025-11-14 17:18:27,180 - DEBUG - ====Verifying policy data for ctest-vn-28559045 in API_Server ====== 2025-11-14 17:18:27,180 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2025-11-14 17:18:27,193 - DEBUG - Requesting: http://10.0.0.249:8082/domain/edd50b99-dcf6-497e-a864-d9ef956656c2 2025-11-14 17:18:27,210 - DEBUG - Requesting: http://10.0.0.249:8082/project/71b1d5d1-50f0-4bf0-b9e8-155723598c19 2025-11-14 17:18:27,324 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/c6e0e7d1-9dd7-45eb-aced-2f6a3db812fe 2025-11-14 17:18:27,352 - DEBUG - ==>Verifying data for policy with id: 7851013f-d7b5-4807-94dd-7b768f1d0e95, fqn: ['default-domain', 'ctest-TestBasicPolicy-26910084', 'ctest-policy-allow-all-41999776'] 2025-11-14 17:18:27,352 - INFO - VN ctest-vn-28559045 Policy verification: verify_vn_policy_in_api_server, status: True 2025-11-14 17:18:27,352 - DEBUG - Verifying the vn in opserver 2025-11-14 17:18:27,352 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-26910084:ctest-vn-28559045 virtual network link through opserver 10.0.0.249 2025-11-14 17:18:27,352 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks 2025-11-14 17:18:27,717 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks 2025-11-14 17:18:27,800 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-26910084:ctest-vn-28559045', 'href': 'http://10.0.0.249:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-26910084:ctest-vn-28559045?flat'} 2025-11-14 17:18:27,800 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-26910084:ctest-vn-28559045 is found in opserver 2025-11-14 17:18:27,826 - DEBUG - Do not have enough data to verify VN in agent 2025-11-14 17:18:27,836 - DEBUG - VRF ids for VN ctest-vn-28559045: {} 2025-11-14 17:18:27,836 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2025-11-14 17:18:27,847 - DEBUG - Requesting: http://10.0.0.249:8082/domain/edd50b99-dcf6-497e-a864-d9ef956656c2 2025-11-14 17:18:27,880 - DEBUG - Requesting: http://10.0.0.249:8082/project/71b1d5d1-50f0-4bf0-b9e8-155723598c19 2025-11-14 17:18:27,982 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/a7f1f519-bdd8-4ee7-bbbe-960a6c5fd7d1 2025-11-14 17:18:28,010 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/a7f1f519-bdd8-4ee7-bbbe-960a6c5fd7d1 2025-11-14 17:18:28,034 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/2ac75184-fde5-4245-bf78-4fe28083fc1b 2025-11-14 17:18:28,050 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/2ac75184-fde5-4245-bf78-4fe28083fc1b 2025-11-14 17:18:28,066 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/567d69ac-3d65-42f7-8357-f0a3f54b6fee 2025-11-14 17:18:28,081 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-11-14 17:18:28,081 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/a7f1f519-bdd8-4ee7-bbbe-960a6c5fd7d1 2025-11-14 17:18:28,100 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/2ac75184-fde5-4245-bf78-4fe28083fc1b 2025-11-14 17:18:28,133 - INFO - Verified VN network id 12 for VN a7f1f519-bdd8-4ee7-bbbe-960a6c5fd7d1 2025-11-14 17:18:28,133 - INFO - Verifications in API Server for VN ctest-vn-76463234 passed 2025-11-14 17:18:28,133 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/a7f1f519-bdd8-4ee7-bbbe-960a6c5fd7d1 2025-11-14 17:18:28,158 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/2ac75184-fde5-4245-bf78-4fe28083fc1b 2025-11-14 17:18:28,175 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/2ac75184-fde5-4245-bf78-4fe28083fc1b 2025-11-14 17:18:28,194 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/567d69ac-3d65-42f7-8357-f0a3f54b6fee 2025-11-14 17:18:28,219 - DEBUG - Control-node 10.0.0.249 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-26910084:ctest-vn-76463234', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-26910084', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12101723164629290727', 'uuid-lslong': '13528415302179608529'}, 'enable': 'true', 'created': '2025-11-14T17:18:24', 'last-modified': '2025-11-14T17:18:26', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.061320'} 2025-11-14 17:18:28,235 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-11-14 17:18:28,235 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-76463234 passed 2025-11-14 17:18:28,235 - DEBUG - ====Verifying policy data for ctest-vn-76463234 in API_Server ====== 2025-11-14 17:18:28,236 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2025-11-14 17:18:28,250 - DEBUG - Requesting: http://10.0.0.249:8082/domain/edd50b99-dcf6-497e-a864-d9ef956656c2 2025-11-14 17:18:28,277 - DEBUG - Requesting: http://10.0.0.249:8082/project/71b1d5d1-50f0-4bf0-b9e8-155723598c19 2025-11-14 17:18:28,369 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/a7f1f519-bdd8-4ee7-bbbe-960a6c5fd7d1 2025-11-14 17:18:28,389 - DEBUG - ==>Verifying data for policy with id: 7851013f-d7b5-4807-94dd-7b768f1d0e95, fqn: ['default-domain', 'ctest-TestBasicPolicy-26910084', 'ctest-policy-allow-all-41999776'] 2025-11-14 17:18:28,390 - INFO - VN ctest-vn-76463234 Policy verification: verify_vn_policy_in_api_server, status: True 2025-11-14 17:18:28,390 - DEBUG - Verifying the vn in opserver 2025-11-14 17:18:28,390 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-26910084:ctest-vn-76463234 virtual network link through opserver 10.0.0.249 2025-11-14 17:18:28,390 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks 2025-11-14 17:18:28,411 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-26910084:ctest-vn-76463234', 'href': 'http://10.0.0.249:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-26910084:ctest-vn-76463234?flat'} 2025-11-14 17:18:28,411 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-26910084:ctest-vn-76463234 is found in opserver 2025-11-14 17:18:28,434 - DEBUG - Do not have enough data to verify VN in agent 2025-11-14 17:18:28,446 - DEBUG - VRF ids for VN ctest-vn-76463234: {} 2025-11-14 17:18:28,553 - DEBUG - Services list from nova: [, , ] 2025-11-14 17:18:30,175 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-4732-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-4732-1) 2025-11-14 17:18:31,923 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-4732-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-4732-1) 2025-11-14 17:18:31,923 - INFO - Waiting for VM ctest-TestBasicPolicy-26910084-05962045 to be up.. 2025-11-14 17:18:31,998 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-11-14 17:18:37,139 - DEBUG - VM is in ACTIVE state now 2025-11-14 17:18:37,139 - INFO - VM name : ctest-TestBasicPolicy-26910084-05962045 2025-11-14 17:18:37,235 - DEBUG - VM ctest-TestBasicPolicy-26910084-05962045 ID is e29895ed-9af0-4f33-bcf6-8c7adcc0d35c 2025-11-14 17:18:37,259 - DEBUG - VM ctest-TestBasicPolicy-26910084-05962045 launched on Node cn-jenkins-deploy-platform-ansible-os-4732-1 2025-11-14 17:18:37,395 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-machine/e29895ed-9af0-4f33-bcf6-8c7adcc0d35c 2025-11-14 17:18:37,417 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-machine-interface/44d8ba5b-9a53-4ee2-9f4c-617245b2c016 2025-11-14 17:18:40,713 - 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 1003ms') 2025-11-14 17:18:40,713 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-26910084-05962045 failed! 2025-11-14 17:18:40,775 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-26910084:ctest-vn-28559045 is 182.111.14.129 and allocation pool is NOT set 2025-11-14 17:18:42,851 - 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.42 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=3.86 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.862/6.640/9.418/2.778 ms') 2025-11-14 17:18:42,851 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-26910084-05962045 passed 2025-11-14 17:18:43,003 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-11-14 17:18:43,003 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-26910084-05962045, IP 182.111.14.131, Port 22 2025-11-14 17:18:43,169 - DEBUG - VM ctest-TestBasicPolicy-26910084-05962045 is ready for SSH connections 2025-11-14 17:18:43,169 - INFO - Waiting for VM ctest-TestBasicPolicy-26910084-23826870 to be up.. 2025-11-14 17:18:43,261 - DEBUG - VM is in ACTIVE state now 2025-11-14 17:18:43,261 - INFO - VM name : ctest-TestBasicPolicy-26910084-23826870 2025-11-14 17:18:43,341 - DEBUG - VM ctest-TestBasicPolicy-26910084-23826870 ID is 794c23c1-ecac-4eb1-81ad-1cf2924dede8 2025-11-14 17:18:43,341 - DEBUG - VM ctest-TestBasicPolicy-26910084-23826870 launched on Node cn-jenkins-deploy-platform-ansible-os-4732-1 2025-11-14 17:18:43,423 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-machine/794c23c1-ecac-4eb1-81ad-1cf2924dede8 2025-11-14 17:18:43,432 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-machine-interface/33137a69-f309-4232-af93-9866187617f3 2025-11-14 17:18:44,677 - 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.15 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=1.96 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.959/3.555/5.152/1.596 ms') 2025-11-14 17:18:44,677 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-26910084-23826870 passed 2025-11-14 17:18:44,855 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-11-14 17:18:44,856 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-26910084-23826870, IP 30.246.219.67, Port 22 2025-11-14 17:18:44,936 - 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-11-14 17:18:45,096 - DEBUG - VM ctest-TestBasicPolicy-26910084-23826870 is NOT ready for SSH connections, VM status: ACTIVE 2025-11-14 17:18:50,098 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-11-14 17:18:50,098 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-26910084-23826870, IP 30.246.219.67, Port 22 2025-11-14 17:18:50,289 - DEBUG - VM ctest-TestBasicPolicy-26910084-23826870 is ready for SSH connections 2025-11-14 17:18:50,289 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-11-14 17:18:50,289 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 30.246.219.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.249, gateway password: c0ntrail123 2025-11-14 17:18:50,289 - DEBUG - ping -s 56 -c 3 -W 1 30.246.219.67 2025-11-14 17:18:54,690 - DEBUG - PING 30.246.219.67 (30.246.219.67): 56 data bytes 64 bytes from 30.246.219.67: seq=0 ttl=63 time=6.340 ms 64 bytes from 30.246.219.67: seq=1 ttl=63 time=1.307 ms 64 bytes from 30.246.219.67: seq=2 ttl=63 time=1.599 ms --- 30.246.219.67 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.307/3.082/6.340 ms 2025-11-14 17:18:54,691 - INFO - Ping to IP 30.246.219.67 from VM ctest-TestBasicPolicy-26910084-05962045 passed 2025-11-14 17:18:54,899 - DEBUG - Policy Update Response {"network-policy": {"uuid": "7851013f-d7b5-4807-94dd-7b768f1d0e95", "href": "http://10.0.0.249:8082/network-policy/7851013f-d7b5-4807-94dd-7b768f1d0e95"}} 2025-11-14 17:18:54,899 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-11-14 17:18:54,899 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 30.246.219.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.249, gateway password: c0ntrail123 2025-11-14 17:18:54,900 - DEBUG - ping -s 56 -c 3 -W 1 30.246.219.67 2025-11-14 17:18:58,187 - DEBUG - PING 30.246.219.67 (30.246.219.67): 56 data bytes 64 bytes from 30.246.219.67: seq=0 ttl=63 time=3.477 ms --- 30.246.219.67 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 3.477/3.477/3.477 ms 2025-11-14 17:18:58,188 - WARNING - Ping to IP 30.246.219.67 from VM ctest-TestBasicPolicy-26910084-05962045 failed 2025-11-14 17:18:58,188 - INFO - Deleting VM ctest-TestBasicPolicy-26910084-23826870 2025-11-14 17:18:58,371 - INFO - Deleting VM ctest-TestBasicPolicy-26910084-05962045 2025-11-14 17:18:58,870 - INFO - Deleted policy ctest-policy-allow-all-41999776 2025-11-14 17:18:58,870 - INFO - Deleting VN ctest-vn-76463234 2025-11-14 17:18:58,928 - DEBUG - VN a7f1f519-bdd8-4ee7-bbbe-960a6c5fd7d1 still in use: Unable to complete operation on network a7f1f519-bdd8-4ee7-bbbe-960a6c5fd7d1. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-e3ae88b7-e0c0-4d6f-820a-6097d6bb5652'] 2025-11-14 17:18:58,928 - WARNING - Deleting VN ctest-vn-76463234 failed..Will retry 2025-11-14 17:19:01,150 - DEBUG - Response for deleting network () 2025-11-14 17:19:01,150 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/2ac75184-fde5-4245-bf78-4fe28083fc1b 2025-11-14 17:19:01,159 - DEBUG - Response Code: 404 2025-11-14 17:19:01,159 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2025-11-14 17:19:01,165 - DEBUG - Requesting: http://10.0.0.249:8082/domain/edd50b99-dcf6-497e-a864-d9ef956656c2 2025-11-14 17:19:01,224 - DEBUG - Requesting: http://10.0.0.249:8082/project/71b1d5d1-50f0-4bf0-b9e8-155723598c19 2025-11-14 17:19:01,312 - INFO - Validated that VN ctest-vn-76463234 is not found in API Server 2025-11-14 17:19:01,326 - DEBUG - VN ctest-vn-76463234 is not present in Agent 10.0.0.249 2025-11-14 17:19:01,326 - INFO - Validated that VN ctest-vn-76463234 is not in any agent 2025-11-14 17:19:01,352 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-76463234 info 2025-11-14 17:19:01,352 - INFO - Deleting VN ctest-vn-28559045 2025-11-14 17:19:01,544 - DEBUG - Response for deleting network () 2025-11-14 17:19:01,544 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/2b389557-b61e-45dc-bf08-b04c0973d7ea 2025-11-14 17:19:01,556 - DEBUG - Response Code: 404 2025-11-14 17:19:01,556 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2025-11-14 17:19:01,566 - DEBUG - Requesting: http://10.0.0.249:8082/domain/edd50b99-dcf6-497e-a864-d9ef956656c2 2025-11-14 17:19:01,620 - DEBUG - Requesting: http://10.0.0.249:8082/project/71b1d5d1-50f0-4bf0-b9e8-155723598c19 2025-11-14 17:19:01,719 - INFO - Validated that VN ctest-vn-28559045 is not found in API Server 2025-11-14 17:19:01,731 - DEBUG - VN ctest-vn-28559045 is not present in Agent 10.0.0.249 2025-11-14 17:19:01,731 - INFO - Validated that VN ctest-vn-28559045 is not in any agent 2025-11-14 17:19:01,749 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-28559045 info 2025-11-14 17:19:02,037 - DEBUG - No XMPP flaps were noticed during the test 2025-11-14 17:19:02,037 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:39] 2025-11-14 17:19:02,037 - INFO - -------------------------------------------------------------------------------- 2025-11-14 17:19:02,877 - INFO - Deleted project: ctest-TestBasicPolicy-26910084, ID : 71b1d5d1-50f0-4bf0-b9e8-155723598c19