2024-10-28 16:24:34,374 - INFO - Domain Default found not creating 2024-10-28 16:24:34,573 - INFO - Project ctest-TestBasicPolicy-03841069 not found, creating it 2024-10-28 16:24:35,118 - INFO - Created Project:ctest-TestBasicPolicy-03841069, ID : 65ad1f0f-7bb3-42c2-8c73-4e4a62409337 2024-10-28 16:24:36,709 - INFO - ================================================================================ 2024-10-28 16:24:36,709 - INFO - STARTING TEST : test_basic_policy_allow_deny 2024-10-28 16:24:36,709 - 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 2024-10-28 16:24:36,968 - DEBUG - Nothing to compare xmpp stats {'10.0.0.42': {'10.20.0.22': '0'}} with 2024-10-28 16:24:36,968 - INFO - Initial checks done. Running the testcase now 2024-10-28 16:24:36,968 - INFO - 2024-10-28 16:24:37,579 - DEBUG - Response for create_network : {'network': {'id': 'cd483632-0c21-4534-9b41-29703d6abc95', 'name': 'ctest-vn-82247956', 'tenant_id': '65ad1f0f7bb342c28c734e4a62409337', 'project_id': '65ad1f0f7bb342c28c734e4a62409337', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-03841069', 'ctest-vn-82247956'], 'port_security_enabled': True, 'description': ''}} 2024-10-28 16:24:37,785 - DEBUG - Response for create_subnet : {'subnet': {'id': '6c09a119-d97e-4507-9e1d-f0542a285889', 'name': '', 'tenant_id': '65ad1f0f7bb342c28c734e4a62409337', 'network_id': 'cd483632-0c21-4534-9b41-29703d6abc95', 'ip_version': 4, 'cidr': '174.28.38.64/26', 'allocation_pools': [{'start': '174.28.38.66', 'end': '174.28.38.126'}], 'gateway_ip': '174.28.38.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '174.28.38.66', 'tags': [], 'project_id': '65ad1f0f7bb342c28c734e4a62409337'}} 2024-10-28 16:24:37,807 - INFO - Created VN ctest-vn-82247956 2024-10-28 16:24:37,865 - DEBUG - VN ctest-vn-82247956 UUID is cd483632-0c21-4534-9b41-29703d6abc95 2024-10-28 16:24:38,217 - DEBUG - Response for create_network : {'network': {'id': '648133f9-e7d3-4fd2-9442-20a7812076f5', 'name': 'ctest-vn-45330416', 'tenant_id': '65ad1f0f7bb342c28c734e4a62409337', 'project_id': '65ad1f0f7bb342c28c734e4a62409337', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-03841069', 'ctest-vn-45330416'], 'port_security_enabled': True, 'description': ''}} 2024-10-28 16:24:38,418 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a6870da9-694c-4ec4-a02a-7a43f8ba8bb0', 'name': '', 'tenant_id': '65ad1f0f7bb342c28c734e4a62409337', 'network_id': '648133f9-e7d3-4fd2-9442-20a7812076f5', 'ip_version': 4, 'cidr': '41.153.77.64/26', 'allocation_pools': [{'start': '41.153.77.66', 'end': '41.153.77.126'}], 'gateway_ip': '41.153.77.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '41.153.77.66', 'tags': [], 'project_id': '65ad1f0f7bb342c28c734e4a62409337'}} 2024-10-28 16:24:38,442 - INFO - Created VN ctest-vn-45330416 2024-10-28 16:24:38,501 - DEBUG - VN ctest-vn-45330416 UUID is 648133f9-e7d3-4fd2-9442-20a7812076f5 2024-10-28 16:24:38,631 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-03841069:ctest-vn-82247956, 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-03841069:ctest-vn-45330416, 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] 2024-10-28 16:24:38,962 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'cd483632-0c21-4534-9b41-29703d6abc95', 'name': 'ctest-vn-82247956', 'tenant_id': '65ad1f0f7bb342c28c734e4a62409337', 'project_id': '65ad1f0f7bb342c28c734e4a62409337', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['6c09a119-d97e-4507-9e1d-f0542a285889'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-03841069', 'ctest-vn-82247956'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-03841069', 'ctest-policy-allow-all-54014681']], 'subnet_ipam': [{'subnet_cidr': '174.28.38.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-10-28 16:24:39,225 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '648133f9-e7d3-4fd2-9442-20a7812076f5', 'name': 'ctest-vn-45330416', 'tenant_id': '65ad1f0f7bb342c28c734e4a62409337', 'project_id': '65ad1f0f7bb342c28c734e4a62409337', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['a6870da9-694c-4ec4-a02a-7a43f8ba8bb0'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-03841069', 'ctest-vn-45330416'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-03841069', 'ctest-policy-allow-all-54014681']], 'subnet_ipam': [{'subnet_cidr': '41.153.77.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-10-28 16:24:39,401 - DEBUG - Requesting: http://10.0.0.42:8082/domains 2024-10-28 16:24:39,697 - DEBUG - Requesting: http://10.0.0.42:8082/domains 2024-10-28 16:24:39,732 - DEBUG - Requesting: http://10.0.0.42:8082/domain/0eadca13-f91b-4073-b75d-e931ef45dff3 2024-10-28 16:24:39,748 - DEBUG - Requesting: http://10.0.0.42:8082/project/65ad1f0f-7bb3-42c2-8c73-4e4a62409337 2024-10-28 16:24:39,831 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/cd483632-0c21-4534-9b41-29703d6abc95 2024-10-28 16:24:39,848 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/cd483632-0c21-4534-9b41-29703d6abc95 2024-10-28 16:24:39,869 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/d7f7fac3-6aa0-4f1d-af49-5812673f0eb3 2024-10-28 16:24:39,879 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/d7f7fac3-6aa0-4f1d-af49-5812673f0eb3 2024-10-28 16:24:39,890 - DEBUG - Requesting: http://10.0.0.42:8082/route-target/f3c02318-ef2a-45d7-8eb2-da3b900f5d7a 2024-10-28 16:24:39,898 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-10-28 16:24:39,898 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/cd483632-0c21-4534-9b41-29703d6abc95 2024-10-28 16:24:39,913 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/d7f7fac3-6aa0-4f1d-af49-5812673f0eb3 2024-10-28 16:24:39,939 - INFO - Verified VN network id 8 for VN cd483632-0c21-4534-9b41-29703d6abc95 2024-10-28 16:24:39,939 - INFO - Verifications in API Server for VN ctest-vn-82247956 passed 2024-10-28 16:24:39,939 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/cd483632-0c21-4534-9b41-29703d6abc95 2024-10-28 16:24:39,955 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/d7f7fac3-6aa0-4f1d-af49-5812673f0eb3 2024-10-28 16:24:39,966 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/d7f7fac3-6aa0-4f1d-af49-5812673f0eb3 2024-10-28 16:24:39,976 - DEBUG - Requesting: http://10.0.0.42:8082/route-target/f3c02318-ef2a-45d7-8eb2-da3b900f5d7a 2024-10-28 16:24:39,992 - DEBUG - Control-node 10.0.0.42 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-03841069:ctest-vn-82247956', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-03841069', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14792132564678165812', 'uuid-lslong': '11187268511408503957'}, 'enable': 'true', 'created': '2024-10-28T16:24:37', 'last-modified': '2024-10-28T16:24:38', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.057023'} 2024-10-28 16:24:40,001 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-10-28 16:24:40,001 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-82247956 passed 2024-10-28 16:24:40,001 - DEBUG - ====Verifying policy data for ctest-vn-82247956 in API_Server ====== 2024-10-28 16:24:40,001 - DEBUG - Requesting: http://10.0.0.42:8082/domains 2024-10-28 16:24:40,010 - DEBUG - Requesting: http://10.0.0.42:8082/domain/0eadca13-f91b-4073-b75d-e931ef45dff3 2024-10-28 16:24:40,028 - DEBUG - Requesting: http://10.0.0.42:8082/project/65ad1f0f-7bb3-42c2-8c73-4e4a62409337 2024-10-28 16:24:40,112 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/cd483632-0c21-4534-9b41-29703d6abc95 2024-10-28 16:24:40,132 - DEBUG - ==>Verifying data for policy with id: 923826bb-8de0-4f20-9fc8-c1e3fcfa6831, fqn: ['default-domain', 'ctest-TestBasicPolicy-03841069', 'ctest-policy-allow-all-54014681'] 2024-10-28 16:24:40,132 - INFO - VN ctest-vn-82247956 Policy verification: verify_vn_policy_in_api_server, status: True 2024-10-28 16:24:40,132 - DEBUG - Verifying the vn in opserver 2024-10-28 16:24:40,133 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-03841069:ctest-vn-82247956 virtual network link through opserver 10.0.0.42 2024-10-28 16:24:40,133 - DEBUG - Requesting: http://10.0.0.42:8081/analytics/uves/virtual-networks 2024-10-28 16:24:40,437 - DEBUG - Requesting: http://10.0.0.42:8081/analytics/uves/virtual-networks 2024-10-28 16:24:40,505 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-03841069:ctest-vn-82247956', 'href': 'http://10.0.0.42:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-03841069:ctest-vn-82247956?flat'} 2024-10-28 16:24:40,505 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-03841069:ctest-vn-82247956 is found in opserver 2024-10-28 16:24:40,517 - DEBUG - Do not have enough data to verify VN in agent 2024-10-28 16:24:40,523 - DEBUG - VRF ids for VN ctest-vn-82247956: {} 2024-10-28 16:24:40,523 - DEBUG - Requesting: http://10.0.0.42:8082/domains 2024-10-28 16:24:40,539 - DEBUG - Requesting: http://10.0.0.42:8082/domain/0eadca13-f91b-4073-b75d-e931ef45dff3 2024-10-28 16:24:40,557 - DEBUG - Requesting: http://10.0.0.42:8082/project/65ad1f0f-7bb3-42c2-8c73-4e4a62409337 2024-10-28 16:24:40,641 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/648133f9-e7d3-4fd2-9442-20a7812076f5 2024-10-28 16:24:40,661 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/648133f9-e7d3-4fd2-9442-20a7812076f5 2024-10-28 16:24:40,677 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/7418ce71-bab0-40e7-afe8-5a987da6d843 2024-10-28 16:24:40,689 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/7418ce71-bab0-40e7-afe8-5a987da6d843 2024-10-28 16:24:40,699 - DEBUG - Requesting: http://10.0.0.42:8082/route-target/19e3c65e-1b65-4eb1-ad05-763537912ae6 2024-10-28 16:24:40,708 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-10-28 16:24:40,708 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/648133f9-e7d3-4fd2-9442-20a7812076f5 2024-10-28 16:24:40,723 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/7418ce71-bab0-40e7-afe8-5a987da6d843 2024-10-28 16:24:40,745 - INFO - Verified VN network id 9 for VN 648133f9-e7d3-4fd2-9442-20a7812076f5 2024-10-28 16:24:40,745 - INFO - Verifications in API Server for VN ctest-vn-45330416 passed 2024-10-28 16:24:40,745 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/648133f9-e7d3-4fd2-9442-20a7812076f5 2024-10-28 16:24:40,761 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/7418ce71-bab0-40e7-afe8-5a987da6d843 2024-10-28 16:24:40,770 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/7418ce71-bab0-40e7-afe8-5a987da6d843 2024-10-28 16:24:40,779 - DEBUG - Requesting: http://10.0.0.42:8082/route-target/19e3c65e-1b65-4eb1-ad05-763537912ae6 2024-10-28 16:24:40,794 - DEBUG - Control-node 10.0.0.42 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-03841069:ctest-vn-45330416', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-03841069', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7242126824217726930', 'uuid-lslong': '10683137169874253557'}, 'enable': 'true', 'created': '2024-10-28T16:24:38', 'last-modified': '2024-10-28T16:24:39', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.596869'} 2024-10-28 16:24:40,802 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-10-28 16:24:40,804 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-45330416 passed 2024-10-28 16:24:40,805 - DEBUG - ====Verifying policy data for ctest-vn-45330416 in API_Server ====== 2024-10-28 16:24:40,805 - DEBUG - Requesting: http://10.0.0.42:8082/domains 2024-10-28 16:24:40,812 - DEBUG - Requesting: http://10.0.0.42:8082/domain/0eadca13-f91b-4073-b75d-e931ef45dff3 2024-10-28 16:24:40,826 - DEBUG - Requesting: http://10.0.0.42:8082/project/65ad1f0f-7bb3-42c2-8c73-4e4a62409337 2024-10-28 16:24:40,912 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/648133f9-e7d3-4fd2-9442-20a7812076f5 2024-10-28 16:24:40,927 - DEBUG - ==>Verifying data for policy with id: 923826bb-8de0-4f20-9fc8-c1e3fcfa6831, fqn: ['default-domain', 'ctest-TestBasicPolicy-03841069', 'ctest-policy-allow-all-54014681'] 2024-10-28 16:24:40,927 - INFO - VN ctest-vn-45330416 Policy verification: verify_vn_policy_in_api_server, status: True 2024-10-28 16:24:40,927 - DEBUG - Verifying the vn in opserver 2024-10-28 16:24:40,927 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-03841069:ctest-vn-45330416 virtual network link through opserver 10.0.0.42 2024-10-28 16:24:40,927 - DEBUG - Requesting: http://10.0.0.42:8081/analytics/uves/virtual-networks 2024-10-28 16:24:40,940 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-03841069:ctest-vn-45330416', 'href': 'http://10.0.0.42:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-03841069:ctest-vn-45330416?flat'} 2024-10-28 16:24:40,940 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-03841069:ctest-vn-45330416 is found in opserver 2024-10-28 16:24:40,952 - DEBUG - Do not have enough data to verify VN in agent 2024-10-28 16:24:40,958 - DEBUG - VRF ids for VN ctest-vn-45330416: {} 2024-10-28 16:24:41,031 - DEBUG - Services list from nova: [, , ] 2024-10-28 16:24:42,287 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2167-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2167-1) 2024-10-28 16:24:43,574 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2167-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2167-1) 2024-10-28 16:24:43,574 - INFO - Waiting for VM ctest-TestBasicPolicy-03841069-00909764 to be up.. 2024-10-28 16:24:43,699 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-10-28 16:24:48,792 - DEBUG - VM is in ACTIVE state now 2024-10-28 16:24:48,792 - INFO - VM name : ctest-TestBasicPolicy-03841069-00909764 2024-10-28 16:24:48,882 - DEBUG - VM ctest-TestBasicPolicy-03841069-00909764 ID is 87dfc43d-b89a-489c-8533-b017379d21c4 2024-10-28 16:24:48,903 - DEBUG - VM ctest-TestBasicPolicy-03841069-00909764 launched on Node cn-jenkins-deploy-platform-ansible-os-2167-1 2024-10-28 16:24:48,991 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-machine/87dfc43d-b89a-489c-8533-b017379d21c4 2024-10-28 16:24:49,010 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-machine-interface/c079ae24-4022-405f-9590-09ba756f8e67 2024-10-28 16:24:52,304 - 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 1026ms') 2024-10-28 16:24:52,305 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-03841069-00909764 failed! 2024-10-28 16:24:52,369 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-03841069:ctest-vn-82247956 is 174.28.38.65 and allocation pool is NOT set 2024-10-28 16:24:54,439 - DEBUG - (True, 'PING 169.254.0.3 (169.254.0.3) 56(84) bytes of data.\r\n64 bytes from 169.254.0.3: icmp_seq=1 ttl=63 time=9.52 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=2.07 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.067/5.794/9.522/3.727 ms') 2024-10-28 16:24:54,439 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-03841069-00909764 passed 2024-10-28 16:24:54,613 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-28 16:24:54,613 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-03841069-00909764, IP 174.28.38.67, Port 22 2024-10-28 16:24:54,784 - DEBUG - VM ctest-TestBasicPolicy-03841069-00909764 is ready for SSH connections 2024-10-28 16:24:54,785 - INFO - Waiting for VM ctest-TestBasicPolicy-03841069-43604238 to be up.. 2024-10-28 16:24:54,881 - DEBUG - VM is in ACTIVE state now 2024-10-28 16:24:54,881 - INFO - VM name : ctest-TestBasicPolicy-03841069-43604238 2024-10-28 16:24:54,975 - DEBUG - VM ctest-TestBasicPolicy-03841069-43604238 ID is cf06660f-514c-42f9-a17e-39b4738d6d62 2024-10-28 16:24:54,975 - DEBUG - VM ctest-TestBasicPolicy-03841069-43604238 launched on Node cn-jenkins-deploy-platform-ansible-os-2167-1 2024-10-28 16:24:55,064 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-machine/cf06660f-514c-42f9-a17e-39b4738d6d62 2024-10-28 16:24:55,076 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-machine-interface/b4f7bfce-b1a0-4d8f-b8a0-aa97d980bd45 2024-10-28 16:24:56,326 - 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=3.17 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.948 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.948/2.059/3.171/1.111 ms') 2024-10-28 16:24:56,326 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-03841069-43604238 passed 2024-10-28 16:24:56,493 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-28 16:24:56,493 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-03841069-43604238, IP 41.153.77.67, Port 22 2024-10-28 16:24:56,660 - DEBUG - VM ctest-TestBasicPolicy-03841069-43604238 is ready for SSH connections 2024-10-28 16:24:56,660 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-28 16:24:56,660 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 41.153.77.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.42, gateway password: c0ntrail123 2024-10-28 16:24:56,660 - DEBUG - ping -s 56 -c 3 -W 1 41.153.77.67 2024-10-28 16:25:00,749 - DEBUG - PING 41.153.77.67 (41.153.77.67): 56 data bytes 64 bytes from 41.153.77.67: seq=0 ttl=63 time=3.978 ms 64 bytes from 41.153.77.67: seq=1 ttl=63 time=1.326 ms 64 bytes from 41.153.77.67: seq=2 ttl=63 time=0.877 ms --- 41.153.77.67 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.877/2.060/3.978 ms 2024-10-28 16:25:00,749 - INFO - Ping to IP 41.153.77.67 from VM ctest-TestBasicPolicy-03841069-00909764 passed 2024-10-28 16:25:00,953 - DEBUG - Policy Update Response {"network-policy": {"uuid": "923826bb-8de0-4f20-9fc8-c1e3fcfa6831", "href": "http://10.0.0.42:8082/network-policy/923826bb-8de0-4f20-9fc8-c1e3fcfa6831"}} 2024-10-28 16:25:00,953 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-28 16:25:00,953 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 41.153.77.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.42, gateway password: c0ntrail123 2024-10-28 16:25:00,953 - DEBUG - ping -s 56 -c 3 -W 1 41.153.77.67 2024-10-28 16:25:04,169 - DEBUG - PING 41.153.77.67 (41.153.77.67): 56 data bytes 64 bytes from 41.153.77.67: seq=0 ttl=63 time=1.622 ms --- 41.153.77.67 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.622/1.622/1.622 ms 2024-10-28 16:25:04,170 - WARNING - Ping to IP 41.153.77.67 from VM ctest-TestBasicPolicy-03841069-00909764 failed 2024-10-28 16:25:04,170 - INFO - Deleting VM ctest-TestBasicPolicy-03841069-43604238 2024-10-28 16:25:04,260 - INFO - Deleting VM ctest-TestBasicPolicy-03841069-00909764 2024-10-28 16:25:04,726 - INFO - Deleted policy ctest-policy-allow-all-54014681 2024-10-28 16:25:04,726 - INFO - Deleting VN ctest-vn-45330416 2024-10-28 16:25:04,778 - DEBUG - VN 648133f9-e7d3-4fd2-9442-20a7812076f5 still in use: Unable to complete operation on network 648133f9-e7d3-4fd2-9442-20a7812076f5. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-c0dcf2f2-4d60-4181-9ccd-85e46fb58be5'] 2024-10-28 16:25:04,778 - WARNING - Deleting VN ctest-vn-45330416 failed..Will retry 2024-10-28 16:25:06,925 - DEBUG - Response for deleting network () 2024-10-28 16:25:06,925 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/7418ce71-bab0-40e7-afe8-5a987da6d843 2024-10-28 16:25:06,933 - DEBUG - Response Code: 404 2024-10-28 16:25:06,933 - DEBUG - Requesting: http://10.0.0.42:8082/domains 2024-10-28 16:25:06,940 - DEBUG - Requesting: http://10.0.0.42:8082/domain/0eadca13-f91b-4073-b75d-e931ef45dff3 2024-10-28 16:25:06,997 - DEBUG - Requesting: http://10.0.0.42:8082/project/65ad1f0f-7bb3-42c2-8c73-4e4a62409337 2024-10-28 16:25:07,085 - INFO - Validated that VN ctest-vn-45330416 is not found in API Server 2024-10-28 16:25:07,098 - DEBUG - VN ctest-vn-45330416 is not present in Agent 10.0.0.42 2024-10-28 16:25:07,099 - INFO - Validated that VN ctest-vn-45330416 is not in any agent 2024-10-28 16:25:07,116 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-45330416 info 2024-10-28 16:25:07,116 - INFO - Deleting VN ctest-vn-82247956 2024-10-28 16:25:07,262 - DEBUG - Response for deleting network () 2024-10-28 16:25:07,262 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/d7f7fac3-6aa0-4f1d-af49-5812673f0eb3 2024-10-28 16:25:07,270 - DEBUG - Response Code: 404 2024-10-28 16:25:07,270 - DEBUG - Requesting: http://10.0.0.42:8082/domains 2024-10-28 16:25:07,279 - DEBUG - Requesting: http://10.0.0.42:8082/domain/0eadca13-f91b-4073-b75d-e931ef45dff3 2024-10-28 16:25:07,342 - DEBUG - Requesting: http://10.0.0.42:8082/project/65ad1f0f-7bb3-42c2-8c73-4e4a62409337 2024-10-28 16:25:07,437 - INFO - Validated that VN ctest-vn-82247956 is not found in API Server 2024-10-28 16:25:07,449 - DEBUG - VN ctest-vn-82247956 is not present in Agent 10.0.0.42 2024-10-28 16:25:07,449 - INFO - Validated that VN ctest-vn-82247956 is not in any agent 2024-10-28 16:25:07,470 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-82247956 info 2024-10-28 16:25:07,728 - DEBUG - No XMPP flaps were noticed during the test 2024-10-28 16:25:07,728 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:31] 2024-10-28 16:25:07,728 - INFO - -------------------------------------------------------------------------------- 2024-10-28 16:25:08,475 - INFO - Deleted project: ctest-TestBasicPolicy-03841069, ID : 65ad1f0f-7bb3-42c2-8c73-4e4a62409337