2025-10-22 12:58:04,550 - INFO - Domain Default found not creating 2025-10-22 12:58:04,711 - INFO - Project ctest-TestBasicPolicy-04135110 not found, creating it 2025-10-22 12:58:05,182 - INFO - Created Project:ctest-TestBasicPolicy-04135110, ID : b9cd33ef-1dd0-4221-bde4-8267d9cea06d 2025-10-22 12:58:06,743 - INFO - ================================================================================ 2025-10-22 12:58:06,743 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-10-22 12:58:06,743 - 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 12:58:07,000 - DEBUG - Nothing to compare xmpp stats {'10.0.0.19': {'10.20.0.14': '0'}} with 2025-10-22 12:58:07,000 - INFO - Initial checks done. Running the testcase now 2025-10-22 12:58:07,000 - INFO - 2025-10-22 12:58:07,575 - DEBUG - Response for create_network : {'network': {'id': '8113f116-bca6-4006-b6b9-04a33a0b087d', 'name': 'ctest-vn-62719876', 'tenant_id': 'b9cd33ef1dd04221bde48267d9cea06d', 'project_id': 'b9cd33ef1dd04221bde48267d9cea06d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-04135110', 'ctest-vn-62719876'], 'port_security_enabled': True, 'description': ''}} 2025-10-22 12:58:07,742 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd0f7be4b-e3a8-4085-8900-a472767be755', 'name': '', 'tenant_id': 'b9cd33ef1dd04221bde48267d9cea06d', 'network_id': '8113f116-bca6-4006-b6b9-04a33a0b087d', 'ip_version': 4, 'cidr': '29.252.225.0/26', 'allocation_pools': [{'start': '29.252.225.2', 'end': '29.252.225.62'}], 'gateway_ip': '29.252.225.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '29.252.225.2', 'tags': [], 'project_id': 'b9cd33ef1dd04221bde48267d9cea06d'}} 2025-10-22 12:58:07,763 - INFO - Created VN ctest-vn-62719876 2025-10-22 12:58:07,814 - DEBUG - VN ctest-vn-62719876 UUID is 8113f116-bca6-4006-b6b9-04a33a0b087d 2025-10-22 12:58:08,123 - DEBUG - Response for create_network : {'network': {'id': '24a739cf-2f52-4145-8212-932293fe2f09', 'name': 'ctest-vn-65414643', 'tenant_id': 'b9cd33ef1dd04221bde48267d9cea06d', 'project_id': 'b9cd33ef1dd04221bde48267d9cea06d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-04135110', 'ctest-vn-65414643'], 'port_security_enabled': True, 'description': ''}} 2025-10-22 12:58:08,308 - DEBUG - Response for create_subnet : {'subnet': {'id': '4383cd61-15a6-47c8-926e-4abe0b397e34', 'name': '', 'tenant_id': 'b9cd33ef1dd04221bde48267d9cea06d', 'network_id': '24a739cf-2f52-4145-8212-932293fe2f09', 'ip_version': 4, 'cidr': '193.6.222.64/26', 'allocation_pools': [{'start': '193.6.222.66', 'end': '193.6.222.126'}], 'gateway_ip': '193.6.222.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '193.6.222.66', 'tags': [], 'project_id': 'b9cd33ef1dd04221bde48267d9cea06d'}} 2025-10-22 12:58:08,326 - INFO - Created VN ctest-vn-65414643 2025-10-22 12:58:08,378 - DEBUG - VN ctest-vn-65414643 UUID is 24a739cf-2f52-4145-8212-932293fe2f09 2025-10-22 12:58:08,530 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-04135110:ctest-vn-62719876, 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-04135110:ctest-vn-65414643, 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 12:58:08,846 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '8113f116-bca6-4006-b6b9-04a33a0b087d', 'name': 'ctest-vn-62719876', 'tenant_id': 'b9cd33ef1dd04221bde48267d9cea06d', 'project_id': 'b9cd33ef1dd04221bde48267d9cea06d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['d0f7be4b-e3a8-4085-8900-a472767be755'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-04135110', 'ctest-vn-62719876'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-04135110', 'ctest-policy-allow-all-65502778']], 'subnet_ipam': [{'subnet_cidr': '29.252.225.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-10-22 12:58:09,094 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '24a739cf-2f52-4145-8212-932293fe2f09', 'name': 'ctest-vn-65414643', 'tenant_id': 'b9cd33ef1dd04221bde48267d9cea06d', 'project_id': 'b9cd33ef1dd04221bde48267d9cea06d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['4383cd61-15a6-47c8-926e-4abe0b397e34'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-04135110', 'ctest-vn-65414643'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-04135110', 'ctest-policy-allow-all-65502778']], 'subnet_ipam': [{'subnet_cidr': '193.6.222.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-10-22 12:58:09,268 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2025-10-22 12:58:09,616 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2025-10-22 12:58:09,644 - DEBUG - Requesting: http://10.0.0.19:8082/domain/fcb540f8-fddc-430b-9aa8-08aee987c237 2025-10-22 12:58:09,656 - DEBUG - Requesting: http://10.0.0.19:8082/project/b9cd33ef-1dd0-4221-bde4-8267d9cea06d 2025-10-22 12:58:09,728 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/8113f116-bca6-4006-b6b9-04a33a0b087d 2025-10-22 12:58:09,739 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/8113f116-bca6-4006-b6b9-04a33a0b087d 2025-10-22 12:58:09,749 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/4e63df7d-a472-4a3d-b3d7-845a050a3dc5 2025-10-22 12:58:09,755 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/4e63df7d-a472-4a3d-b3d7-845a050a3dc5 2025-10-22 12:58:09,761 - DEBUG - Requesting: http://10.0.0.19:8082/route-target/b128cc08-22e7-4036-83e6-ee3fd10abf94 2025-10-22 12:58:09,767 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-22 12:58:09,767 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/8113f116-bca6-4006-b6b9-04a33a0b087d 2025-10-22 12:58:09,775 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/4e63df7d-a472-4a3d-b3d7-845a050a3dc5 2025-10-22 12:58:09,789 - INFO - Verified VN network id 11 for VN 8113f116-bca6-4006-b6b9-04a33a0b087d 2025-10-22 12:58:09,789 - INFO - Verifications in API Server for VN ctest-vn-62719876 passed 2025-10-22 12:58:09,789 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/8113f116-bca6-4006-b6b9-04a33a0b087d 2025-10-22 12:58:09,798 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/4e63df7d-a472-4a3d-b3d7-845a050a3dc5 2025-10-22 12:58:09,804 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/4e63df7d-a472-4a3d-b3d7-845a050a3dc5 2025-10-22 12:58:09,810 - DEBUG - Requesting: http://10.0.0.19:8082/route-target/b128cc08-22e7-4036-83e6-ee3fd10abf94 2025-10-22 12:58:09,821 - DEBUG - Control-node 10.0.0.19 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-04135110:ctest-vn-62719876', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-04135110', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9301042735406792710', 'uuid-lslong': '13166560084694337661'}, 'enable': 'true', 'created': '2025-10-22T12:58:07', 'last-modified': '2025-10-22T12:58:08', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.999983'} 2025-10-22 12:58:09,828 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-22 12:58:09,828 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-62719876 passed 2025-10-22 12:58:09,828 - DEBUG - ====Verifying policy data for ctest-vn-62719876 in API_Server ====== 2025-10-22 12:58:09,828 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2025-10-22 12:58:09,833 - DEBUG - Requesting: http://10.0.0.19:8082/domain/fcb540f8-fddc-430b-9aa8-08aee987c237 2025-10-22 12:58:09,844 - DEBUG - Requesting: http://10.0.0.19:8082/project/b9cd33ef-1dd0-4221-bde4-8267d9cea06d 2025-10-22 12:58:09,916 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/8113f116-bca6-4006-b6b9-04a33a0b087d 2025-10-22 12:58:09,926 - DEBUG - ==>Verifying data for policy with id: 9290de4b-4fcc-4240-b088-6a5e7e65e30a, fqn: ['default-domain', 'ctest-TestBasicPolicy-04135110', 'ctest-policy-allow-all-65502778'] 2025-10-22 12:58:09,926 - INFO - VN ctest-vn-62719876 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-22 12:58:09,926 - DEBUG - Verifying the vn in opserver 2025-10-22 12:58:09,926 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-04135110:ctest-vn-62719876 virtual network link through opserver 10.0.0.19 2025-10-22 12:58:09,926 - DEBUG - Requesting: http://10.0.0.19:8081/analytics/uves/virtual-networks 2025-10-22 12:58:10,260 - DEBUG - Requesting: http://10.0.0.19:8081/analytics/uves/virtual-networks 2025-10-22 12:58:10,327 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-04135110:ctest-vn-62719876', 'href': 'http://10.0.0.19:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-04135110:ctest-vn-62719876?flat'} 2025-10-22 12:58:10,327 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-04135110:ctest-vn-62719876 is found in opserver 2025-10-22 12:58:10,337 - DEBUG - Do not have enough data to verify VN in agent 2025-10-22 12:58:10,341 - DEBUG - VRF ids for VN ctest-vn-62719876: {} 2025-10-22 12:58:10,341 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2025-10-22 12:58:10,347 - DEBUG - Requesting: http://10.0.0.19:8082/domain/fcb540f8-fddc-430b-9aa8-08aee987c237 2025-10-22 12:58:10,358 - DEBUG - Requesting: http://10.0.0.19:8082/project/b9cd33ef-1dd0-4221-bde4-8267d9cea06d 2025-10-22 12:58:10,428 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/24a739cf-2f52-4145-8212-932293fe2f09 2025-10-22 12:58:10,441 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/24a739cf-2f52-4145-8212-932293fe2f09 2025-10-22 12:58:10,450 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/16ba4fe0-0429-4d28-8318-e58892a6ba00 2025-10-22 12:58:10,457 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/16ba4fe0-0429-4d28-8318-e58892a6ba00 2025-10-22 12:58:10,464 - DEBUG - Requesting: http://10.0.0.19:8082/route-target/7847c591-d202-42b9-9b4a-c4bfe1403d6a 2025-10-22 12:58:10,472 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-10-22 12:58:10,472 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/24a739cf-2f52-4145-8212-932293fe2f09 2025-10-22 12:58:10,482 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/16ba4fe0-0429-4d28-8318-e58892a6ba00 2025-10-22 12:58:10,496 - INFO - Verified VN network id 12 for VN 24a739cf-2f52-4145-8212-932293fe2f09 2025-10-22 12:58:10,496 - INFO - Verifications in API Server for VN ctest-vn-65414643 passed 2025-10-22 12:58:10,496 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/24a739cf-2f52-4145-8212-932293fe2f09 2025-10-22 12:58:10,506 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/16ba4fe0-0429-4d28-8318-e58892a6ba00 2025-10-22 12:58:10,513 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/16ba4fe0-0429-4d28-8318-e58892a6ba00 2025-10-22 12:58:10,519 - DEBUG - Requesting: http://10.0.0.19:8082/route-target/7847c591-d202-42b9-9b4a-c4bfe1403d6a 2025-10-22 12:58:10,532 - DEBUG - Control-node 10.0.0.19 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-04135110:ctest-vn-65414643', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-04135110', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2641143268491018565', 'uuid-lslong': '9372715551232503561'}, 'enable': 'true', 'created': '2025-10-22T12:58:08', 'last-modified': '2025-10-22T12:58:09', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.458548'} 2025-10-22 12:58:10,537 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-10-22 12:58:10,537 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-65414643 passed 2025-10-22 12:58:10,538 - DEBUG - ====Verifying policy data for ctest-vn-65414643 in API_Server ====== 2025-10-22 12:58:10,538 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2025-10-22 12:58:10,543 - DEBUG - Requesting: http://10.0.0.19:8082/domain/fcb540f8-fddc-430b-9aa8-08aee987c237 2025-10-22 12:58:10,553 - DEBUG - Requesting: http://10.0.0.19:8082/project/b9cd33ef-1dd0-4221-bde4-8267d9cea06d 2025-10-22 12:58:10,624 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/24a739cf-2f52-4145-8212-932293fe2f09 2025-10-22 12:58:10,635 - DEBUG - ==>Verifying data for policy with id: 9290de4b-4fcc-4240-b088-6a5e7e65e30a, fqn: ['default-domain', 'ctest-TestBasicPolicy-04135110', 'ctest-policy-allow-all-65502778'] 2025-10-22 12:58:10,635 - INFO - VN ctest-vn-65414643 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-22 12:58:10,635 - DEBUG - Verifying the vn in opserver 2025-10-22 12:58:10,635 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-04135110:ctest-vn-65414643 virtual network link through opserver 10.0.0.19 2025-10-22 12:58:10,635 - DEBUG - Requesting: http://10.0.0.19:8081/analytics/uves/virtual-networks 2025-10-22 12:58:10,645 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-04135110:ctest-vn-65414643', 'href': 'http://10.0.0.19:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-04135110:ctest-vn-65414643?flat'} 2025-10-22 12:58:10,645 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-04135110:ctest-vn-65414643 is found in opserver 2025-10-22 12:58:10,655 - DEBUG - Do not have enough data to verify VN in agent 2025-10-22 12:58:10,659 - DEBUG - VRF ids for VN ctest-vn-65414643: {} 2025-10-22 12:58:10,719 - DEBUG - Services list from nova: [, , ] 2025-10-22 12:58:11,871 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-4428-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-4428-1) 2025-10-22 12:58:13,264 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-4428-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-4428-1) 2025-10-22 12:58:13,264 - INFO - Waiting for VM ctest-TestBasicPolicy-04135110-54205929 to be up.. 2025-10-22 12:58:13,515 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-10-22 12:58:18,612 - DEBUG - VM is in ACTIVE state now 2025-10-22 12:58:18,612 - INFO - VM name : ctest-TestBasicPolicy-04135110-54205929 2025-10-22 12:58:18,692 - DEBUG - VM ctest-TestBasicPolicy-04135110-54205929 ID is bf006bc7-7538-4ee8-9fbd-d9c5f56b86db 2025-10-22 12:58:18,721 - DEBUG - VM ctest-TestBasicPolicy-04135110-54205929 launched on Node cn-jenkins-deploy-platform-ansible-os-4428-1 2025-10-22 12:58:18,810 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-machine/bf006bc7-7538-4ee8-9fbd-d9c5f56b86db 2025-10-22 12:58:18,819 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-machine-interface/dec2c642-18c9-4898-8245-75cd17dacd16 2025-10-22 12:58:22,060 - 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 1002ms') 2025-10-22 12:58:22,060 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-04135110-54205929 failed! 2025-10-22 12:58:22,114 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-04135110:ctest-vn-62719876 is 29.252.225.1 and allocation pool is NOT set 2025-10-22 12:58:24,176 - 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=6.44 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=2.24 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 = 2.240/4.340/6.440/2.100 ms') 2025-10-22 12:58:24,176 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-04135110-54205929 passed 2025-10-22 12:58:24,326 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-22 12:58:24,326 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-04135110-54205929, IP 29.252.225.3, Port 22 2025-10-22 12:58:24,482 - DEBUG - VM ctest-TestBasicPolicy-04135110-54205929 is ready for SSH connections 2025-10-22 12:58:24,482 - INFO - Waiting for VM ctest-TestBasicPolicy-04135110-38665117 to be up.. 2025-10-22 12:58:24,559 - DEBUG - VM is in ACTIVE state now 2025-10-22 12:58:24,559 - INFO - VM name : ctest-TestBasicPolicy-04135110-38665117 2025-10-22 12:58:24,640 - DEBUG - VM ctest-TestBasicPolicy-04135110-38665117 ID is fb9d4f16-1f7c-407d-8aa9-66c236b1e7e6 2025-10-22 12:58:24,640 - DEBUG - VM ctest-TestBasicPolicy-04135110-38665117 launched on Node cn-jenkins-deploy-platform-ansible-os-4428-1 2025-10-22 12:58:24,719 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-machine/fb9d4f16-1f7c-407d-8aa9-66c236b1e7e6 2025-10-22 12:58:24,727 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-machine-interface/a469f0db-e8dd-4cd1-9e0c-5d5a902be67e 2025-10-22 12:58:25,972 - 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.58 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.455 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 = 0.455/2.515/4.575/2.060 ms') 2025-10-22 12:58:25,972 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-04135110-38665117 passed 2025-10-22 12:58:26,126 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-22 12:58:26,126 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-04135110-38665117, IP 193.6.222.67, Port 22 2025-10-22 12:58:26,192 - 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 12:58:26,286 - DEBUG - VM ctest-TestBasicPolicy-04135110-38665117 is NOT ready for SSH connections, VM status: ACTIVE 2025-10-22 12:58:31,287 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-22 12:58:31,287 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-04135110-38665117, IP 193.6.222.67, Port 22 2025-10-22 12:58:31,449 - DEBUG - VM ctest-TestBasicPolicy-04135110-38665117 is ready for SSH connections 2025-10-22 12:58:31,449 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-22 12:58:31,449 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 193.6.222.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.19, gateway password: c0ntrail123 2025-10-22 12:58:31,449 - DEBUG - ping -s 56 -c 3 -W 1 193.6.222.67 2025-10-22 12:58:35,633 - DEBUG - PING 193.6.222.67 (193.6.222.67): 56 data bytes 64 bytes from 193.6.222.67: seq=0 ttl=63 time=4.011 ms 64 bytes from 193.6.222.67: seq=1 ttl=63 time=0.922 ms 64 bytes from 193.6.222.67: seq=2 ttl=63 time=1.085 ms --- 193.6.222.67 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.922/2.006/4.011 ms 2025-10-22 12:58:35,633 - INFO - Ping to IP 193.6.222.67 from VM ctest-TestBasicPolicy-04135110-54205929 passed 2025-10-22 12:58:35,814 - DEBUG - Policy Update Response {"network-policy": {"uuid": "9290de4b-4fcc-4240-b088-6a5e7e65e30a", "href": "http://10.0.0.19:8082/network-policy/9290de4b-4fcc-4240-b088-6a5e7e65e30a"}} 2025-10-22 12:58:35,814 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-22 12:58:35,814 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 193.6.222.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.19, gateway password: c0ntrail123 2025-10-22 12:58:35,814 - DEBUG - ping -s 56 -c 3 -W 1 193.6.222.67 2025-10-22 12:58:39,065 - DEBUG - PING 193.6.222.67 (193.6.222.67): 56 data bytes --- 193.6.222.67 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2025-10-22 12:58:39,065 - WARNING - Ping to IP 193.6.222.67 from VM ctest-TestBasicPolicy-04135110-54205929 failed 2025-10-22 12:58:39,065 - INFO - Deleting VM ctest-TestBasicPolicy-04135110-38665117 2025-10-22 12:58:39,158 - INFO - Deleting VM ctest-TestBasicPolicy-04135110-54205929 2025-10-22 12:58:39,523 - INFO - Deleted policy ctest-policy-allow-all-65502778 2025-10-22 12:58:39,523 - INFO - Deleting VN ctest-vn-65414643 2025-10-22 12:58:39,563 - DEBUG - VN 24a739cf-2f52-4145-8212-932293fe2f09 still in use: Unable to complete operation on network 24a739cf-2f52-4145-8212-932293fe2f09. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-62969058-cda4-4189-b993-d1321b3e1cf6'] 2025-10-22 12:58:39,564 - WARNING - Deleting VN ctest-vn-65414643 failed..Will retry 2025-10-22 12:58:41,691 - DEBUG - Response for deleting network () 2025-10-22 12:58:41,691 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/16ba4fe0-0429-4d28-8318-e58892a6ba00 2025-10-22 12:58:41,697 - DEBUG - Response Code: 404 2025-10-22 12:58:41,698 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2025-10-22 12:58:41,705 - DEBUG - Requesting: http://10.0.0.19:8082/domain/fcb540f8-fddc-430b-9aa8-08aee987c237 2025-10-22 12:58:41,761 - DEBUG - Requesting: http://10.0.0.19:8082/project/b9cd33ef-1dd0-4221-bde4-8267d9cea06d 2025-10-22 12:58:41,835 - INFO - Validated that VN ctest-vn-65414643 is not found in API Server 2025-10-22 12:58:41,846 - DEBUG - VN ctest-vn-65414643 is not present in Agent 10.0.0.19 2025-10-22 12:58:41,846 - INFO - Validated that VN ctest-vn-65414643 is not in any agent 2025-10-22 12:58:41,860 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-65414643 info 2025-10-22 12:58:41,860 - INFO - Deleting VN ctest-vn-62719876 2025-10-22 12:58:41,966 - DEBUG - Response for deleting network () 2025-10-22 12:58:41,966 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/4e63df7d-a472-4a3d-b3d7-845a050a3dc5 2025-10-22 12:58:41,975 - DEBUG - Response Code: 404 2025-10-22 12:58:41,975 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2025-10-22 12:58:41,984 - DEBUG - Requesting: http://10.0.0.19:8082/domain/fcb540f8-fddc-430b-9aa8-08aee987c237 2025-10-22 12:58:42,035 - DEBUG - Requesting: http://10.0.0.19:8082/project/b9cd33ef-1dd0-4221-bde4-8267d9cea06d 2025-10-22 12:58:42,104 - INFO - Validated that VN ctest-vn-62719876 is not found in API Server 2025-10-22 12:58:42,115 - DEBUG - VN ctest-vn-62719876 is not present in Agent 10.0.0.19 2025-10-22 12:58:42,115 - INFO - Validated that VN ctest-vn-62719876 is not in any agent 2025-10-22 12:58:42,128 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-62719876 info 2025-10-22 12:58:42,387 - DEBUG - No XMPP flaps were noticed during the test 2025-10-22 12:58:42,387 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:36] 2025-10-22 12:58:42,387 - INFO - -------------------------------------------------------------------------------- 2025-10-22 12:58:43,084 - INFO - Deleted project: ctest-TestBasicPolicy-04135110, ID : b9cd33ef-1dd0-4221-bde4-8267d9cea06d