2024-09-04 13:59:45,200 - INFO - Domain Default found not creating 2024-09-04 13:59:45,391 - INFO - Project ctest-TestBasicPolicy-93207588 not found, creating it 2024-09-04 13:59:45,901 - INFO - Created Project:ctest-TestBasicPolicy-93207588, ID : d53ff46f-e83c-4225-a261-9ce96b8aeedf 2024-09-04 13:59:47,533 - INFO - ================================================================================ 2024-09-04 13:59:47,534 - INFO - STARTING TEST : test_basic_policy_allow_deny 2024-09-04 13:59:47,534 - 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-04 13:59:47,804 - DEBUG - Nothing to compare xmpp stats {'10.0.0.53': {'10.20.0.23': '0'}} with 2024-09-04 13:59:47,804 - INFO - Initial checks done. Running the testcase now 2024-09-04 13:59:47,804 - INFO - 2024-09-04 13:59:48,399 - DEBUG - Response for create_network : {'network': {'id': '2243d6eb-6904-41be-b97a-fd26d90883c8', 'name': 'ctest-vn-36906249', 'tenant_id': 'd53ff46fe83c4225a2619ce96b8aeedf', 'project_id': 'd53ff46fe83c4225a2619ce96b8aeedf', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-93207588', 'ctest-vn-36906249'], 'port_security_enabled': True, 'description': ''}} 2024-09-04 13:59:48,610 - DEBUG - Response for create_subnet : {'subnet': {'id': '651b5117-4098-4d68-a23a-721721453137', 'name': '', 'tenant_id': 'd53ff46fe83c4225a2619ce96b8aeedf', 'network_id': '2243d6eb-6904-41be-b97a-fd26d90883c8', 'ip_version': 4, 'cidr': '140.244.211.128/26', 'allocation_pools': [{'start': '140.244.211.130', 'end': '140.244.211.190'}], 'gateway_ip': '140.244.211.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '140.244.211.130', 'tags': [], 'project_id': 'd53ff46fe83c4225a2619ce96b8aeedf'}} 2024-09-04 13:59:48,636 - INFO - Created VN ctest-vn-36906249 2024-09-04 13:59:48,691 - DEBUG - VN ctest-vn-36906249 UUID is 2243d6eb-6904-41be-b97a-fd26d90883c8 2024-09-04 13:59:49,012 - DEBUG - Response for create_network : {'network': {'id': 'ff15190d-775d-459f-9dc1-e8e3006ef2ff', 'name': 'ctest-vn-11660188', 'tenant_id': 'd53ff46fe83c4225a2619ce96b8aeedf', 'project_id': 'd53ff46fe83c4225a2619ce96b8aeedf', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-93207588', 'ctest-vn-11660188'], 'port_security_enabled': True, 'description': ''}} 2024-09-04 13:59:49,219 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd9d281cc-fcb5-454f-b8d8-a2b7390994ea', 'name': '', 'tenant_id': 'd53ff46fe83c4225a2619ce96b8aeedf', 'network_id': 'ff15190d-775d-459f-9dc1-e8e3006ef2ff', 'ip_version': 4, 'cidr': '113.162.177.64/26', 'allocation_pools': [{'start': '113.162.177.66', 'end': '113.162.177.126'}], 'gateway_ip': '113.162.177.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '113.162.177.66', 'tags': [], 'project_id': 'd53ff46fe83c4225a2619ce96b8aeedf'}} 2024-09-04 13:59:49,243 - INFO - Created VN ctest-vn-11660188 2024-09-04 13:59:49,295 - DEBUG - VN ctest-vn-11660188 UUID is ff15190d-775d-459f-9dc1-e8e3006ef2ff 2024-09-04 13:59:49,418 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-93207588:ctest-vn-36906249, 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-93207588:ctest-vn-11660188, 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-04 13:59:49,760 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '2243d6eb-6904-41be-b97a-fd26d90883c8', 'name': 'ctest-vn-36906249', 'tenant_id': 'd53ff46fe83c4225a2619ce96b8aeedf', 'project_id': 'd53ff46fe83c4225a2619ce96b8aeedf', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['651b5117-4098-4d68-a23a-721721453137'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-93207588', 'ctest-vn-36906249'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-93207588', 'ctest-policy-allow-all-02097471']], 'subnet_ipam': [{'subnet_cidr': '140.244.211.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-09-04 13:59:50,016 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ff15190d-775d-459f-9dc1-e8e3006ef2ff', 'name': 'ctest-vn-11660188', 'tenant_id': 'd53ff46fe83c4225a2619ce96b8aeedf', 'project_id': 'd53ff46fe83c4225a2619ce96b8aeedf', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['d9d281cc-fcb5-454f-b8d8-a2b7390994ea'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-93207588', 'ctest-vn-11660188'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-93207588', 'ctest-policy-allow-all-02097471']], 'subnet_ipam': [{'subnet_cidr': '113.162.177.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-09-04 13:59:50,175 - DEBUG - Requesting: http://10.0.0.53:8082/domains 2024-09-04 13:59:50,507 - DEBUG - Requesting: http://10.0.0.53:8082/domains 2024-09-04 13:59:50,540 - DEBUG - Requesting: http://10.0.0.53:8082/domain/71ff85a5-fa66-4156-8b6e-fcf48c891146 2024-09-04 13:59:50,558 - DEBUG - Requesting: http://10.0.0.53:8082/project/d53ff46f-e83c-4225-a261-9ce96b8aeedf 2024-09-04 13:59:50,635 - DEBUG - Requesting: http://10.0.0.53:8082/virtual-network/2243d6eb-6904-41be-b97a-fd26d90883c8 2024-09-04 13:59:50,646 - DEBUG - Requesting: http://10.0.0.53:8082/virtual-network/2243d6eb-6904-41be-b97a-fd26d90883c8 2024-09-04 13:59:50,656 - DEBUG - Requesting: http://10.0.0.53:8082/routing-instance/9e3da33f-e58a-474c-92b1-8905e50c4c28 2024-09-04 13:59:50,665 - DEBUG - Requesting: http://10.0.0.53:8082/routing-instance/9e3da33f-e58a-474c-92b1-8905e50c4c28 2024-09-04 13:59:50,683 - DEBUG - Requesting: http://10.0.0.53:8082/route-target/ada887db-a687-4362-bb9b-15edce6485db 2024-09-04 13:59:50,691 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-09-04 13:59:50,691 - DEBUG - Requesting: http://10.0.0.53:8082/virtual-network/2243d6eb-6904-41be-b97a-fd26d90883c8 2024-09-04 13:59:50,699 - DEBUG - Requesting: http://10.0.0.53:8082/routing-instance/9e3da33f-e58a-474c-92b1-8905e50c4c28 2024-09-04 13:59:50,713 - INFO - Verified VN network id 8 for VN 2243d6eb-6904-41be-b97a-fd26d90883c8 2024-09-04 13:59:50,713 - INFO - Verifications in API Server for VN ctest-vn-36906249 passed 2024-09-04 13:59:50,713 - DEBUG - Requesting: http://10.0.0.53:8082/virtual-network/2243d6eb-6904-41be-b97a-fd26d90883c8 2024-09-04 13:59:50,723 - DEBUG - Requesting: http://10.0.0.53:8082/routing-instance/9e3da33f-e58a-474c-92b1-8905e50c4c28 2024-09-04 13:59:50,730 - DEBUG - Requesting: http://10.0.0.53:8082/routing-instance/9e3da33f-e58a-474c-92b1-8905e50c4c28 2024-09-04 13:59:50,737 - DEBUG - Requesting: http://10.0.0.53:8082/route-target/ada887db-a687-4362-bb9b-15edce6485db 2024-09-04 13:59:50,750 - DEBUG - Control-node 10.0.0.53 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-93207588:ctest-vn-36906249', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-93207588', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2469053327296709054', 'uuid-lslong': '13365273187467166664'}, 'enable': 'true', 'created': '2024-09-04T13:59:48', 'last-modified': '2024-09-04T13:59:49', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.033633'} 2024-09-04 13:59:50,757 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-09-04 13:59:50,757 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-36906249 passed 2024-09-04 13:59:50,757 - DEBUG - ====Verifying policy data for ctest-vn-36906249 in API_Server ====== 2024-09-04 13:59:50,757 - DEBUG - Requesting: http://10.0.0.53:8082/domains 2024-09-04 13:59:50,766 - DEBUG - Requesting: http://10.0.0.53:8082/domain/71ff85a5-fa66-4156-8b6e-fcf48c891146 2024-09-04 13:59:50,779 - DEBUG - Requesting: http://10.0.0.53:8082/project/d53ff46f-e83c-4225-a261-9ce96b8aeedf 2024-09-04 13:59:50,854 - DEBUG - Requesting: http://10.0.0.53:8082/virtual-network/2243d6eb-6904-41be-b97a-fd26d90883c8 2024-09-04 13:59:50,863 - DEBUG - ==>Verifying data for policy with id: 94036b3f-fb56-4252-8de2-d044eb234f9c, fqn: ['default-domain', 'ctest-TestBasicPolicy-93207588', 'ctest-policy-allow-all-02097471'] 2024-09-04 13:59:50,863 - INFO - VN ctest-vn-36906249 Policy verification: verify_vn_policy_in_api_server, status: True 2024-09-04 13:59:50,864 - DEBUG - Verifying the vn in opserver 2024-09-04 13:59:50,864 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-93207588:ctest-vn-36906249 virtual network link through opserver 10.0.0.53 2024-09-04 13:59:50,864 - DEBUG - Requesting: http://10.0.0.53:8081/analytics/uves/virtual-networks 2024-09-04 13:59:51,164 - DEBUG - Requesting: http://10.0.0.53:8081/analytics/uves/virtual-networks 2024-09-04 13:59:51,235 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-93207588:ctest-vn-36906249', 'href': 'http://10.0.0.53:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-93207588:ctest-vn-36906249?flat'} 2024-09-04 13:59:51,236 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-93207588:ctest-vn-36906249 is found in opserver 2024-09-04 13:59:51,248 - DEBUG - Do not have enough data to verify VN in agent 2024-09-04 13:59:51,255 - DEBUG - VRF ids for VN ctest-vn-36906249: {} 2024-09-04 13:59:51,255 - DEBUG - Requesting: http://10.0.0.53:8082/domains 2024-09-04 13:59:51,262 - DEBUG - Requesting: http://10.0.0.53:8082/domain/71ff85a5-fa66-4156-8b6e-fcf48c891146 2024-09-04 13:59:51,275 - DEBUG - Requesting: http://10.0.0.53:8082/project/d53ff46f-e83c-4225-a261-9ce96b8aeedf 2024-09-04 13:59:51,348 - DEBUG - Requesting: http://10.0.0.53:8082/virtual-network/ff15190d-775d-459f-9dc1-e8e3006ef2ff 2024-09-04 13:59:51,360 - DEBUG - Requesting: http://10.0.0.53:8082/virtual-network/ff15190d-775d-459f-9dc1-e8e3006ef2ff 2024-09-04 13:59:51,369 - DEBUG - Requesting: http://10.0.0.53:8082/routing-instance/b211c527-f3c2-4b24-b988-948975b68064 2024-09-04 13:59:51,377 - DEBUG - Requesting: http://10.0.0.53:8082/routing-instance/b211c527-f3c2-4b24-b988-948975b68064 2024-09-04 13:59:51,385 - DEBUG - Requesting: http://10.0.0.53:8082/route-target/0c86711d-6b47-4d3e-8a87-497c32b4d612 2024-09-04 13:59:51,393 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-09-04 13:59:51,393 - DEBUG - Requesting: http://10.0.0.53:8082/virtual-network/ff15190d-775d-459f-9dc1-e8e3006ef2ff 2024-09-04 13:59:51,402 - DEBUG - Requesting: http://10.0.0.53:8082/routing-instance/b211c527-f3c2-4b24-b988-948975b68064 2024-09-04 13:59:51,417 - INFO - Verified VN network id 9 for VN ff15190d-775d-459f-9dc1-e8e3006ef2ff 2024-09-04 13:59:51,417 - INFO - Verifications in API Server for VN ctest-vn-11660188 passed 2024-09-04 13:59:51,417 - DEBUG - Requesting: http://10.0.0.53:8082/virtual-network/ff15190d-775d-459f-9dc1-e8e3006ef2ff 2024-09-04 13:59:51,428 - DEBUG - Requesting: http://10.0.0.53:8082/routing-instance/b211c527-f3c2-4b24-b988-948975b68064 2024-09-04 13:59:51,437 - DEBUG - Requesting: http://10.0.0.53:8082/routing-instance/b211c527-f3c2-4b24-b988-948975b68064 2024-09-04 13:59:51,446 - DEBUG - Requesting: http://10.0.0.53:8082/route-target/0c86711d-6b47-4d3e-8a87-497c32b4d612 2024-09-04 13:59:51,460 - DEBUG - Control-node 10.0.0.53 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-93207588:ctest-vn-11660188', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-93207588', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '18380624999810418079', 'uuid-lslong': '11367622996122333951'}, 'enable': 'true', 'created': '2024-09-04T13:59:48', 'last-modified': '2024-09-04T13:59:49', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.475211'} 2024-09-04 13:59:51,468 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-09-04 13:59:51,468 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-11660188 passed 2024-09-04 13:59:51,469 - DEBUG - ====Verifying policy data for ctest-vn-11660188 in API_Server ====== 2024-09-04 13:59:51,469 - DEBUG - Requesting: http://10.0.0.53:8082/domains 2024-09-04 13:59:51,481 - DEBUG - Requesting: http://10.0.0.53:8082/domain/71ff85a5-fa66-4156-8b6e-fcf48c891146 2024-09-04 13:59:51,495 - DEBUG - Requesting: http://10.0.0.53:8082/project/d53ff46f-e83c-4225-a261-9ce96b8aeedf 2024-09-04 13:59:51,567 - DEBUG - Requesting: http://10.0.0.53:8082/virtual-network/ff15190d-775d-459f-9dc1-e8e3006ef2ff 2024-09-04 13:59:51,578 - DEBUG - ==>Verifying data for policy with id: 94036b3f-fb56-4252-8de2-d044eb234f9c, fqn: ['default-domain', 'ctest-TestBasicPolicy-93207588', 'ctest-policy-allow-all-02097471'] 2024-09-04 13:59:51,578 - INFO - VN ctest-vn-11660188 Policy verification: verify_vn_policy_in_api_server, status: True 2024-09-04 13:59:51,578 - DEBUG - Verifying the vn in opserver 2024-09-04 13:59:51,578 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-93207588:ctest-vn-11660188 virtual network link through opserver 10.0.0.53 2024-09-04 13:59:51,578 - DEBUG - Requesting: http://10.0.0.53:8081/analytics/uves/virtual-networks 2024-09-04 13:59:51,598 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-93207588:ctest-vn-11660188', 'href': 'http://10.0.0.53:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-93207588:ctest-vn-11660188?flat'} 2024-09-04 13:59:51,598 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-93207588:ctest-vn-11660188 is found in opserver 2024-09-04 13:59:51,615 - DEBUG - Do not have enough data to verify VN in agent 2024-09-04 13:59:51,624 - DEBUG - VRF ids for VN ctest-vn-11660188: {} 2024-09-04 13:59:51,699 - DEBUG - Services list from nova: [, , ] 2024-09-04 13:59:52,907 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1841-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1841-1) 2024-09-04 13:59:54,162 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1841-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1841-1) 2024-09-04 13:59:54,162 - INFO - Waiting for VM ctest-TestBasicPolicy-93207588-46273111 to be up.. 2024-09-04 13:59:54,268 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-09-04 13:59:59,351 - DEBUG - VM is in ACTIVE state now 2024-09-04 13:59:59,351 - INFO - VM name : ctest-TestBasicPolicy-93207588-46273111 2024-09-04 13:59:59,437 - DEBUG - VM ctest-TestBasicPolicy-93207588-46273111 ID is e0f139de-99e7-4e58-a477-d0e2f3ee2542 2024-09-04 13:59:59,459 - DEBUG - VM ctest-TestBasicPolicy-93207588-46273111 launched on Node cn-jenkins-deploy-platform-ansible-os-1841-1 2024-09-04 13:59:59,555 - DEBUG - Requesting: http://10.0.0.53:8082/virtual-machine/e0f139de-99e7-4e58-a477-d0e2f3ee2542 2024-09-04 13:59:59,565 - DEBUG - Requesting: http://10.0.0.53:8082/virtual-machine-interface/0d7eacfe-a212-4767-abd0-091309557ae7 2024-09-04 14:00:02,822 - 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 1011ms') 2024-09-04 14:00:02,822 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-93207588-46273111 failed! 2024-09-04 14:00:02,879 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-93207588:ctest-vn-36906249 is 140.244.211.129 and allocation pool is NOT set 2024-09-04 14:00:04,941 - 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=15.9 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.947 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.947/8.402/15.858/7.455 ms') 2024-09-04 14:00:04,941 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-93207588-46273111 passed 2024-09-04 14:00:05,091 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-04 14:00:05,091 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-93207588-46273111, IP 140.244.211.131, Port 22 2024-09-04 14:00:05,251 - DEBUG - VM ctest-TestBasicPolicy-93207588-46273111 is ready for SSH connections 2024-09-04 14:00:05,251 - INFO - Waiting for VM ctest-TestBasicPolicy-93207588-60847575 to be up.. 2024-09-04 14:00:05,345 - DEBUG - VM is in ACTIVE state now 2024-09-04 14:00:05,345 - INFO - VM name : ctest-TestBasicPolicy-93207588-60847575 2024-09-04 14:00:05,431 - DEBUG - VM ctest-TestBasicPolicy-93207588-60847575 ID is 72c2d12a-8b98-442f-9497-789494ce7627 2024-09-04 14:00:05,432 - DEBUG - VM ctest-TestBasicPolicy-93207588-60847575 launched on Node cn-jenkins-deploy-platform-ansible-os-1841-1 2024-09-04 14:00:05,525 - DEBUG - Requesting: http://10.0.0.53:8082/virtual-machine/72c2d12a-8b98-442f-9497-789494ce7627 2024-09-04 14:00:05,535 - DEBUG - Requesting: http://10.0.0.53:8082/virtual-machine-interface/d0533c26-b141-49e0-a541-882925debbd8 2024-09-04 14:00:06,781 - 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=5.36 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=2.59 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.592/3.977/5.362/1.385 ms') 2024-09-04 14:00:06,782 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-93207588-60847575 passed 2024-09-04 14:00:06,935 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-04 14:00:06,935 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-93207588-60847575, IP 113.162.177.67, Port 22 2024-09-04 14:00:07,106 - DEBUG - VM ctest-TestBasicPolicy-93207588-60847575 is ready for SSH connections 2024-09-04 14:00:07,106 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-04 14:00:07,106 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 113.162.177.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.53, gateway password: c0ntrail123 2024-09-04 14:00:07,106 - DEBUG - ping -s 56 -c 3 -W 1 113.162.177.67 2024-09-04 14:00:11,163 - DEBUG - PING 113.162.177.67 (113.162.177.67): 56 data bytes 64 bytes from 113.162.177.67: seq=0 ttl=63 time=5.985 ms 64 bytes from 113.162.177.67: seq=1 ttl=63 time=0.821 ms 64 bytes from 113.162.177.67: seq=2 ttl=63 time=1.196 ms --- 113.162.177.67 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.821/2.667/5.985 ms 2024-09-04 14:00:11,163 - INFO - Ping to IP 113.162.177.67 from VM ctest-TestBasicPolicy-93207588-46273111 passed 2024-09-04 14:00:11,347 - DEBUG - Policy Update Response {"network-policy": {"uuid": "94036b3f-fb56-4252-8de2-d044eb234f9c", "href": "http://10.0.0.53:8082/network-policy/94036b3f-fb56-4252-8de2-d044eb234f9c"}} 2024-09-04 14:00:11,347 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-04 14:00:11,347 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 113.162.177.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.53, gateway password: c0ntrail123 2024-09-04 14:00:11,347 - DEBUG - ping -s 56 -c 3 -W 1 113.162.177.67 2024-09-04 14:00:14,566 - DEBUG - PING 113.162.177.67 (113.162.177.67): 56 data bytes 64 bytes from 113.162.177.67: seq=0 ttl=63 time=2.683 ms --- 113.162.177.67 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 2.683/2.683/2.683 ms 2024-09-04 14:00:14,566 - WARNING - Ping to IP 113.162.177.67 from VM ctest-TestBasicPolicy-93207588-46273111 failed 2024-09-04 14:00:14,566 - INFO - Deleting VM ctest-TestBasicPolicy-93207588-60847575 2024-09-04 14:00:14,644 - INFO - Deleting VM ctest-TestBasicPolicy-93207588-46273111 2024-09-04 14:00:15,099 - INFO - Deleted policy ctest-policy-allow-all-02097471 2024-09-04 14:00:15,100 - INFO - Deleting VN ctest-vn-11660188 2024-09-04 14:00:15,147 - DEBUG - VN ff15190d-775d-459f-9dc1-e8e3006ef2ff still in use: Unable to complete operation on network ff15190d-775d-459f-9dc1-e8e3006ef2ff. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-418868da-b4ab-49a3-80b8-cccbd91bcf07'] 2024-09-04 14:00:15,148 - WARNING - Deleting VN ctest-vn-11660188 failed..Will retry 2024-09-04 14:00:17,262 - DEBUG - Response for deleting network () 2024-09-04 14:00:17,262 - DEBUG - Requesting: http://10.0.0.53:8082/routing-instance/b211c527-f3c2-4b24-b988-948975b68064 2024-09-04 14:00:17,270 - DEBUG - Response Code: 404 2024-09-04 14:00:17,270 - DEBUG - Requesting: http://10.0.0.53:8082/domains 2024-09-04 14:00:17,278 - DEBUG - Requesting: http://10.0.0.53:8082/domain/71ff85a5-fa66-4156-8b6e-fcf48c891146 2024-09-04 14:00:17,333 - DEBUG - Requesting: http://10.0.0.53:8082/project/d53ff46f-e83c-4225-a261-9ce96b8aeedf 2024-09-04 14:00:17,406 - INFO - Validated that VN ctest-vn-11660188 is not found in API Server 2024-09-04 14:00:17,417 - DEBUG - VN ctest-vn-11660188 is not present in Agent 10.0.0.53 2024-09-04 14:00:17,417 - INFO - Validated that VN ctest-vn-11660188 is not in any agent 2024-09-04 14:00:17,438 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-11660188 info 2024-09-04 14:00:17,439 - INFO - Deleting VN ctest-vn-36906249 2024-09-04 14:00:17,550 - DEBUG - Response for deleting network () 2024-09-04 14:00:17,550 - DEBUG - Requesting: http://10.0.0.53:8082/routing-instance/9e3da33f-e58a-474c-92b1-8905e50c4c28 2024-09-04 14:00:17,556 - DEBUG - Response Code: 404 2024-09-04 14:00:17,556 - DEBUG - Requesting: http://10.0.0.53:8082/domains 2024-09-04 14:00:17,566 - DEBUG - Requesting: http://10.0.0.53:8082/domain/71ff85a5-fa66-4156-8b6e-fcf48c891146 2024-09-04 14:00:17,626 - DEBUG - Requesting: http://10.0.0.53:8082/project/d53ff46f-e83c-4225-a261-9ce96b8aeedf 2024-09-04 14:00:17,702 - INFO - Validated that VN ctest-vn-36906249 is not found in API Server 2024-09-04 14:00:17,716 - DEBUG - VN ctest-vn-36906249 is not present in Agent 10.0.0.53 2024-09-04 14:00:17,716 - INFO - Validated that VN ctest-vn-36906249 is not in any agent 2024-09-04 14:00:17,738 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-36906249 info 2024-09-04 14:00:17,993 - DEBUG - No XMPP flaps were noticed during the test
2024-09-04 14:00:17,993 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:30]
2024-09-04 14:00:17,993 - INFO - -------------------------------------------------------------------------------- 2024-09-04 14:00:18,724 - INFO - Deleted project: ctest-TestBasicPolicy-93207588, ID : d53ff46f-e83c-4225-a261-9ce96b8aeedf