2025-10-22 08:19:51,525 - INFO - Domain Default found not creating 2025-10-22 08:19:51,677 - INFO - Project ctest-TestBasicPolicy-73209495 not found, creating it 2025-10-22 08:19:52,134 - INFO - Created Project:ctest-TestBasicPolicy-73209495, ID : 9fe6356e-1413-41f7-b774-a546f172c5c2 2025-10-22 08:19:53,633 - INFO - ================================================================================ 2025-10-22 08:19:53,633 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-10-22 08:19:53,633 - 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-22 08:19:53,889 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.25': '0'}} with 2025-10-22 08:19:53,889 - INFO - Initial checks done. Running the testcase now 2025-10-22 08:19:53,889 - INFO - 2025-10-22 08:19:54,436 - DEBUG - Response for create_network : {'network': {'id': '3892cadd-80f2-4728-9013-dfeb30dfff8e', 'name': 'ctest-vn-17504419', 'tenant_id': '9fe6356e141341f7b774a546f172c5c2', 'project_id': '9fe6356e141341f7b774a546f172c5c2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-73209495', 'ctest-vn-17504419'], 'port_security_enabled': True, 'description': ''}} 2025-10-22 08:19:54,593 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b915419b-672c-4728-ba13-0b70ef956d44', 'name': '', 'tenant_id': '9fe6356e141341f7b774a546f172c5c2', 'network_id': '3892cadd-80f2-4728-9013-dfeb30dfff8e', 'ip_version': 4, 'cidr': '148.171.76.192/26', 'allocation_pools': [{'start': '148.171.76.194', 'end': '148.171.76.254'}], 'gateway_ip': '148.171.76.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '148.171.76.194', 'tags': [], 'project_id': '9fe6356e141341f7b774a546f172c5c2'}} 2025-10-22 08:19:54,613 - INFO - Created VN ctest-vn-17504419 2025-10-22 08:19:54,667 - DEBUG - VN ctest-vn-17504419 UUID is 3892cadd-80f2-4728-9013-dfeb30dfff8e 2025-10-22 08:19:54,949 - DEBUG - Response for create_network : {'network': {'id': 'd47a4d55-3eec-4d5e-8bb8-a6cd60f43ddb', 'name': 'ctest-vn-61046696', 'tenant_id': '9fe6356e141341f7b774a546f172c5c2', 'project_id': '9fe6356e141341f7b774a546f172c5c2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-73209495', 'ctest-vn-61046696'], 'port_security_enabled': True, 'description': ''}} 2025-10-22 08:19:55,167 - DEBUG - Response for create_subnet : {'subnet': {'id': '013a5591-0e20-404a-991a-f56b65a26cc1', 'name': '', 'tenant_id': '9fe6356e141341f7b774a546f172c5c2', 'network_id': 'd47a4d55-3eec-4d5e-8bb8-a6cd60f43ddb', 'ip_version': 4, 'cidr': '185.66.29.64/26', 'allocation_pools': [{'start': '185.66.29.66', 'end': '185.66.29.126'}], 'gateway_ip': '185.66.29.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '185.66.29.66', 'tags': [], 'project_id': '9fe6356e141341f7b774a546f172c5c2'}} 2025-10-22 08:19:55,183 - INFO - Created VN ctest-vn-61046696 2025-10-22 08:19:55,236 - DEBUG - VN ctest-vn-61046696 UUID is d47a4d55-3eec-4d5e-8bb8-a6cd60f43ddb 2025-10-22 08:19:55,391 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-73209495:ctest-vn-17504419, 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-73209495:ctest-vn-61046696, 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-22 08:19:55,688 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '3892cadd-80f2-4728-9013-dfeb30dfff8e', 'name': 'ctest-vn-17504419', 'tenant_id': '9fe6356e141341f7b774a546f172c5c2', 'project_id': '9fe6356e141341f7b774a546f172c5c2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b915419b-672c-4728-ba13-0b70ef956d44'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-73209495', 'ctest-vn-17504419'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-73209495', 'ctest-policy-allow-all-56907064']], 'subnet_ipam': [{'subnet_cidr': '148.171.76.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-10-22 08:19:55,909 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'd47a4d55-3eec-4d5e-8bb8-a6cd60f43ddb', 'name': 'ctest-vn-61046696', 'tenant_id': '9fe6356e141341f7b774a546f172c5c2', 'project_id': '9fe6356e141341f7b774a546f172c5c2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['013a5591-0e20-404a-991a-f56b65a26cc1'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-73209495', 'ctest-vn-61046696'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-73209495', 'ctest-policy-allow-all-56907064']], 'subnet_ipam': [{'subnet_cidr': '185.66.29.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-10-22 08:19:56,027 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-10-22 08:19:56,326 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-10-22 08:19:56,355 - DEBUG - Requesting: http://10.0.0.254:8082/domain/6b130d95-afea-4e1f-a530-123c9a77c62a 2025-10-22 08:19:56,366 - DEBUG - Requesting: http://10.0.0.254:8082/project/9fe6356e-1413-41f7-b774-a546f172c5c2 2025-10-22 08:19:56,439 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/3892cadd-80f2-4728-9013-dfeb30dfff8e 2025-10-22 08:19:56,450 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/3892cadd-80f2-4728-9013-dfeb30dfff8e 2025-10-22 08:19:56,460 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/d6f86504-d016-43a6-92e7-497718a21ccb 2025-10-22 08:19:56,469 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/d6f86504-d016-43a6-92e7-497718a21ccb 2025-10-22 08:19:56,476 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/da42e439-1850-426b-bc86-e495f5ce1956 2025-10-22 08:19:56,484 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-22 08:19:56,484 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/3892cadd-80f2-4728-9013-dfeb30dfff8e 2025-10-22 08:19:56,494 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/d6f86504-d016-43a6-92e7-497718a21ccb 2025-10-22 08:19:56,519 - INFO - Verified VN network id 11 for VN 3892cadd-80f2-4728-9013-dfeb30dfff8e 2025-10-22 08:19:56,519 - INFO - Verifications in API Server for VN ctest-vn-17504419 passed 2025-10-22 08:19:56,519 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/3892cadd-80f2-4728-9013-dfeb30dfff8e 2025-10-22 08:19:56,528 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/d6f86504-d016-43a6-92e7-497718a21ccb 2025-10-22 08:19:56,535 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/d6f86504-d016-43a6-92e7-497718a21ccb 2025-10-22 08:19:56,541 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/da42e439-1850-426b-bc86-e495f5ce1956 2025-10-22 08:19:56,554 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-73209495:ctest-vn-17504419', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-73209495', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4076543665423664936', 'uuid-lslong': '10381887767249420174'}, 'enable': 'true', 'created': '2025-10-22T08:19:54', 'last-modified': '2025-10-22T08:19:55', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.891442'} 2025-10-22 08:19:56,560 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-22 08:19:56,561 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-17504419 passed 2025-10-22 08:19:56,561 - DEBUG - ====Verifying policy data for ctest-vn-17504419 in API_Server ====== 2025-10-22 08:19:56,561 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-10-22 08:19:56,566 - DEBUG - Requesting: http://10.0.0.254:8082/domain/6b130d95-afea-4e1f-a530-123c9a77c62a 2025-10-22 08:19:56,577 - DEBUG - Requesting: http://10.0.0.254:8082/project/9fe6356e-1413-41f7-b774-a546f172c5c2 2025-10-22 08:19:56,647 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/3892cadd-80f2-4728-9013-dfeb30dfff8e 2025-10-22 08:19:56,655 - DEBUG - ==>Verifying data for policy with id: a399b864-6035-45b1-8080-0321d2347c83, fqn: ['default-domain', 'ctest-TestBasicPolicy-73209495', 'ctest-policy-allow-all-56907064'] 2025-10-22 08:19:56,655 - INFO - VN ctest-vn-17504419 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-22 08:19:56,655 - DEBUG - Verifying the vn in opserver 2025-10-22 08:19:56,655 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-73209495:ctest-vn-17504419 virtual network link through opserver 10.0.0.254 2025-10-22 08:19:56,655 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-10-22 08:19:56,950 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-10-22 08:19:57,006 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-73209495:ctest-vn-17504419', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-73209495:ctest-vn-17504419?flat'} 2025-10-22 08:19:57,006 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-73209495:ctest-vn-17504419 is found in opserver 2025-10-22 08:19:57,018 - DEBUG - Do not have enough data to verify VN in agent 2025-10-22 08:19:57,023 - DEBUG - VRF ids for VN ctest-vn-17504419: {} 2025-10-22 08:19:57,023 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-10-22 08:19:57,029 - DEBUG - Requesting: http://10.0.0.254:8082/domain/6b130d95-afea-4e1f-a530-123c9a77c62a 2025-10-22 08:19:57,040 - DEBUG - Requesting: http://10.0.0.254:8082/project/9fe6356e-1413-41f7-b774-a546f172c5c2 2025-10-22 08:19:57,110 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/d47a4d55-3eec-4d5e-8bb8-a6cd60f43ddb 2025-10-22 08:19:57,121 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/d47a4d55-3eec-4d5e-8bb8-a6cd60f43ddb 2025-10-22 08:19:57,130 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/2d38f9bd-48c4-4c0e-ab3b-09db1cfa8c92 2025-10-22 08:19:57,139 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/2d38f9bd-48c4-4c0e-ab3b-09db1cfa8c92 2025-10-22 08:19:57,149 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/cc308475-da14-4cb0-b34a-c1d788d57e49 2025-10-22 08:19:57,157 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-10-22 08:19:57,157 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/d47a4d55-3eec-4d5e-8bb8-a6cd60f43ddb 2025-10-22 08:19:57,166 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/2d38f9bd-48c4-4c0e-ab3b-09db1cfa8c92 2025-10-22 08:19:57,180 - INFO - Verified VN network id 12 for VN d47a4d55-3eec-4d5e-8bb8-a6cd60f43ddb 2025-10-22 08:19:57,180 - INFO - Verifications in API Server for VN ctest-vn-61046696 passed 2025-10-22 08:19:57,180 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/d47a4d55-3eec-4d5e-8bb8-a6cd60f43ddb 2025-10-22 08:19:57,189 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/2d38f9bd-48c4-4c0e-ab3b-09db1cfa8c92 2025-10-22 08:19:57,196 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/2d38f9bd-48c4-4c0e-ab3b-09db1cfa8c92 2025-10-22 08:19:57,203 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/cc308475-da14-4cb0-b34a-c1d788d57e49 2025-10-22 08:19:57,216 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-73209495:ctest-vn-61046696', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-73209495', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15310634911722655070', 'uuid-lslong': '10067980368011869659'}, 'enable': 'true', 'created': '2025-10-22T08:19:54', 'last-modified': '2025-10-22T08:19:55', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.328104'} 2025-10-22 08:19:57,222 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-10-22 08:19:57,222 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-61046696 passed 2025-10-22 08:19:57,222 - DEBUG - ====Verifying policy data for ctest-vn-61046696 in API_Server ====== 2025-10-22 08:19:57,222 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-10-22 08:19:57,227 - DEBUG - Requesting: http://10.0.0.254:8082/domain/6b130d95-afea-4e1f-a530-123c9a77c62a 2025-10-22 08:19:57,237 - DEBUG - Requesting: http://10.0.0.254:8082/project/9fe6356e-1413-41f7-b774-a546f172c5c2 2025-10-22 08:19:57,309 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/d47a4d55-3eec-4d5e-8bb8-a6cd60f43ddb 2025-10-22 08:19:57,318 - DEBUG - ==>Verifying data for policy with id: a399b864-6035-45b1-8080-0321d2347c83, fqn: ['default-domain', 'ctest-TestBasicPolicy-73209495', 'ctest-policy-allow-all-56907064'] 2025-10-22 08:19:57,318 - INFO - VN ctest-vn-61046696 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-22 08:19:57,318 - DEBUG - Verifying the vn in opserver 2025-10-22 08:19:57,318 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-73209495:ctest-vn-61046696 virtual network link through opserver 10.0.0.254 2025-10-22 08:19:57,318 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-10-22 08:19:57,327 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-73209495:ctest-vn-61046696', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-73209495:ctest-vn-61046696?flat'} 2025-10-22 08:19:57,327 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-73209495:ctest-vn-61046696 is found in opserver 2025-10-22 08:19:57,336 - DEBUG - Do not have enough data to verify VN in agent 2025-10-22 08:19:57,341 - DEBUG - VRF ids for VN ctest-vn-61046696: {} 2025-10-22 08:19:57,400 - DEBUG - Services list from nova: [, , ] 2025-10-22 08:19:58,393 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-4416-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-4416-1) 2025-10-22 08:19:59,599 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-4416-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-4416-1) 2025-10-22 08:19:59,599 - INFO - Waiting for VM ctest-TestBasicPolicy-73209495-94175984 to be up.. 2025-10-22 08:19:59,695 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-10-22 08:20:04,773 - DEBUG - VM is in ACTIVE state now 2025-10-22 08:20:04,774 - INFO - VM name : ctest-TestBasicPolicy-73209495-94175984 2025-10-22 08:20:04,860 - DEBUG - VM ctest-TestBasicPolicy-73209495-94175984 ID is fa05df79-829a-43b8-b331-2a0c0f7c6e84 2025-10-22 08:20:04,879 - DEBUG - VM ctest-TestBasicPolicy-73209495-94175984 launched on Node cn-jenkins-deploy-platform-ansible-os-4416-1 2025-10-22 08:20:04,957 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine/fa05df79-829a-43b8-b331-2a0c0f7c6e84 2025-10-22 08:20:04,967 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine-interface/45294f8f-22e1-4c02-8db6-24dbc78aee20 2025-10-22 08:20:08,237 - 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 1025ms') 2025-10-22 08:20:08,237 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-73209495-94175984 failed! 2025-10-22 08:20:08,292 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-73209495:ctest-vn-17504419 is 148.171.76.193 and allocation pool is NOT set 2025-10-22 08:20:10,352 - 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.59 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.768 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.768/4.681/8.594/3.913 ms') 2025-10-22 08:20:10,352 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-73209495-94175984 passed 2025-10-22 08:20:10,499 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-22 08:20:10,500 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-73209495-94175984, IP 148.171.76.195, Port 22 2025-10-22 08:20:10,659 - DEBUG - VM ctest-TestBasicPolicy-73209495-94175984 is ready for SSH connections 2025-10-22 08:20:10,659 - INFO - Waiting for VM ctest-TestBasicPolicy-73209495-63367884 to be up.. 2025-10-22 08:20:10,746 - DEBUG - VM is in ACTIVE state now 2025-10-22 08:20:10,747 - INFO - VM name : ctest-TestBasicPolicy-73209495-63367884 2025-10-22 08:20:10,829 - DEBUG - VM ctest-TestBasicPolicy-73209495-63367884 ID is 0179cac2-65bb-4b6b-a02f-3a359266a1e7 2025-10-22 08:20:10,829 - DEBUG - VM ctest-TestBasicPolicy-73209495-63367884 launched on Node cn-jenkins-deploy-platform-ansible-os-4416-1 2025-10-22 08:20:10,914 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine/0179cac2-65bb-4b6b-a02f-3a359266a1e7 2025-10-22 08:20:10,924 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine-interface/27141bf9-d2df-4426-bfe0-5a7e11856eb8 2025-10-22 08:20:12,169 - 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.41 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=1.27 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.272/3.342/5.412/2.070 ms') 2025-10-22 08:20:12,169 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-73209495-63367884 passed 2025-10-22 08:20:12,315 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-22 08:20:12,316 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-73209495-63367884, IP 185.66.29.67, Port 22 2025-10-22 08:20:12,381 - 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-22 08:20:12,465 - DEBUG - VM ctest-TestBasicPolicy-73209495-63367884 is NOT ready for SSH connections, VM status: ACTIVE 2025-10-22 08:20:17,467 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-22 08:20:17,467 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-73209495-63367884, IP 185.66.29.67, Port 22 2025-10-22 08:20:17,623 - DEBUG - VM ctest-TestBasicPolicy-73209495-63367884 is ready for SSH connections 2025-10-22 08:20:17,623 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-22 08:20:17,623 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 185.66.29.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.254, gateway password: c0ntrail123 2025-10-22 08:20:17,623 - DEBUG - ping -s 56 -c 3 -W 1 185.66.29.67 2025-10-22 08:20:21,734 - DEBUG - PING 185.66.29.67 (185.66.29.67): 56 data bytes 64 bytes from 185.66.29.67: seq=0 ttl=63 time=4.930 ms 64 bytes from 185.66.29.67: seq=1 ttl=63 time=0.966 ms 64 bytes from 185.66.29.67: seq=2 ttl=63 time=1.042 ms --- 185.66.29.67 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.966/2.312/4.930 ms 2025-10-22 08:20:21,734 - INFO - Ping to IP 185.66.29.67 from VM ctest-TestBasicPolicy-73209495-94175984 passed 2025-10-22 08:20:21,911 - DEBUG - Policy Update Response {"network-policy": {"uuid": "a399b864-6035-45b1-8080-0321d2347c83", "href": "http://10.0.0.254:8082/network-policy/a399b864-6035-45b1-8080-0321d2347c83"}} 2025-10-22 08:20:21,911 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-22 08:20:21,912 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 185.66.29.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.254, gateway password: c0ntrail123 2025-10-22 08:20:21,912 - DEBUG - ping -s 56 -c 3 -W 1 185.66.29.67 2025-10-22 08:20:25,164 - DEBUG - PING 185.66.29.67 (185.66.29.67): 56 data bytes --- 185.66.29.67 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2025-10-22 08:20:25,164 - WARNING - Ping to IP 185.66.29.67 from VM ctest-TestBasicPolicy-73209495-94175984 failed 2025-10-22 08:20:25,165 - INFO - Deleting VM ctest-TestBasicPolicy-73209495-63367884 2025-10-22 08:20:25,241 - INFO - Deleting VM ctest-TestBasicPolicy-73209495-94175984 2025-10-22 08:20:25,604 - INFO - Deleted policy ctest-policy-allow-all-56907064 2025-10-22 08:20:25,604 - INFO - Deleting VN ctest-vn-61046696 2025-10-22 08:20:25,637 - DEBUG - VN d47a4d55-3eec-4d5e-8bb8-a6cd60f43ddb still in use: Unable to complete operation on network d47a4d55-3eec-4d5e-8bb8-a6cd60f43ddb. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-21fec1ec-ecdd-44d2-979f-518ba547918b'] 2025-10-22 08:20:25,637 - WARNING - Deleting VN ctest-vn-61046696 failed..Will retry 2025-10-22 08:20:27,730 - DEBUG - Response for deleting network () 2025-10-22 08:20:27,730 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/2d38f9bd-48c4-4c0e-ab3b-09db1cfa8c92 2025-10-22 08:20:27,737 - DEBUG - Response Code: 404 2025-10-22 08:20:27,737 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-10-22 08:20:27,746 - DEBUG - Requesting: http://10.0.0.254:8082/domain/6b130d95-afea-4e1f-a530-123c9a77c62a 2025-10-22 08:20:27,796 - DEBUG - Requesting: http://10.0.0.254:8082/project/9fe6356e-1413-41f7-b774-a546f172c5c2 2025-10-22 08:20:27,865 - INFO - Validated that VN ctest-vn-61046696 is not found in API Server 2025-10-22 08:20:27,874 - DEBUG - VN ctest-vn-61046696 is not present in Agent 10.0.0.254 2025-10-22 08:20:27,874 - INFO - Validated that VN ctest-vn-61046696 is not in any agent 2025-10-22 08:20:27,887 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-61046696 info 2025-10-22 08:20:27,888 - INFO - Deleting VN ctest-vn-17504419 2025-10-22 08:20:27,987 - DEBUG - Response for deleting network () 2025-10-22 08:20:27,988 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/d6f86504-d016-43a6-92e7-497718a21ccb 2025-10-22 08:20:27,994 - DEBUG - Response Code: 404 2025-10-22 08:20:27,995 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-10-22 08:20:28,000 - DEBUG - Requesting: http://10.0.0.254:8082/domain/6b130d95-afea-4e1f-a530-123c9a77c62a 2025-10-22 08:20:28,053 - DEBUG - Requesting: http://10.0.0.254:8082/project/9fe6356e-1413-41f7-b774-a546f172c5c2 2025-10-22 08:20:28,124 - INFO - Validated that VN ctest-vn-17504419 is not found in API Server 2025-10-22 08:20:28,132 - DEBUG - VN ctest-vn-17504419 is not present in Agent 10.0.0.254 2025-10-22 08:20:28,132 - INFO - Validated that VN ctest-vn-17504419 is not in any agent 2025-10-22 08:20:28,144 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-17504419 info 2025-10-22 08:20:28,409 - DEBUG - No XMPP flaps were noticed during the test
2025-10-22 08:20:28,409 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:35]
2025-10-22 08:20:28,409 - INFO - -------------------------------------------------------------------------------- 2025-10-22 08:20:29,109 - INFO - Deleted project: ctest-TestBasicPolicy-73209495, ID : 9fe6356e-1413-41f7-b774-a546f172c5c2