2024-10-26 09:52:13,544 - INFO - Domain Default found not creating 2024-10-26 09:52:13,711 - INFO - Project ctest-TestBasicPolicy-16994805 not found, creating it 2024-10-26 09:52:14,195 - INFO - Created Project:ctest-TestBasicPolicy-16994805, ID : 058e1c31-5cf8-4d6b-8462-f87a89071c27 2024-10-26 09:52:15,800 - INFO - ================================================================================ 2024-10-26 09:52:15,800 - INFO - STARTING TEST : test_basic_policy_allow_deny 2024-10-26 09:52:15,800 - 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-26 09:52:16,061 - DEBUG - Nothing to compare xmpp stats {'10.0.0.34': {'10.20.0.24': '0'}} with 2024-10-26 09:52:16,061 - INFO - Initial checks done. Running the testcase now 2024-10-26 09:52:16,061 - INFO - 2024-10-26 09:52:16,663 - DEBUG - Response for create_network : {'network': {'id': '2a5276e3-9403-4cbd-af66-03b7a6a7c32a', 'name': 'ctest-vn-44376579', 'tenant_id': '058e1c315cf84d6b8462f87a89071c27', 'project_id': '058e1c315cf84d6b8462f87a89071c27', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-16994805', 'ctest-vn-44376579'], 'port_security_enabled': True, 'description': ''}} 2024-10-26 09:52:16,870 - DEBUG - Response for create_subnet : {'subnet': {'id': 'de4c0841-0b1a-44cb-a263-477e7cbc4eb7', 'name': '', 'tenant_id': '058e1c315cf84d6b8462f87a89071c27', 'network_id': '2a5276e3-9403-4cbd-af66-03b7a6a7c32a', 'ip_version': 4, 'cidr': '94.142.203.0/26', 'allocation_pools': [{'start': '94.142.203.2', 'end': '94.142.203.62'}], 'gateway_ip': '94.142.203.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '94.142.203.2', 'tags': [], 'project_id': '058e1c315cf84d6b8462f87a89071c27'}} 2024-10-26 09:52:16,891 - INFO - Created VN ctest-vn-44376579 2024-10-26 09:52:16,950 - DEBUG - VN ctest-vn-44376579 UUID is 2a5276e3-9403-4cbd-af66-03b7a6a7c32a 2024-10-26 09:52:17,291 - DEBUG - Response for create_network : {'network': {'id': 'bd5589e8-884d-4f6d-bfae-4f47b9d947af', 'name': 'ctest-vn-29286085', 'tenant_id': '058e1c315cf84d6b8462f87a89071c27', 'project_id': '058e1c315cf84d6b8462f87a89071c27', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-16994805', 'ctest-vn-29286085'], 'port_security_enabled': True, 'description': ''}} 2024-10-26 09:52:17,461 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e46fa7d0-433e-4f8f-afc3-8ecea86a30d0', 'name': '', 'tenant_id': '058e1c315cf84d6b8462f87a89071c27', 'network_id': 'bd5589e8-884d-4f6d-bfae-4f47b9d947af', 'ip_version': 4, 'cidr': '140.215.33.128/26', 'allocation_pools': [{'start': '140.215.33.130', 'end': '140.215.33.190'}], 'gateway_ip': '140.215.33.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '140.215.33.130', 'tags': [], 'project_id': '058e1c315cf84d6b8462f87a89071c27'}} 2024-10-26 09:52:17,480 - INFO - Created VN ctest-vn-29286085 2024-10-26 09:52:17,538 - DEBUG - VN ctest-vn-29286085 UUID is bd5589e8-884d-4f6d-bfae-4f47b9d947af 2024-10-26 09:52:17,662 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-16994805:ctest-vn-44376579, 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-16994805:ctest-vn-29286085, 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-26 09:52:17,989 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '2a5276e3-9403-4cbd-af66-03b7a6a7c32a', 'name': 'ctest-vn-44376579', 'tenant_id': '058e1c315cf84d6b8462f87a89071c27', 'project_id': '058e1c315cf84d6b8462f87a89071c27', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['de4c0841-0b1a-44cb-a263-477e7cbc4eb7'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-16994805', 'ctest-vn-44376579'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-16994805', 'ctest-policy-allow-all-89771592']], 'subnet_ipam': [{'subnet_cidr': '94.142.203.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-10-26 09:52:18,249 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'bd5589e8-884d-4f6d-bfae-4f47b9d947af', 'name': 'ctest-vn-29286085', 'tenant_id': '058e1c315cf84d6b8462f87a89071c27', 'project_id': '058e1c315cf84d6b8462f87a89071c27', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['e46fa7d0-433e-4f8f-afc3-8ecea86a30d0'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-16994805', 'ctest-vn-29286085'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-16994805', 'ctest-policy-allow-all-89771592']], 'subnet_ipam': [{'subnet_cidr': '140.215.33.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-10-26 09:52:18,418 - DEBUG - Requesting: http://10.0.0.34:8082/domains 2024-10-26 09:52:18,721 - DEBUG - Requesting: http://10.0.0.34:8082/domains 2024-10-26 09:52:18,754 - DEBUG - Requesting: http://10.0.0.34:8082/domain/f4ef1cda-1e03-4455-a85b-b28c3d42c772 2024-10-26 09:52:18,770 - DEBUG - Requesting: http://10.0.0.34:8082/project/058e1c31-5cf8-4d6b-8462-f87a89071c27 2024-10-26 09:52:18,850 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/2a5276e3-9403-4cbd-af66-03b7a6a7c32a 2024-10-26 09:52:18,869 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/2a5276e3-9403-4cbd-af66-03b7a6a7c32a 2024-10-26 09:52:18,884 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/cf9bb1e2-2a06-4014-a458-e52f04d81f0f 2024-10-26 09:52:18,894 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/cf9bb1e2-2a06-4014-a458-e52f04d81f0f 2024-10-26 09:52:18,903 - DEBUG - Requesting: http://10.0.0.34:8082/route-target/33b6899c-daf7-4e54-adfb-b20d1d31b139 2024-10-26 09:52:18,912 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-10-26 09:52:18,912 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/2a5276e3-9403-4cbd-af66-03b7a6a7c32a 2024-10-26 09:52:18,926 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/cf9bb1e2-2a06-4014-a458-e52f04d81f0f 2024-10-26 09:52:18,946 - INFO - Verified VN network id 9 for VN 2a5276e3-9403-4cbd-af66-03b7a6a7c32a 2024-10-26 09:52:18,946 - INFO - Verifications in API Server for VN ctest-vn-44376579 passed 2024-10-26 09:52:18,946 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/2a5276e3-9403-4cbd-af66-03b7a6a7c32a 2024-10-26 09:52:18,962 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/cf9bb1e2-2a06-4014-a458-e52f04d81f0f 2024-10-26 09:52:18,970 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/cf9bb1e2-2a06-4014-a458-e52f04d81f0f 2024-10-26 09:52:18,979 - DEBUG - Requesting: http://10.0.0.34:8082/route-target/33b6899c-daf7-4e54-adfb-b20d1d31b139 2024-10-26 09:52:18,992 - DEBUG - Control-node 10.0.0.34 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-16994805:ctest-vn-44376579', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-16994805', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3049630617496145085', 'uuid-lslong': '12638793491571786538'}, 'enable': 'true', 'created': '2024-10-26T09:52:16', 'last-modified': '2024-10-26T09:52:17', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.032122'} 2024-10-26 09:52:18,999 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-10-26 09:52:19,000 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-44376579 passed 2024-10-26 09:52:19,000 - DEBUG - ====Verifying policy data for ctest-vn-44376579 in API_Server ====== 2024-10-26 09:52:19,000 - DEBUG - Requesting: http://10.0.0.34:8082/domains 2024-10-26 09:52:19,008 - DEBUG - Requesting: http://10.0.0.34:8082/domain/f4ef1cda-1e03-4455-a85b-b28c3d42c772 2024-10-26 09:52:19,022 - DEBUG - Requesting: http://10.0.0.34:8082/project/058e1c31-5cf8-4d6b-8462-f87a89071c27 2024-10-26 09:52:19,110 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/2a5276e3-9403-4cbd-af66-03b7a6a7c32a 2024-10-26 09:52:19,125 - DEBUG - ==>Verifying data for policy with id: 696f4bc2-d396-42a6-be7a-e9a287dd0a55, fqn: ['default-domain', 'ctest-TestBasicPolicy-16994805', 'ctest-policy-allow-all-89771592'] 2024-10-26 09:52:19,125 - INFO - VN ctest-vn-44376579 Policy verification: verify_vn_policy_in_api_server, status: True 2024-10-26 09:52:19,125 - DEBUG - Verifying the vn in opserver 2024-10-26 09:52:19,125 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-16994805:ctest-vn-44376579 virtual network link through opserver 10.0.0.34 2024-10-26 09:52:19,126 - DEBUG - Requesting: http://10.0.0.34:8081/analytics/uves/virtual-networks 2024-10-26 09:52:19,426 - DEBUG - Requesting: http://10.0.0.34:8081/analytics/uves/virtual-networks 2024-10-26 09:52:19,494 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-16994805:ctest-vn-44376579', 'href': 'http://10.0.0.34:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-16994805:ctest-vn-44376579?flat'} 2024-10-26 09:52:19,494 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-16994805:ctest-vn-44376579 is found in opserver 2024-10-26 09:52:19,507 - DEBUG - Do not have enough data to verify VN in agent 2024-10-26 09:52:19,513 - DEBUG - VRF ids for VN ctest-vn-44376579: {} 2024-10-26 09:52:19,513 - DEBUG - Requesting: http://10.0.0.34:8082/domains 2024-10-26 09:52:19,520 - DEBUG - Requesting: http://10.0.0.34:8082/domain/f4ef1cda-1e03-4455-a85b-b28c3d42c772 2024-10-26 09:52:19,536 - DEBUG - Requesting: http://10.0.0.34:8082/project/058e1c31-5cf8-4d6b-8462-f87a89071c27 2024-10-26 09:52:19,616 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/bd5589e8-884d-4f6d-bfae-4f47b9d947af 2024-10-26 09:52:19,634 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/bd5589e8-884d-4f6d-bfae-4f47b9d947af 2024-10-26 09:52:19,648 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/58bcfb05-f738-452a-a229-5d25cc67eff9 2024-10-26 09:52:19,657 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/58bcfb05-f738-452a-a229-5d25cc67eff9 2024-10-26 09:52:19,669 - DEBUG - Requesting: http://10.0.0.34:8082/route-target/5e2a4f75-9ef6-4634-ae73-70c2fb6444b0 2024-10-26 09:52:19,678 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-10-26 09:52:19,679 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/bd5589e8-884d-4f6d-bfae-4f47b9d947af 2024-10-26 09:52:19,694 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/58bcfb05-f738-452a-a229-5d25cc67eff9 2024-10-26 09:52:19,719 - INFO - Verified VN network id 10 for VN bd5589e8-884d-4f6d-bfae-4f47b9d947af 2024-10-26 09:52:19,719 - INFO - Verifications in API Server for VN ctest-vn-29286085 passed 2024-10-26 09:52:19,719 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/bd5589e8-884d-4f6d-bfae-4f47b9d947af 2024-10-26 09:52:19,733 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/58bcfb05-f738-452a-a229-5d25cc67eff9 2024-10-26 09:52:19,742 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/58bcfb05-f738-452a-a229-5d25cc67eff9 2024-10-26 09:52:19,751 - DEBUG - Requesting: http://10.0.0.34:8082/route-target/5e2a4f75-9ef6-4634-ae73-70c2fb6444b0 2024-10-26 09:52:19,765 - DEBUG - Control-node 10.0.0.34 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-16994805:ctest-vn-29286085', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-16994805', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13642962278000971629', 'uuid-lslong': '13812064276671186863'}, 'enable': 'true', 'created': '2024-10-26T09:52:17', 'last-modified': '2024-10-26T09:52:18', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.546944'} 2024-10-26 09:52:19,774 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-10-26 09:52:19,774 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-29286085 passed 2024-10-26 09:52:19,774 - DEBUG - ====Verifying policy data for ctest-vn-29286085 in API_Server ====== 2024-10-26 09:52:19,775 - DEBUG - Requesting: http://10.0.0.34:8082/domains 2024-10-26 09:52:19,782 - DEBUG - Requesting: http://10.0.0.34:8082/domain/f4ef1cda-1e03-4455-a85b-b28c3d42c772 2024-10-26 09:52:19,796 - DEBUG - Requesting: http://10.0.0.34:8082/project/058e1c31-5cf8-4d6b-8462-f87a89071c27 2024-10-26 09:52:19,879 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/bd5589e8-884d-4f6d-bfae-4f47b9d947af 2024-10-26 09:52:19,896 - DEBUG - ==>Verifying data for policy with id: 696f4bc2-d396-42a6-be7a-e9a287dd0a55, fqn: ['default-domain', 'ctest-TestBasicPolicy-16994805', 'ctest-policy-allow-all-89771592'] 2024-10-26 09:52:19,896 - INFO - VN ctest-vn-29286085 Policy verification: verify_vn_policy_in_api_server, status: True 2024-10-26 09:52:19,896 - DEBUG - Verifying the vn in opserver 2024-10-26 09:52:19,896 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-16994805:ctest-vn-29286085 virtual network link through opserver 10.0.0.34 2024-10-26 09:52:19,896 - DEBUG - Requesting: http://10.0.0.34:8081/analytics/uves/virtual-networks 2024-10-26 09:52:19,911 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-16994805:ctest-vn-29286085', 'href': 'http://10.0.0.34:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-16994805:ctest-vn-29286085?flat'} 2024-10-26 09:52:19,911 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-16994805:ctest-vn-29286085 is found in opserver 2024-10-26 09:52:19,925 - DEBUG - Do not have enough data to verify VN in agent 2024-10-26 09:52:19,932 - DEBUG - VRF ids for VN ctest-vn-29286085: {} 2024-10-26 09:52:20,007 - DEBUG - Services list from nova: [, , ] 2024-10-26 09:52:21,229 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2149-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2149-1) 2024-10-26 09:52:22,510 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2149-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2149-1) 2024-10-26 09:52:22,510 - INFO - Waiting for VM ctest-TestBasicPolicy-16994805-80364891 to be up.. 2024-10-26 09:52:22,616 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-10-26 09:52:27,752 - DEBUG - VM is in ACTIVE state now 2024-10-26 09:52:27,752 - INFO - VM name : ctest-TestBasicPolicy-16994805-80364891 2024-10-26 09:52:27,851 - DEBUG - VM ctest-TestBasicPolicy-16994805-80364891 ID is 91aa2bec-b406-4826-8b3c-2e1e0b612005 2024-10-26 09:52:27,876 - DEBUG - VM ctest-TestBasicPolicy-16994805-80364891 launched on Node cn-jenkins-deploy-platform-ansible-os-2149-1 2024-10-26 09:52:27,972 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-machine/91aa2bec-b406-4826-8b3c-2e1e0b612005 2024-10-26 09:52:27,985 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-machine-interface/ddceba9d-3687-4a3f-af9c-9df0503ac48b 2024-10-26 09:52:31,268 - 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 1023ms') 2024-10-26 09:52:31,268 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-16994805-80364891 failed! 2024-10-26 09:52:31,338 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-16994805:ctest-vn-44376579 is 94.142.203.1 and allocation pool is NOT set 2024-10-26 09:52:33,404 - 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=5.44 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.437 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.437/2.938/5.439/2.501 ms') 2024-10-26 09:52:33,404 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-16994805-80364891 passed 2024-10-26 09:52:33,566 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-26 09:52:33,567 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-16994805-80364891, IP 94.142.203.3, Port 22 2024-10-26 09:52:33,727 - DEBUG - VM ctest-TestBasicPolicy-16994805-80364891 is ready for SSH connections 2024-10-26 09:52:33,727 - INFO - Waiting for VM ctest-TestBasicPolicy-16994805-47068049 to be up.. 2024-10-26 09:52:33,823 - DEBUG - VM is in ACTIVE state now 2024-10-26 09:52:33,823 - INFO - VM name : ctest-TestBasicPolicy-16994805-47068049 2024-10-26 09:52:33,928 - DEBUG - VM ctest-TestBasicPolicy-16994805-47068049 ID is edc04927-ccb0-466a-b68c-56c77d821518 2024-10-26 09:52:33,928 - DEBUG - VM ctest-TestBasicPolicy-16994805-47068049 launched on Node cn-jenkins-deploy-platform-ansible-os-2149-1 2024-10-26 09:52:34,016 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-machine/edc04927-ccb0-466a-b68c-56c77d821518 2024-10-26 09:52:34,033 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-machine-interface/29193dd3-f453-4607-84ee-e5140ef32a07 2024-10-26 09:52:35,299 - 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.96 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.620 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.620/2.290/3.961/1.670 ms') 2024-10-26 09:52:35,299 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-16994805-47068049 passed 2024-10-26 09:52:35,462 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-26 09:52:35,462 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-16994805-47068049, IP 140.215.33.131, Port 22 2024-10-26 09:52:35,617 - DEBUG - VM ctest-TestBasicPolicy-16994805-47068049 is ready for SSH connections 2024-10-26 09:52:35,617 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-26 09:52:35,618 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 140.215.33.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.34, gateway password: c0ntrail123 2024-10-26 09:52:35,618 - DEBUG - ping -s 56 -c 3 -W 1 140.215.33.131 2024-10-26 09:52:39,638 - DEBUG - PING 140.215.33.131 (140.215.33.131): 56 data bytes 64 bytes from 140.215.33.131: seq=0 ttl=63 time=4.784 ms 64 bytes from 140.215.33.131: seq=1 ttl=63 time=0.905 ms 64 bytes from 140.215.33.131: seq=2 ttl=63 time=0.839 ms --- 140.215.33.131 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.839/2.176/4.784 ms 2024-10-26 09:52:39,638 - INFO - Ping to IP 140.215.33.131 from VM ctest-TestBasicPolicy-16994805-80364891 passed 2024-10-26 09:52:39,834 - DEBUG - Policy Update Response {"network-policy": {"uuid": "696f4bc2-d396-42a6-be7a-e9a287dd0a55", "href": "http://10.0.0.34:8082/network-policy/696f4bc2-d396-42a6-be7a-e9a287dd0a55"}} 2024-10-26 09:52:39,834 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-26 09:52:39,835 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 140.215.33.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.34, gateway password: c0ntrail123 2024-10-26 09:52:39,835 - DEBUG - ping -s 56 -c 3 -W 1 140.215.33.131 2024-10-26 09:52:43,052 - DEBUG - PING 140.215.33.131 (140.215.33.131): 56 data bytes 64 bytes from 140.215.33.131: seq=0 ttl=63 time=2.095 ms --- 140.215.33.131 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 2.095/2.095/2.095 ms 2024-10-26 09:52:43,053 - WARNING - Ping to IP 140.215.33.131 from VM ctest-TestBasicPolicy-16994805-80364891 failed 2024-10-26 09:52:43,053 - INFO - Deleting VM ctest-TestBasicPolicy-16994805-47068049 2024-10-26 09:52:43,131 - INFO - Deleting VM ctest-TestBasicPolicy-16994805-80364891 2024-10-26 09:52:43,570 - INFO - Deleted policy ctest-policy-allow-all-89771592 2024-10-26 09:52:43,571 - INFO - Deleting VN ctest-vn-29286085 2024-10-26 09:52:43,620 - DEBUG - VN bd5589e8-884d-4f6d-bfae-4f47b9d947af still in use: Unable to complete operation on network bd5589e8-884d-4f6d-bfae-4f47b9d947af. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-cbe706c2-c828-4955-a831-ac41320446c8'] 2024-10-26 09:52:43,620 - WARNING - Deleting VN ctest-vn-29286085 failed..Will retry 2024-10-26 09:52:45,741 - DEBUG - Response for deleting network () 2024-10-26 09:52:45,741 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/58bcfb05-f738-452a-a229-5d25cc67eff9 2024-10-26 09:52:45,747 - DEBUG - Response Code: 404 2024-10-26 09:52:45,747 - DEBUG - Requesting: http://10.0.0.34:8082/domains 2024-10-26 09:52:45,758 - DEBUG - Requesting: http://10.0.0.34:8082/domain/f4ef1cda-1e03-4455-a85b-b28c3d42c772 2024-10-26 09:52:45,818 - DEBUG - Requesting: http://10.0.0.34:8082/project/058e1c31-5cf8-4d6b-8462-f87a89071c27 2024-10-26 09:52:45,906 - INFO - Validated that VN ctest-vn-29286085 is not found in API Server 2024-10-26 09:52:45,917 - DEBUG - VN ctest-vn-29286085 is not present in Agent 10.0.0.34 2024-10-26 09:52:45,917 - INFO - Validated that VN ctest-vn-29286085 is not in any agent 2024-10-26 09:52:45,933 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-29286085 info 2024-10-26 09:52:45,933 - INFO - Deleting VN ctest-vn-44376579 2024-10-26 09:52:46,043 - DEBUG - Response for deleting network () 2024-10-26 09:52:46,043 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/cf9bb1e2-2a06-4014-a458-e52f04d81f0f 2024-10-26 09:52:46,049 - DEBUG - Response Code: 404 2024-10-26 09:52:46,049 - DEBUG - Requesting: http://10.0.0.34:8082/domains 2024-10-26 09:52:46,059 - DEBUG - Requesting: http://10.0.0.34:8082/domain/f4ef1cda-1e03-4455-a85b-b28c3d42c772 2024-10-26 09:52:46,117 - DEBUG - Requesting: http://10.0.0.34:8082/project/058e1c31-5cf8-4d6b-8462-f87a89071c27 2024-10-26 09:52:46,200 - INFO - Validated that VN ctest-vn-44376579 is not found in API Server 2024-10-26 09:52:46,211 - DEBUG - VN ctest-vn-44376579 is not present in Agent 10.0.0.34 2024-10-26 09:52:46,212 - INFO - Validated that VN ctest-vn-44376579 is not in any agent 2024-10-26 09:52:46,228 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-44376579 info 2024-10-26 09:52:46,489 - DEBUG - No XMPP flaps were noticed during the test
2024-10-26 09:52:46,489 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:31]
2024-10-26 09:52:46,489 - INFO - -------------------------------------------------------------------------------- 2024-10-26 09:52:47,192 - INFO - Deleted project: ctest-TestBasicPolicy-16994805, ID : 058e1c31-5cf8-4d6b-8462-f87a89071c27