2025-04-22 21:53:31,854 - INFO - Domain Default found not creating 2025-04-22 21:53:31,987 - INFO - Project ctest-TestBasicPolicy-37678661 not found, creating it 2025-04-22 21:53:32,431 - INFO - Created Project:ctest-TestBasicPolicy-37678661, ID : 20e863cb-3e19-4e85-9403-a707af1f72fe 2025-04-22 21:53:33,783 - INFO - ================================================================================ 2025-04-22 21:53:33,783 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-04-22 21:53:33,783 - 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-22 21:53:34,043 - DEBUG - Nothing to compare xmpp stats {'10.0.0.65': {'10.20.0.17': '0'}} with 2025-04-22 21:53:34,043 - INFO - Initial checks done. Running the testcase now 2025-04-22 21:53:34,043 - INFO - 2025-04-22 21:53:34,579 - DEBUG - Response for create_network : {'network': {'id': '5b322114-2301-42ec-80c2-9e872b9990c8', 'name': 'ctest-vn-92368585', 'tenant_id': '20e863cb3e194e859403a707af1f72fe', 'project_id': '20e863cb3e194e859403a707af1f72fe', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-37678661', 'ctest-vn-92368585'], 'port_security_enabled': True, 'description': ''}} 2025-04-22 21:53:34,730 - DEBUG - Response for create_subnet : {'subnet': {'id': '625fe5e3-024e-4c8e-a85b-8ff6d7553e15', 'name': '', 'tenant_id': '20e863cb3e194e859403a707af1f72fe', 'network_id': '5b322114-2301-42ec-80c2-9e872b9990c8', 'ip_version': 4, 'cidr': '111.224.20.192/26', 'allocation_pools': [{'start': '111.224.20.194', 'end': '111.224.20.254'}], 'gateway_ip': '111.224.20.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '111.224.20.194', 'tags': [], 'project_id': '20e863cb3e194e859403a707af1f72fe'}} 2025-04-22 21:53:34,748 - INFO - Created VN ctest-vn-92368585 2025-04-22 21:53:34,801 - DEBUG - VN ctest-vn-92368585 UUID is 5b322114-2301-42ec-80c2-9e872b9990c8 2025-04-22 21:53:35,213 - DEBUG - Response for create_network : {'network': {'id': 'ea7cf62b-c5f1-48d3-ba33-706bf769dd23', 'name': 'ctest-vn-16007703', 'tenant_id': '20e863cb3e194e859403a707af1f72fe', 'project_id': '20e863cb3e194e859403a707af1f72fe', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-37678661', 'ctest-vn-16007703'], 'port_security_enabled': True, 'description': ''}} 2025-04-22 21:53:35,639 - DEBUG - Response for create_subnet : {'subnet': {'id': '3588b234-62cc-40fd-95a9-3268e1a12cf4', 'name': '', 'tenant_id': '20e863cb3e194e859403a707af1f72fe', 'network_id': 'ea7cf62b-c5f1-48d3-ba33-706bf769dd23', 'ip_version': 4, 'cidr': '53.195.82.64/26', 'allocation_pools': [{'start': '53.195.82.66', 'end': '53.195.82.126'}], 'gateway_ip': '53.195.82.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '53.195.82.66', 'tags': [], 'project_id': '20e863cb3e194e859403a707af1f72fe'}} 2025-04-22 21:53:35,673 - INFO - Created VN ctest-vn-16007703 2025-04-22 21:53:35,724 - DEBUG - VN ctest-vn-16007703 UUID is ea7cf62b-c5f1-48d3-ba33-706bf769dd23 2025-04-22 21:53:35,868 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-37678661:ctest-vn-92368585, 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-37678661:ctest-vn-16007703, 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-22 21:53:36,269 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '5b322114-2301-42ec-80c2-9e872b9990c8', 'name': 'ctest-vn-92368585', 'tenant_id': '20e863cb3e194e859403a707af1f72fe', 'project_id': '20e863cb3e194e859403a707af1f72fe', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['625fe5e3-024e-4c8e-a85b-8ff6d7553e15'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-37678661', 'ctest-vn-92368585'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-37678661', 'ctest-policy-allow-all-22725322']], 'subnet_ipam': [{'subnet_cidr': '111.224.20.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-04-22 21:53:36,495 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ea7cf62b-c5f1-48d3-ba33-706bf769dd23', 'name': 'ctest-vn-16007703', 'tenant_id': '20e863cb3e194e859403a707af1f72fe', 'project_id': '20e863cb3e194e859403a707af1f72fe', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['3588b234-62cc-40fd-95a9-3268e1a12cf4'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-37678661', 'ctest-vn-16007703'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-37678661', 'ctest-policy-allow-all-22725322']], 'subnet_ipam': [{'subnet_cidr': '53.195.82.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-04-22 21:53:36,640 - DEBUG - Requesting: http://10.0.0.65:8082/domains 2025-04-22 21:53:36,946 - DEBUG - Requesting: http://10.0.0.65:8082/domains 2025-04-22 21:53:36,971 - DEBUG - Requesting: http://10.0.0.65:8082/domain/2c9976f1-86b8-42c4-9b07-e3496d0081d1 2025-04-22 21:53:36,983 - DEBUG - Requesting: http://10.0.0.65:8082/project/20e863cb-3e19-4e85-9403-a707af1f72fe 2025-04-22 21:53:37,057 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/5b322114-2301-42ec-80c2-9e872b9990c8 2025-04-22 21:53:37,067 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/5b322114-2301-42ec-80c2-9e872b9990c8 2025-04-22 21:53:37,076 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/f1e8b63b-bfda-4400-93bb-54d5eeac673d 2025-04-22 21:53:37,082 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/f1e8b63b-bfda-4400-93bb-54d5eeac673d 2025-04-22 21:53:37,088 - DEBUG - Requesting: http://10.0.0.65:8082/route-target/1300bc46-9e7f-4fbd-9b35-6aa23e01c3ed 2025-04-22 21:53:37,093 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-04-22 21:53:37,093 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/5b322114-2301-42ec-80c2-9e872b9990c8 2025-04-22 21:53:37,101 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/f1e8b63b-bfda-4400-93bb-54d5eeac673d 2025-04-22 21:53:37,113 - INFO - Verified VN network id 9 for VN 5b322114-2301-42ec-80c2-9e872b9990c8 2025-04-22 21:53:37,114 - INFO - Verifications in API Server for VN ctest-vn-92368585 passed 2025-04-22 21:53:37,114 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/5b322114-2301-42ec-80c2-9e872b9990c8 2025-04-22 21:53:37,122 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/f1e8b63b-bfda-4400-93bb-54d5eeac673d 2025-04-22 21:53:37,128 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/f1e8b63b-bfda-4400-93bb-54d5eeac673d 2025-04-22 21:53:37,133 - DEBUG - Requesting: http://10.0.0.65:8082/route-target/1300bc46-9e7f-4fbd-9b35-6aa23e01c3ed 2025-04-22 21:53:37,144 - DEBUG - Control-node 10.0.0.65 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-37678661:ctest-vn-92368585', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-37678661', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6571351176657322732', 'uuid-lslong': '9278152485725901000'}, 'enable': 'true', 'created': '2025-04-22T21:53:34', 'last-modified': '2025-04-22T21:53:36', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.898322'} 2025-04-22 21:53:37,150 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-04-22 21:53:37,150 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-92368585 passed 2025-04-22 21:53:37,150 - DEBUG - ====Verifying policy data for ctest-vn-92368585 in API_Server ====== 2025-04-22 21:53:37,150 - DEBUG - Requesting: http://10.0.0.65:8082/domains 2025-04-22 21:53:37,155 - DEBUG - Requesting: http://10.0.0.65:8082/domain/2c9976f1-86b8-42c4-9b07-e3496d0081d1 2025-04-22 21:53:37,164 - DEBUG - Requesting: http://10.0.0.65:8082/project/20e863cb-3e19-4e85-9403-a707af1f72fe 2025-04-22 21:53:37,235 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/5b322114-2301-42ec-80c2-9e872b9990c8 2025-04-22 21:53:37,245 - DEBUG - ==>Verifying data for policy with id: dedeae8c-2647-4818-99f3-a8e23ca66586, fqn: ['default-domain', 'ctest-TestBasicPolicy-37678661', 'ctest-policy-allow-all-22725322'] 2025-04-22 21:53:37,245 - INFO - VN ctest-vn-92368585 Policy verification: verify_vn_policy_in_api_server, status: True 2025-04-22 21:53:37,245 - DEBUG - Verifying the vn in opserver 2025-04-22 21:53:37,245 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-37678661:ctest-vn-92368585 virtual network link through opserver 10.0.0.65 2025-04-22 21:53:37,245 - DEBUG - Requesting: http://10.0.0.65:8081/analytics/uves/virtual-networks 2025-04-22 21:53:37,533 - DEBUG - Requesting: http://10.0.0.65:8081/analytics/uves/virtual-networks 2025-04-22 21:53:37,582 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-37678661:ctest-vn-92368585', 'href': 'http://10.0.0.65:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-37678661:ctest-vn-92368585?flat'} 2025-04-22 21:53:37,582 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-37678661:ctest-vn-92368585 is found in opserver 2025-04-22 21:53:37,592 - DEBUG - Do not have enough data to verify VN in agent 2025-04-22 21:53:37,597 - DEBUG - VRF ids for VN ctest-vn-92368585: {} 2025-04-22 21:53:37,597 - DEBUG - Requesting: http://10.0.0.65:8082/domains 2025-04-22 21:53:37,601 - DEBUG - Requesting: http://10.0.0.65:8082/domain/2c9976f1-86b8-42c4-9b07-e3496d0081d1 2025-04-22 21:53:37,611 - DEBUG - Requesting: http://10.0.0.65:8082/project/20e863cb-3e19-4e85-9403-a707af1f72fe 2025-04-22 21:53:37,683 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/ea7cf62b-c5f1-48d3-ba33-706bf769dd23 2025-04-22 21:53:37,694 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/ea7cf62b-c5f1-48d3-ba33-706bf769dd23 2025-04-22 21:53:37,703 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/cc3495a3-dcef-4536-846d-592da10eac5f 2025-04-22 21:53:37,709 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/cc3495a3-dcef-4536-846d-592da10eac5f 2025-04-22 21:53:37,715 - DEBUG - Requesting: http://10.0.0.65:8082/route-target/28cfaf80-3e79-4b44-9309-6fb8d5987b8f 2025-04-22 21:53:37,721 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-04-22 21:53:37,721 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/ea7cf62b-c5f1-48d3-ba33-706bf769dd23 2025-04-22 21:53:37,729 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/cc3495a3-dcef-4536-846d-592da10eac5f 2025-04-22 21:53:37,742 - INFO - Verified VN network id 10 for VN ea7cf62b-c5f1-48d3-ba33-706bf769dd23 2025-04-22 21:53:37,742 - INFO - Verifications in API Server for VN ctest-vn-16007703 passed 2025-04-22 21:53:37,742 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/ea7cf62b-c5f1-48d3-ba33-706bf769dd23 2025-04-22 21:53:37,750 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/cc3495a3-dcef-4536-846d-592da10eac5f 2025-04-22 21:53:37,756 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/cc3495a3-dcef-4536-846d-592da10eac5f 2025-04-22 21:53:37,762 - DEBUG - Requesting: http://10.0.0.65:8082/route-target/28cfaf80-3e79-4b44-9309-6fb8d5987b8f 2025-04-22 21:53:37,774 - DEBUG - Control-node 10.0.0.65 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-37678661:ctest-vn-16007703', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-37678661', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16896650569852209363', 'uuid-lslong': '13417191323881561379'}, 'enable': 'true', 'created': '2025-04-22T21:53:35', 'last-modified': '2025-04-22T21:53:36', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.298419'} 2025-04-22 21:53:37,780 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-04-22 21:53:37,780 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-16007703 passed 2025-04-22 21:53:37,780 - DEBUG - ====Verifying policy data for ctest-vn-16007703 in API_Server ====== 2025-04-22 21:53:37,780 - DEBUG - Requesting: http://10.0.0.65:8082/domains 2025-04-22 21:53:37,786 - DEBUG - Requesting: http://10.0.0.65:8082/domain/2c9976f1-86b8-42c4-9b07-e3496d0081d1 2025-04-22 21:53:37,797 - DEBUG - Requesting: http://10.0.0.65:8082/project/20e863cb-3e19-4e85-9403-a707af1f72fe 2025-04-22 21:53:37,870 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/ea7cf62b-c5f1-48d3-ba33-706bf769dd23 2025-04-22 21:53:37,879 - DEBUG - ==>Verifying data for policy with id: dedeae8c-2647-4818-99f3-a8e23ca66586, fqn: ['default-domain', 'ctest-TestBasicPolicy-37678661', 'ctest-policy-allow-all-22725322'] 2025-04-22 21:53:37,879 - INFO - VN ctest-vn-16007703 Policy verification: verify_vn_policy_in_api_server, status: True 2025-04-22 21:53:37,879 - DEBUG - Verifying the vn in opserver 2025-04-22 21:53:37,879 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-37678661:ctest-vn-16007703 virtual network link through opserver 10.0.0.65 2025-04-22 21:53:37,879 - DEBUG - Requesting: http://10.0.0.65:8081/analytics/uves/virtual-networks 2025-04-22 21:53:37,888 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-37678661:ctest-vn-16007703', 'href': 'http://10.0.0.65:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-37678661:ctest-vn-16007703?flat'} 2025-04-22 21:53:37,889 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-37678661:ctest-vn-16007703 is found in opserver 2025-04-22 21:53:37,899 - DEBUG - Do not have enough data to verify VN in agent 2025-04-22 21:53:37,903 - DEBUG - VRF ids for VN ctest-vn-16007703: {} 2025-04-22 21:53:37,951 - DEBUG - Services list from nova: [, , ] 2025-04-22 21:53:38,886 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3174-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3174-1) 2025-04-22 21:53:40,062 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3174-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3174-1) 2025-04-22 21:53:40,062 - INFO - Waiting for VM ctest-TestBasicPolicy-37678661-97316404 to be up.. 2025-04-22 21:53:40,128 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-04-22 21:53:45,206 - DEBUG - VM is in ACTIVE state now 2025-04-22 21:53:45,206 - INFO - VM name : ctest-TestBasicPolicy-37678661-97316404 2025-04-22 21:53:45,288 - DEBUG - VM ctest-TestBasicPolicy-37678661-97316404 ID is c763637e-7970-4f1b-bdd5-6c127a13ac45 2025-04-22 21:53:45,312 - DEBUG - VM ctest-TestBasicPolicy-37678661-97316404 launched on Node cn-jenkins-deploy-platform-ansible-os-3174-1 2025-04-22 21:53:45,412 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-machine/c763637e-7970-4f1b-bdd5-6c127a13ac45 2025-04-22 21:53:45,423 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-machine-interface/5f3b1ddc-81f7-4b16-bdc9-f4a3e735d040 2025-04-22 21:53:48,674 - 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 1007ms') 2025-04-22 21:53:48,674 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-37678661-97316404 failed! 2025-04-22 21:53:48,730 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-37678661:ctest-vn-92368585 is 111.224.20.193 and allocation pool is NOT set 2025-04-22 21:53:50,790 - 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.92 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.382 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.382/1.649/2.916/1.267 ms') 2025-04-22 21:53:50,790 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-37678661-97316404 passed 2025-04-22 21:53:50,941 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-22 21:53:50,941 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-37678661-97316404, IP 111.224.20.195, Port 22 2025-04-22 21:53:51,093 - DEBUG - VM ctest-TestBasicPolicy-37678661-97316404 is ready for SSH connections 2025-04-22 21:53:51,093 - INFO - Waiting for VM ctest-TestBasicPolicy-37678661-82073204 to be up.. 2025-04-22 21:53:51,162 - DEBUG - VM is in ACTIVE state now 2025-04-22 21:53:51,162 - INFO - VM name : ctest-TestBasicPolicy-37678661-82073204 2025-04-22 21:53:51,230 - DEBUG - VM ctest-TestBasicPolicy-37678661-82073204 ID is 63c6d672-08fe-4726-840b-5c565d41d45d 2025-04-22 21:53:51,230 - DEBUG - VM ctest-TestBasicPolicy-37678661-82073204 launched on Node cn-jenkins-deploy-platform-ansible-os-3174-1 2025-04-22 21:53:51,300 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-machine/63c6d672-08fe-4726-840b-5c565d41d45d 2025-04-22 21:53:51,307 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-machine-interface/07748d3c-00c6-4bcb-aadb-ed5cf2dde063 2025-04-22 21:53:52,532 - 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=2.72 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.406 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 = 0.406/1.564/2.723/1.158 ms') 2025-04-22 21:53:52,532 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-37678661-82073204 passed 2025-04-22 21:53:52,681 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-22 21:53:52,681 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-37678661-82073204, IP 53.195.82.67, Port 22 2025-04-22 21:53:52,840 - DEBUG - VM ctest-TestBasicPolicy-37678661-82073204 is ready for SSH connections 2025-04-22 21:53:52,840 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-22 21:53:52,841 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 53.195.82.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.65, gateway password: c0ntrail123 2025-04-22 21:53:52,841 - DEBUG - ping -s 56 -c 3 -W 1 53.195.82.67 2025-04-22 21:53:56,774 - DEBUG - PING 53.195.82.67 (53.195.82.67): 56 data bytes 64 bytes from 53.195.82.67: seq=0 ttl=63 time=3.170 ms 64 bytes from 53.195.82.67: seq=1 ttl=63 time=0.918 ms 64 bytes from 53.195.82.67: seq=2 ttl=63 time=0.906 ms --- 53.195.82.67 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.906/1.664/3.170 ms 2025-04-22 21:53:56,774 - INFO - Ping to IP 53.195.82.67 from VM ctest-TestBasicPolicy-37678661-97316404 passed 2025-04-22 21:53:56,944 - DEBUG - Policy Update Response {"network-policy": {"uuid": "dedeae8c-2647-4818-99f3-a8e23ca66586", "href": "http://10.0.0.65:8082/network-policy/dedeae8c-2647-4818-99f3-a8e23ca66586"}} 2025-04-22 21:53:56,945 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-22 21:53:56,945 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 53.195.82.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.65, gateway password: c0ntrail123 2025-04-22 21:53:56,945 - DEBUG - ping -s 56 -c 3 -W 1 53.195.82.67 2025-04-22 21:54:00,148 - DEBUG - PING 53.195.82.67 (53.195.82.67): 56 data bytes --- 53.195.82.67 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2025-04-22 21:54:00,149 - WARNING - Ping to IP 53.195.82.67 from VM ctest-TestBasicPolicy-37678661-97316404 failed 2025-04-22 21:54:00,149 - INFO - Deleting VM ctest-TestBasicPolicy-37678661-82073204 2025-04-22 21:54:00,206 - INFO - Deleting VM ctest-TestBasicPolicy-37678661-97316404 2025-04-22 21:54:00,540 - INFO - Deleted policy ctest-policy-allow-all-22725322 2025-04-22 21:54:00,540 - INFO - Deleting VN ctest-vn-16007703 2025-04-22 21:54:00,575 - DEBUG - VN ea7cf62b-c5f1-48d3-ba33-706bf769dd23 still in use: Unable to complete operation on network ea7cf62b-c5f1-48d3-ba33-706bf769dd23. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-e0b0404f-e26d-4045-bbf0-32b2466894a0'] 2025-04-22 21:54:00,575 - WARNING - Deleting VN ctest-vn-16007703 failed..Will retry 2025-04-22 21:54:02,687 - DEBUG - Response for deleting network () 2025-04-22 21:54:02,687 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/cc3495a3-dcef-4536-846d-592da10eac5f 2025-04-22 21:54:02,692 - DEBUG - Response Code: 404 2025-04-22 21:54:02,692 - DEBUG - Requesting: http://10.0.0.65:8082/domains 2025-04-22 21:54:02,698 - DEBUG - Requesting: http://10.0.0.65:8082/domain/2c9976f1-86b8-42c4-9b07-e3496d0081d1 2025-04-22 21:54:02,754 - DEBUG - Requesting: http://10.0.0.65:8082/project/20e863cb-3e19-4e85-9403-a707af1f72fe 2025-04-22 21:54:02,827 - INFO - Validated that VN ctest-vn-16007703 is not found in API Server 2025-04-22 21:54:02,838 - DEBUG - VN ctest-vn-16007703 is not present in Agent 10.0.0.65 2025-04-22 21:54:02,838 - INFO - Validated that VN ctest-vn-16007703 is not in any agent 2025-04-22 21:54:02,852 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-16007703 info 2025-04-22 21:54:02,852 - INFO - Deleting VN ctest-vn-92368585 2025-04-22 21:54:02,956 - DEBUG - Response for deleting network () 2025-04-22 21:54:02,956 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/f1e8b63b-bfda-4400-93bb-54d5eeac673d 2025-04-22 21:54:02,962 - DEBUG - Response Code: 404 2025-04-22 21:54:02,962 - DEBUG - Requesting: http://10.0.0.65:8082/domains 2025-04-22 21:54:02,968 - DEBUG - Requesting: http://10.0.0.65:8082/domain/2c9976f1-86b8-42c4-9b07-e3496d0081d1 2025-04-22 21:54:03,026 - DEBUG - Requesting: http://10.0.0.65:8082/project/20e863cb-3e19-4e85-9403-a707af1f72fe 2025-04-22 21:54:03,101 - INFO - Validated that VN ctest-vn-92368585 is not found in API Server 2025-04-22 21:54:03,113 - DEBUG - VN ctest-vn-92368585 is not present in Agent 10.0.0.65 2025-04-22 21:54:03,113 - INFO - Validated that VN ctest-vn-92368585 is not in any agent 2025-04-22 21:54:03,130 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-92368585 info 2025-04-22 21:54:03,387 - DEBUG - No XMPP flaps were noticed during the test
2025-04-22 21:54:03,387 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:30]
2025-04-22 21:54:03,387 - INFO - -------------------------------------------------------------------------------- 2025-04-22 21:54:04,044 - INFO - Deleted project: ctest-TestBasicPolicy-37678661, ID : 20e863cb-3e19-4e85-9403-a707af1f72fe