2024-09-17 20:23:09,579 - INFO - Domain Default found not creating 2024-09-17 20:23:09,757 - INFO - Project ctest-TestBasicPolicy-31488806 not found, creating it 2024-09-17 20:23:10,257 - INFO - Created Project:ctest-TestBasicPolicy-31488806, ID : e579bb09-a86e-4708-87c9-7b3b454c8344 2024-09-17 20:23:11,781 - INFO - ================================================================================ 2024-09-17 20:23:11,781 - INFO - STARTING TEST : test_basic_policy_allow_deny 2024-09-17 20:23:11,781 - 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-09-17 20:23:12,046 - DEBUG - Nothing to compare xmpp stats {'10.0.0.77': {'10.20.0.24': '0'}} with 2024-09-17 20:23:12,046 - INFO - Initial checks done. Running the testcase now 2024-09-17 20:23:12,046 - INFO - 2024-09-17 20:23:12,619 - DEBUG - Response for create_network : {'network': {'id': '3603e6a2-eedf-41fc-8a0a-3aa5e363f5ac', 'name': 'ctest-vn-06908520', 'tenant_id': 'e579bb09a86e470887c97b3b454c8344', 'project_id': 'e579bb09a86e470887c97b3b454c8344', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-31488806', 'ctest-vn-06908520'], 'port_security_enabled': True, 'description': ''}} 2024-09-17 20:23:12,800 - DEBUG - Response for create_subnet : {'subnet': {'id': '41fd0f9e-f542-4f8d-b739-151fbe6b8b6c', 'name': '', 'tenant_id': 'e579bb09a86e470887c97b3b454c8344', 'network_id': '3603e6a2-eedf-41fc-8a0a-3aa5e363f5ac', 'ip_version': 4, 'cidr': '95.142.122.192/26', 'allocation_pools': [{'start': '95.142.122.194', 'end': '95.142.122.254'}], 'gateway_ip': '95.142.122.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '95.142.122.194', 'tags': [], 'project_id': 'e579bb09a86e470887c97b3b454c8344'}} 2024-09-17 20:23:12,823 - INFO - Created VN ctest-vn-06908520 2024-09-17 20:23:12,883 - DEBUG - VN ctest-vn-06908520 UUID is 3603e6a2-eedf-41fc-8a0a-3aa5e363f5ac 2024-09-17 20:23:13,207 - DEBUG - Response for create_network : {'network': {'id': '08aba263-a3b5-4e8e-8c46-466375ab9754', 'name': 'ctest-vn-55044342', 'tenant_id': 'e579bb09a86e470887c97b3b454c8344', 'project_id': 'e579bb09a86e470887c97b3b454c8344', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-31488806', 'ctest-vn-55044342'], 'port_security_enabled': True, 'description': ''}} 2024-09-17 20:23:13,407 - DEBUG - Response for create_subnet : {'subnet': {'id': 'aa4351f4-fb92-4df6-a73d-1442c02d14e9', 'name': '', 'tenant_id': 'e579bb09a86e470887c97b3b454c8344', 'network_id': '08aba263-a3b5-4e8e-8c46-466375ab9754', 'ip_version': 4, 'cidr': '5.22.194.192/26', 'allocation_pools': [{'start': '5.22.194.194', 'end': '5.22.194.254'}], 'gateway_ip': '5.22.194.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '5.22.194.194', 'tags': [], 'project_id': 'e579bb09a86e470887c97b3b454c8344'}} 2024-09-17 20:23:13,427 - INFO - Created VN ctest-vn-55044342 2024-09-17 20:23:13,483 - DEBUG - VN ctest-vn-55044342 UUID is 08aba263-a3b5-4e8e-8c46-466375ab9754 2024-09-17 20:23:13,600 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-31488806:ctest-vn-06908520, 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-31488806:ctest-vn-55044342, 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-09-17 20:23:13,919 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '3603e6a2-eedf-41fc-8a0a-3aa5e363f5ac', 'name': 'ctest-vn-06908520', 'tenant_id': 'e579bb09a86e470887c97b3b454c8344', 'project_id': 'e579bb09a86e470887c97b3b454c8344', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['41fd0f9e-f542-4f8d-b739-151fbe6b8b6c'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-31488806', 'ctest-vn-06908520'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-31488806', 'ctest-policy-allow-all-73558753']], 'subnet_ipam': [{'subnet_cidr': '95.142.122.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-09-17 20:23:14,171 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '08aba263-a3b5-4e8e-8c46-466375ab9754', 'name': 'ctest-vn-55044342', 'tenant_id': 'e579bb09a86e470887c97b3b454c8344', 'project_id': 'e579bb09a86e470887c97b3b454c8344', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['aa4351f4-fb92-4df6-a73d-1442c02d14e9'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-31488806', 'ctest-vn-55044342'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-31488806', 'ctest-policy-allow-all-73558753']], 'subnet_ipam': [{'subnet_cidr': '5.22.194.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-09-17 20:23:14,343 - DEBUG - Requesting: http://10.0.0.77:8082/domains 2024-09-17 20:23:14,646 - DEBUG - Requesting: http://10.0.0.77:8082/domains 2024-09-17 20:23:14,676 - DEBUG - Requesting: http://10.0.0.77:8082/domain/150f836a-ed93-43c0-a388-54eaf11a9d84 2024-09-17 20:23:14,691 - DEBUG - Requesting: http://10.0.0.77:8082/project/e579bb09-a86e-4708-87c9-7b3b454c8344 2024-09-17 20:23:14,773 - DEBUG - Requesting: http://10.0.0.77:8082/virtual-network/3603e6a2-eedf-41fc-8a0a-3aa5e363f5ac 2024-09-17 20:23:14,790 - DEBUG - Requesting: http://10.0.0.77:8082/virtual-network/3603e6a2-eedf-41fc-8a0a-3aa5e363f5ac 2024-09-17 20:23:14,804 - DEBUG - Requesting: http://10.0.0.77:8082/routing-instance/1d15ec70-4fcc-4ba5-9982-387799e07a2e 2024-09-17 20:23:14,815 - DEBUG - Requesting: http://10.0.0.77:8082/routing-instance/1d15ec70-4fcc-4ba5-9982-387799e07a2e 2024-09-17 20:23:14,825 - DEBUG - Requesting: http://10.0.0.77:8082/route-target/27528bab-ebfc-4345-ba75-1ff5414c4e6d 2024-09-17 20:23:14,834 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-09-17 20:23:14,834 - DEBUG - Requesting: http://10.0.0.77:8082/virtual-network/3603e6a2-eedf-41fc-8a0a-3aa5e363f5ac 2024-09-17 20:23:14,847 - DEBUG - Requesting: http://10.0.0.77:8082/routing-instance/1d15ec70-4fcc-4ba5-9982-387799e07a2e 2024-09-17 20:23:14,871 - INFO - Verified VN network id 8 for VN 3603e6a2-eedf-41fc-8a0a-3aa5e363f5ac 2024-09-17 20:23:14,871 - INFO - Verifications in API Server for VN ctest-vn-06908520 passed 2024-09-17 20:23:14,871 - DEBUG - Requesting: http://10.0.0.77:8082/virtual-network/3603e6a2-eedf-41fc-8a0a-3aa5e363f5ac 2024-09-17 20:23:14,888 - DEBUG - Requesting: http://10.0.0.77:8082/routing-instance/1d15ec70-4fcc-4ba5-9982-387799e07a2e 2024-09-17 20:23:14,897 - DEBUG - Requesting: http://10.0.0.77:8082/routing-instance/1d15ec70-4fcc-4ba5-9982-387799e07a2e 2024-09-17 20:23:14,907 - DEBUG - Requesting: http://10.0.0.77:8082/route-target/27528bab-ebfc-4345-ba75-1ff5414c4e6d 2024-09-17 20:23:14,920 - DEBUG - Control-node 10.0.0.77 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-31488806:ctest-vn-06908520', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-31488806', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3892208090444939772', 'uuid-lslong': '9946827211160155564'}, 'enable': 'true', 'created': '2024-09-17T20:23:12', 'last-modified': '2024-09-17T20:23:13', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.035390'} 2024-09-17 20:23:14,928 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-09-17 20:23:14,928 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-06908520 passed 2024-09-17 20:23:14,928 - DEBUG - ====Verifying policy data for ctest-vn-06908520 in API_Server ====== 2024-09-17 20:23:14,929 - DEBUG - Requesting: http://10.0.0.77:8082/domains 2024-09-17 20:23:14,935 - DEBUG - Requesting: http://10.0.0.77:8082/domain/150f836a-ed93-43c0-a388-54eaf11a9d84 2024-09-17 20:23:14,949 - DEBUG - Requesting: http://10.0.0.77:8082/project/e579bb09-a86e-4708-87c9-7b3b454c8344 2024-09-17 20:23:15,029 - DEBUG - Requesting: http://10.0.0.77:8082/virtual-network/3603e6a2-eedf-41fc-8a0a-3aa5e363f5ac 2024-09-17 20:23:15,042 - DEBUG - ==>Verifying data for policy with id: b8e31720-e529-4c9f-965a-876f37927e83, fqn: ['default-domain', 'ctest-TestBasicPolicy-31488806', 'ctest-policy-allow-all-73558753'] 2024-09-17 20:23:15,042 - INFO - VN ctest-vn-06908520 Policy verification: verify_vn_policy_in_api_server, status: True 2024-09-17 20:23:15,042 - DEBUG - Verifying the vn in opserver 2024-09-17 20:23:15,042 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-31488806:ctest-vn-06908520 virtual network link through opserver 10.0.0.77 2024-09-17 20:23:15,042 - DEBUG - Requesting: http://10.0.0.77:8081/analytics/uves/virtual-networks 2024-09-17 20:23:15,338 - DEBUG - Requesting: http://10.0.0.77:8081/analytics/uves/virtual-networks 2024-09-17 20:23:15,400 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-31488806:ctest-vn-06908520', 'href': 'http://10.0.0.77:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-31488806:ctest-vn-06908520?flat'} 2024-09-17 20:23:15,400 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-31488806:ctest-vn-06908520 is found in opserver 2024-09-17 20:23:15,411 - DEBUG - Do not have enough data to verify VN in agent 2024-09-17 20:23:15,417 - DEBUG - VRF ids for VN ctest-vn-06908520: {} 2024-09-17 20:23:15,417 - DEBUG - Requesting: http://10.0.0.77:8082/domains 2024-09-17 20:23:15,424 - DEBUG - Requesting: http://10.0.0.77:8082/domain/150f836a-ed93-43c0-a388-54eaf11a9d84 2024-09-17 20:23:15,436 - DEBUG - Requesting: http://10.0.0.77:8082/project/e579bb09-a86e-4708-87c9-7b3b454c8344 2024-09-17 20:23:15,518 - DEBUG - Requesting: http://10.0.0.77:8082/virtual-network/08aba263-a3b5-4e8e-8c46-466375ab9754 2024-09-17 20:23:15,534 - DEBUG - Requesting: http://10.0.0.77:8082/virtual-network/08aba263-a3b5-4e8e-8c46-466375ab9754 2024-09-17 20:23:15,547 - DEBUG - Requesting: http://10.0.0.77:8082/routing-instance/458bcba3-c8c4-41e4-bec8-2b98d923cc6e 2024-09-17 20:23:15,556 - DEBUG - Requesting: http://10.0.0.77:8082/routing-instance/458bcba3-c8c4-41e4-bec8-2b98d923cc6e 2024-09-17 20:23:15,567 - DEBUG - Requesting: http://10.0.0.77:8082/route-target/c9091df7-db26-4b2c-a52d-1b854cacd04f 2024-09-17 20:23:15,575 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-09-17 20:23:15,575 - DEBUG - Requesting: http://10.0.0.77:8082/virtual-network/08aba263-a3b5-4e8e-8c46-466375ab9754 2024-09-17 20:23:15,589 - DEBUG - Requesting: http://10.0.0.77:8082/routing-instance/458bcba3-c8c4-41e4-bec8-2b98d923cc6e 2024-09-17 20:23:15,608 - INFO - Verified VN network id 9 for VN 08aba263-a3b5-4e8e-8c46-466375ab9754 2024-09-17 20:23:15,608 - INFO - Verifications in API Server for VN ctest-vn-55044342 passed 2024-09-17 20:23:15,608 - DEBUG - Requesting: http://10.0.0.77:8082/virtual-network/08aba263-a3b5-4e8e-8c46-466375ab9754 2024-09-17 20:23:15,622 - DEBUG - Requesting: http://10.0.0.77:8082/routing-instance/458bcba3-c8c4-41e4-bec8-2b98d923cc6e 2024-09-17 20:23:15,631 - DEBUG - Requesting: http://10.0.0.77:8082/routing-instance/458bcba3-c8c4-41e4-bec8-2b98d923cc6e 2024-09-17 20:23:15,639 - DEBUG - Requesting: http://10.0.0.77:8082/route-target/c9091df7-db26-4b2c-a52d-1b854cacd04f 2024-09-17 20:23:15,653 - DEBUG - Control-node 10.0.0.77 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-31488806:ctest-vn-55044342', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-31488806', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '624771522152976014', 'uuid-lslong': '10107843806669543252'}, 'enable': 'true', 'created': '2024-09-17T20:23:13', 'last-modified': '2024-09-17T20:23:14', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.513144'} 2024-09-17 20:23:15,660 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-09-17 20:23:15,660 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-55044342 passed 2024-09-17 20:23:15,660 - DEBUG - ====Verifying policy data for ctest-vn-55044342 in API_Server ====== 2024-09-17 20:23:15,660 - DEBUG - Requesting: http://10.0.0.77:8082/domains 2024-09-17 20:23:15,667 - DEBUG - Requesting: http://10.0.0.77:8082/domain/150f836a-ed93-43c0-a388-54eaf11a9d84 2024-09-17 20:23:15,680 - DEBUG - Requesting: http://10.0.0.77:8082/project/e579bb09-a86e-4708-87c9-7b3b454c8344 2024-09-17 20:23:15,768 - DEBUG - Requesting: http://10.0.0.77:8082/virtual-network/08aba263-a3b5-4e8e-8c46-466375ab9754 2024-09-17 20:23:15,784 - DEBUG - ==>Verifying data for policy with id: b8e31720-e529-4c9f-965a-876f37927e83, fqn: ['default-domain', 'ctest-TestBasicPolicy-31488806', 'ctest-policy-allow-all-73558753'] 2024-09-17 20:23:15,784 - INFO - VN ctest-vn-55044342 Policy verification: verify_vn_policy_in_api_server, status: True 2024-09-17 20:23:15,784 - DEBUG - Verifying the vn in opserver 2024-09-17 20:23:15,785 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-31488806:ctest-vn-55044342 virtual network link through opserver 10.0.0.77 2024-09-17 20:23:15,785 - DEBUG - Requesting: http://10.0.0.77:8081/analytics/uves/virtual-networks 2024-09-17 20:23:15,798 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-31488806:ctest-vn-55044342', 'href': 'http://10.0.0.77:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-31488806:ctest-vn-55044342?flat'} 2024-09-17 20:23:15,798 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-31488806:ctest-vn-55044342 is found in opserver 2024-09-17 20:23:15,810 - DEBUG - Do not have enough data to verify VN in agent 2024-09-17 20:23:15,815 - DEBUG - VRF ids for VN ctest-vn-55044342: {} 2024-09-17 20:23:15,879 - DEBUG - Services list from nova: [, , ] 2024-09-17 20:23:17,028 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1972-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1972-1) 2024-09-17 20:23:18,184 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1972-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1972-1) 2024-09-17 20:23:18,184 - INFO - Waiting for VM ctest-TestBasicPolicy-31488806-51984264 to be up.. 2024-09-17 20:23:18,273 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-09-17 20:23:23,377 - DEBUG - VM is in ACTIVE state now 2024-09-17 20:23:23,377 - INFO - VM name : ctest-TestBasicPolicy-31488806-51984264 2024-09-17 20:23:23,463 - DEBUG - VM ctest-TestBasicPolicy-31488806-51984264 ID is 2400000c-6074-4a39-966e-3145eb543b6a 2024-09-17 20:23:23,483 - DEBUG - VM ctest-TestBasicPolicy-31488806-51984264 launched on Node cn-jenkins-deploy-platform-ansible-os-1972-1 2024-09-17 20:23:23,576 - DEBUG - Requesting: http://10.0.0.77:8082/virtual-machine/2400000c-6074-4a39-966e-3145eb543b6a 2024-09-17 20:23:23,585 - DEBUG - Requesting: http://10.0.0.77:8082/virtual-machine-interface/252a8325-0a04-44fc-bb3d-ad9815320dd3 2024-09-17 20:23:26,860 - 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 1010ms') 2024-09-17 20:23:26,860 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-31488806-51984264 failed! 2024-09-17 20:23:26,923 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-31488806:ctest-vn-06908520 is 95.142.122.193 and allocation pool is NOT set 2024-09-17 20:23:28,984 - 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=4.35 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.819 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.819/2.586/4.353/1.767 ms') 2024-09-17 20:23:28,985 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-31488806-51984264 passed 2024-09-17 20:23:29,151 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-17 20:23:29,151 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-31488806-51984264, IP 95.142.122.195, Port 22 2024-09-17 20:23:29,306 - DEBUG - VM ctest-TestBasicPolicy-31488806-51984264 is ready for SSH connections 2024-09-17 20:23:29,306 - INFO - Waiting for VM ctest-TestBasicPolicy-31488806-81841420 to be up.. 2024-09-17 20:23:29,391 - DEBUG - VM is in ACTIVE state now 2024-09-17 20:23:29,391 - INFO - VM name : ctest-TestBasicPolicy-31488806-81841420 2024-09-17 20:23:29,471 - DEBUG - VM ctest-TestBasicPolicy-31488806-81841420 ID is 9e3fadd7-aedd-409e-af0f-d418b6c44dd0 2024-09-17 20:23:29,471 - DEBUG - VM ctest-TestBasicPolicy-31488806-81841420 launched on Node cn-jenkins-deploy-platform-ansible-os-1972-1 2024-09-17 20:23:29,554 - DEBUG - Requesting: http://10.0.0.77:8082/virtual-machine/9e3fadd7-aedd-409e-af0f-d418b6c44dd0 2024-09-17 20:23:29,565 - DEBUG - Requesting: http://10.0.0.77:8082/virtual-machine-interface/bcecad27-4efe-4365-a8b7-852c923f3c8e 2024-09-17 20:23:30,828 - 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.99 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=2.67 ms\r\n\r\n--- 169.254.0.4 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1001ms\r\nrtt min/avg/max/mdev = 2.666/2.826/2.987/0.160 ms') 2024-09-17 20:23:30,828 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-31488806-81841420 passed 2024-09-17 20:23:30,991 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-17 20:23:30,992 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-31488806-81841420, IP 5.22.194.195, Port 22 2024-09-17 20:23:31,143 - DEBUG - VM ctest-TestBasicPolicy-31488806-81841420 is ready for SSH connections 2024-09-17 20:23:31,143 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-17 20:23:31,143 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 5.22.194.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.77, gateway password: c0ntrail123 2024-09-17 20:23:31,144 - DEBUG - ping -s 56 -c 3 -W 1 5.22.194.195 2024-09-17 20:23:35,115 - DEBUG - PING 5.22.194.195 (5.22.194.195): 56 data bytes 64 bytes from 5.22.194.195: seq=0 ttl=63 time=4.371 ms 64 bytes from 5.22.194.195: seq=1 ttl=63 time=0.904 ms 64 bytes from 5.22.194.195: seq=2 ttl=63 time=0.805 ms --- 5.22.194.195 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.805/2.026/4.371 ms 2024-09-17 20:23:35,115 - INFO - Ping to IP 5.22.194.195 from VM ctest-TestBasicPolicy-31488806-51984264 passed 2024-09-17 20:23:35,307 - DEBUG - Policy Update Response {"network-policy": {"uuid": "b8e31720-e529-4c9f-965a-876f37927e83", "href": "http://10.0.0.77:8082/network-policy/b8e31720-e529-4c9f-965a-876f37927e83"}} 2024-09-17 20:23:35,307 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-17 20:23:35,307 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 5.22.194.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.77, gateway password: c0ntrail123 2024-09-17 20:23:35,308 - DEBUG - ping -s 56 -c 3 -W 1 5.22.194.195 2024-09-17 20:23:38,515 - DEBUG - PING 5.22.194.195 (5.22.194.195): 56 data bytes 64 bytes from 5.22.194.195: seq=0 ttl=63 time=1.817 ms --- 5.22.194.195 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.817/1.817/1.817 ms 2024-09-17 20:23:38,515 - WARNING - Ping to IP 5.22.194.195 from VM ctest-TestBasicPolicy-31488806-51984264 failed 2024-09-17 20:23:38,515 - INFO - Deleting VM ctest-TestBasicPolicy-31488806-81841420 2024-09-17 20:23:38,581 - INFO - Deleting VM ctest-TestBasicPolicy-31488806-51984264 2024-09-17 20:23:38,983 - INFO - Deleted policy ctest-policy-allow-all-73558753 2024-09-17 20:23:38,984 - INFO - Deleting VN ctest-vn-55044342 2024-09-17 20:23:39,024 - DEBUG - VN 08aba263-a3b5-4e8e-8c46-466375ab9754 still in use: Unable to complete operation on network 08aba263-a3b5-4e8e-8c46-466375ab9754. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-5b2ac51c-5b2c-4256-a1e8-1994cacd86f2'] 2024-09-17 20:23:39,024 - WARNING - Deleting VN ctest-vn-55044342 failed..Will retry 2024-09-17 20:23:41,135 - DEBUG - Response for deleting network () 2024-09-17 20:23:41,135 - DEBUG - Requesting: http://10.0.0.77:8082/routing-instance/458bcba3-c8c4-41e4-bec8-2b98d923cc6e 2024-09-17 20:23:41,140 - DEBUG - Response Code: 404 2024-09-17 20:23:41,140 - DEBUG - Requesting: http://10.0.0.77:8082/domains 2024-09-17 20:23:41,147 - DEBUG - Requesting: http://10.0.0.77:8082/domain/150f836a-ed93-43c0-a388-54eaf11a9d84 2024-09-17 20:23:41,205 - DEBUG - Requesting: http://10.0.0.77:8082/project/e579bb09-a86e-4708-87c9-7b3b454c8344 2024-09-17 20:23:41,285 - INFO - Validated that VN ctest-vn-55044342 is not found in API Server 2024-09-17 20:23:41,296 - DEBUG - VN ctest-vn-55044342 is not present in Agent 10.0.0.77 2024-09-17 20:23:41,296 - INFO - Validated that VN ctest-vn-55044342 is not in any agent 2024-09-17 20:23:41,312 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-55044342 info 2024-09-17 20:23:41,312 - INFO - Deleting VN ctest-vn-06908520 2024-09-17 20:23:41,417 - DEBUG - Response for deleting network () 2024-09-17 20:23:41,417 - DEBUG - Requesting: http://10.0.0.77:8082/routing-instance/1d15ec70-4fcc-4ba5-9982-387799e07a2e 2024-09-17 20:23:41,425 - DEBUG - Response Code: 404 2024-09-17 20:23:41,425 - DEBUG - Requesting: http://10.0.0.77:8082/domains 2024-09-17 20:23:41,432 - DEBUG - Requesting: http://10.0.0.77:8082/domain/150f836a-ed93-43c0-a388-54eaf11a9d84 2024-09-17 20:23:41,490 - DEBUG - Requesting: http://10.0.0.77:8082/project/e579bb09-a86e-4708-87c9-7b3b454c8344 2024-09-17 20:23:41,572 - INFO - Validated that VN ctest-vn-06908520 is not found in API Server 2024-09-17 20:23:41,584 - DEBUG - VN ctest-vn-06908520 is not present in Agent 10.0.0.77 2024-09-17 20:23:41,584 - INFO - Validated that VN ctest-vn-06908520 is not in any agent 2024-09-17 20:23:41,600 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-06908520 info 2024-09-17 20:23:41,857 - DEBUG - No XMPP flaps were noticed during the test 2024-09-17 20:23:41,857 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:30] 2024-09-17 20:23:41,857 - INFO - -------------------------------------------------------------------------------- 2024-09-17 20:23:42,534 - INFO - Deleted project: ctest-TestBasicPolicy-31488806, ID : e579bb09-a86e-4708-87c9-7b3b454c8344