2025-09-16 12:22:53,133 - INFO - Domain Default found not creating 2025-09-16 12:22:53,328 - INFO - Project ctest-TestBasicPolicy-99394955 not found, creating it 2025-09-16 12:22:53,773 - INFO - Created Project:ctest-TestBasicPolicy-99394955, ID : f5355742-6918-4ece-8b87-96d9a63b5428 2025-09-16 12:22:55,233 - INFO - ================================================================================ 2025-09-16 12:22:55,233 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-09-16 12:22:55,233 - 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-09-16 12:22:55,491 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2025-09-16 12:22:55,491 - INFO - Initial checks done. Running the testcase now 2025-09-16 12:22:55,491 - INFO - 2025-09-16 12:22:56,069 - DEBUG - Response for create_network : {'network': {'id': '0e4e98e3-6748-449f-be73-ea3de4a0bd3b', 'name': 'ctest-vn-73801470', 'tenant_id': 'f535574269184ece8b8796d9a63b5428', 'project_id': 'f535574269184ece8b8796d9a63b5428', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-99394955', 'ctest-vn-73801470'], 'port_security_enabled': True, 'description': ''}} 2025-09-16 12:22:56,249 - DEBUG - Response for create_subnet : {'subnet': {'id': '20d2bffa-1dcf-4414-89a1-347fc702eaa7', 'name': '', 'tenant_id': 'f535574269184ece8b8796d9a63b5428', 'network_id': '0e4e98e3-6748-449f-be73-ea3de4a0bd3b', 'ip_version': 4, 'cidr': '106.126.190.192/26', 'allocation_pools': [{'start': '106.126.190.194', 'end': '106.126.190.254'}], 'gateway_ip': '106.126.190.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '106.126.190.194', 'tags': [], 'project_id': 'f535574269184ece8b8796d9a63b5428'}} 2025-09-16 12:22:56,266 - INFO - Created VN ctest-vn-73801470 2025-09-16 12:22:56,319 - DEBUG - VN ctest-vn-73801470 UUID is 0e4e98e3-6748-449f-be73-ea3de4a0bd3b 2025-09-16 12:22:56,618 - DEBUG - Response for create_network : {'network': {'id': 'ac3c5a96-660d-41e9-8cd7-9823bf4d1d16', 'name': 'ctest-vn-56237683', 'tenant_id': 'f535574269184ece8b8796d9a63b5428', 'project_id': 'f535574269184ece8b8796d9a63b5428', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-99394955', 'ctest-vn-56237683'], 'port_security_enabled': True, 'description': ''}} 2025-09-16 12:22:56,844 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f6d645fd-0f09-4156-bbdb-02473aa871a6', 'name': '', 'tenant_id': 'f535574269184ece8b8796d9a63b5428', 'network_id': 'ac3c5a96-660d-41e9-8cd7-9823bf4d1d16', 'ip_version': 4, 'cidr': '66.98.96.0/26', 'allocation_pools': [{'start': '66.98.96.2', 'end': '66.98.96.62'}], 'gateway_ip': '66.98.96.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '66.98.96.2', 'tags': [], 'project_id': 'f535574269184ece8b8796d9a63b5428'}} 2025-09-16 12:22:56,862 - INFO - Created VN ctest-vn-56237683 2025-09-16 12:22:56,915 - DEBUG - VN ctest-vn-56237683 UUID is ac3c5a96-660d-41e9-8cd7-9823bf4d1d16 2025-09-16 12:22:57,071 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-99394955:ctest-vn-73801470, 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-99394955:ctest-vn-56237683, 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-09-16 12:22:57,366 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '0e4e98e3-6748-449f-be73-ea3de4a0bd3b', 'name': 'ctest-vn-73801470', 'tenant_id': 'f535574269184ece8b8796d9a63b5428', 'project_id': 'f535574269184ece8b8796d9a63b5428', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['20d2bffa-1dcf-4414-89a1-347fc702eaa7'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-99394955', 'ctest-vn-73801470'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-99394955', 'ctest-policy-allow-all-56636006']], 'subnet_ipam': [{'subnet_cidr': '106.126.190.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-09-16 12:22:57,582 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ac3c5a96-660d-41e9-8cd7-9823bf4d1d16', 'name': 'ctest-vn-56237683', 'tenant_id': 'f535574269184ece8b8796d9a63b5428', 'project_id': 'f535574269184ece8b8796d9a63b5428', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['f6d645fd-0f09-4156-bbdb-02473aa871a6'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-99394955', 'ctest-vn-56237683'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-99394955', 'ctest-policy-allow-all-56636006']], 'subnet_ipam': [{'subnet_cidr': '66.98.96.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-09-16 12:22:57,751 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-09-16 12:22:58,049 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-09-16 12:22:58,077 - DEBUG - Requesting: http://10.0.0.38:8082/domain/43e6ad9d-5f25-44b9-8bac-cceb2b50f7b2 2025-09-16 12:22:58,090 - DEBUG - Requesting: http://10.0.0.38:8082/project/f5355742-6918-4ece-8b87-96d9a63b5428 2025-09-16 12:22:58,163 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/0e4e98e3-6748-449f-be73-ea3de4a0bd3b 2025-09-16 12:22:58,174 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/0e4e98e3-6748-449f-be73-ea3de4a0bd3b 2025-09-16 12:22:58,183 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/ae4789f7-57aa-4bb1-8cd3-c852a422ed46 2025-09-16 12:22:58,190 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/ae4789f7-57aa-4bb1-8cd3-c852a422ed46 2025-09-16 12:22:58,196 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/343924c7-0e53-4fac-815c-2f9b402b5ca4 2025-09-16 12:22:58,203 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-09-16 12:22:58,203 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/0e4e98e3-6748-449f-be73-ea3de4a0bd3b 2025-09-16 12:22:58,213 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/ae4789f7-57aa-4bb1-8cd3-c852a422ed46 2025-09-16 12:22:58,226 - INFO - Verified VN network id 11 for VN 0e4e98e3-6748-449f-be73-ea3de4a0bd3b 2025-09-16 12:22:58,226 - INFO - Verifications in API Server for VN ctest-vn-73801470 passed 2025-09-16 12:22:58,226 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/0e4e98e3-6748-449f-be73-ea3de4a0bd3b 2025-09-16 12:22:58,235 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/ae4789f7-57aa-4bb1-8cd3-c852a422ed46 2025-09-16 12:22:58,242 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/ae4789f7-57aa-4bb1-8cd3-c852a422ed46 2025-09-16 12:22:58,248 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/343924c7-0e53-4fac-815c-2f9b402b5ca4 2025-09-16 12:22:58,258 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-99394955:ctest-vn-73801470', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-99394955', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1030929467172209823', 'uuid-lslong': '13723570041077677371'}, 'enable': 'true', 'created': '2025-09-16T12:22:56', 'last-modified': '2025-09-16T12:22:57', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.920532'} 2025-09-16 12:22:58,265 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-09-16 12:22:58,265 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-73801470 passed 2025-09-16 12:22:58,265 - DEBUG - ====Verifying policy data for ctest-vn-73801470 in API_Server ====== 2025-09-16 12:22:58,265 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-09-16 12:22:58,270 - DEBUG - Requesting: http://10.0.0.38:8082/domain/43e6ad9d-5f25-44b9-8bac-cceb2b50f7b2 2025-09-16 12:22:58,280 - DEBUG - Requesting: http://10.0.0.38:8082/project/f5355742-6918-4ece-8b87-96d9a63b5428 2025-09-16 12:22:58,349 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/0e4e98e3-6748-449f-be73-ea3de4a0bd3b 2025-09-16 12:22:58,358 - DEBUG - ==>Verifying data for policy with id: 14c88328-5907-445e-a250-a31fbe8d97b7, fqn: ['default-domain', 'ctest-TestBasicPolicy-99394955', 'ctest-policy-allow-all-56636006'] 2025-09-16 12:22:58,358 - INFO - VN ctest-vn-73801470 Policy verification: verify_vn_policy_in_api_server, status: True 2025-09-16 12:22:58,358 - DEBUG - Verifying the vn in opserver 2025-09-16 12:22:58,358 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-99394955:ctest-vn-73801470 virtual network link through opserver 10.0.0.38 2025-09-16 12:22:58,358 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-09-16 12:22:58,661 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-09-16 12:22:58,719 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-99394955:ctest-vn-73801470', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-99394955:ctest-vn-73801470?flat'} 2025-09-16 12:22:58,719 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-99394955:ctest-vn-73801470 is found in opserver 2025-09-16 12:22:58,729 - DEBUG - Do not have enough data to verify VN in agent 2025-09-16 12:22:58,734 - DEBUG - VRF ids for VN ctest-vn-73801470: {} 2025-09-16 12:22:58,734 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-09-16 12:22:58,740 - DEBUG - Requesting: http://10.0.0.38:8082/domain/43e6ad9d-5f25-44b9-8bac-cceb2b50f7b2 2025-09-16 12:22:58,750 - DEBUG - Requesting: http://10.0.0.38:8082/project/f5355742-6918-4ece-8b87-96d9a63b5428 2025-09-16 12:22:58,817 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/ac3c5a96-660d-41e9-8cd7-9823bf4d1d16 2025-09-16 12:22:58,828 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/ac3c5a96-660d-41e9-8cd7-9823bf4d1d16 2025-09-16 12:22:58,836 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/4b9dd0b6-e756-43bb-9180-74079817d272 2025-09-16 12:22:58,843 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/4b9dd0b6-e756-43bb-9180-74079817d272 2025-09-16 12:22:58,850 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/f5ecfe51-5b22-42e1-a3dd-3ff14bbf0155 2025-09-16 12:22:58,855 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-09-16 12:22:58,856 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/ac3c5a96-660d-41e9-8cd7-9823bf4d1d16 2025-09-16 12:22:58,864 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/4b9dd0b6-e756-43bb-9180-74079817d272 2025-09-16 12:22:58,877 - INFO - Verified VN network id 12 for VN ac3c5a96-660d-41e9-8cd7-9823bf4d1d16 2025-09-16 12:22:58,877 - INFO - Verifications in API Server for VN ctest-vn-56237683 passed 2025-09-16 12:22:58,877 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/ac3c5a96-660d-41e9-8cd7-9823bf4d1d16 2025-09-16 12:22:58,886 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/4b9dd0b6-e756-43bb-9180-74079817d272 2025-09-16 12:22:58,893 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/4b9dd0b6-e756-43bb-9180-74079817d272 2025-09-16 12:22:58,901 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/f5ecfe51-5b22-42e1-a3dd-3ff14bbf0155 2025-09-16 12:22:58,912 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-99394955:ctest-vn-56237683', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-99394955', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12410894275129983465', 'uuid-lslong': '10148747564603481366'}, 'enable': 'true', 'created': '2025-09-16T12:22:56', 'last-modified': '2025-09-16T12:22:57', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.351313'} 2025-09-16 12:22:58,919 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-09-16 12:22:58,919 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-56237683 passed 2025-09-16 12:22:58,919 - DEBUG - ====Verifying policy data for ctest-vn-56237683 in API_Server ====== 2025-09-16 12:22:58,919 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-09-16 12:22:58,924 - DEBUG - Requesting: http://10.0.0.38:8082/domain/43e6ad9d-5f25-44b9-8bac-cceb2b50f7b2 2025-09-16 12:22:58,934 - DEBUG - Requesting: http://10.0.0.38:8082/project/f5355742-6918-4ece-8b87-96d9a63b5428 2025-09-16 12:22:59,002 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/ac3c5a96-660d-41e9-8cd7-9823bf4d1d16 2025-09-16 12:22:59,010 - DEBUG - ==>Verifying data for policy with id: 14c88328-5907-445e-a250-a31fbe8d97b7, fqn: ['default-domain', 'ctest-TestBasicPolicy-99394955', 'ctest-policy-allow-all-56636006'] 2025-09-16 12:22:59,010 - INFO - VN ctest-vn-56237683 Policy verification: verify_vn_policy_in_api_server, status: True 2025-09-16 12:22:59,011 - DEBUG - Verifying the vn in opserver 2025-09-16 12:22:59,011 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-99394955:ctest-vn-56237683 virtual network link through opserver 10.0.0.38 2025-09-16 12:22:59,011 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-09-16 12:22:59,020 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-99394955:ctest-vn-56237683', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-99394955:ctest-vn-56237683?flat'} 2025-09-16 12:22:59,020 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-99394955:ctest-vn-56237683 is found in opserver 2025-09-16 12:22:59,030 - DEBUG - Do not have enough data to verify VN in agent 2025-09-16 12:22:59,034 - DEBUG - VRF ids for VN ctest-vn-56237683: {} 2025-09-16 12:22:59,091 - DEBUG - Services list from nova: [, , ] 2025-09-16 12:23:00,102 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-4123-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-4123-1) 2025-09-16 12:23:01,306 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-4123-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-4123-1) 2025-09-16 12:23:01,306 - INFO - Waiting for VM ctest-TestBasicPolicy-99394955-77149679 to be up.. 2025-09-16 12:23:01,406 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-09-16 12:23:06,517 - DEBUG - VM is in ACTIVE state now 2025-09-16 12:23:06,517 - INFO - VM name : ctest-TestBasicPolicy-99394955-77149679 2025-09-16 12:23:06,614 - DEBUG - VM ctest-TestBasicPolicy-99394955-77149679 ID is ea0b243d-698a-4ae9-ada6-802caa0b0d10 2025-09-16 12:23:06,637 - DEBUG - VM ctest-TestBasicPolicy-99394955-77149679 launched on Node cn-jenkins-deploy-platform-ansible-os-4123-1 2025-09-16 12:23:06,723 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine/ea0b243d-698a-4ae9-ada6-802caa0b0d10 2025-09-16 12:23:06,731 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine-interface/7723b5b6-3a9a-4b9e-a7e2-674fad2488fe 2025-09-16 12:23:09,981 - 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-09-16 12:23:09,982 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-99394955-77149679 failed! 2025-09-16 12:23:10,035 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-99394955:ctest-vn-73801470 is 106.126.190.193 and allocation pool is NOT set 2025-09-16 12:23:12,100 - 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.16 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.540 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.540/4.348/8.156/3.808 ms') 2025-09-16 12:23:12,100 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-99394955-77149679 passed 2025-09-16 12:23:12,247 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-09-16 12:23:12,247 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-99394955-77149679, IP 106.126.190.195, Port 22 2025-09-16 12:23:12,403 - DEBUG - VM ctest-TestBasicPolicy-99394955-77149679 is ready for SSH connections 2025-09-16 12:23:12,403 - INFO - Waiting for VM ctest-TestBasicPolicy-99394955-25306477 to be up.. 2025-09-16 12:23:12,489 - DEBUG - VM is in ACTIVE state now 2025-09-16 12:23:12,489 - INFO - VM name : ctest-TestBasicPolicy-99394955-25306477 2025-09-16 12:23:12,570 - DEBUG - VM ctest-TestBasicPolicy-99394955-25306477 ID is d0d56a8b-1668-4749-b157-f0d3726fb408 2025-09-16 12:23:12,570 - DEBUG - VM ctest-TestBasicPolicy-99394955-25306477 launched on Node cn-jenkins-deploy-platform-ansible-os-4123-1 2025-09-16 12:23:12,649 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine/d0d56a8b-1668-4749-b157-f0d3726fb408 2025-09-16 12:23:12,658 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine-interface/daed285a-fd8f-4eb4-8f94-f30541c02825 2025-09-16 12:23:13,896 - 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.70 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.862 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.862/2.782/4.702/1.920 ms') 2025-09-16 12:23:13,896 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-99394955-25306477 passed 2025-09-16 12:23:14,047 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-09-16 12:23:14,047 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-99394955-25306477, IP 66.98.96.3, Port 22 2025-09-16 12:23:14,113 - 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-09-16 12:23:14,187 - DEBUG - VM ctest-TestBasicPolicy-99394955-25306477 is NOT ready for SSH connections, VM status: ACTIVE 2025-09-16 12:23:19,188 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-09-16 12:23:19,188 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-99394955-25306477, IP 66.98.96.3, Port 22 2025-09-16 12:23:19,357 - DEBUG - VM ctest-TestBasicPolicy-99394955-25306477 is ready for SSH connections 2025-09-16 12:23:19,358 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-09-16 12:23:19,358 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 66.98.96.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.38, gateway password: c0ntrail123 2025-09-16 12:23:19,358 - DEBUG - ping -s 56 -c 3 -W 1 66.98.96.3 2025-09-16 12:23:23,133 - DEBUG - PING 66.98.96.3 (66.98.96.3): 56 data bytes 64 bytes from 66.98.96.3: seq=0 ttl=63 time=4.825 ms 64 bytes from 66.98.96.3: seq=1 ttl=63 time=1.087 ms 64 bytes from 66.98.96.3: seq=2 ttl=63 time=1.003 ms --- 66.98.96.3 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.003/2.305/4.825 ms 2025-09-16 12:23:23,133 - INFO - Ping to IP 66.98.96.3 from VM ctest-TestBasicPolicy-99394955-77149679 passed 2025-09-16 12:23:23,319 - DEBUG - Policy Update Response {"network-policy": {"uuid": "14c88328-5907-445e-a250-a31fbe8d97b7", "href": "http://10.0.0.38:8082/network-policy/14c88328-5907-445e-a250-a31fbe8d97b7"}} 2025-09-16 12:23:23,319 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-09-16 12:23:23,319 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 66.98.96.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.38, gateway password: c0ntrail123 2025-09-16 12:23:23,319 - DEBUG - ping -s 56 -c 3 -W 1 66.98.96.3 2025-09-16 12:23:26,527 - DEBUG - PING 66.98.96.3 (66.98.96.3): 56 data bytes --- 66.98.96.3 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2025-09-16 12:23:26,527 - WARNING - Ping to IP 66.98.96.3 from VM ctest-TestBasicPolicy-99394955-77149679 failed 2025-09-16 12:23:26,527 - INFO - Deleting VM ctest-TestBasicPolicy-99394955-25306477 2025-09-16 12:23:26,633 - INFO - Deleting VM ctest-TestBasicPolicy-99394955-77149679 2025-09-16 12:23:27,033 - INFO - Deleted policy ctest-policy-allow-all-56636006 2025-09-16 12:23:27,034 - INFO - Deleting VN ctest-vn-56237683 2025-09-16 12:23:27,067 - DEBUG - VN ac3c5a96-660d-41e9-8cd7-9823bf4d1d16 still in use: Unable to complete operation on network ac3c5a96-660d-41e9-8cd7-9823bf4d1d16. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-65f0a9a9-25e4-44d1-999d-0f48b82abaf6'] 2025-09-16 12:23:27,067 - WARNING - Deleting VN ctest-vn-56237683 failed..Will retry 2025-09-16 12:23:29,169 - DEBUG - Response for deleting network () 2025-09-16 12:23:29,170 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/4b9dd0b6-e756-43bb-9180-74079817d272 2025-09-16 12:23:29,175 - DEBUG - Response Code: 404 2025-09-16 12:23:29,175 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-09-16 12:23:29,180 - DEBUG - Requesting: http://10.0.0.38:8082/domain/43e6ad9d-5f25-44b9-8bac-cceb2b50f7b2 2025-09-16 12:23:29,232 - DEBUG - Requesting: http://10.0.0.38:8082/project/f5355742-6918-4ece-8b87-96d9a63b5428 2025-09-16 12:23:29,301 - INFO - Validated that VN ctest-vn-56237683 is not found in API Server 2025-09-16 12:23:29,311 - DEBUG - VN ctest-vn-56237683 is not present in Agent 10.0.0.38 2025-09-16 12:23:29,311 - INFO - Validated that VN ctest-vn-56237683 is not in any agent 2025-09-16 12:23:29,324 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-56237683 info 2025-09-16 12:23:29,324 - INFO - Deleting VN ctest-vn-73801470 2025-09-16 12:23:29,424 - DEBUG - Response for deleting network () 2025-09-16 12:23:29,424 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/ae4789f7-57aa-4bb1-8cd3-c852a422ed46 2025-09-16 12:23:29,433 - DEBUG - Response Code: 404 2025-09-16 12:23:29,433 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-09-16 12:23:29,438 - DEBUG - Requesting: http://10.0.0.38:8082/domain/43e6ad9d-5f25-44b9-8bac-cceb2b50f7b2 2025-09-16 12:23:29,495 - DEBUG - Requesting: http://10.0.0.38:8082/project/f5355742-6918-4ece-8b87-96d9a63b5428 2025-09-16 12:23:29,563 - INFO - Validated that VN ctest-vn-73801470 is not found in API Server 2025-09-16 12:23:29,572 - DEBUG - VN ctest-vn-73801470 is not present in Agent 10.0.0.38 2025-09-16 12:23:29,572 - INFO - Validated that VN ctest-vn-73801470 is not in any agent 2025-09-16 12:23:29,586 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-73801470 info 2025-09-16 12:23:29,840 - DEBUG - No XMPP flaps were noticed during the test 2025-09-16 12:23:29,840 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:34] 2025-09-16 12:23:29,840 - INFO - -------------------------------------------------------------------------------- 2025-09-16 12:23:30,522 - INFO - Deleted project: ctest-TestBasicPolicy-99394955, ID : f5355742-6918-4ece-8b87-96d9a63b5428