2025-09-16 15:00:02,110 - INFO - Domain Default found not creating 2025-09-16 15:00:02,291 - INFO - Project ctest-TestBasicPolicy-89960766 not found, creating it 2025-09-16 15:00:02,767 - INFO - Created Project:ctest-TestBasicPolicy-89960766, ID : 38c1b838-b6b6-4ef7-aa5f-7e2060bcc341 2025-09-16 15:00:04,428 - INFO - ================================================================================ 2025-09-16 15:00:04,428 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-09-16 15:00:04,428 - 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 15:00:04,685 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with 2025-09-16 15:00:04,686 - INFO - Initial checks done. Running the testcase now 2025-09-16 15:00:04,686 - INFO - 2025-09-16 15:00:05,286 - DEBUG - Response for create_network : {'network': {'id': 'e40660d0-8564-4984-812a-032497eb8dc4', 'name': 'ctest-vn-18358177', 'tenant_id': '38c1b838b6b64ef7aa5f7e2060bcc341', 'project_id': '38c1b838b6b64ef7aa5f7e2060bcc341', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-89960766', 'ctest-vn-18358177'], 'port_security_enabled': True, 'description': ''}} 2025-09-16 15:00:05,515 - DEBUG - Response for create_subnet : {'subnet': {'id': '9e9f8c5a-3008-4b17-b3d4-278b008edade', 'name': '', 'tenant_id': '38c1b838b6b64ef7aa5f7e2060bcc341', 'network_id': 'e40660d0-8564-4984-812a-032497eb8dc4', 'ip_version': 4, 'cidr': '129.20.234.64/26', 'allocation_pools': [{'start': '129.20.234.66', 'end': '129.20.234.126'}], 'gateway_ip': '129.20.234.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '129.20.234.66', 'tags': [], 'project_id': '38c1b838b6b64ef7aa5f7e2060bcc341'}} 2025-09-16 15:00:05,535 - INFO - Created VN ctest-vn-18358177 2025-09-16 15:00:05,588 - DEBUG - VN ctest-vn-18358177 UUID is e40660d0-8564-4984-812a-032497eb8dc4 2025-09-16 15:00:05,888 - DEBUG - Response for create_network : {'network': {'id': 'f25a6da1-3f49-47dd-8408-012f03400908', 'name': 'ctest-vn-91863510', 'tenant_id': '38c1b838b6b64ef7aa5f7e2060bcc341', 'project_id': '38c1b838b6b64ef7aa5f7e2060bcc341', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-89960766', 'ctest-vn-91863510'], 'port_security_enabled': True, 'description': ''}} 2025-09-16 15:00:06,052 - DEBUG - Response for create_subnet : {'subnet': {'id': '98caa785-a089-4067-9764-e09e6402c3e4', 'name': '', 'tenant_id': '38c1b838b6b64ef7aa5f7e2060bcc341', 'network_id': 'f25a6da1-3f49-47dd-8408-012f03400908', 'ip_version': 4, 'cidr': '151.20.39.128/26', 'allocation_pools': [{'start': '151.20.39.130', 'end': '151.20.39.190'}], 'gateway_ip': '151.20.39.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '151.20.39.130', 'tags': [], 'project_id': '38c1b838b6b64ef7aa5f7e2060bcc341'}} 2025-09-16 15:00:06,070 - INFO - Created VN ctest-vn-91863510 2025-09-16 15:00:06,124 - DEBUG - VN ctest-vn-91863510 UUID is f25a6da1-3f49-47dd-8408-012f03400908 2025-09-16 15:00:06,247 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-89960766:ctest-vn-18358177, 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-89960766:ctest-vn-91863510, 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 15:00:06,551 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'e40660d0-8564-4984-812a-032497eb8dc4', 'name': 'ctest-vn-18358177', 'tenant_id': '38c1b838b6b64ef7aa5f7e2060bcc341', 'project_id': '38c1b838b6b64ef7aa5f7e2060bcc341', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['9e9f8c5a-3008-4b17-b3d4-278b008edade'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-89960766', 'ctest-vn-18358177'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-89960766', 'ctest-policy-allow-all-57692065']], 'subnet_ipam': [{'subnet_cidr': '129.20.234.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-09-16 15:00:06,786 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f25a6da1-3f49-47dd-8408-012f03400908', 'name': 'ctest-vn-91863510', 'tenant_id': '38c1b838b6b64ef7aa5f7e2060bcc341', 'project_id': '38c1b838b6b64ef7aa5f7e2060bcc341', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['98caa785-a089-4067-9764-e09e6402c3e4'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-89960766', 'ctest-vn-91863510'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-89960766', 'ctest-policy-allow-all-57692065']], 'subnet_ipam': [{'subnet_cidr': '151.20.39.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-09-16 15:00:06,964 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-09-16 15:00:07,300 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-09-16 15:00:07,332 - DEBUG - Requesting: http://10.0.0.254:8082/domain/594256e9-e44e-4769-a59b-3aac374792fa 2025-09-16 15:00:07,346 - DEBUG - Requesting: http://10.0.0.254:8082/project/38c1b838-b6b6-4ef7-aa5f-7e2060bcc341 2025-09-16 15:00:07,419 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/e40660d0-8564-4984-812a-032497eb8dc4 2025-09-16 15:00:07,430 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/e40660d0-8564-4984-812a-032497eb8dc4 2025-09-16 15:00:07,440 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/c1395f67-8bf5-41fc-a64b-9c52be1d3b81 2025-09-16 15:00:07,447 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/c1395f67-8bf5-41fc-a64b-9c52be1d3b81 2025-09-16 15:00:07,454 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/166a7b62-8cb9-4f61-9be8-d00fde31d97e 2025-09-16 15:00:07,461 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-09-16 15:00:07,461 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/e40660d0-8564-4984-812a-032497eb8dc4 2025-09-16 15:00:07,470 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/c1395f67-8bf5-41fc-a64b-9c52be1d3b81 2025-09-16 15:00:07,484 - INFO - Verified VN network id 11 for VN e40660d0-8564-4984-812a-032497eb8dc4 2025-09-16 15:00:07,485 - INFO - Verifications in API Server for VN ctest-vn-18358177 passed 2025-09-16 15:00:07,485 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/e40660d0-8564-4984-812a-032497eb8dc4 2025-09-16 15:00:07,494 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/c1395f67-8bf5-41fc-a64b-9c52be1d3b81 2025-09-16 15:00:07,502 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/c1395f67-8bf5-41fc-a64b-9c52be1d3b81 2025-09-16 15:00:07,509 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/166a7b62-8cb9-4f61-9be8-d00fde31d97e 2025-09-16 15:00:07,521 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-89960766:ctest-vn-18358177', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-89960766', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16430926739215239556', 'uuid-lslong': '9307255035617054148'}, 'enable': 'true', 'created': '2025-09-16T15:00:05', 'last-modified': '2025-09-16T15:00:06', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.994297'} 2025-09-16 15:00:07,527 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-09-16 15:00:07,527 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-18358177 passed 2025-09-16 15:00:07,528 - DEBUG - ====Verifying policy data for ctest-vn-18358177 in API_Server ====== 2025-09-16 15:00:07,528 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-09-16 15:00:07,534 - DEBUG - Requesting: http://10.0.0.254:8082/domain/594256e9-e44e-4769-a59b-3aac374792fa 2025-09-16 15:00:07,546 - DEBUG - Requesting: http://10.0.0.254:8082/project/38c1b838-b6b6-4ef7-aa5f-7e2060bcc341 2025-09-16 15:00:07,617 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/e40660d0-8564-4984-812a-032497eb8dc4 2025-09-16 15:00:07,627 - DEBUG - ==>Verifying data for policy with id: d84c03d8-b557-4449-9c93-55a68b39580c, fqn: ['default-domain', 'ctest-TestBasicPolicy-89960766', 'ctest-policy-allow-all-57692065'] 2025-09-16 15:00:07,628 - INFO - VN ctest-vn-18358177 Policy verification: verify_vn_policy_in_api_server, status: True 2025-09-16 15:00:07,628 - DEBUG - Verifying the vn in opserver 2025-09-16 15:00:07,628 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-89960766:ctest-vn-18358177 virtual network link through opserver 10.0.0.254 2025-09-16 15:00:07,628 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-09-16 15:00:07,967 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-09-16 15:00:08,036 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-89960766:ctest-vn-18358177', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-89960766:ctest-vn-18358177?flat'} 2025-09-16 15:00:08,036 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-89960766:ctest-vn-18358177 is found in opserver 2025-09-16 15:00:08,047 - DEBUG - Do not have enough data to verify VN in agent 2025-09-16 15:00:08,052 - DEBUG - VRF ids for VN ctest-vn-18358177: {} 2025-09-16 15:00:08,052 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-09-16 15:00:08,059 - DEBUG - Requesting: http://10.0.0.254:8082/domain/594256e9-e44e-4769-a59b-3aac374792fa 2025-09-16 15:00:08,071 - DEBUG - Requesting: http://10.0.0.254:8082/project/38c1b838-b6b6-4ef7-aa5f-7e2060bcc341 2025-09-16 15:00:08,145 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/f25a6da1-3f49-47dd-8408-012f03400908 2025-09-16 15:00:08,157 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/f25a6da1-3f49-47dd-8408-012f03400908 2025-09-16 15:00:08,166 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/a0f7db5d-c8f7-45cf-a5ec-0cb8f3844e1f 2025-09-16 15:00:08,174 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/a0f7db5d-c8f7-45cf-a5ec-0cb8f3844e1f 2025-09-16 15:00:08,180 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/febed38c-b67e-4e1d-9ec7-d08cf68bb2e2 2025-09-16 15:00:08,187 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-09-16 15:00:08,187 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/f25a6da1-3f49-47dd-8408-012f03400908 2025-09-16 15:00:08,196 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/a0f7db5d-c8f7-45cf-a5ec-0cb8f3844e1f 2025-09-16 15:00:08,211 - INFO - Verified VN network id 12 for VN f25a6da1-3f49-47dd-8408-012f03400908 2025-09-16 15:00:08,212 - INFO - Verifications in API Server for VN ctest-vn-91863510 passed 2025-09-16 15:00:08,212 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/f25a6da1-3f49-47dd-8408-012f03400908 2025-09-16 15:00:08,222 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/a0f7db5d-c8f7-45cf-a5ec-0cb8f3844e1f 2025-09-16 15:00:08,229 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/a0f7db5d-c8f7-45cf-a5ec-0cb8f3844e1f 2025-09-16 15:00:08,237 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/febed38c-b67e-4e1d-9ec7-d08cf68bb2e2 2025-09-16 15:00:08,251 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-89960766:ctest-vn-91863510', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-89960766', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17463391044401448925', 'uuid-lslong': '9513855514249791752'}, 'enable': 'true', 'created': '2025-09-16T15:00:05', 'last-modified': '2025-09-16T15:00:06', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.486210'} 2025-09-16 15:00:08,257 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-09-16 15:00:08,258 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-91863510 passed 2025-09-16 15:00:08,258 - DEBUG - ====Verifying policy data for ctest-vn-91863510 in API_Server ====== 2025-09-16 15:00:08,258 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-09-16 15:00:08,264 - DEBUG - Requesting: http://10.0.0.254:8082/domain/594256e9-e44e-4769-a59b-3aac374792fa 2025-09-16 15:00:08,276 - DEBUG - Requesting: http://10.0.0.254:8082/project/38c1b838-b6b6-4ef7-aa5f-7e2060bcc341 2025-09-16 15:00:08,352 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/f25a6da1-3f49-47dd-8408-012f03400908 2025-09-16 15:00:08,362 - DEBUG - ==>Verifying data for policy with id: d84c03d8-b557-4449-9c93-55a68b39580c, fqn: ['default-domain', 'ctest-TestBasicPolicy-89960766', 'ctest-policy-allow-all-57692065'] 2025-09-16 15:00:08,362 - INFO - VN ctest-vn-91863510 Policy verification: verify_vn_policy_in_api_server, status: True 2025-09-16 15:00:08,362 - DEBUG - Verifying the vn in opserver 2025-09-16 15:00:08,362 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-89960766:ctest-vn-91863510 virtual network link through opserver 10.0.0.254 2025-09-16 15:00:08,362 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-09-16 15:00:08,372 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-89960766:ctest-vn-91863510', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-89960766:ctest-vn-91863510?flat'} 2025-09-16 15:00:08,372 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-89960766:ctest-vn-91863510 is found in opserver 2025-09-16 15:00:08,385 - DEBUG - Do not have enough data to verify VN in agent 2025-09-16 15:00:08,390 - DEBUG - VRF ids for VN ctest-vn-91863510: {} 2025-09-16 15:00:08,453 - DEBUG - Services list from nova: [, , ] 2025-09-16 15:00:09,597 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-4124-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-4124-1) 2025-09-16 15:00:10,859 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-4124-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-4124-1) 2025-09-16 15:00:10,860 - INFO - Waiting for VM ctest-TestBasicPolicy-89960766-59068547 to be up.. 2025-09-16 15:00:10,958 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-09-16 15:00:16,039 - DEBUG - VM is in ACTIVE state now 2025-09-16 15:00:16,039 - INFO - VM name : ctest-TestBasicPolicy-89960766-59068547 2025-09-16 15:00:16,119 - DEBUG - VM ctest-TestBasicPolicy-89960766-59068547 ID is fad8f20e-67b0-4210-ac49-b9c2e9bb262c 2025-09-16 15:00:16,140 - DEBUG - VM ctest-TestBasicPolicy-89960766-59068547 launched on Node cn-jenkins-deploy-platform-ansible-os-4124-1 2025-09-16 15:00:16,228 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine/fad8f20e-67b0-4210-ac49-b9c2e9bb262c 2025-09-16 15:00:16,237 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine-interface/b43d16cd-5583-497d-8c99-0d03f844f554 2025-09-16 15:00:19,512 - 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 1030ms') 2025-09-16 15:00:19,512 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-89960766-59068547 failed! 2025-09-16 15:00:19,568 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-89960766:ctest-vn-18358177 is 129.20.234.65 and allocation pool is NOT set 2025-09-16 15:00:21,632 - DEBUG - (True, 'PING 169.254.0.3 (169.254.0.3) 56(84) bytes of data.\r\n64 bytes from 169.254.0.3: icmp_seq=1 ttl=63 time=5.91 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.602 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.602/3.257/5.913/2.655 ms') 2025-09-16 15:00:21,632 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-89960766-59068547 passed 2025-09-16 15:00:21,784 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-09-16 15:00:21,784 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-89960766-59068547, IP 129.20.234.67, Port 22 2025-09-16 15:00:21,958 - DEBUG - VM ctest-TestBasicPolicy-89960766-59068547 is ready for SSH connections 2025-09-16 15:00:21,958 - INFO - Waiting for VM ctest-TestBasicPolicy-89960766-91919779 to be up.. 2025-09-16 15:00:22,056 - DEBUG - VM is in ACTIVE state now 2025-09-16 15:00:22,057 - INFO - VM name : ctest-TestBasicPolicy-89960766-91919779 2025-09-16 15:00:22,146 - DEBUG - VM ctest-TestBasicPolicy-89960766-91919779 ID is cc2e89e5-d790-4044-9e58-0c3bc2924c20 2025-09-16 15:00:22,146 - DEBUG - VM ctest-TestBasicPolicy-89960766-91919779 launched on Node cn-jenkins-deploy-platform-ansible-os-4124-1 2025-09-16 15:00:22,229 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine/cc2e89e5-d790-4044-9e58-0c3bc2924c20 2025-09-16 15:00:22,247 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine-interface/36e7a867-6310-448d-ac3e-b53453c811e0 2025-09-16 15:00:23,499 - 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.82 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=1.84 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 = 1.837/3.826/5.816/1.989 ms') 2025-09-16 15:00:23,499 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-89960766-91919779 passed 2025-09-16 15:00:23,652 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-09-16 15:00:23,652 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-89960766-91919779, IP 151.20.39.131, Port 22 2025-09-16 15:00:23,717 - 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 15:00:23,802 - DEBUG - VM ctest-TestBasicPolicy-89960766-91919779 is NOT ready for SSH connections, VM status: ACTIVE 2025-09-16 15:00:28,802 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-09-16 15:00:28,803 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-89960766-91919779, IP 151.20.39.131, Port 22 2025-09-16 15:00:28,959 - DEBUG - VM ctest-TestBasicPolicy-89960766-91919779 is ready for SSH connections 2025-09-16 15:00:28,960 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-09-16 15:00:28,960 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 151.20.39.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.254, gateway password: c0ntrail123 2025-09-16 15:00:28,960 - DEBUG - ping -s 56 -c 3 -W 1 151.20.39.131 2025-09-16 15:00:33,104 - DEBUG - PING 151.20.39.131 (151.20.39.131): 56 data bytes 64 bytes from 151.20.39.131: seq=0 ttl=63 time=4.250 ms 64 bytes from 151.20.39.131: seq=1 ttl=63 time=1.104 ms 64 bytes from 151.20.39.131: seq=2 ttl=63 time=0.944 ms --- 151.20.39.131 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.944/2.099/4.250 ms 2025-09-16 15:00:33,104 - INFO - Ping to IP 151.20.39.131 from VM ctest-TestBasicPolicy-89960766-59068547 passed 2025-09-16 15:00:33,283 - DEBUG - Policy Update Response {"network-policy": {"uuid": "d84c03d8-b557-4449-9c93-55a68b39580c", "href": "http://10.0.0.254:8082/network-policy/d84c03d8-b557-4449-9c93-55a68b39580c"}} 2025-09-16 15:00:33,284 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-09-16 15:00:33,284 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 151.20.39.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.254, gateway password: c0ntrail123 2025-09-16 15:00:33,284 - DEBUG - ping -s 56 -c 3 -W 1 151.20.39.131 2025-09-16 15:00:36,514 - DEBUG - PING 151.20.39.131 (151.20.39.131): 56 data bytes --- 151.20.39.131 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2025-09-16 15:00:36,515 - WARNING - Ping to IP 151.20.39.131 from VM ctest-TestBasicPolicy-89960766-59068547 failed 2025-09-16 15:00:36,515 - INFO - Deleting VM ctest-TestBasicPolicy-89960766-91919779 2025-09-16 15:00:36,597 - INFO - Deleting VM ctest-TestBasicPolicy-89960766-59068547 2025-09-16 15:00:37,022 - INFO - Deleted policy ctest-policy-allow-all-57692065 2025-09-16 15:00:37,022 - INFO - Deleting VN ctest-vn-91863510 2025-09-16 15:00:37,074 - DEBUG - VN f25a6da1-3f49-47dd-8408-012f03400908 still in use: Unable to complete operation on network f25a6da1-3f49-47dd-8408-012f03400908. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-7875e905-1fcb-478f-b6ec-45dedfa16d42'] 2025-09-16 15:00:37,074 - WARNING - Deleting VN ctest-vn-91863510 failed..Will retry 2025-09-16 15:00:39,190 - DEBUG - Response for deleting network () 2025-09-16 15:00:39,191 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/a0f7db5d-c8f7-45cf-a5ec-0cb8f3844e1f 2025-09-16 15:00:39,198 - DEBUG - Response Code: 404 2025-09-16 15:00:39,198 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-09-16 15:00:39,204 - DEBUG - Requesting: http://10.0.0.254:8082/domain/594256e9-e44e-4769-a59b-3aac374792fa 2025-09-16 15:00:39,262 - DEBUG - Requesting: http://10.0.0.254:8082/project/38c1b838-b6b6-4ef7-aa5f-7e2060bcc341 2025-09-16 15:00:39,335 - INFO - Validated that VN ctest-vn-91863510 is not found in API Server 2025-09-16 15:00:39,346 - DEBUG - VN ctest-vn-91863510 is not present in Agent 10.0.0.254 2025-09-16 15:00:39,346 - INFO - Validated that VN ctest-vn-91863510 is not in any agent 2025-09-16 15:00:39,359 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-91863510 info 2025-09-16 15:00:39,360 - INFO - Deleting VN ctest-vn-18358177 2025-09-16 15:00:39,464 - DEBUG - Response for deleting network () 2025-09-16 15:00:39,464 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/c1395f67-8bf5-41fc-a64b-9c52be1d3b81 2025-09-16 15:00:39,470 - DEBUG - Response Code: 404 2025-09-16 15:00:39,471 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-09-16 15:00:39,477 - DEBUG - Requesting: http://10.0.0.254:8082/domain/594256e9-e44e-4769-a59b-3aac374792fa 2025-09-16 15:00:39,533 - DEBUG - Requesting: http://10.0.0.254:8082/project/38c1b838-b6b6-4ef7-aa5f-7e2060bcc341 2025-09-16 15:00:39,618 - INFO - Validated that VN ctest-vn-18358177 is not found in API Server 2025-09-16 15:00:39,628 - DEBUG - VN ctest-vn-18358177 is not present in Agent 10.0.0.254 2025-09-16 15:00:39,629 - INFO - Validated that VN ctest-vn-18358177 is not in any agent 2025-09-16 15:00:39,643 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-18358177 info 2025-09-16 15:00:39,902 - DEBUG - No XMPP flaps were noticed during the test 2025-09-16 15:00:39,902 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:35] 2025-09-16 15:00:39,902 - INFO - -------------------------------------------------------------------------------- 2025-09-16 15:00:40,638 - INFO - Deleted project: ctest-TestBasicPolicy-89960766, ID : 38c1b838-b6b6-4ef7-aa5f-7e2060bcc341