2025-11-24 02:02:02,025 - INFO - Domain Default found not creating 2025-11-24 02:02:02,204 - INFO - Project ctest-TestBasicPolicy-44229958 not found, creating it 2025-11-24 02:02:02,691 - INFO - Created Project:ctest-TestBasicPolicy-44229958, ID : fd8641a4-4790-400f-91a7-845c2924585f 2025-11-24 02:02:04,333 - INFO - ================================================================================ 2025-11-24 02:02:04,333 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-11-24 02:02:04,333 - 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-24 02:02:04,587 - DEBUG - Nothing to compare xmpp stats {'10.0.0.242': {'10.20.0.254': '0'}} with 2025-11-24 02:02:04,587 - INFO - Initial checks done. Running the testcase now 2025-11-24 02:02:04,587 - INFO - 2025-11-24 02:02:05,204 - DEBUG - Response for create_network : {'network': {'id': '7f4c3b7a-8577-4f51-8d7c-caf01e0ba61e', 'name': 'ctest-vn-81429350', 'tenant_id': 'fd8641a44790400f91a7845c2924585f', 'project_id': 'fd8641a44790400f91a7845c2924585f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-44229958', 'ctest-vn-81429350'], 'port_security_enabled': True, 'description': ''}} 2025-11-24 02:02:05,392 - DEBUG - Response for create_subnet : {'subnet': {'id': '8b0270a3-580a-4306-acd5-4503eb48c81b', 'name': '', 'tenant_id': 'fd8641a44790400f91a7845c2924585f', 'network_id': '7f4c3b7a-8577-4f51-8d7c-caf01e0ba61e', 'ip_version': 4, 'cidr': '81.186.142.128/26', 'allocation_pools': [{'start': '81.186.142.130', 'end': '81.186.142.190'}], 'gateway_ip': '81.186.142.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '81.186.142.130', 'tags': [], 'project_id': 'fd8641a44790400f91a7845c2924585f'}} 2025-11-24 02:02:05,411 - INFO - Created VN ctest-vn-81429350 2025-11-24 02:02:05,461 - DEBUG - VN ctest-vn-81429350 UUID is 7f4c3b7a-8577-4f51-8d7c-caf01e0ba61e 2025-11-24 02:02:05,757 - DEBUG - Response for create_network : {'network': {'id': '56045112-21fc-4aed-b7f8-ed628171c7b8', 'name': 'ctest-vn-71152872', 'tenant_id': 'fd8641a44790400f91a7845c2924585f', 'project_id': 'fd8641a44790400f91a7845c2924585f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-44229958', 'ctest-vn-71152872'], 'port_security_enabled': True, 'description': ''}} 2025-11-24 02:02:05,990 - DEBUG - Response for create_subnet : {'subnet': {'id': '7f9801b5-b932-4f95-8722-a3fe5ae87c88', 'name': '', 'tenant_id': 'fd8641a44790400f91a7845c2924585f', 'network_id': '56045112-21fc-4aed-b7f8-ed628171c7b8', 'ip_version': 4, 'cidr': '129.33.98.64/26', 'allocation_pools': [{'start': '129.33.98.66', 'end': '129.33.98.126'}], 'gateway_ip': '129.33.98.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '129.33.98.66', 'tags': [], 'project_id': 'fd8641a44790400f91a7845c2924585f'}} 2025-11-24 02:02:06,010 - INFO - Created VN ctest-vn-71152872 2025-11-24 02:02:06,065 - DEBUG - VN ctest-vn-71152872 UUID is 56045112-21fc-4aed-b7f8-ed628171c7b8 2025-11-24 02:02:06,221 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-44229958:ctest-vn-81429350, 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-44229958:ctest-vn-71152872, 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-24 02:02:06,531 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '7f4c3b7a-8577-4f51-8d7c-caf01e0ba61e', 'name': 'ctest-vn-81429350', 'tenant_id': 'fd8641a44790400f91a7845c2924585f', 'project_id': 'fd8641a44790400f91a7845c2924585f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['8b0270a3-580a-4306-acd5-4503eb48c81b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-44229958', 'ctest-vn-81429350'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-44229958', 'ctest-policy-allow-all-50544177']], 'subnet_ipam': [{'subnet_cidr': '81.186.142.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-11-24 02:02:06,774 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '56045112-21fc-4aed-b7f8-ed628171c7b8', 'name': 'ctest-vn-71152872', 'tenant_id': 'fd8641a44790400f91a7845c2924585f', 'project_id': 'fd8641a44790400f91a7845c2924585f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['7f9801b5-b932-4f95-8722-a3fe5ae87c88'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-44229958', 'ctest-vn-71152872'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-44229958', 'ctest-policy-allow-all-50544177']], 'subnet_ipam': [{'subnet_cidr': '129.33.98.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-11-24 02:02:06,945 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2025-11-24 02:02:07,288 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2025-11-24 02:02:07,319 - DEBUG - Requesting: http://10.0.0.242:8082/domain/3d516aa3-00e7-47eb-957a-294b4c298a57 2025-11-24 02:02:07,332 - DEBUG - Requesting: http://10.0.0.242:8082/project/fd8641a4-4790-400f-91a7-845c2924585f 2025-11-24 02:02:07,410 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/7f4c3b7a-8577-4f51-8d7c-caf01e0ba61e 2025-11-24 02:02:07,421 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/7f4c3b7a-8577-4f51-8d7c-caf01e0ba61e 2025-11-24 02:02:07,429 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/745b042a-4b93-4588-89a2-40b7687e1959 2025-11-24 02:02:07,435 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/745b042a-4b93-4588-89a2-40b7687e1959 2025-11-24 02:02:07,442 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/ee93ed40-8b6b-4df0-a69f-395a90a22dcd 2025-11-24 02:02:07,448 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-24 02:02:07,448 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/7f4c3b7a-8577-4f51-8d7c-caf01e0ba61e 2025-11-24 02:02:07,457 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/745b042a-4b93-4588-89a2-40b7687e1959 2025-11-24 02:02:07,472 - INFO - Verified VN network id 11 for VN 7f4c3b7a-8577-4f51-8d7c-caf01e0ba61e 2025-11-24 02:02:07,472 - INFO - Verifications in API Server for VN ctest-vn-81429350 passed 2025-11-24 02:02:07,473 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/7f4c3b7a-8577-4f51-8d7c-caf01e0ba61e 2025-11-24 02:02:07,484 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/745b042a-4b93-4588-89a2-40b7687e1959 2025-11-24 02:02:07,491 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/745b042a-4b93-4588-89a2-40b7687e1959 2025-11-24 02:02:07,498 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/ee93ed40-8b6b-4df0-a69f-395a90a22dcd 2025-11-24 02:02:07,511 - DEBUG - Control-node 10.0.0.242 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-44229958:ctest-vn-81429350', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-44229958', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9172771938458095441', 'uuid-lslong': '10195246789105002014'}, 'enable': 'true', 'created': '2025-11-24T02:02:05', 'last-modified': '2025-11-24T02:02:06', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.002180'} 2025-11-24 02:02:07,517 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-24 02:02:07,517 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-81429350 passed 2025-11-24 02:02:07,518 - DEBUG - ====Verifying policy data for ctest-vn-81429350 in API_Server ====== 2025-11-24 02:02:07,518 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2025-11-24 02:02:07,523 - DEBUG - Requesting: http://10.0.0.242:8082/domain/3d516aa3-00e7-47eb-957a-294b4c298a57 2025-11-24 02:02:07,533 - DEBUG - Requesting: http://10.0.0.242:8082/project/fd8641a4-4790-400f-91a7-845c2924585f 2025-11-24 02:02:07,614 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/7f4c3b7a-8577-4f51-8d7c-caf01e0ba61e 2025-11-24 02:02:07,624 - DEBUG - ==>Verifying data for policy with id: c22765b0-0ba7-4fdb-8f96-818df7e53298, fqn: ['default-domain', 'ctest-TestBasicPolicy-44229958', 'ctest-policy-allow-all-50544177'] 2025-11-24 02:02:07,624 - INFO - VN ctest-vn-81429350 Policy verification: verify_vn_policy_in_api_server, status: True 2025-11-24 02:02:07,624 - DEBUG - Verifying the vn in opserver 2025-11-24 02:02:07,624 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-44229958:ctest-vn-81429350 virtual network link through opserver 10.0.0.242 2025-11-24 02:02:07,624 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks 2025-11-24 02:02:07,957 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks 2025-11-24 02:02:08,021 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-44229958:ctest-vn-81429350', 'href': 'http://10.0.0.242:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-44229958:ctest-vn-81429350?flat'} 2025-11-24 02:02:08,022 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-44229958:ctest-vn-81429350 is found in opserver 2025-11-24 02:02:08,031 - DEBUG - Do not have enough data to verify VN in agent 2025-11-24 02:02:08,036 - DEBUG - VRF ids for VN ctest-vn-81429350: {} 2025-11-24 02:02:08,036 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2025-11-24 02:02:08,043 - DEBUG - Requesting: http://10.0.0.242:8082/domain/3d516aa3-00e7-47eb-957a-294b4c298a57 2025-11-24 02:02:08,056 - DEBUG - Requesting: http://10.0.0.242:8082/project/fd8641a4-4790-400f-91a7-845c2924585f 2025-11-24 02:02:08,127 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/56045112-21fc-4aed-b7f8-ed628171c7b8 2025-11-24 02:02:08,139 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/56045112-21fc-4aed-b7f8-ed628171c7b8 2025-11-24 02:02:08,148 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/486a4b33-f5f1-4abc-9a01-681d1235fd76 2025-11-24 02:02:08,156 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/486a4b33-f5f1-4abc-9a01-681d1235fd76 2025-11-24 02:02:08,163 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/334098e8-f98c-48f7-96b0-ff3a4dcb4af4 2025-11-24 02:02:08,172 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-11-24 02:02:08,172 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/56045112-21fc-4aed-b7f8-ed628171c7b8 2025-11-24 02:02:08,181 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/486a4b33-f5f1-4abc-9a01-681d1235fd76 2025-11-24 02:02:08,195 - INFO - Verified VN network id 12 for VN 56045112-21fc-4aed-b7f8-ed628171c7b8 2025-11-24 02:02:08,195 - INFO - Verifications in API Server for VN ctest-vn-71152872 passed 2025-11-24 02:02:08,196 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/56045112-21fc-4aed-b7f8-ed628171c7b8 2025-11-24 02:02:08,205 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/486a4b33-f5f1-4abc-9a01-681d1235fd76 2025-11-24 02:02:08,212 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/486a4b33-f5f1-4abc-9a01-681d1235fd76 2025-11-24 02:02:08,220 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/334098e8-f98c-48f7-96b0-ff3a4dcb4af4 2025-11-24 02:02:08,233 - DEBUG - Control-node 10.0.0.242 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-44229958:ctest-vn-71152872', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-44229958', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6198168125490088685', 'uuid-lslong': '13256606510499350456'}, 'enable': 'true', 'created': '2025-11-24T02:02:05', 'last-modified': '2025-11-24T02:02:06', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.476797'} 2025-11-24 02:02:08,239 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-11-24 02:02:08,240 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-71152872 passed 2025-11-24 02:02:08,240 - DEBUG - ====Verifying policy data for ctest-vn-71152872 in API_Server ====== 2025-11-24 02:02:08,240 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2025-11-24 02:02:08,246 - DEBUG - Requesting: http://10.0.0.242:8082/domain/3d516aa3-00e7-47eb-957a-294b4c298a57 2025-11-24 02:02:08,258 - DEBUG - Requesting: http://10.0.0.242:8082/project/fd8641a4-4790-400f-91a7-845c2924585f 2025-11-24 02:02:08,336 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/56045112-21fc-4aed-b7f8-ed628171c7b8 2025-11-24 02:02:08,346 - DEBUG - ==>Verifying data for policy with id: c22765b0-0ba7-4fdb-8f96-818df7e53298, fqn: ['default-domain', 'ctest-TestBasicPolicy-44229958', 'ctest-policy-allow-all-50544177'] 2025-11-24 02:02:08,346 - INFO - VN ctest-vn-71152872 Policy verification: verify_vn_policy_in_api_server, status: True 2025-11-24 02:02:08,346 - DEBUG - Verifying the vn in opserver 2025-11-24 02:02:08,346 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-44229958:ctest-vn-71152872 virtual network link through opserver 10.0.0.242 2025-11-24 02:02:08,346 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks 2025-11-24 02:02:08,356 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-44229958:ctest-vn-71152872', 'href': 'http://10.0.0.242:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-44229958:ctest-vn-71152872?flat'} 2025-11-24 02:02:08,356 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-44229958:ctest-vn-71152872 is found in opserver 2025-11-24 02:02:08,365 - DEBUG - Do not have enough data to verify VN in agent 2025-11-24 02:02:08,370 - DEBUG - VRF ids for VN ctest-vn-71152872: {} 2025-11-24 02:02:08,430 - DEBUG - Services list from nova: [, , ] 2025-11-24 02:02:09,540 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-4800-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-4800-1) 2025-11-24 02:02:10,810 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-4800-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-4800-1) 2025-11-24 02:02:10,810 - INFO - Waiting for VM ctest-TestBasicPolicy-44229958-45685815 to be up.. 2025-11-24 02:02:10,898 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-11-24 02:02:15,978 - DEBUG - VM is in ACTIVE state now 2025-11-24 02:02:15,979 - INFO - VM name : ctest-TestBasicPolicy-44229958-45685815 2025-11-24 02:02:16,072 - DEBUG - VM ctest-TestBasicPolicy-44229958-45685815 ID is 3f02fc59-d456-4bb9-a5c1-7242803b93bc 2025-11-24 02:02:16,095 - DEBUG - VM ctest-TestBasicPolicy-44229958-45685815 launched on Node cn-jenkins-deploy-platform-ansible-os-4800-1 2025-11-24 02:02:16,177 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-machine/3f02fc59-d456-4bb9-a5c1-7242803b93bc 2025-11-24 02:02:16,186 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-machine-interface/7b41edab-723e-4c41-92b4-8b8181bdc965 2025-11-24 02:02:19,427 - 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 1010ms') 2025-11-24 02:02:19,427 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-44229958-45685815 failed! 2025-11-24 02:02:19,481 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-44229958:ctest-vn-81429350 is 81.186.142.129 and allocation pool is NOT set 2025-11-24 02:02:21,540 - 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=7.52 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.416 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 = 0.416/3.969/7.522/3.553 ms') 2025-11-24 02:02:21,540 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-44229958-45685815 passed 2025-11-24 02:02:21,689 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-11-24 02:02:21,689 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-44229958-45685815, IP 81.186.142.131, Port 22 2025-11-24 02:02:21,845 - DEBUG - VM ctest-TestBasicPolicy-44229958-45685815 is ready for SSH connections 2025-11-24 02:02:21,845 - INFO - Waiting for VM ctest-TestBasicPolicy-44229958-70230637 to be up.. 2025-11-24 02:02:21,923 - DEBUG - VM is in ACTIVE state now 2025-11-24 02:02:21,923 - INFO - VM name : ctest-TestBasicPolicy-44229958-70230637 2025-11-24 02:02:21,993 - DEBUG - VM ctest-TestBasicPolicy-44229958-70230637 ID is ba95eed7-bf02-443c-b8df-38942df2fa58 2025-11-24 02:02:21,993 - DEBUG - VM ctest-TestBasicPolicy-44229958-70230637 launched on Node cn-jenkins-deploy-platform-ansible-os-4800-1 2025-11-24 02:02:22,066 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-machine/ba95eed7-bf02-443c-b8df-38942df2fa58 2025-11-24 02:02:22,074 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-machine-interface/82161772-a506-4e27-866f-b3cdba356649 2025-11-24 02:02:23,317 - 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.25 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=1.41 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.412/2.829/4.247/1.417 ms') 2025-11-24 02:02:23,317 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-44229958-70230637 passed 2025-11-24 02:02:23,470 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-11-24 02:02:23,470 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-44229958-70230637, IP 129.33.98.67, Port 22 2025-11-24 02:02:23,535 - 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-24 02:02:23,604 - DEBUG - VM ctest-TestBasicPolicy-44229958-70230637 is NOT ready for SSH connections, VM status: ACTIVE 2025-11-24 02:02:28,605 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-11-24 02:02:28,605 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-44229958-70230637, IP 129.33.98.67, Port 22 2025-11-24 02:02:28,771 - DEBUG - VM ctest-TestBasicPolicy-44229958-70230637 is ready for SSH connections 2025-11-24 02:02:28,771 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-11-24 02:02:28,772 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 129.33.98.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.242, gateway password: c0ntrail123 2025-11-24 02:02:28,772 - DEBUG - ping -s 56 -c 3 -W 1 129.33.98.67 2025-11-24 02:02:32,876 - DEBUG - PING 129.33.98.67 (129.33.98.67): 56 data bytes 64 bytes from 129.33.98.67: seq=0 ttl=63 time=4.194 ms 64 bytes from 129.33.98.67: seq=1 ttl=63 time=0.987 ms 64 bytes from 129.33.98.67: seq=2 ttl=63 time=0.922 ms --- 129.33.98.67 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.922/2.034/4.194 ms 2025-11-24 02:02:32,876 - INFO - Ping to IP 129.33.98.67 from VM ctest-TestBasicPolicy-44229958-45685815 passed 2025-11-24 02:02:33,053 - DEBUG - Policy Update Response {"network-policy": {"uuid": "c22765b0-0ba7-4fdb-8f96-818df7e53298", "href": "http://10.0.0.242:8082/network-policy/c22765b0-0ba7-4fdb-8f96-818df7e53298"}} 2025-11-24 02:02:33,054 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-11-24 02:02:33,054 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 129.33.98.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.242, gateway password: c0ntrail123 2025-11-24 02:02:33,054 - DEBUG - ping -s 56 -c 3 -W 1 129.33.98.67 2025-11-24 02:02:36,313 - DEBUG - PING 129.33.98.67 (129.33.98.67): 56 data bytes --- 129.33.98.67 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2025-11-24 02:02:36,313 - WARNING - Ping to IP 129.33.98.67 from VM ctest-TestBasicPolicy-44229958-45685815 failed 2025-11-24 02:02:36,313 - INFO - Deleting VM ctest-TestBasicPolicy-44229958-70230637 2025-11-24 02:02:36,390 - INFO - Deleting VM ctest-TestBasicPolicy-44229958-45685815 2025-11-24 02:02:36,828 - INFO - Deleted policy ctest-policy-allow-all-50544177 2025-11-24 02:02:36,828 - INFO - Deleting VN ctest-vn-71152872 2025-11-24 02:02:36,871 - DEBUG - VN 56045112-21fc-4aed-b7f8-ed628171c7b8 still in use: Unable to complete operation on network 56045112-21fc-4aed-b7f8-ed628171c7b8. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-8d38e84d-a158-4e17-b4bd-1ea29919a92e'] 2025-11-24 02:02:36,871 - WARNING - Deleting VN ctest-vn-71152872 failed..Will retry 2025-11-24 02:02:38,986 - DEBUG - Response for deleting network () 2025-11-24 02:02:38,986 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/486a4b33-f5f1-4abc-9a01-681d1235fd76 2025-11-24 02:02:38,992 - DEBUG - Response Code: 404 2025-11-24 02:02:38,992 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2025-11-24 02:02:39,004 - DEBUG - Requesting: http://10.0.0.242:8082/domain/3d516aa3-00e7-47eb-957a-294b4c298a57 2025-11-24 02:02:39,060 - DEBUG - Requesting: http://10.0.0.242:8082/project/fd8641a4-4790-400f-91a7-845c2924585f 2025-11-24 02:02:39,133 - INFO - Validated that VN ctest-vn-71152872 is not found in API Server 2025-11-24 02:02:39,142 - DEBUG - VN ctest-vn-71152872 is not present in Agent 10.0.0.242 2025-11-24 02:02:39,142 - INFO - Validated that VN ctest-vn-71152872 is not in any agent 2025-11-24 02:02:39,157 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-71152872 info 2025-11-24 02:02:39,157 - INFO - Deleting VN ctest-vn-81429350 2025-11-24 02:02:39,271 - DEBUG - Response for deleting network () 2025-11-24 02:02:39,271 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/745b042a-4b93-4588-89a2-40b7687e1959 2025-11-24 02:02:39,276 - DEBUG - Response Code: 404 2025-11-24 02:02:39,276 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2025-11-24 02:02:39,282 - DEBUG - Requesting: http://10.0.0.242:8082/domain/3d516aa3-00e7-47eb-957a-294b4c298a57 2025-11-24 02:02:39,334 - DEBUG - Requesting: http://10.0.0.242:8082/project/fd8641a4-4790-400f-91a7-845c2924585f 2025-11-24 02:02:39,405 - INFO - Validated that VN ctest-vn-81429350 is not found in API Server 2025-11-24 02:02:39,415 - DEBUG - VN ctest-vn-81429350 is not present in Agent 10.0.0.242 2025-11-24 02:02:39,415 - INFO - Validated that VN ctest-vn-81429350 is not in any agent 2025-11-24 02:02:39,431 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-81429350 info 2025-11-24 02:02:39,687 - DEBUG - No XMPP flaps were noticed during the test 2025-11-24 02:02:39,687 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:35] 2025-11-24 02:02:39,687 - INFO - -------------------------------------------------------------------------------- 2025-11-24 02:02:40,399 - INFO - Deleted project: ctest-TestBasicPolicy-44229958, ID : fd8641a4-4790-400f-91a7-845c2924585f