2024-08-23 20:26:54,327 - INFO - Domain Default found not creating 2024-08-23 20:26:55,106 - INFO - Project ctest-TestBasicPolicy-84033609 not found, creating it 2024-08-23 20:26:55,579 - INFO - Created Project:ctest-TestBasicPolicy-84033609, ID : 379108b5-2106-4740-a9a6-b785a736ebe8 2024-08-23 20:26:57,071 - INFO - ================================================================================ 2024-08-23 20:26:57,072 - INFO - STARTING TEST : test_basic_policy_allow_deny 2024-08-23 20:26:57,072 - 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-08-23 20:26:57,325 - DEBUG - Nothing to compare xmpp stats {'10.0.0.36': {'10.20.0.19': '0'}} with 2024-08-23 20:26:57,325 - INFO - Initial checks done. Running the testcase now 2024-08-23 20:26:57,325 - INFO - 2024-08-23 20:26:57,875 - DEBUG - Response for create_network : {'network': {'id': '3f41191d-5bf4-4a90-aa30-4e38227cfb3d', 'name': 'ctest-vn-10863564', 'tenant_id': '379108b521064740a9a6b785a736ebe8', 'project_id': '379108b521064740a9a6b785a736ebe8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-84033609', 'ctest-vn-10863564'], 'port_security_enabled': True, 'description': ''}} 2024-08-23 20:26:58,053 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ad020663-1db8-4c22-b5ca-77944d53eb9e', 'name': '', 'tenant_id': '379108b521064740a9a6b785a736ebe8', 'network_id': '3f41191d-5bf4-4a90-aa30-4e38227cfb3d', 'ip_version': 4, 'cidr': '130.243.119.128/26', 'allocation_pools': [{'start': '130.243.119.130', 'end': '130.243.119.190'}], 'gateway_ip': '130.243.119.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '130.243.119.130', 'tags': [], 'project_id': '379108b521064740a9a6b785a736ebe8'}} 2024-08-23 20:26:58,072 - INFO - Created VN ctest-vn-10863564 2024-08-23 20:26:58,123 - DEBUG - VN ctest-vn-10863564 UUID is 3f41191d-5bf4-4a90-aa30-4e38227cfb3d 2024-08-23 20:26:58,410 - DEBUG - Response for create_network : {'network': {'id': '959c848b-ddde-412b-a3a9-cceddf6e7371', 'name': 'ctest-vn-30964970', 'tenant_id': '379108b521064740a9a6b785a736ebe8', 'project_id': '379108b521064740a9a6b785a736ebe8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-84033609', 'ctest-vn-30964970'], 'port_security_enabled': True, 'description': ''}} 2024-08-23 20:26:58,636 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a39e155a-5963-4698-8c33-c2986d9e0759', 'name': '', 'tenant_id': '379108b521064740a9a6b785a736ebe8', 'network_id': '959c848b-ddde-412b-a3a9-cceddf6e7371', 'ip_version': 4, 'cidr': '1.101.35.64/26', 'allocation_pools': [{'start': '1.101.35.66', 'end': '1.101.35.126'}], 'gateway_ip': '1.101.35.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '1.101.35.66', 'tags': [], 'project_id': '379108b521064740a9a6b785a736ebe8'}} 2024-08-23 20:26:58,659 - INFO - Created VN ctest-vn-30964970 2024-08-23 20:26:58,711 - DEBUG - VN ctest-vn-30964970 UUID is 959c848b-ddde-412b-a3a9-cceddf6e7371 2024-08-23 20:26:58,828 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-84033609:ctest-vn-10863564, 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-84033609:ctest-vn-30964970, 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-08-23 20:26:59,131 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '3f41191d-5bf4-4a90-aa30-4e38227cfb3d', 'name': 'ctest-vn-10863564', 'tenant_id': '379108b521064740a9a6b785a736ebe8', 'project_id': '379108b521064740a9a6b785a736ebe8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['ad020663-1db8-4c22-b5ca-77944d53eb9e'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-84033609', 'ctest-vn-10863564'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-84033609', 'ctest-policy-allow-all-16166588']], 'subnet_ipam': [{'subnet_cidr': '130.243.119.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-08-23 20:26:59,365 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '959c848b-ddde-412b-a3a9-cceddf6e7371', 'name': 'ctest-vn-30964970', 'tenant_id': '379108b521064740a9a6b785a736ebe8', 'project_id': '379108b521064740a9a6b785a736ebe8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['a39e155a-5963-4698-8c33-c2986d9e0759'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-84033609', 'ctest-vn-30964970'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-84033609', 'ctest-policy-allow-all-16166588']], 'subnet_ipam': [{'subnet_cidr': '1.101.35.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-08-23 20:26:59,531 - DEBUG - Requesting: http://10.0.0.36:8082/domains 2024-08-23 20:26:59,830 - DEBUG - Requesting: http://10.0.0.36:8082/domains 2024-08-23 20:26:59,861 - DEBUG - Requesting: http://10.0.0.36:8082/domain/2848cb49-6c46-4cc1-8ef6-b0921ef7c16c 2024-08-23 20:26:59,875 - DEBUG - Requesting: http://10.0.0.36:8082/project/379108b5-2106-4740-a9a6-b785a736ebe8 2024-08-23 20:26:59,947 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-network/3f41191d-5bf4-4a90-aa30-4e38227cfb3d 2024-08-23 20:26:59,958 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-network/3f41191d-5bf4-4a90-aa30-4e38227cfb3d 2024-08-23 20:26:59,967 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/461927b8-01f5-40a3-a52e-f1cd89210d20 2024-08-23 20:26:59,975 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/461927b8-01f5-40a3-a52e-f1cd89210d20 2024-08-23 20:26:59,983 - DEBUG - Requesting: http://10.0.0.36:8082/route-target/cc726a04-6515-413b-a50b-1855d85c075c 2024-08-23 20:26:59,990 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-08-23 20:26:59,990 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-network/3f41191d-5bf4-4a90-aa30-4e38227cfb3d 2024-08-23 20:26:59,999 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/461927b8-01f5-40a3-a52e-f1cd89210d20 2024-08-23 20:27:00,013 - INFO - Verified VN network id 8 for VN 3f41191d-5bf4-4a90-aa30-4e38227cfb3d 2024-08-23 20:27:00,013 - INFO - Verifications in API Server for VN ctest-vn-10863564 passed 2024-08-23 20:27:00,013 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-network/3f41191d-5bf4-4a90-aa30-4e38227cfb3d 2024-08-23 20:27:00,024 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/461927b8-01f5-40a3-a52e-f1cd89210d20 2024-08-23 20:27:00,032 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/461927b8-01f5-40a3-a52e-f1cd89210d20 2024-08-23 20:27:00,039 - DEBUG - Requesting: http://10.0.0.36:8082/route-target/cc726a04-6515-413b-a50b-1855d85c075c 2024-08-23 20:27:00,052 - DEBUG - Control-node 10.0.0.36 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-84033609:ctest-vn-10863564', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-84033609', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4557951911763135120', 'uuid-lslong': '12263387788333611837'}, 'enable': 'true', 'created': '2024-08-23T20:26:57', 'last-modified': '2024-08-23T20:26:59', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.947692'} 2024-08-23 20:27:00,059 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-08-23 20:27:00,059 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-10863564 passed 2024-08-23 20:27:00,059 - DEBUG - ====Verifying policy data for ctest-vn-10863564 in API_Server ====== 2024-08-23 20:27:00,059 - DEBUG - Requesting: http://10.0.0.36:8082/domains 2024-08-23 20:27:00,066 - DEBUG - Requesting: http://10.0.0.36:8082/domain/2848cb49-6c46-4cc1-8ef6-b0921ef7c16c 2024-08-23 20:27:00,079 - DEBUG - Requesting: http://10.0.0.36:8082/project/379108b5-2106-4740-a9a6-b785a736ebe8 2024-08-23 20:27:00,146 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-network/3f41191d-5bf4-4a90-aa30-4e38227cfb3d 2024-08-23 20:27:00,155 - DEBUG - ==>Verifying data for policy with id: fd5089ab-695c-432c-85e7-3ee5c63b2bc8, fqn: ['default-domain', 'ctest-TestBasicPolicy-84033609', 'ctest-policy-allow-all-16166588'] 2024-08-23 20:27:00,155 - INFO - VN ctest-vn-10863564 Policy verification: verify_vn_policy_in_api_server, status: True 2024-08-23 20:27:00,155 - DEBUG - Verifying the vn in opserver 2024-08-23 20:27:00,155 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-84033609:ctest-vn-10863564 virtual network link through opserver 10.0.0.36 2024-08-23 20:27:00,155 - DEBUG - Requesting: http://10.0.0.36:8081/analytics/uves/virtual-networks 2024-08-23 20:27:00,446 - DEBUG - Requesting: http://10.0.0.36:8081/analytics/uves/virtual-networks 2024-08-23 20:27:00,504 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-84033609:ctest-vn-10863564', 'href': 'http://10.0.0.36:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-84033609:ctest-vn-10863564?flat'} 2024-08-23 20:27:00,504 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-84033609:ctest-vn-10863564 is found in opserver 2024-08-23 20:27:00,515 - DEBUG - Do not have enough data to verify VN in agent 2024-08-23 20:27:00,520 - DEBUG - VRF ids for VN ctest-vn-10863564: {} 2024-08-23 20:27:00,520 - DEBUG - Requesting: http://10.0.0.36:8082/domains 2024-08-23 20:27:00,526 - DEBUG - Requesting: http://10.0.0.36:8082/domain/2848cb49-6c46-4cc1-8ef6-b0921ef7c16c 2024-08-23 20:27:00,538 - DEBUG - Requesting: http://10.0.0.36:8082/project/379108b5-2106-4740-a9a6-b785a736ebe8 2024-08-23 20:27:00,613 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-network/959c848b-ddde-412b-a3a9-cceddf6e7371 2024-08-23 20:27:00,626 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-network/959c848b-ddde-412b-a3a9-cceddf6e7371 2024-08-23 20:27:00,637 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/bf74f01f-33c2-43fc-836b-9083825142e7 2024-08-23 20:27:00,644 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/bf74f01f-33c2-43fc-836b-9083825142e7 2024-08-23 20:27:00,653 - DEBUG - Requesting: http://10.0.0.36:8082/route-target/3dcd8ca8-6a02-4b88-a727-55aec2dc5a10 2024-08-23 20:27:00,661 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-08-23 20:27:00,661 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-network/959c848b-ddde-412b-a3a9-cceddf6e7371 2024-08-23 20:27:00,669 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/bf74f01f-33c2-43fc-836b-9083825142e7 2024-08-23 20:27:00,681 - INFO - Verified VN network id 9 for VN 959c848b-ddde-412b-a3a9-cceddf6e7371 2024-08-23 20:27:00,681 - INFO - Verifications in API Server for VN ctest-vn-30964970 passed 2024-08-23 20:27:00,681 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-network/959c848b-ddde-412b-a3a9-cceddf6e7371 2024-08-23 20:27:00,690 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/bf74f01f-33c2-43fc-836b-9083825142e7 2024-08-23 20:27:00,696 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/bf74f01f-33c2-43fc-836b-9083825142e7 2024-08-23 20:27:00,703 - DEBUG - Requesting: http://10.0.0.36:8082/route-target/3dcd8ca8-6a02-4b88-a727-55aec2dc5a10 2024-08-23 20:27:00,715 - DEBUG - Control-node 10.0.0.36 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-84033609:ctest-vn-30964970', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-84033609', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10780637344275775787', 'uuid-lslong': '11793182421274227569'}, 'enable': 'true', 'created': '2024-08-23T20:26:58', 'last-modified': '2024-08-23T20:26:59', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.369418'} 2024-08-23 20:27:00,722 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-08-23 20:27:00,723 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-30964970 passed 2024-08-23 20:27:00,723 - DEBUG - ====Verifying policy data for ctest-vn-30964970 in API_Server ====== 2024-08-23 20:27:00,723 - DEBUG - Requesting: http://10.0.0.36:8082/domains 2024-08-23 20:27:00,729 - DEBUG - Requesting: http://10.0.0.36:8082/domain/2848cb49-6c46-4cc1-8ef6-b0921ef7c16c 2024-08-23 20:27:00,741 - DEBUG - Requesting: http://10.0.0.36:8082/project/379108b5-2106-4740-a9a6-b785a736ebe8 2024-08-23 20:27:00,809 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-network/959c848b-ddde-412b-a3a9-cceddf6e7371 2024-08-23 20:27:00,818 - DEBUG - ==>Verifying data for policy with id: fd5089ab-695c-432c-85e7-3ee5c63b2bc8, fqn: ['default-domain', 'ctest-TestBasicPolicy-84033609', 'ctest-policy-allow-all-16166588'] 2024-08-23 20:27:00,818 - INFO - VN ctest-vn-30964970 Policy verification: verify_vn_policy_in_api_server, status: True 2024-08-23 20:27:00,818 - DEBUG - Verifying the vn in opserver 2024-08-23 20:27:00,818 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-84033609:ctest-vn-30964970 virtual network link through opserver 10.0.0.36 2024-08-23 20:27:00,818 - DEBUG - Requesting: http://10.0.0.36:8081/analytics/uves/virtual-networks 2024-08-23 20:27:00,829 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-84033609:ctest-vn-30964970', 'href': 'http://10.0.0.36:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-84033609:ctest-vn-30964970?flat'} 2024-08-23 20:27:00,829 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-84033609:ctest-vn-30964970 is found in opserver 2024-08-23 20:27:00,840 - DEBUG - Do not have enough data to verify VN in agent 2024-08-23 20:27:00,845 - DEBUG - VRF ids for VN ctest-vn-30964970: {} 2024-08-23 20:27:00,905 - DEBUG - Services list from nova: [, , ] 2024-08-23 20:27:01,916 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1728-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1728-1) 2024-08-23 20:27:03,147 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1728-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1728-1) 2024-08-23 20:27:03,147 - INFO - Waiting for VM ctest-TestBasicPolicy-84033609-47280586 to be up.. 2024-08-23 20:27:03,239 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-08-23 20:27:08,324 - DEBUG - VM is in ACTIVE state now 2024-08-23 20:27:08,324 - INFO - VM name : ctest-TestBasicPolicy-84033609-47280586 2024-08-23 20:27:08,402 - DEBUG - VM ctest-TestBasicPolicy-84033609-47280586 ID is 420ab63b-46d1-4347-ae3b-85c4a169adc3 2024-08-23 20:27:08,422 - DEBUG - VM ctest-TestBasicPolicy-84033609-47280586 launched on Node cn-jenkins-deploy-platform-ansible-os-1728-1 2024-08-23 20:27:08,497 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-machine/420ab63b-46d1-4347-ae3b-85c4a169adc3 2024-08-23 20:27:08,507 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-machine-interface/4b7d3cc3-65a0-4899-9088-1bcda424303f 2024-08-23 20:27:11,757 - 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 1012ms') 2024-08-23 20:27:11,757 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-84033609-47280586 failed! 2024-08-23 20:27:11,811 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-84033609:ctest-vn-10863564 is 130.243.119.129 and allocation pool is NOT set 2024-08-23 20:27:13,875 - 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.61 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.417 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.417/3.514/6.612/3.097 ms') 2024-08-23 20:27:13,875 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-84033609-47280586 passed 2024-08-23 20:27:14,027 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-23 20:27:14,027 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-84033609-47280586, IP 130.243.119.131, Port 22 2024-08-23 20:27:14,179 - DEBUG - VM ctest-TestBasicPolicy-84033609-47280586 is ready for SSH connections 2024-08-23 20:27:14,179 - INFO - Waiting for VM ctest-TestBasicPolicy-84033609-97372024 to be up.. 2024-08-23 20:27:14,261 - DEBUG - VM is in ACTIVE state now 2024-08-23 20:27:14,261 - INFO - VM name : ctest-TestBasicPolicy-84033609-97372024 2024-08-23 20:27:14,341 - DEBUG - VM ctest-TestBasicPolicy-84033609-97372024 ID is 16bbfe73-4b33-4918-b0ab-250aaa7f32b5 2024-08-23 20:27:14,342 - DEBUG - VM ctest-TestBasicPolicy-84033609-97372024 launched on Node cn-jenkins-deploy-platform-ansible-os-1728-1 2024-08-23 20:27:14,428 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-machine/16bbfe73-4b33-4918-b0ab-250aaa7f32b5 2024-08-23 20:27:14,437 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-machine-interface/6585a08e-1d0b-4dc5-adea-0c3b224a8138 2024-08-23 20:27:15,667 - 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.95 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.700 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.700/1.823/2.947/1.123 ms') 2024-08-23 20:27:15,667 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-84033609-97372024 passed 2024-08-23 20:27:15,815 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-23 20:27:15,815 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-84033609-97372024, IP 1.101.35.67, Port 22 2024-08-23 20:27:15,975 - DEBUG - VM ctest-TestBasicPolicy-84033609-97372024 is ready for SSH connections 2024-08-23 20:27:15,975 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-23 20:27:15,975 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 1.101.35.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.36, gateway password: c0ntrail123 2024-08-23 20:27:15,975 - DEBUG - ping -s 56 -c 3 -W 1 1.101.35.67 2024-08-23 20:27:19,987 - DEBUG - PING 1.101.35.67 (1.101.35.67): 56 data bytes 64 bytes from 1.101.35.67: seq=0 ttl=63 time=3.361 ms 64 bytes from 1.101.35.67: seq=1 ttl=63 time=0.805 ms 64 bytes from 1.101.35.67: seq=2 ttl=63 time=0.756 ms --- 1.101.35.67 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.756/1.640/3.361 ms 2024-08-23 20:27:19,988 - INFO - Ping to IP 1.101.35.67 from VM ctest-TestBasicPolicy-84033609-47280586 passed 2024-08-23 20:27:20,159 - DEBUG - Policy Update Response {"network-policy": {"uuid": "fd5089ab-695c-432c-85e7-3ee5c63b2bc8", "href": "http://10.0.0.36:8082/network-policy/fd5089ab-695c-432c-85e7-3ee5c63b2bc8"}} 2024-08-23 20:27:20,160 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-23 20:27:20,160 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 1.101.35.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.36, gateway password: c0ntrail123 2024-08-23 20:27:20,160 - DEBUG - ping -s 56 -c 3 -W 1 1.101.35.67 2024-08-23 20:27:23,351 - DEBUG - PING 1.101.35.67 (1.101.35.67): 56 data bytes 64 bytes from 1.101.35.67: seq=0 ttl=63 time=1.214 ms --- 1.101.35.67 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.214/1.214/1.214 ms 2024-08-23 20:27:23,352 - WARNING - Ping to IP 1.101.35.67 from VM ctest-TestBasicPolicy-84033609-47280586 failed 2024-08-23 20:27:23,352 - INFO - Deleting VM ctest-TestBasicPolicy-84033609-97372024 2024-08-23 20:27:23,415 - INFO - Deleting VM ctest-TestBasicPolicy-84033609-47280586 2024-08-23 20:27:23,806 - INFO - Deleted policy ctest-policy-allow-all-16166588 2024-08-23 20:27:23,806 - INFO - Deleting VN ctest-vn-30964970 2024-08-23 20:27:23,859 - DEBUG - VN 959c848b-ddde-412b-a3a9-cceddf6e7371 still in use: Unable to complete operation on network 959c848b-ddde-412b-a3a9-cceddf6e7371. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-f9a84e7f-b2c3-4b5e-925c-07f00e54f6d6'] 2024-08-23 20:27:23,859 - WARNING - Deleting VN ctest-vn-30964970 failed..Will retry 2024-08-23 20:27:25,972 - DEBUG - Response for deleting network () 2024-08-23 20:27:25,972 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/bf74f01f-33c2-43fc-836b-9083825142e7 2024-08-23 20:27:25,983 - DEBUG - Response Code: 404 2024-08-23 20:27:25,983 - DEBUG - Requesting: http://10.0.0.36:8082/domains 2024-08-23 20:27:25,989 - DEBUG - Requesting: http://10.0.0.36:8082/domain/2848cb49-6c46-4cc1-8ef6-b0921ef7c16c 2024-08-23 20:27:26,045 - DEBUG - Requesting: http://10.0.0.36:8082/project/379108b5-2106-4740-a9a6-b785a736ebe8 2024-08-23 20:27:26,116 - INFO - Validated that VN ctest-vn-30964970 is not found in API Server 2024-08-23 20:27:26,128 - DEBUG - VN ctest-vn-30964970 is not present in Agent 10.0.0.36 2024-08-23 20:27:26,128 - INFO - Validated that VN ctest-vn-30964970 is not in any agent 2024-08-23 20:27:26,144 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-30964970 info 2024-08-23 20:27:26,144 - INFO - Deleting VN ctest-vn-10863564 2024-08-23 20:27:26,255 - DEBUG - Response for deleting network () 2024-08-23 20:27:26,255 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/461927b8-01f5-40a3-a52e-f1cd89210d20 2024-08-23 20:27:26,260 - DEBUG - Response Code: 404 2024-08-23 20:27:26,260 - DEBUG - Requesting: http://10.0.0.36:8082/domains 2024-08-23 20:27:26,266 - DEBUG - Requesting: http://10.0.0.36:8082/domain/2848cb49-6c46-4cc1-8ef6-b0921ef7c16c 2024-08-23 20:27:26,324 - DEBUG - Requesting: http://10.0.0.36:8082/project/379108b5-2106-4740-a9a6-b785a736ebe8 2024-08-23 20:27:26,400 - INFO - Validated that VN ctest-vn-10863564 is not found in API Server 2024-08-23 20:27:26,411 - DEBUG - VN ctest-vn-10863564 is not present in Agent 10.0.0.36 2024-08-23 20:27:26,411 - INFO - Validated that VN ctest-vn-10863564 is not in any agent 2024-08-23 20:27:26,428 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-10863564 info 2024-08-23 20:27:26,691 - DEBUG - No XMPP flaps were noticed during the test 2024-08-23 20:27:26,691 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:29] 2024-08-23 20:27:26,691 - INFO - -------------------------------------------------------------------------------- 2024-08-23 20:27:27,384 - INFO - Deleted project: ctest-TestBasicPolicy-84033609, ID : 379108b5-2106-4740-a9a6-b785a736ebe8