2025-10-23 19:06:06,061 - INFO - Domain Default found not creating 2025-10-23 19:06:06,216 - INFO - Project ctest-TestBasicPolicy-32601505 not found, creating it 2025-10-23 19:06:06,716 - INFO - Created Project:ctest-TestBasicPolicy-32601505, ID : a2d2642a-d2db-4275-b71e-96a22ef8ac20 2025-10-23 19:06:08,233 - INFO - ================================================================================ 2025-10-23 19:06:08,233 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-10-23 19:06:08,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-10-23 19:06:08,487 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.254': '0'}} with 2025-10-23 19:06:08,487 - INFO - Initial checks done. Running the testcase now 2025-10-23 19:06:08,487 - INFO - 2025-10-23 19:06:09,032 - DEBUG - Response for create_network : {'network': {'id': '3dca394d-5e2b-4349-947b-98cbb5199e0a', 'name': 'ctest-vn-26891912', 'tenant_id': 'a2d2642ad2db4275b71e96a22ef8ac20', 'project_id': 'a2d2642ad2db4275b71e96a22ef8ac20', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-32601505', 'ctest-vn-26891912'], 'port_security_enabled': True, 'description': ''}} 2025-10-23 19:06:09,234 - DEBUG - Response for create_subnet : {'subnet': {'id': '876b2605-70dd-43c8-9872-a29d87bb7cc9', 'name': '', 'tenant_id': 'a2d2642ad2db4275b71e96a22ef8ac20', 'network_id': '3dca394d-5e2b-4349-947b-98cbb5199e0a', 'ip_version': 4, 'cidr': '26.100.95.0/26', 'allocation_pools': [{'start': '26.100.95.2', 'end': '26.100.95.62'}], 'gateway_ip': '26.100.95.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '26.100.95.2', 'tags': [], 'project_id': 'a2d2642ad2db4275b71e96a22ef8ac20'}} 2025-10-23 19:06:09,257 - INFO - Created VN ctest-vn-26891912 2025-10-23 19:06:09,310 - DEBUG - VN ctest-vn-26891912 UUID is 3dca394d-5e2b-4349-947b-98cbb5199e0a 2025-10-23 19:06:09,600 - DEBUG - Response for create_network : {'network': {'id': '1d24f358-463f-41f0-b009-be46c92462e3', 'name': 'ctest-vn-25036925', 'tenant_id': 'a2d2642ad2db4275b71e96a22ef8ac20', 'project_id': 'a2d2642ad2db4275b71e96a22ef8ac20', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-32601505', 'ctest-vn-25036925'], 'port_security_enabled': True, 'description': ''}} 2025-10-23 19:06:09,766 - DEBUG - Response for create_subnet : {'subnet': {'id': '1f511b99-a47b-40bb-a7ca-345e303963cc', 'name': '', 'tenant_id': 'a2d2642ad2db4275b71e96a22ef8ac20', 'network_id': '1d24f358-463f-41f0-b009-be46c92462e3', 'ip_version': 4, 'cidr': '18.75.24.0/26', 'allocation_pools': [{'start': '18.75.24.2', 'end': '18.75.24.62'}], 'gateway_ip': '18.75.24.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '18.75.24.2', 'tags': [], 'project_id': 'a2d2642ad2db4275b71e96a22ef8ac20'}} 2025-10-23 19:06:09,783 - INFO - Created VN ctest-vn-25036925 2025-10-23 19:06:09,834 - DEBUG - VN ctest-vn-25036925 UUID is 1d24f358-463f-41f0-b009-be46c92462e3 2025-10-23 19:06:09,947 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-32601505:ctest-vn-26891912, 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-32601505:ctest-vn-25036925, security_group = None, network_policy = None, subnet_list = []], dst_ports = [start_port = -1, end_port = -1], action_list = simple_action = pass, gateway_name = None, apply_service = [], service_properties = None, mirror_to = None, assign_routing_instance = None, log = False, alert = False, qos_action = None, host_based_service = False, ethertype = None, created = None, last_modified = None, description = None] 2025-10-23 19:06:10,230 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '3dca394d-5e2b-4349-947b-98cbb5199e0a', 'name': 'ctest-vn-26891912', 'tenant_id': 'a2d2642ad2db4275b71e96a22ef8ac20', 'project_id': 'a2d2642ad2db4275b71e96a22ef8ac20', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['876b2605-70dd-43c8-9872-a29d87bb7cc9'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-32601505', 'ctest-vn-26891912'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-32601505', 'ctest-policy-allow-all-52382539']], 'subnet_ipam': [{'subnet_cidr': '26.100.95.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-10-23 19:06:10,504 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '1d24f358-463f-41f0-b009-be46c92462e3', 'name': 'ctest-vn-25036925', 'tenant_id': 'a2d2642ad2db4275b71e96a22ef8ac20', 'project_id': 'a2d2642ad2db4275b71e96a22ef8ac20', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['1f511b99-a47b-40bb-a7ca-345e303963cc'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-32601505', 'ctest-vn-25036925'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-32601505', 'ctest-policy-allow-all-52382539']], 'subnet_ipam': [{'subnet_cidr': '18.75.24.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-10-23 19:06:10,654 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-10-23 19:06:10,954 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-10-23 19:06:10,988 - DEBUG - Requesting: http://10.0.0.254:8082/domain/e294bc14-004b-4d5c-99dd-b4f57c297166 2025-10-23 19:06:10,999 - DEBUG - Requesting: http://10.0.0.254:8082/project/a2d2642a-d2db-4275-b71e-96a22ef8ac20 2025-10-23 19:06:11,074 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/3dca394d-5e2b-4349-947b-98cbb5199e0a 2025-10-23 19:06:11,086 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/3dca394d-5e2b-4349-947b-98cbb5199e0a 2025-10-23 19:06:11,097 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/f9af340f-74cb-4555-ba64-7777905eef12 2025-10-23 19:06:11,104 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/f9af340f-74cb-4555-ba64-7777905eef12 2025-10-23 19:06:11,112 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/04e0ac5e-087f-4388-91dc-dcd4e85ea1db 2025-10-23 19:06:11,118 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-23 19:06:11,119 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/3dca394d-5e2b-4349-947b-98cbb5199e0a 2025-10-23 19:06:11,129 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/f9af340f-74cb-4555-ba64-7777905eef12 2025-10-23 19:06:11,146 - INFO - Verified VN network id 11 for VN 3dca394d-5e2b-4349-947b-98cbb5199e0a 2025-10-23 19:06:11,146 - INFO - Verifications in API Server for VN ctest-vn-26891912 passed 2025-10-23 19:06:11,146 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/3dca394d-5e2b-4349-947b-98cbb5199e0a 2025-10-23 19:06:11,156 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/f9af340f-74cb-4555-ba64-7777905eef12 2025-10-23 19:06:11,164 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/f9af340f-74cb-4555-ba64-7777905eef12 2025-10-23 19:06:11,172 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/04e0ac5e-087f-4388-91dc-dcd4e85ea1db 2025-10-23 19:06:11,184 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-32601505:ctest-vn-26891912', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-32601505', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4452434186064315209', 'uuid-lslong': '10699313340432883210'}, 'enable': 'true', 'created': '2025-10-23T19:06:09', 'last-modified': '2025-10-23T19:06:10', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.971759'} 2025-10-23 19:06:11,190 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-23 19:06:11,190 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-26891912 passed 2025-10-23 19:06:11,190 - DEBUG - ====Verifying policy data for ctest-vn-26891912 in API_Server ====== 2025-10-23 19:06:11,190 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-10-23 19:06:11,195 - DEBUG - Requesting: http://10.0.0.254:8082/domain/e294bc14-004b-4d5c-99dd-b4f57c297166 2025-10-23 19:06:11,206 - DEBUG - Requesting: http://10.0.0.254:8082/project/a2d2642a-d2db-4275-b71e-96a22ef8ac20 2025-10-23 19:06:11,276 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/3dca394d-5e2b-4349-947b-98cbb5199e0a 2025-10-23 19:06:11,285 - DEBUG - ==>Verifying data for policy with id: 6b26a1f5-1889-4bd5-898e-5c030dfecdf8, fqn: ['default-domain', 'ctest-TestBasicPolicy-32601505', 'ctest-policy-allow-all-52382539'] 2025-10-23 19:06:11,285 - INFO - VN ctest-vn-26891912 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-23 19:06:11,285 - DEBUG - Verifying the vn in opserver 2025-10-23 19:06:11,286 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-32601505:ctest-vn-26891912 virtual network link through opserver 10.0.0.254 2025-10-23 19:06:11,286 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-10-23 19:06:11,580 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-10-23 19:06:11,635 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-32601505:ctest-vn-26891912', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-32601505:ctest-vn-26891912?flat'} 2025-10-23 19:06:11,635 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-32601505:ctest-vn-26891912 is found in opserver 2025-10-23 19:06:11,645 - DEBUG - Do not have enough data to verify VN in agent 2025-10-23 19:06:11,649 - DEBUG - VRF ids for VN ctest-vn-26891912: {} 2025-10-23 19:06:11,649 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-10-23 19:06:11,655 - DEBUG - Requesting: http://10.0.0.254:8082/domain/e294bc14-004b-4d5c-99dd-b4f57c297166 2025-10-23 19:06:11,665 - DEBUG - Requesting: http://10.0.0.254:8082/project/a2d2642a-d2db-4275-b71e-96a22ef8ac20 2025-10-23 19:06:11,744 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/1d24f358-463f-41f0-b009-be46c92462e3 2025-10-23 19:06:11,758 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/1d24f358-463f-41f0-b009-be46c92462e3 2025-10-23 19:06:11,767 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/f2bc12c1-2878-4141-b084-cc394e319595 2025-10-23 19:06:11,774 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/f2bc12c1-2878-4141-b084-cc394e319595 2025-10-23 19:06:11,781 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/caf85fa7-1b04-456b-8be8-6af4edc8bd25 2025-10-23 19:06:11,789 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-10-23 19:06:11,789 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/1d24f358-463f-41f0-b009-be46c92462e3 2025-10-23 19:06:11,798 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/f2bc12c1-2878-4141-b084-cc394e319595 2025-10-23 19:06:11,813 - INFO - Verified VN network id 12 for VN 1d24f358-463f-41f0-b009-be46c92462e3 2025-10-23 19:06:11,813 - INFO - Verifications in API Server for VN ctest-vn-25036925 passed 2025-10-23 19:06:11,813 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/1d24f358-463f-41f0-b009-be46c92462e3 2025-10-23 19:06:11,823 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/f2bc12c1-2878-4141-b084-cc394e319595 2025-10-23 19:06:11,831 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/f2bc12c1-2878-4141-b084-cc394e319595 2025-10-23 19:06:11,840 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/caf85fa7-1b04-456b-8be8-6af4edc8bd25 2025-10-23 19:06:11,852 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-32601505:ctest-vn-25036925', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-32601505', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2100070886722716144', 'uuid-lslong': '12684879036697305827'}, 'enable': 'true', 'created': '2025-10-23T19:06:09', 'last-modified': '2025-10-23T19:06:10', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.411677'} 2025-10-23 19:06:11,858 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-10-23 19:06:11,858 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-25036925 passed 2025-10-23 19:06:11,858 - DEBUG - ====Verifying policy data for ctest-vn-25036925 in API_Server ====== 2025-10-23 19:06:11,859 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-10-23 19:06:11,864 - DEBUG - Requesting: http://10.0.0.254:8082/domain/e294bc14-004b-4d5c-99dd-b4f57c297166 2025-10-23 19:06:11,875 - DEBUG - Requesting: http://10.0.0.254:8082/project/a2d2642a-d2db-4275-b71e-96a22ef8ac20 2025-10-23 19:06:11,947 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/1d24f358-463f-41f0-b009-be46c92462e3 2025-10-23 19:06:11,956 - DEBUG - ==>Verifying data for policy with id: 6b26a1f5-1889-4bd5-898e-5c030dfecdf8, fqn: ['default-domain', 'ctest-TestBasicPolicy-32601505', 'ctest-policy-allow-all-52382539'] 2025-10-23 19:06:11,956 - INFO - VN ctest-vn-25036925 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-23 19:06:11,956 - DEBUG - Verifying the vn in opserver 2025-10-23 19:06:11,956 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-32601505:ctest-vn-25036925 virtual network link through opserver 10.0.0.254 2025-10-23 19:06:11,956 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-10-23 19:06:11,966 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-32601505:ctest-vn-25036925', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-32601505:ctest-vn-25036925?flat'} 2025-10-23 19:06:11,966 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-32601505:ctest-vn-25036925 is found in opserver 2025-10-23 19:06:11,976 - DEBUG - Do not have enough data to verify VN in agent 2025-10-23 19:06:11,980 - DEBUG - VRF ids for VN ctest-vn-25036925: {} 2025-10-23 19:06:12,044 - DEBUG - Services list from nova: [, , ] 2025-10-23 19:06:13,139 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-4465-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-4465-1) 2025-10-23 19:06:14,325 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-4465-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-4465-1) 2025-10-23 19:06:14,325 - INFO - Waiting for VM ctest-TestBasicPolicy-32601505-39897718 to be up.. 2025-10-23 19:06:14,415 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-10-23 19:06:19,499 - DEBUG - VM is in ACTIVE state now 2025-10-23 19:06:19,499 - INFO - VM name : ctest-TestBasicPolicy-32601505-39897718 2025-10-23 19:06:19,577 - DEBUG - VM ctest-TestBasicPolicy-32601505-39897718 ID is deed5167-2a25-4c62-9608-23033899c602 2025-10-23 19:06:19,597 - DEBUG - VM ctest-TestBasicPolicy-32601505-39897718 launched on Node cn-jenkins-deploy-platform-ansible-os-4465-1 2025-10-23 19:06:19,671 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine/deed5167-2a25-4c62-9608-23033899c602 2025-10-23 19:06:19,680 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine-interface/820c967b-3668-491f-aef0-c72bcc8c091f 2025-10-23 19:06:22,929 - 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 1014ms') 2025-10-23 19:06:22,930 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-32601505-39897718 failed! 2025-10-23 19:06:22,986 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-32601505:ctest-vn-26891912 is 26.100.95.1 and allocation pool is NOT set 2025-10-23 19:06:25,052 - 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.43 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=1.59 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1002ms\r\nrtt min/avg/max/mdev = 1.588/5.507/9.426/3.919 ms') 2025-10-23 19:06:25,053 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-32601505-39897718 passed 2025-10-23 19:06:25,202 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-23 19:06:25,202 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-32601505-39897718, IP 26.100.95.3, Port 22 2025-10-23 19:06:25,368 - DEBUG - VM ctest-TestBasicPolicy-32601505-39897718 is ready for SSH connections 2025-10-23 19:06:25,368 - INFO - Waiting for VM ctest-TestBasicPolicy-32601505-61060495 to be up.. 2025-10-23 19:06:25,449 - DEBUG - VM is in ACTIVE state now 2025-10-23 19:06:25,449 - INFO - VM name : ctest-TestBasicPolicy-32601505-61060495 2025-10-23 19:06:25,533 - DEBUG - VM ctest-TestBasicPolicy-32601505-61060495 ID is de777561-2c85-4b15-b218-357be3aa1fa1 2025-10-23 19:06:25,533 - DEBUG - VM ctest-TestBasicPolicy-32601505-61060495 launched on Node cn-jenkins-deploy-platform-ansible-os-4465-1 2025-10-23 19:06:25,610 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine/de777561-2c85-4b15-b218-357be3aa1fa1 2025-10-23 19:06:25,619 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine-interface/13015c78-beea-4db2-84f6-a30a543f30b5 2025-10-23 19:06:26,858 - 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.04 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=2.53 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 = 2.532/3.785/5.038/1.253 ms') 2025-10-23 19:06:26,858 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-32601505-61060495 passed 2025-10-23 19:06:27,006 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-23 19:06:27,006 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-32601505-61060495, IP 18.75.24.3, Port 22 2025-10-23 19:06:27,072 - DEBUG - Error on ssh to cirros@169.254.0.4:22, result: /bin/bash: connect: Connection refused /bin/bash: line 1: /dev/tcp/169.254.0.4/22: Connection refused {'failed': True, 'command': '(echo > /dev/tcp/169.254.0.4/22)', 'real_command': '/bin/bash -l -c "(echo > /dev/tcp/169.254.0.4/22)"', 'return_code': 1, 'succeeded': False, 'stderr': ''} 2025-10-23 19:06:27,145 - DEBUG - VM ctest-TestBasicPolicy-32601505-61060495 is NOT ready for SSH connections, VM status: ACTIVE 2025-10-23 19:06:32,146 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-23 19:06:32,146 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-32601505-61060495, IP 18.75.24.3, Port 22 2025-10-23 19:06:32,301 - DEBUG - VM ctest-TestBasicPolicy-32601505-61060495 is ready for SSH connections 2025-10-23 19:06:32,301 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-23 19:06:32,301 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 18.75.24.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.254, gateway password: c0ntrail123 2025-10-23 19:06:32,301 - DEBUG - ping -s 56 -c 3 -W 1 18.75.24.3 2025-10-23 19:06:36,039 - DEBUG - PING 18.75.24.3 (18.75.24.3): 56 data bytes 64 bytes from 18.75.24.3: seq=0 ttl=63 time=4.289 ms 64 bytes from 18.75.24.3: seq=1 ttl=63 time=0.944 ms 64 bytes from 18.75.24.3: seq=2 ttl=63 time=1.026 ms --- 18.75.24.3 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.944/2.086/4.289 ms 2025-10-23 19:06:36,040 - INFO - Ping to IP 18.75.24.3 from VM ctest-TestBasicPolicy-32601505-39897718 passed 2025-10-23 19:06:36,209 - DEBUG - Policy Update Response {"network-policy": {"uuid": "6b26a1f5-1889-4bd5-898e-5c030dfecdf8", "href": "http://10.0.0.254:8082/network-policy/6b26a1f5-1889-4bd5-898e-5c030dfecdf8"}} 2025-10-23 19:06:36,209 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-23 19:06:36,210 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 18.75.24.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.254, gateway password: c0ntrail123 2025-10-23 19:06:36,210 - DEBUG - ping -s 56 -c 3 -W 1 18.75.24.3 2025-10-23 19:06:39,435 - DEBUG - PING 18.75.24.3 (18.75.24.3): 56 data bytes --- 18.75.24.3 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2025-10-23 19:06:39,435 - WARNING - Ping to IP 18.75.24.3 from VM ctest-TestBasicPolicy-32601505-39897718 failed 2025-10-23 19:06:39,435 - INFO - Deleting VM ctest-TestBasicPolicy-32601505-61060495 2025-10-23 19:06:39,512 - INFO - Deleting VM ctest-TestBasicPolicy-32601505-39897718 2025-10-23 19:06:39,924 - INFO - Deleted policy ctest-policy-allow-all-52382539 2025-10-23 19:06:39,924 - INFO - Deleting VN ctest-vn-25036925 2025-10-23 19:06:39,968 - DEBUG - VN 1d24f358-463f-41f0-b009-be46c92462e3 still in use: Unable to complete operation on network 1d24f358-463f-41f0-b009-be46c92462e3. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-9b4f1792-d8ee-4432-9a59-a1a651dd8545'] 2025-10-23 19:06:39,968 - WARNING - Deleting VN ctest-vn-25036925 failed..Will retry 2025-10-23 19:06:42,069 - DEBUG - Response for deleting network () 2025-10-23 19:06:42,070 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/f2bc12c1-2878-4141-b084-cc394e319595 2025-10-23 19:06:42,078 - DEBUG - Response Code: 404 2025-10-23 19:06:42,078 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-10-23 19:06:42,083 - DEBUG - Requesting: http://10.0.0.254:8082/domain/e294bc14-004b-4d5c-99dd-b4f57c297166 2025-10-23 19:06:42,138 - DEBUG - Requesting: http://10.0.0.254:8082/project/a2d2642a-d2db-4275-b71e-96a22ef8ac20 2025-10-23 19:06:42,207 - INFO - Validated that VN ctest-vn-25036925 is not found in API Server 2025-10-23 19:06:42,217 - DEBUG - VN ctest-vn-25036925 is not present in Agent 10.0.0.254 2025-10-23 19:06:42,217 - INFO - Validated that VN ctest-vn-25036925 is not in any agent 2025-10-23 19:06:42,230 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-25036925 info 2025-10-23 19:06:42,230 - INFO - Deleting VN ctest-vn-26891912 2025-10-23 19:06:42,332 - DEBUG - Response for deleting network () 2025-10-23 19:06:42,332 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/f9af340f-74cb-4555-ba64-7777905eef12 2025-10-23 19:06:42,337 - DEBUG - Response Code: 404 2025-10-23 19:06:42,337 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-10-23 19:06:42,343 - DEBUG - Requesting: http://10.0.0.254:8082/domain/e294bc14-004b-4d5c-99dd-b4f57c297166 2025-10-23 19:06:42,400 - DEBUG - Requesting: http://10.0.0.254:8082/project/a2d2642a-d2db-4275-b71e-96a22ef8ac20 2025-10-23 19:06:42,473 - INFO - Validated that VN ctest-vn-26891912 is not found in API Server 2025-10-23 19:06:42,481 - DEBUG - VN ctest-vn-26891912 is not present in Agent 10.0.0.254 2025-10-23 19:06:42,481 - INFO - Validated that VN ctest-vn-26891912 is not in any agent 2025-10-23 19:06:42,496 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-26891912 info 2025-10-23 19:06:42,753 - DEBUG - No XMPP flaps were noticed during the test
2025-10-23 19:06:42,753 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:34]
2025-10-23 19:06:42,753 - INFO - -------------------------------------------------------------------------------- 2025-10-23 19:06:43,427 - INFO - Deleted project: ctest-TestBasicPolicy-32601505, ID : a2d2642a-d2db-4275-b71e-96a22ef8ac20