2024-08-26 13:26:19,790 - INFO - Domain Default found not creating 2024-08-26 13:26:19,965 - INFO - Project ctest-TestBasicPolicy-00139761 not found, creating it 2024-08-26 13:26:20,478 - INFO - Created Project:ctest-TestBasicPolicy-00139761, ID : 6df10ddd-5d05-4656-8810-331daae61634 2024-08-26 13:26:22,093 - INFO - ================================================================================ 2024-08-26 13:26:22,093 - INFO - STARTING TEST : test_basic_policy_allow_deny 2024-08-26 13:26:22,093 - 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-26 13:26:22,351 - DEBUG - Nothing to compare xmpp stats {'10.0.0.24': {'10.20.0.5': '0'}} with 2024-08-26 13:26:22,351 - INFO - Initial checks done. Running the testcase now 2024-08-26 13:26:22,351 - INFO - 2024-08-26 13:26:22,945 - DEBUG - Response for create_network : {'network': {'id': 'c433458d-cacf-4108-9f95-0d98850463ee', 'name': 'ctest-vn-57543399', 'tenant_id': '6df10ddd5d0546568810331daae61634', 'project_id': '6df10ddd5d0546568810331daae61634', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-00139761', 'ctest-vn-57543399'], 'port_security_enabled': True, 'description': ''}} 2024-08-26 13:26:23,110 - DEBUG - Response for create_subnet : {'subnet': {'id': '6194c0fe-d745-41d4-8762-462b8c4dc41e', 'name': '', 'tenant_id': '6df10ddd5d0546568810331daae61634', 'network_id': 'c433458d-cacf-4108-9f95-0d98850463ee', 'ip_version': 4, 'cidr': '152.200.81.192/26', 'allocation_pools': [{'start': '152.200.81.194', 'end': '152.200.81.254'}], 'gateway_ip': '152.200.81.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '152.200.81.194', 'tags': [], 'project_id': '6df10ddd5d0546568810331daae61634'}} 2024-08-26 13:26:23,134 - INFO - Created VN ctest-vn-57543399 2024-08-26 13:26:23,189 - DEBUG - VN ctest-vn-57543399 UUID is c433458d-cacf-4108-9f95-0d98850463ee 2024-08-26 13:26:23,562 - DEBUG - Response for create_network : {'network': {'id': '0aa4b49e-32c9-409c-8211-5530f7f96dab', 'name': 'ctest-vn-96527863', 'tenant_id': '6df10ddd5d0546568810331daae61634', 'project_id': '6df10ddd5d0546568810331daae61634', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-00139761', 'ctest-vn-96527863'], 'port_security_enabled': True, 'description': ''}} 2024-08-26 13:26:23,773 - DEBUG - Response for create_subnet : {'subnet': {'id': '3e09f378-e129-4a33-82b4-b44eeb72a879', 'name': '', 'tenant_id': '6df10ddd5d0546568810331daae61634', 'network_id': '0aa4b49e-32c9-409c-8211-5530f7f96dab', 'ip_version': 4, 'cidr': '2.104.143.128/26', 'allocation_pools': [{'start': '2.104.143.130', 'end': '2.104.143.190'}], 'gateway_ip': '2.104.143.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2.104.143.130', 'tags': [], 'project_id': '6df10ddd5d0546568810331daae61634'}} 2024-08-26 13:26:23,800 - INFO - Created VN ctest-vn-96527863 2024-08-26 13:26:23,857 - DEBUG - VN ctest-vn-96527863 UUID is 0aa4b49e-32c9-409c-8211-5530f7f96dab 2024-08-26 13:26:23,999 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-00139761:ctest-vn-57543399, 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-00139761:ctest-vn-96527863, 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-26 13:26:24,325 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'c433458d-cacf-4108-9f95-0d98850463ee', 'name': 'ctest-vn-57543399', 'tenant_id': '6df10ddd5d0546568810331daae61634', 'project_id': '6df10ddd5d0546568810331daae61634', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['6194c0fe-d745-41d4-8762-462b8c4dc41e'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-00139761', 'ctest-vn-57543399'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-00139761', 'ctest-policy-allow-all-88620884']], 'subnet_ipam': [{'subnet_cidr': '152.200.81.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-08-26 13:26:24,596 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '0aa4b49e-32c9-409c-8211-5530f7f96dab', 'name': 'ctest-vn-96527863', 'tenant_id': '6df10ddd5d0546568810331daae61634', 'project_id': '6df10ddd5d0546568810331daae61634', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['3e09f378-e129-4a33-82b4-b44eeb72a879'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-00139761', 'ctest-vn-96527863'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-00139761', 'ctest-policy-allow-all-88620884']], 'subnet_ipam': [{'subnet_cidr': '2.104.143.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-08-26 13:26:24,769 - DEBUG - Requesting: http://10.0.0.24:8082/domains 2024-08-26 13:26:25,074 - DEBUG - Requesting: http://10.0.0.24:8082/domains 2024-08-26 13:26:25,123 - DEBUG - Requesting: http://10.0.0.24:8082/domain/2ac98d5c-5607-4fd5-b91d-65de63fca5e4 2024-08-26 13:26:25,143 - DEBUG - Requesting: http://10.0.0.24:8082/project/6df10ddd-5d05-4656-8810-331daae61634 2024-08-26 13:26:25,223 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/c433458d-cacf-4108-9f95-0d98850463ee 2024-08-26 13:26:25,236 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/c433458d-cacf-4108-9f95-0d98850463ee 2024-08-26 13:26:25,248 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/59adad01-c63d-4e68-9764-870ca8d6eb17 2024-08-26 13:26:25,258 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/59adad01-c63d-4e68-9764-870ca8d6eb17 2024-08-26 13:26:25,267 - DEBUG - Requesting: http://10.0.0.24:8082/route-target/8aaf84df-aa21-4e43-aec9-76d86e42e8e0 2024-08-26 13:26:25,276 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-08-26 13:26:25,276 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/c433458d-cacf-4108-9f95-0d98850463ee 2024-08-26 13:26:25,286 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/59adad01-c63d-4e68-9764-870ca8d6eb17 2024-08-26 13:26:25,301 - INFO - Verified VN network id 8 for VN c433458d-cacf-4108-9f95-0d98850463ee 2024-08-26 13:26:25,302 - INFO - Verifications in API Server for VN ctest-vn-57543399 passed 2024-08-26 13:26:25,302 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/c433458d-cacf-4108-9f95-0d98850463ee 2024-08-26 13:26:25,311 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/59adad01-c63d-4e68-9764-870ca8d6eb17 2024-08-26 13:26:25,319 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/59adad01-c63d-4e68-9764-870ca8d6eb17 2024-08-26 13:26:25,328 - DEBUG - Requesting: http://10.0.0.24:8082/route-target/8aaf84df-aa21-4e43-aec9-76d86e42e8e0 2024-08-26 13:26:25,345 - DEBUG - Control-node 10.0.0.24 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-00139761:ctest-vn-57543399', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-00139761', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14137720130541404424', 'uuid-lslong': '11499112172278277102'}, 'enable': 'true', 'created': '2024-08-26T13:26:22', 'last-modified': '2024-08-26T13:26:24', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.043646'} 2024-08-26 13:26:25,355 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-08-26 13:26:25,355 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-57543399 passed 2024-08-26 13:26:25,355 - DEBUG - ====Verifying policy data for ctest-vn-57543399 in API_Server ====== 2024-08-26 13:26:25,355 - DEBUG - Requesting: http://10.0.0.24:8082/domains 2024-08-26 13:26:25,364 - DEBUG - Requesting: http://10.0.0.24:8082/domain/2ac98d5c-5607-4fd5-b91d-65de63fca5e4 2024-08-26 13:26:25,382 - DEBUG - Requesting: http://10.0.0.24:8082/project/6df10ddd-5d05-4656-8810-331daae61634 2024-08-26 13:26:25,465 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/c433458d-cacf-4108-9f95-0d98850463ee 2024-08-26 13:26:25,476 - DEBUG - ==>Verifying data for policy with id: cbee41d6-de63-46ed-83e3-4f253d90de5f, fqn: ['default-domain', 'ctest-TestBasicPolicy-00139761', 'ctest-policy-allow-all-88620884'] 2024-08-26 13:26:25,477 - INFO - VN ctest-vn-57543399 Policy verification: verify_vn_policy_in_api_server, status: True 2024-08-26 13:26:25,477 - DEBUG - Verifying the vn in opserver 2024-08-26 13:26:25,477 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-00139761:ctest-vn-57543399 virtual network link through opserver 10.0.0.24 2024-08-26 13:26:25,477 - DEBUG - Requesting: http://10.0.0.24:8081/analytics/uves/virtual-networks 2024-08-26 13:26:25,788 - DEBUG - Requesting: http://10.0.0.24:8081/analytics/uves/virtual-networks 2024-08-26 13:26:25,860 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-00139761:ctest-vn-57543399', 'href': 'http://10.0.0.24:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-00139761:ctest-vn-57543399?flat'} 2024-08-26 13:26:25,860 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-00139761:ctest-vn-57543399 is found in opserver 2024-08-26 13:26:25,873 - DEBUG - Do not have enough data to verify VN in agent 2024-08-26 13:26:25,880 - DEBUG - VRF ids for VN ctest-vn-57543399: {} 2024-08-26 13:26:25,880 - DEBUG - Requesting: http://10.0.0.24:8082/domains 2024-08-26 13:26:25,888 - DEBUG - Requesting: http://10.0.0.24:8082/domain/2ac98d5c-5607-4fd5-b91d-65de63fca5e4 2024-08-26 13:26:25,903 - DEBUG - Requesting: http://10.0.0.24:8082/project/6df10ddd-5d05-4656-8810-331daae61634 2024-08-26 13:26:25,979 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/0aa4b49e-32c9-409c-8211-5530f7f96dab 2024-08-26 13:26:25,993 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/0aa4b49e-32c9-409c-8211-5530f7f96dab 2024-08-26 13:26:26,003 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/ffd0836d-19ca-4250-b532-81c7e96cf192 2024-08-26 13:26:26,014 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/ffd0836d-19ca-4250-b532-81c7e96cf192 2024-08-26 13:26:26,022 - DEBUG - Requesting: http://10.0.0.24:8082/route-target/9780297f-78f9-43f3-ad52-6f7bc4faf89f 2024-08-26 13:26:26,031 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-08-26 13:26:26,031 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/0aa4b49e-32c9-409c-8211-5530f7f96dab 2024-08-26 13:26:26,041 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/ffd0836d-19ca-4250-b532-81c7e96cf192 2024-08-26 13:26:26,055 - INFO - Verified VN network id 9 for VN 0aa4b49e-32c9-409c-8211-5530f7f96dab 2024-08-26 13:26:26,055 - INFO - Verifications in API Server for VN ctest-vn-96527863 passed 2024-08-26 13:26:26,055 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/0aa4b49e-32c9-409c-8211-5530f7f96dab 2024-08-26 13:26:26,065 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/ffd0836d-19ca-4250-b532-81c7e96cf192 2024-08-26 13:26:26,073 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/ffd0836d-19ca-4250-b532-81c7e96cf192 2024-08-26 13:26:26,083 - DEBUG - Requesting: http://10.0.0.24:8082/route-target/9780297f-78f9-43f3-ad52-6f7bc4faf89f 2024-08-26 13:26:26,099 - DEBUG - Control-node 10.0.0.24 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-00139761:ctest-vn-96527863', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-00139761', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '766936428109709468', 'uuid-lslong': '9372365968341822891'}, 'enable': 'true', 'created': '2024-08-26T13:26:23', 'last-modified': '2024-08-26T13:26:24', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.531459'} 2024-08-26 13:26:26,107 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-08-26 13:26:26,107 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-96527863 passed 2024-08-26 13:26:26,107 - DEBUG - ====Verifying policy data for ctest-vn-96527863 in API_Server ====== 2024-08-26 13:26:26,107 - DEBUG - Requesting: http://10.0.0.24:8082/domains 2024-08-26 13:26:26,115 - DEBUG - Requesting: http://10.0.0.24:8082/domain/2ac98d5c-5607-4fd5-b91d-65de63fca5e4 2024-08-26 13:26:26,130 - DEBUG - Requesting: http://10.0.0.24:8082/project/6df10ddd-5d05-4656-8810-331daae61634 2024-08-26 13:26:26,206 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/0aa4b49e-32c9-409c-8211-5530f7f96dab 2024-08-26 13:26:26,215 - DEBUG - ==>Verifying data for policy with id: cbee41d6-de63-46ed-83e3-4f253d90de5f, fqn: ['default-domain', 'ctest-TestBasicPolicy-00139761', 'ctest-policy-allow-all-88620884'] 2024-08-26 13:26:26,215 - INFO - VN ctest-vn-96527863 Policy verification: verify_vn_policy_in_api_server, status: True 2024-08-26 13:26:26,215 - DEBUG - Verifying the vn in opserver 2024-08-26 13:26:26,215 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-00139761:ctest-vn-96527863 virtual network link through opserver 10.0.0.24 2024-08-26 13:26:26,215 - DEBUG - Requesting: http://10.0.0.24:8081/analytics/uves/virtual-networks 2024-08-26 13:26:26,229 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-00139761:ctest-vn-96527863', 'href': 'http://10.0.0.24:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-00139761:ctest-vn-96527863?flat'} 2024-08-26 13:26:26,229 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-00139761:ctest-vn-96527863 is found in opserver 2024-08-26 13:26:26,241 - DEBUG - Do not have enough data to verify VN in agent 2024-08-26 13:26:26,247 - DEBUG - VRF ids for VN ctest-vn-96527863: {} 2024-08-26 13:26:26,310 - DEBUG - Services list from nova: [, , ] 2024-08-26 13:26:27,393 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1759-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1759-1) 2024-08-26 13:26:28,765 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1759-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1759-1) 2024-08-26 13:26:28,766 - INFO - Waiting for VM ctest-TestBasicPolicy-00139761-28552108 to be up.. 2024-08-26 13:26:28,860 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-08-26 13:26:33,954 - DEBUG - VM is in ACTIVE state now 2024-08-26 13:26:33,954 - INFO - VM name : ctest-TestBasicPolicy-00139761-28552108 2024-08-26 13:26:34,040 - DEBUG - VM ctest-TestBasicPolicy-00139761-28552108 ID is a0b34219-6bfc-4ca3-9dfd-44c6ea11657f 2024-08-26 13:26:34,062 - DEBUG - VM ctest-TestBasicPolicy-00139761-28552108 launched on Node cn-jenkins-deploy-platform-ansible-os-1759-1 2024-08-26 13:26:34,153 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-machine/a0b34219-6bfc-4ca3-9dfd-44c6ea11657f 2024-08-26 13:26:34,164 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-machine-interface/7371d1df-e58d-4f4f-ab9d-8b50ab996eb3 2024-08-26 13:26:37,442 - 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 1031ms') 2024-08-26 13:26:37,442 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-00139761-28552108 failed! 2024-08-26 13:26:37,505 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-00139761:ctest-vn-57543399 is 152.200.81.193 and allocation pool is NOT set 2024-08-26 13:26:41,566 - 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 1002ms') 2024-08-26 13:26:41,566 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-00139761-28552108 failed! 2024-08-26 13:26:41,629 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-00139761:ctest-vn-57543399 is 152.200.81.193 and allocation pool is NOT set 2024-08-26 13:26:43,692 - 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.11 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=1.31 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1000ms\r\nrtt min/avg/max/mdev = 1.308/3.208/5.108/1.900 ms') 2024-08-26 13:26:43,693 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-00139761-28552108 passed 2024-08-26 13:26:43,845 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-26 13:26:43,845 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-00139761-28552108, IP 152.200.81.195, Port 22 2024-08-26 13:26:43,901 - DEBUG - Error on ssh to cirros@169.254.0.3:22, result: /bin/bash: connect: Connection refused /bin/bash: line 1: /dev/tcp/169.254.0.3/22: Connection refused {'failed': True, 'command': '(echo > /dev/tcp/169.254.0.3/22)', 'real_command': '/bin/bash -l -c "(echo > /dev/tcp/169.254.0.3/22)"', 'return_code': 1, 'succeeded': False, 'stderr': ''} 2024-08-26 13:26:43,981 - DEBUG - VM ctest-TestBasicPolicy-00139761-28552108 is NOT ready for SSH connections, VM status: ACTIVE 2024-08-26 13:26:48,982 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-26 13:26:48,982 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-00139761-28552108, IP 152.200.81.195, Port 22 2024-08-26 13:26:49,141 - DEBUG - VM ctest-TestBasicPolicy-00139761-28552108 is ready for SSH connections 2024-08-26 13:26:49,141 - INFO - Waiting for VM ctest-TestBasicPolicy-00139761-65676881 to be up.. 2024-08-26 13:26:49,226 - DEBUG - VM is in ACTIVE state now 2024-08-26 13:26:49,226 - INFO - VM name : ctest-TestBasicPolicy-00139761-65676881 2024-08-26 13:26:49,314 - DEBUG - VM ctest-TestBasicPolicy-00139761-65676881 ID is 44220b71-db21-4303-bac8-9632d4e5762f 2024-08-26 13:26:49,314 - DEBUG - VM ctest-TestBasicPolicy-00139761-65676881 launched on Node cn-jenkins-deploy-platform-ansible-os-1759-1 2024-08-26 13:26:49,403 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-machine/44220b71-db21-4303-bac8-9632d4e5762f 2024-08-26 13:26:49,412 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-machine-interface/a2e1952f-bf58-4dff-95c7-8ea4c4a716eb 2024-08-26 13:26:50,658 - 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.37 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.496 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.496/2.935/5.374/2.439 ms') 2024-08-26 13:26:50,658 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-00139761-65676881 passed 2024-08-26 13:26:50,817 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-26 13:26:50,817 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-00139761-65676881, IP 2.104.143.131, Port 22 2024-08-26 13:26:50,972 - DEBUG - VM ctest-TestBasicPolicy-00139761-65676881 is ready for SSH connections 2024-08-26 13:26:50,972 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-26 13:26:50,972 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 2.104.143.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.24, gateway password: c0ntrail123 2024-08-26 13:26:50,972 - DEBUG - ping -s 56 -c 3 -W 1 2.104.143.131 2024-08-26 13:26:55,010 - DEBUG - PING 2.104.143.131 (2.104.143.131): 56 data bytes 64 bytes from 2.104.143.131: seq=0 ttl=63 time=3.737 ms 64 bytes from 2.104.143.131: seq=1 ttl=63 time=0.865 ms 64 bytes from 2.104.143.131: seq=2 ttl=63 time=1.003 ms --- 2.104.143.131 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.865/1.868/3.737 ms 2024-08-26 13:26:55,010 - INFO - Ping to IP 2.104.143.131 from VM ctest-TestBasicPolicy-00139761-28552108 passed 2024-08-26 13:26:55,197 - DEBUG - Policy Update Response {"network-policy": {"uuid": "cbee41d6-de63-46ed-83e3-4f253d90de5f", "href": "http://10.0.0.24:8082/network-policy/cbee41d6-de63-46ed-83e3-4f253d90de5f"}} 2024-08-26 13:26:55,197 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-26 13:26:55,197 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 2.104.143.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.24, gateway password: c0ntrail123 2024-08-26 13:26:55,197 - DEBUG - ping -s 56 -c 3 -W 1 2.104.143.131 2024-08-26 13:26:58,410 - DEBUG - PING 2.104.143.131 (2.104.143.131): 56 data bytes --- 2.104.143.131 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2024-08-26 13:26:58,410 - WARNING - Ping to IP 2.104.143.131 from VM ctest-TestBasicPolicy-00139761-28552108 failed 2024-08-26 13:26:58,410 - INFO - Deleting VM ctest-TestBasicPolicy-00139761-65676881 2024-08-26 13:26:58,489 - INFO - Deleting VM ctest-TestBasicPolicy-00139761-28552108 2024-08-26 13:26:58,901 - INFO - Deleted policy ctest-policy-allow-all-88620884 2024-08-26 13:26:58,901 - INFO - Deleting VN ctest-vn-96527863 2024-08-26 13:26:58,950 - DEBUG - VN 0aa4b49e-32c9-409c-8211-5530f7f96dab still in use: Unable to complete operation on network 0aa4b49e-32c9-409c-8211-5530f7f96dab. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-9f610e5b-b2f7-4e88-b75b-76ec6bf16cfd'] 2024-08-26 13:26:58,950 - WARNING - Deleting VN ctest-vn-96527863 failed..Will retry 2024-08-26 13:27:01,769 - DEBUG - Response for deleting network () 2024-08-26 13:27:01,769 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/ffd0836d-19ca-4250-b532-81c7e96cf192 2024-08-26 13:27:01,777 - DEBUG - Response Code: 404 2024-08-26 13:27:01,778 - DEBUG - Requesting: http://10.0.0.24:8082/domains 2024-08-26 13:27:01,785 - DEBUG - Requesting: http://10.0.0.24:8082/domain/2ac98d5c-5607-4fd5-b91d-65de63fca5e4 2024-08-26 13:27:01,845 - DEBUG - Requesting: http://10.0.0.24:8082/project/6df10ddd-5d05-4656-8810-331daae61634 2024-08-26 13:27:01,923 - INFO - Validated that VN ctest-vn-96527863 is not found in API Server 2024-08-26 13:27:01,935 - DEBUG - VN ctest-vn-96527863 is not present in Agent 10.0.0.24 2024-08-26 13:27:01,935 - INFO - Validated that VN ctest-vn-96527863 is not in any agent 2024-08-26 13:27:01,954 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-96527863 info 2024-08-26 13:27:01,955 - INFO - Deleting VN ctest-vn-57543399 2024-08-26 13:27:02,092 - DEBUG - Response for deleting network () 2024-08-26 13:27:02,092 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/59adad01-c63d-4e68-9764-870ca8d6eb17 2024-08-26 13:27:02,100 - DEBUG - Response Code: 404 2024-08-26 13:27:02,100 - DEBUG - Requesting: http://10.0.0.24:8082/domains 2024-08-26 13:27:02,113 - DEBUG - Requesting: http://10.0.0.24:8082/domain/2ac98d5c-5607-4fd5-b91d-65de63fca5e4 2024-08-26 13:27:02,129 - DEBUG - Requesting: http://10.0.0.24:8082/project/6df10ddd-5d05-4656-8810-331daae61634 2024-08-26 13:27:02,206 - INFO - Validated that VN ctest-vn-57543399 is not found in API Server 2024-08-26 13:27:02,220 - DEBUG - VN ctest-vn-57543399 is not present in Agent 10.0.0.24 2024-08-26 13:27:02,220 - INFO - Validated that VN ctest-vn-57543399 is not in any agent 2024-08-26 13:27:02,240 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-57543399 info 2024-08-26 13:27:02,500 - DEBUG - No XMPP flaps were noticed during the test
2024-08-26 13:27:02,500 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:40]
2024-08-26 13:27:02,500 - INFO - -------------------------------------------------------------------------------- 2024-08-26 13:27:03,717 - INFO - Deleted project: ctest-TestBasicPolicy-00139761, ID : 6df10ddd-5d05-4656-8810-331daae61634