2025-04-13 13:17:06,603 - INFO - Domain Default found not creating 2025-04-13 13:17:06,778 - INFO - Project ctest-TestBasicPolicy-50534291 not found, creating it 2025-04-13 13:17:07,268 - INFO - Created Project:ctest-TestBasicPolicy-50534291, ID : 316cd152-5677-4979-b445-df198c31c9dc 2025-04-13 13:17:09,333 - INFO - ================================================================================ 2025-04-13 13:17:09,333 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-04-13 13:17:09,334 - 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-04-13 13:17:09,597 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with 2025-04-13 13:17:09,597 - INFO - Initial checks done. Running the testcase now 2025-04-13 13:17:09,597 - INFO - 2025-04-13 13:17:10,141 - DEBUG - Response for create_network : {'network': {'id': '3cd825a3-1e2f-4c48-9434-cfe0076b774d', 'name': 'ctest-vn-79791757', 'tenant_id': '316cd15256774979b445df198c31c9dc', 'project_id': '316cd15256774979b445df198c31c9dc', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-50534291', 'ctest-vn-79791757'], 'port_security_enabled': True, 'description': ''}} 2025-04-13 13:17:10,344 - DEBUG - Response for create_subnet : {'subnet': {'id': '2b1cec7f-3324-4aac-89cd-e67f4963f753', 'name': '', 'tenant_id': '316cd15256774979b445df198c31c9dc', 'network_id': '3cd825a3-1e2f-4c48-9434-cfe0076b774d', 'ip_version': 4, 'cidr': '27.213.118.64/26', 'allocation_pools': [{'start': '27.213.118.66', 'end': '27.213.118.126'}], 'gateway_ip': '27.213.118.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '27.213.118.66', 'tags': [], 'project_id': '316cd15256774979b445df198c31c9dc'}} 2025-04-13 13:17:10,361 - INFO - Created VN ctest-vn-79791757 2025-04-13 13:17:10,414 - DEBUG - VN ctest-vn-79791757 UUID is 3cd825a3-1e2f-4c48-9434-cfe0076b774d 2025-04-13 13:17:10,699 - DEBUG - Response for create_network : {'network': {'id': '2ebbd33c-6b87-4835-89ca-bcca8b97b156', 'name': 'ctest-vn-75024845', 'tenant_id': '316cd15256774979b445df198c31c9dc', 'project_id': '316cd15256774979b445df198c31c9dc', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-50534291', 'ctest-vn-75024845'], 'port_security_enabled': True, 'description': ''}} 2025-04-13 13:17:10,891 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a1b80857-998b-451a-84c8-cd62bdc6766d', 'name': '', 'tenant_id': '316cd15256774979b445df198c31c9dc', 'network_id': '2ebbd33c-6b87-4835-89ca-bcca8b97b156', 'ip_version': 4, 'cidr': '158.118.114.192/26', 'allocation_pools': [{'start': '158.118.114.194', 'end': '158.118.114.254'}], 'gateway_ip': '158.118.114.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '158.118.114.194', 'tags': [], 'project_id': '316cd15256774979b445df198c31c9dc'}} 2025-04-13 13:17:10,908 - INFO - Created VN ctest-vn-75024845 2025-04-13 13:17:10,961 - DEBUG - VN ctest-vn-75024845 UUID is 2ebbd33c-6b87-4835-89ca-bcca8b97b156 2025-04-13 13:17:11,077 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-50534291:ctest-vn-79791757, 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-50534291:ctest-vn-75024845, 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-04-13 13:17:11,370 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '3cd825a3-1e2f-4c48-9434-cfe0076b774d', 'name': 'ctest-vn-79791757', 'tenant_id': '316cd15256774979b445df198c31c9dc', 'project_id': '316cd15256774979b445df198c31c9dc', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['2b1cec7f-3324-4aac-89cd-e67f4963f753'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-50534291', 'ctest-vn-79791757'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-50534291', 'ctest-policy-allow-all-29116082']], 'subnet_ipam': [{'subnet_cidr': '27.213.118.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-04-13 13:17:11,594 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '2ebbd33c-6b87-4835-89ca-bcca8b97b156', 'name': 'ctest-vn-75024845', 'tenant_id': '316cd15256774979b445df198c31c9dc', 'project_id': '316cd15256774979b445df198c31c9dc', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['a1b80857-998b-451a-84c8-cd62bdc6766d'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-50534291', 'ctest-vn-75024845'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-50534291', 'ctest-policy-allow-all-29116082']], 'subnet_ipam': [{'subnet_cidr': '158.118.114.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-04-13 13:17:11,750 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-04-13 13:17:12,044 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-04-13 13:17:12,072 - DEBUG - Requesting: http://10.0.0.50:8082/domain/82a80ce2-e39a-407d-8401-ac46729e4c33 2025-04-13 13:17:12,086 - DEBUG - Requesting: http://10.0.0.50:8082/project/316cd152-5677-4979-b445-df198c31c9dc 2025-04-13 13:17:12,161 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/3cd825a3-1e2f-4c48-9434-cfe0076b774d 2025-04-13 13:17:12,173 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/3cd825a3-1e2f-4c48-9434-cfe0076b774d 2025-04-13 13:17:12,183 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/1aea0f15-72e8-4cda-bc5e-4321261f35b4 2025-04-13 13:17:12,192 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/1aea0f15-72e8-4cda-bc5e-4321261f35b4 2025-04-13 13:17:12,201 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/793141fb-80a7-40c1-88fb-7f327c65c15c 2025-04-13 13:17:12,208 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-04-13 13:17:12,208 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/3cd825a3-1e2f-4c48-9434-cfe0076b774d 2025-04-13 13:17:12,217 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/1aea0f15-72e8-4cda-bc5e-4321261f35b4 2025-04-13 13:17:12,232 - INFO - Verified VN network id 8 for VN 3cd825a3-1e2f-4c48-9434-cfe0076b774d 2025-04-13 13:17:12,232 - INFO - Verifications in API Server for VN ctest-vn-79791757 passed 2025-04-13 13:17:12,232 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/3cd825a3-1e2f-4c48-9434-cfe0076b774d 2025-04-13 13:17:12,245 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/1aea0f15-72e8-4cda-bc5e-4321261f35b4 2025-04-13 13:17:12,254 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/1aea0f15-72e8-4cda-bc5e-4321261f35b4 2025-04-13 13:17:12,262 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/793141fb-80a7-40c1-88fb-7f327c65c15c 2025-04-13 13:17:12,275 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-50534291:ctest-vn-79791757', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-50534291', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4384295619761491016', 'uuid-lslong': '10679389177506395981'}, 'enable': 'true', 'created': '2025-04-13T13:17:10', 'last-modified': '2025-04-13T13:17:11', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.927745'} 2025-04-13 13:17:12,281 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-04-13 13:17:12,281 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-79791757 passed 2025-04-13 13:17:12,282 - DEBUG - ====Verifying policy data for ctest-vn-79791757 in API_Server ====== 2025-04-13 13:17:12,282 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-04-13 13:17:12,287 - DEBUG - Requesting: http://10.0.0.50:8082/domain/82a80ce2-e39a-407d-8401-ac46729e4c33 2025-04-13 13:17:12,300 - DEBUG - Requesting: http://10.0.0.50:8082/project/316cd152-5677-4979-b445-df198c31c9dc 2025-04-13 13:17:12,378 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/3cd825a3-1e2f-4c48-9434-cfe0076b774d 2025-04-13 13:17:12,389 - DEBUG - ==>Verifying data for policy with id: 4d28e6bb-b6bb-4f41-bd10-aaff8b9c899d, fqn: ['default-domain', 'ctest-TestBasicPolicy-50534291', 'ctest-policy-allow-all-29116082'] 2025-04-13 13:17:12,389 - INFO - VN ctest-vn-79791757 Policy verification: verify_vn_policy_in_api_server, status: True 2025-04-13 13:17:12,389 - DEBUG - Verifying the vn in opserver 2025-04-13 13:17:12,389 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-50534291:ctest-vn-79791757 virtual network link through opserver 10.0.0.50 2025-04-13 13:17:12,389 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2025-04-13 13:17:12,683 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2025-04-13 13:17:12,750 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-50534291:ctest-vn-79791757', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-50534291:ctest-vn-79791757?flat'} 2025-04-13 13:17:12,750 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-50534291:ctest-vn-79791757 is found in opserver 2025-04-13 13:17:12,762 - DEBUG - Do not have enough data to verify VN in agent 2025-04-13 13:17:12,768 - DEBUG - VRF ids for VN ctest-vn-79791757: {} 2025-04-13 13:17:12,768 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-04-13 13:17:12,774 - DEBUG - Requesting: http://10.0.0.50:8082/domain/82a80ce2-e39a-407d-8401-ac46729e4c33 2025-04-13 13:17:12,787 - DEBUG - Requesting: http://10.0.0.50:8082/project/316cd152-5677-4979-b445-df198c31c9dc 2025-04-13 13:17:12,868 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/2ebbd33c-6b87-4835-89ca-bcca8b97b156 2025-04-13 13:17:12,883 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/2ebbd33c-6b87-4835-89ca-bcca8b97b156 2025-04-13 13:17:12,894 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/e9856a5d-ba89-4a87-940c-301a429727a7 2025-04-13 13:17:12,904 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/e9856a5d-ba89-4a87-940c-301a429727a7 2025-04-13 13:17:12,913 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/32dfd588-34d8-4bdf-a2fd-b510823e6614 2025-04-13 13:17:12,921 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-04-13 13:17:12,921 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/2ebbd33c-6b87-4835-89ca-bcca8b97b156 2025-04-13 13:17:12,931 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/e9856a5d-ba89-4a87-940c-301a429727a7 2025-04-13 13:17:12,947 - INFO - Verified VN network id 9 for VN 2ebbd33c-6b87-4835-89ca-bcca8b97b156 2025-04-13 13:17:12,948 - INFO - Verifications in API Server for VN ctest-vn-75024845 passed 2025-04-13 13:17:12,948 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/2ebbd33c-6b87-4835-89ca-bcca8b97b156 2025-04-13 13:17:12,959 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/e9856a5d-ba89-4a87-940c-301a429727a7 2025-04-13 13:17:12,966 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/e9856a5d-ba89-4a87-940c-301a429727a7 2025-04-13 13:17:12,974 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/32dfd588-34d8-4bdf-a2fd-b510823e6614 2025-04-13 13:17:12,987 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-50534291:ctest-vn-75024845', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-50534291', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3367517402845104181', 'uuid-lslong': '9928955906603069782'}, 'enable': 'true', 'created': '2025-04-13T13:17:10', 'last-modified': '2025-04-13T13:17:11', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.415178'} 2025-04-13 13:17:12,994 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-04-13 13:17:12,994 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-75024845 passed 2025-04-13 13:17:12,994 - DEBUG - ====Verifying policy data for ctest-vn-75024845 in API_Server ====== 2025-04-13 13:17:12,994 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-04-13 13:17:13,000 - DEBUG - Requesting: http://10.0.0.50:8082/domain/82a80ce2-e39a-407d-8401-ac46729e4c33 2025-04-13 13:17:13,012 - DEBUG - Requesting: http://10.0.0.50:8082/project/316cd152-5677-4979-b445-df198c31c9dc 2025-04-13 13:17:13,088 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/2ebbd33c-6b87-4835-89ca-bcca8b97b156 2025-04-13 13:17:13,099 - DEBUG - ==>Verifying data for policy with id: 4d28e6bb-b6bb-4f41-bd10-aaff8b9c899d, fqn: ['default-domain', 'ctest-TestBasicPolicy-50534291', 'ctest-policy-allow-all-29116082'] 2025-04-13 13:17:13,099 - INFO - VN ctest-vn-75024845 Policy verification: verify_vn_policy_in_api_server, status: True 2025-04-13 13:17:13,099 - DEBUG - Verifying the vn in opserver 2025-04-13 13:17:13,099 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-50534291:ctest-vn-75024845 virtual network link through opserver 10.0.0.50 2025-04-13 13:17:13,099 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2025-04-13 13:17:13,111 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-50534291:ctest-vn-75024845', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-50534291:ctest-vn-75024845?flat'} 2025-04-13 13:17:13,111 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-50534291:ctest-vn-75024845 is found in opserver 2025-04-13 13:17:13,121 - DEBUG - Do not have enough data to verify VN in agent 2025-04-13 13:17:13,128 - DEBUG - VRF ids for VN ctest-vn-75024845: {} 2025-04-13 13:17:13,184 - DEBUG - Services list from nova: [, , ] 2025-04-13 13:17:14,187 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3084-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3084-1) 2025-04-13 13:17:15,441 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3084-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3084-1) 2025-04-13 13:17:15,441 - INFO - Waiting for VM ctest-TestBasicPolicy-50534291-93218329 to be up.. 2025-04-13 13:17:15,517 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-04-13 13:17:20,601 - DEBUG - VM is in ACTIVE state now 2025-04-13 13:17:20,601 - INFO - VM name : ctest-TestBasicPolicy-50534291-93218329 2025-04-13 13:17:20,703 - DEBUG - VM ctest-TestBasicPolicy-50534291-93218329 ID is ff7684ec-03e5-4037-91ac-25c64ce9a1a8 2025-04-13 13:17:20,728 - DEBUG - VM ctest-TestBasicPolicy-50534291-93218329 launched on Node cn-jenkins-deploy-platform-ansible-os-3084-1 2025-04-13 13:17:20,828 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine/ff7684ec-03e5-4037-91ac-25c64ce9a1a8 2025-04-13 13:17:20,839 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine-interface/6f484260-6bbb-4bf1-add8-c1aeee4d7dbe 2025-04-13 13:17:24,123 - 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 1029ms') 2025-04-13 13:17:24,123 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-50534291-93218329 failed! 2025-04-13 13:17:24,178 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-50534291:ctest-vn-79791757 is 27.213.118.65 and allocation pool is NOT set 2025-04-13 13:17:26,239 - 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=2.86 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.369 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.369/1.613/2.857/1.244 ms') 2025-04-13 13:17:26,239 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-50534291-93218329 passed 2025-04-13 13:17:26,402 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-13 13:17:26,402 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-50534291-93218329, IP 27.213.118.67, Port 22 2025-04-13 13:17:26,557 - DEBUG - VM ctest-TestBasicPolicy-50534291-93218329 is ready for SSH connections 2025-04-13 13:17:26,557 - INFO - Waiting for VM ctest-TestBasicPolicy-50534291-10334510 to be up.. 2025-04-13 13:17:26,654 - DEBUG - VM is in ACTIVE state now 2025-04-13 13:17:26,655 - INFO - VM name : ctest-TestBasicPolicy-50534291-10334510 2025-04-13 13:17:26,740 - DEBUG - VM ctest-TestBasicPolicy-50534291-10334510 ID is 72d2569c-ce1c-438b-9a94-bcc194acb8b8 2025-04-13 13:17:26,740 - DEBUG - VM ctest-TestBasicPolicy-50534291-10334510 launched on Node cn-jenkins-deploy-platform-ansible-os-3084-1 2025-04-13 13:17:26,815 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine/72d2569c-ce1c-438b-9a94-bcc194acb8b8 2025-04-13 13:17:26,824 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine-interface/d7474e0d-5a5d-4b6e-b794-eb756fb8a2a0 2025-04-13 13:17:28,076 - 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.35 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=2.13 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.132/3.239/4.347/1.107 ms') 2025-04-13 13:17:28,076 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-50534291-10334510 passed 2025-04-13 13:17:28,230 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-13 13:17:28,230 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-50534291-10334510, IP 158.118.114.195, Port 22 2025-04-13 13:17:28,295 - 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-04-13 13:17:28,375 - DEBUG - VM ctest-TestBasicPolicy-50534291-10334510 is NOT ready for SSH connections, VM status: ACTIVE 2025-04-13 13:17:33,376 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-13 13:17:33,376 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-50534291-10334510, IP 158.118.114.195, Port 22 2025-04-13 13:17:33,535 - DEBUG - VM ctest-TestBasicPolicy-50534291-10334510 is ready for SSH connections 2025-04-13 13:17:33,536 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-13 13:17:33,536 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 158.118.114.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.50, gateway password: c0ntrail123 2025-04-13 13:17:33,536 - DEBUG - ping -s 56 -c 3 -W 1 158.118.114.195 2025-04-13 13:17:37,216 - DEBUG - PING 158.118.114.195 (158.118.114.195): 56 data bytes 64 bytes from 158.118.114.195: seq=0 ttl=63 time=4.230 ms 64 bytes from 158.118.114.195: seq=1 ttl=63 time=0.767 ms 64 bytes from 158.118.114.195: seq=2 ttl=63 time=1.408 ms --- 158.118.114.195 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.767/2.135/4.230 ms 2025-04-13 13:17:37,217 - INFO - Ping to IP 158.118.114.195 from VM ctest-TestBasicPolicy-50534291-93218329 passed 2025-04-13 13:17:37,401 - DEBUG - Policy Update Response {"network-policy": {"uuid": "4d28e6bb-b6bb-4f41-bd10-aaff8b9c899d", "href": "http://10.0.0.50:8082/network-policy/4d28e6bb-b6bb-4f41-bd10-aaff8b9c899d"}} 2025-04-13 13:17:37,401 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-13 13:17:37,402 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 158.118.114.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.50, gateway password: c0ntrail123 2025-04-13 13:17:37,402 - DEBUG - ping -s 56 -c 3 -W 1 158.118.114.195 2025-04-13 13:17:40,619 - DEBUG - PING 158.118.114.195 (158.118.114.195): 56 data bytes 64 bytes from 158.118.114.195: seq=0 ttl=63 time=1.272 ms --- 158.118.114.195 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.272/1.272/1.272 ms 2025-04-13 13:17:40,619 - WARNING - Ping to IP 158.118.114.195 from VM ctest-TestBasicPolicy-50534291-93218329 failed 2025-04-13 13:17:40,619 - INFO - Deleting VM ctest-TestBasicPolicy-50534291-10334510 2025-04-13 13:17:40,692 - INFO - Deleting VM ctest-TestBasicPolicy-50534291-93218329 2025-04-13 13:17:41,097 - INFO - Deleted policy ctest-policy-allow-all-29116082 2025-04-13 13:17:41,097 - INFO - Deleting VN ctest-vn-75024845 2025-04-13 13:17:41,137 - DEBUG - VN 2ebbd33c-6b87-4835-89ca-bcca8b97b156 still in use: Unable to complete operation on network 2ebbd33c-6b87-4835-89ca-bcca8b97b156. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-6d2391fc-4734-4b77-98ba-0a21889ea9d5'] 2025-04-13 13:17:41,137 - WARNING - Deleting VN ctest-vn-75024845 failed..Will retry 2025-04-13 13:17:43,253 - DEBUG - Response for deleting network () 2025-04-13 13:17:43,254 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/e9856a5d-ba89-4a87-940c-301a429727a7 2025-04-13 13:17:43,260 - DEBUG - Response Code: 404 2025-04-13 13:17:43,260 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-04-13 13:17:43,265 - DEBUG - Requesting: http://10.0.0.50:8082/domain/82a80ce2-e39a-407d-8401-ac46729e4c33 2025-04-13 13:17:43,331 - DEBUG - Requesting: http://10.0.0.50:8082/project/316cd152-5677-4979-b445-df198c31c9dc 2025-04-13 13:17:43,406 - INFO - Validated that VN ctest-vn-75024845 is not found in API Server 2025-04-13 13:17:43,417 - DEBUG - VN ctest-vn-75024845 is not present in Agent 10.0.0.50 2025-04-13 13:17:43,417 - INFO - Validated that VN ctest-vn-75024845 is not in any agent 2025-04-13 13:17:43,434 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-75024845 info 2025-04-13 13:17:43,434 - INFO - Deleting VN ctest-vn-79791757 2025-04-13 13:17:43,539 - DEBUG - Response for deleting network () 2025-04-13 13:17:43,540 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/1aea0f15-72e8-4cda-bc5e-4321261f35b4 2025-04-13 13:17:43,547 - DEBUG - Response Code: 404 2025-04-13 13:17:43,547 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-04-13 13:17:43,555 - DEBUG - Requesting: http://10.0.0.50:8082/domain/82a80ce2-e39a-407d-8401-ac46729e4c33 2025-04-13 13:17:43,611 - DEBUG - Requesting: http://10.0.0.50:8082/project/316cd152-5677-4979-b445-df198c31c9dc 2025-04-13 13:17:43,684 - INFO - Validated that VN ctest-vn-79791757 is not found in API Server 2025-04-13 13:17:43,694 - DEBUG - VN ctest-vn-79791757 is not present in Agent 10.0.0.50 2025-04-13 13:17:43,694 - INFO - Validated that VN ctest-vn-79791757 is not in any agent 2025-04-13 13:17:43,712 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-79791757 info 2025-04-13 13:17:43,968 - DEBUG - No XMPP flaps were noticed during the test 2025-04-13 13:17:43,968 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:34] 2025-04-13 13:17:43,968 - INFO - -------------------------------------------------------------------------------- 2025-04-13 13:17:44,639 - INFO - Deleted project: ctest-TestBasicPolicy-50534291, ID : 316cd152-5677-4979-b445-df198c31c9dc