2024-08-26 18:59:36,931 - INFO - Domain Default found not creating 2024-08-26 18:59:37,109 - INFO - Project ctest-TestBasicPolicy-83046257 not found, creating it 2024-08-26 18:59:37,587 - INFO - Created Project:ctest-TestBasicPolicy-83046257, ID : 3b0c2376-ac8a-4182-88a2-90e115b6e80f 2024-08-26 18:59:39,152 - INFO - ================================================================================ 2024-08-26 18:59:39,152 - INFO - STARTING TEST : test_basic_policy_allow_deny 2024-08-26 18:59:39,152 - 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 18:59:39,414 - DEBUG - Nothing to compare xmpp stats {'10.0.0.28': {'10.20.0.26': '0'}} with 2024-08-26 18:59:39,414 - INFO - Initial checks done. Running the testcase now 2024-08-26 18:59:39,414 - INFO - 2024-08-26 18:59:40,002 - DEBUG - Response for create_network : {'network': {'id': '2ddb0b08-b8f6-4ea5-8c08-0d5e0ca5406f', 'name': 'ctest-vn-02032103', 'tenant_id': '3b0c2376ac8a418288a290e115b6e80f', 'project_id': '3b0c2376ac8a418288a290e115b6e80f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-83046257', 'ctest-vn-02032103'], 'port_security_enabled': True, 'description': ''}} 2024-08-26 18:59:40,197 - DEBUG - Response for create_subnet : {'subnet': {'id': 'deb58e7f-622c-405d-a968-96bbc9de1bd4', 'name': '', 'tenant_id': '3b0c2376ac8a418288a290e115b6e80f', 'network_id': '2ddb0b08-b8f6-4ea5-8c08-0d5e0ca5406f', 'ip_version': 4, 'cidr': '12.192.20.128/26', 'allocation_pools': [{'start': '12.192.20.130', 'end': '12.192.20.190'}], 'gateway_ip': '12.192.20.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '12.192.20.130', 'tags': [], 'project_id': '3b0c2376ac8a418288a290e115b6e80f'}} 2024-08-26 18:59:40,217 - INFO - Created VN ctest-vn-02032103 2024-08-26 18:59:40,274 - DEBUG - VN ctest-vn-02032103 UUID is 2ddb0b08-b8f6-4ea5-8c08-0d5e0ca5406f 2024-08-26 18:59:40,570 - DEBUG - Response for create_network : {'network': {'id': '5cf11485-a3d4-44e2-a88c-4d5cfe0e60c7', 'name': 'ctest-vn-98922643', 'tenant_id': '3b0c2376ac8a418288a290e115b6e80f', 'project_id': '3b0c2376ac8a418288a290e115b6e80f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-83046257', 'ctest-vn-98922643'], 'port_security_enabled': True, 'description': ''}} 2024-08-26 18:59:40,733 - DEBUG - Response for create_subnet : {'subnet': {'id': '50c973f8-2e16-4d2d-9cc9-d3743b8332bd', 'name': '', 'tenant_id': '3b0c2376ac8a418288a290e115b6e80f', 'network_id': '5cf11485-a3d4-44e2-a88c-4d5cfe0e60c7', 'ip_version': 4, 'cidr': '26.173.193.192/26', 'allocation_pools': [{'start': '26.173.193.194', 'end': '26.173.193.254'}], 'gateway_ip': '26.173.193.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '26.173.193.194', 'tags': [], 'project_id': '3b0c2376ac8a418288a290e115b6e80f'}} 2024-08-26 18:59:40,753 - INFO - Created VN ctest-vn-98922643 2024-08-26 18:59:40,807 - DEBUG - VN ctest-vn-98922643 UUID is 5cf11485-a3d4-44e2-a88c-4d5cfe0e60c7 2024-08-26 18:59:40,926 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-83046257:ctest-vn-02032103, 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-83046257:ctest-vn-98922643, 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 18:59:41,252 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '2ddb0b08-b8f6-4ea5-8c08-0d5e0ca5406f', 'name': 'ctest-vn-02032103', 'tenant_id': '3b0c2376ac8a418288a290e115b6e80f', 'project_id': '3b0c2376ac8a418288a290e115b6e80f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['deb58e7f-622c-405d-a968-96bbc9de1bd4'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-83046257', 'ctest-vn-02032103'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-83046257', 'ctest-policy-allow-all-13541866']], 'subnet_ipam': [{'subnet_cidr': '12.192.20.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-08-26 18:59:41,489 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '5cf11485-a3d4-44e2-a88c-4d5cfe0e60c7', 'name': 'ctest-vn-98922643', 'tenant_id': '3b0c2376ac8a418288a290e115b6e80f', 'project_id': '3b0c2376ac8a418288a290e115b6e80f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['50c973f8-2e16-4d2d-9cc9-d3743b8332bd'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-83046257', 'ctest-vn-98922643'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-83046257', 'ctest-policy-allow-all-13541866']], 'subnet_ipam': [{'subnet_cidr': '26.173.193.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-08-26 18:59:41,658 - DEBUG - Requesting: http://10.0.0.28:8082/domains 2024-08-26 18:59:41,954 - DEBUG - Requesting: http://10.0.0.28:8082/domains 2024-08-26 18:59:41,986 - DEBUG - Requesting: http://10.0.0.28:8082/domain/be286a2a-9a1d-4fdc-8c31-c991c8291b11 2024-08-26 18:59:42,000 - DEBUG - Requesting: http://10.0.0.28:8082/project/3b0c2376-ac8a-4182-88a2-90e115b6e80f 2024-08-26 18:59:42,071 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/2ddb0b08-b8f6-4ea5-8c08-0d5e0ca5406f 2024-08-26 18:59:42,082 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/2ddb0b08-b8f6-4ea5-8c08-0d5e0ca5406f 2024-08-26 18:59:42,091 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/87051565-f97f-4b08-a0d5-7346963dc797 2024-08-26 18:59:42,099 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/87051565-f97f-4b08-a0d5-7346963dc797 2024-08-26 18:59:42,106 - DEBUG - Requesting: http://10.0.0.28:8082/route-target/9e2f9dab-f48b-41f8-9ed5-b1e4e3ac9883 2024-08-26 18:59:42,113 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-08-26 18:59:42,113 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/2ddb0b08-b8f6-4ea5-8c08-0d5e0ca5406f 2024-08-26 18:59:42,121 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/87051565-f97f-4b08-a0d5-7346963dc797 2024-08-26 18:59:42,134 - INFO - Verified VN network id 9 for VN 2ddb0b08-b8f6-4ea5-8c08-0d5e0ca5406f 2024-08-26 18:59:42,134 - INFO - Verifications in API Server for VN ctest-vn-02032103 passed 2024-08-26 18:59:42,134 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/2ddb0b08-b8f6-4ea5-8c08-0d5e0ca5406f 2024-08-26 18:59:42,142 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/87051565-f97f-4b08-a0d5-7346963dc797 2024-08-26 18:59:42,149 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/87051565-f97f-4b08-a0d5-7346963dc797 2024-08-26 18:59:42,155 - DEBUG - Requesting: http://10.0.0.28:8082/route-target/9e2f9dab-f48b-41f8-9ed5-b1e4e3ac9883 2024-08-26 18:59:42,170 - DEBUG - Control-node 10.0.0.28 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-83046257:ctest-vn-02032103', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-83046257', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3304246883697184421', 'uuid-lslong': '10090329662713839727'}, 'enable': 'true', 'created': '2024-08-26T18:59:39', 'last-modified': '2024-08-26T18:59:41', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.946749'} 2024-08-26 18:59:42,177 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-08-26 18:59:42,177 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-02032103 passed 2024-08-26 18:59:42,177 - DEBUG - ====Verifying policy data for ctest-vn-02032103 in API_Server ====== 2024-08-26 18:59:42,177 - DEBUG - Requesting: http://10.0.0.28:8082/domains 2024-08-26 18:59:42,183 - DEBUG - Requesting: http://10.0.0.28:8082/domain/be286a2a-9a1d-4fdc-8c31-c991c8291b11 2024-08-26 18:59:42,195 - DEBUG - Requesting: http://10.0.0.28:8082/project/3b0c2376-ac8a-4182-88a2-90e115b6e80f 2024-08-26 18:59:42,265 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/2ddb0b08-b8f6-4ea5-8c08-0d5e0ca5406f 2024-08-26 18:59:42,274 - DEBUG - ==>Verifying data for policy with id: 98dedb3a-469c-4ac0-bb16-c73fce5304fa, fqn: ['default-domain', 'ctest-TestBasicPolicy-83046257', 'ctest-policy-allow-all-13541866'] 2024-08-26 18:59:42,274 - INFO - VN ctest-vn-02032103 Policy verification: verify_vn_policy_in_api_server, status: True 2024-08-26 18:59:42,274 - DEBUG - Verifying the vn in opserver 2024-08-26 18:59:42,274 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-83046257:ctest-vn-02032103 virtual network link through opserver 10.0.0.28 2024-08-26 18:59:42,274 - DEBUG - Requesting: http://10.0.0.28:8081/analytics/uves/virtual-networks 2024-08-26 18:59:42,573 - DEBUG - Requesting: http://10.0.0.28:8081/analytics/uves/virtual-networks 2024-08-26 18:59:42,636 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-83046257:ctest-vn-02032103', 'href': 'http://10.0.0.28:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-83046257:ctest-vn-02032103?flat'} 2024-08-26 18:59:42,636 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-83046257:ctest-vn-02032103 is found in opserver 2024-08-26 18:59:42,648 - DEBUG - Do not have enough data to verify VN in agent 2024-08-26 18:59:42,654 - DEBUG - VRF ids for VN ctest-vn-02032103: {} 2024-08-26 18:59:42,654 - DEBUG - Requesting: http://10.0.0.28:8082/domains 2024-08-26 18:59:42,660 - DEBUG - Requesting: http://10.0.0.28:8082/domain/be286a2a-9a1d-4fdc-8c31-c991c8291b11 2024-08-26 18:59:42,673 - DEBUG - Requesting: http://10.0.0.28:8082/project/3b0c2376-ac8a-4182-88a2-90e115b6e80f 2024-08-26 18:59:42,744 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/5cf11485-a3d4-44e2-a88c-4d5cfe0e60c7 2024-08-26 18:59:42,758 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/5cf11485-a3d4-44e2-a88c-4d5cfe0e60c7 2024-08-26 18:59:42,767 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/c829c60f-f868-4de6-8b43-8c57483110c0 2024-08-26 18:59:42,775 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/c829c60f-f868-4de6-8b43-8c57483110c0 2024-08-26 18:59:42,783 - DEBUG - Requesting: http://10.0.0.28:8082/route-target/eaf7cfcd-4535-4877-8df1-dc5519695237 2024-08-26 18:59:42,790 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-08-26 18:59:42,790 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/5cf11485-a3d4-44e2-a88c-4d5cfe0e60c7 2024-08-26 18:59:42,798 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/c829c60f-f868-4de6-8b43-8c57483110c0 2024-08-26 18:59:42,812 - INFO - Verified VN network id 10 for VN 5cf11485-a3d4-44e2-a88c-4d5cfe0e60c7 2024-08-26 18:59:42,812 - INFO - Verifications in API Server for VN ctest-vn-98922643 passed 2024-08-26 18:59:42,812 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/5cf11485-a3d4-44e2-a88c-4d5cfe0e60c7 2024-08-26 18:59:42,821 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/c829c60f-f868-4de6-8b43-8c57483110c0 2024-08-26 18:59:42,829 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/c829c60f-f868-4de6-8b43-8c57483110c0 2024-08-26 18:59:42,837 - DEBUG - Requesting: http://10.0.0.28:8082/route-target/eaf7cfcd-4535-4877-8df1-dc5519695237 2024-08-26 18:59:42,850 - DEBUG - Control-node 10.0.0.28 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-83046257:ctest-vn-98922643', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-83046257', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6697156685088441570', 'uuid-lslong': '12145167356906070215'}, 'enable': 'true', 'created': '2024-08-26T18:59:40', 'last-modified': '2024-08-26T18:59:41', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.383165'} 2024-08-26 18:59:42,857 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-08-26 18:59:42,857 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-98922643 passed 2024-08-26 18:59:42,857 - DEBUG - ====Verifying policy data for ctest-vn-98922643 in API_Server ====== 2024-08-26 18:59:42,857 - DEBUG - Requesting: http://10.0.0.28:8082/domains 2024-08-26 18:59:42,863 - DEBUG - Requesting: http://10.0.0.28:8082/domain/be286a2a-9a1d-4fdc-8c31-c991c8291b11 2024-08-26 18:59:42,876 - DEBUG - Requesting: http://10.0.0.28:8082/project/3b0c2376-ac8a-4182-88a2-90e115b6e80f 2024-08-26 18:59:42,945 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/5cf11485-a3d4-44e2-a88c-4d5cfe0e60c7 2024-08-26 18:59:42,953 - DEBUG - ==>Verifying data for policy with id: 98dedb3a-469c-4ac0-bb16-c73fce5304fa, fqn: ['default-domain', 'ctest-TestBasicPolicy-83046257', 'ctest-policy-allow-all-13541866'] 2024-08-26 18:59:42,953 - INFO - VN ctest-vn-98922643 Policy verification: verify_vn_policy_in_api_server, status: True 2024-08-26 18:59:42,953 - DEBUG - Verifying the vn in opserver 2024-08-26 18:59:42,953 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-83046257:ctest-vn-98922643 virtual network link through opserver 10.0.0.28 2024-08-26 18:59:42,953 - DEBUG - Requesting: http://10.0.0.28:8081/analytics/uves/virtual-networks 2024-08-26 18:59:42,965 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-83046257:ctest-vn-98922643', 'href': 'http://10.0.0.28:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-83046257:ctest-vn-98922643?flat'} 2024-08-26 18:59:42,965 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-83046257:ctest-vn-98922643 is found in opserver 2024-08-26 18:59:42,976 - DEBUG - Do not have enough data to verify VN in agent 2024-08-26 18:59:42,981 - DEBUG - VRF ids for VN ctest-vn-98922643: {} 2024-08-26 18:59:43,038 - DEBUG - Services list from nova: [, , ] 2024-08-26 18:59:44,059 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1767-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1767-1) 2024-08-26 18:59:45,288 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1767-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1767-1) 2024-08-26 18:59:45,288 - INFO - Waiting for VM ctest-TestBasicPolicy-83046257-46118802 to be up.. 2024-08-26 18:59:45,379 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-08-26 18:59:50,527 - DEBUG - VM is in ACTIVE state now 2024-08-26 18:59:50,527 - INFO - VM name : ctest-TestBasicPolicy-83046257-46118802 2024-08-26 18:59:50,718 - DEBUG - VM ctest-TestBasicPolicy-83046257-46118802 ID is b44a10c9-9867-4078-b52b-c2ccb7d5334f 2024-08-26 18:59:50,750 - DEBUG - VM ctest-TestBasicPolicy-83046257-46118802 launched on Node cn-jenkins-deploy-platform-ansible-os-1767-1 2024-08-26 18:59:50,935 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-machine/b44a10c9-9867-4078-b52b-c2ccb7d5334f 2024-08-26 18:59:50,947 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-machine-interface/93ef2182-3b7a-449b-857b-1e20bfdfc531 2024-08-26 18:59:54,294 - 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 1018ms') 2024-08-26 18:59:54,294 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-83046257-46118802 failed! 2024-08-26 18:59:54,346 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-83046257:ctest-vn-02032103 is 12.192.20.129 and allocation pool is NOT set 2024-08-26 18:59:56,408 - 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.15 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=2.19 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 = 2.189/3.168/4.148/0.979 ms') 2024-08-26 18:59:56,408 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-83046257-46118802 passed 2024-08-26 18:59:56,558 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-26 18:59:56,559 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-83046257-46118802, IP 12.192.20.131, Port 22 2024-08-26 18:59:56,714 - DEBUG - VM ctest-TestBasicPolicy-83046257-46118802 is ready for SSH connections 2024-08-26 18:59:56,715 - INFO - Waiting for VM ctest-TestBasicPolicy-83046257-95277248 to be up.. 2024-08-26 18:59:56,799 - DEBUG - VM is in ACTIVE state now 2024-08-26 18:59:56,799 - INFO - VM name : ctest-TestBasicPolicy-83046257-95277248 2024-08-26 18:59:56,878 - DEBUG - VM ctest-TestBasicPolicy-83046257-95277248 ID is 708d797c-aecb-4f03-847d-9e60b1be9d11 2024-08-26 18:59:56,878 - DEBUG - VM ctest-TestBasicPolicy-83046257-95277248 launched on Node cn-jenkins-deploy-platform-ansible-os-1767-1 2024-08-26 18:59:56,957 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-machine/708d797c-aecb-4f03-847d-9e60b1be9d11 2024-08-26 18:59:56,966 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-machine-interface/cf3556e1-7dea-49dc-a66f-a726412d0f14 2024-08-26 18:59:58,197 - 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.96 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.428 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.428/1.693/2.959/1.265 ms') 2024-08-26 18:59:58,198 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-83046257-95277248 passed 2024-08-26 18:59:58,346 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-26 18:59:58,346 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-83046257-95277248, IP 26.173.193.195, Port 22 2024-08-26 18:59:58,502 - DEBUG - VM ctest-TestBasicPolicy-83046257-95277248 is ready for SSH connections 2024-08-26 18:59:58,502 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-26 18:59:58,503 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 26.173.193.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.28, gateway password: c0ntrail123 2024-08-26 18:59:58,503 - DEBUG - ping -s 56 -c 3 -W 1 26.173.193.195 2024-08-26 19:00:02,624 - DEBUG - PING 26.173.193.195 (26.173.193.195): 56 data bytes 64 bytes from 26.173.193.195: seq=0 ttl=63 time=4.006 ms 64 bytes from 26.173.193.195: seq=1 ttl=63 time=0.848 ms 64 bytes from 26.173.193.195: seq=2 ttl=63 time=0.955 ms --- 26.173.193.195 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.848/1.936/4.006 ms 2024-08-26 19:00:02,624 - INFO - Ping to IP 26.173.193.195 from VM ctest-TestBasicPolicy-83046257-46118802 passed 2024-08-26 19:00:02,810 - DEBUG - Policy Update Response {"network-policy": {"uuid": "98dedb3a-469c-4ac0-bb16-c73fce5304fa", "href": "http://10.0.0.28:8082/network-policy/98dedb3a-469c-4ac0-bb16-c73fce5304fa"}} 2024-08-26 19:00:02,810 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-26 19:00:02,810 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 26.173.193.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.28, gateway password: c0ntrail123 2024-08-26 19:00:02,811 - DEBUG - ping -s 56 -c 3 -W 1 26.173.193.195 2024-08-26 19:00:06,042 - DEBUG - PING 26.173.193.195 (26.173.193.195): 56 data bytes 64 bytes from 26.173.193.195: seq=0 ttl=63 time=1.355 ms --- 26.173.193.195 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.355/1.355/1.355 ms 2024-08-26 19:00:06,042 - WARNING - Ping to IP 26.173.193.195 from VM ctest-TestBasicPolicy-83046257-46118802 failed 2024-08-26 19:00:06,042 - INFO - Deleting VM ctest-TestBasicPolicy-83046257-95277248 2024-08-26 19:00:06,111 - INFO - Deleting VM ctest-TestBasicPolicy-83046257-46118802 2024-08-26 19:00:06,503 - INFO - Deleted policy ctest-policy-allow-all-13541866 2024-08-26 19:00:06,503 - INFO - Deleting VN ctest-vn-98922643 2024-08-26 19:00:06,551 - DEBUG - VN 5cf11485-a3d4-44e2-a88c-4d5cfe0e60c7 still in use: Unable to complete operation on network 5cf11485-a3d4-44e2-a88c-4d5cfe0e60c7. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-4ff2d817-a6c5-4383-82d6-b57dd06db5b2'] 2024-08-26 19:00:06,551 - WARNING - Deleting VN ctest-vn-98922643 failed..Will retry 2024-08-26 19:00:10,042 - DEBUG - Response for deleting network () 2024-08-26 19:00:10,042 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/c829c60f-f868-4de6-8b43-8c57483110c0 2024-08-26 19:00:10,048 - DEBUG - Response Code: 404 2024-08-26 19:00:10,049 - DEBUG - Requesting: http://10.0.0.28:8082/domains 2024-08-26 19:00:10,056 - DEBUG - Requesting: http://10.0.0.28:8082/domain/be286a2a-9a1d-4fdc-8c31-c991c8291b11 2024-08-26 19:00:10,117 - DEBUG - Requesting: http://10.0.0.28:8082/project/3b0c2376-ac8a-4182-88a2-90e115b6e80f 2024-08-26 19:00:10,189 - INFO - Validated that VN ctest-vn-98922643 is not found in API Server 2024-08-26 19:00:10,201 - DEBUG - VN ctest-vn-98922643 is not present in Agent 10.0.0.28 2024-08-26 19:00:10,201 - INFO - Validated that VN ctest-vn-98922643 is not in any agent 2024-08-26 19:00:10,218 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-98922643 info 2024-08-26 19:00:10,218 - INFO - Deleting VN ctest-vn-02032103 2024-08-26 19:00:10,321 - DEBUG - Response for deleting network () 2024-08-26 19:00:10,322 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/87051565-f97f-4b08-a0d5-7346963dc797 2024-08-26 19:00:10,332 - DEBUG - Response Code: 404 2024-08-26 19:00:10,332 - DEBUG - Requesting: http://10.0.0.28:8082/domains 2024-08-26 19:00:10,338 - DEBUG - Requesting: http://10.0.0.28:8082/domain/be286a2a-9a1d-4fdc-8c31-c991c8291b11 2024-08-26 19:00:10,392 - DEBUG - Requesting: http://10.0.0.28:8082/project/3b0c2376-ac8a-4182-88a2-90e115b6e80f 2024-08-26 19:00:10,464 - INFO - Validated that VN ctest-vn-02032103 is not found in API Server 2024-08-26 19:00:10,475 - DEBUG - VN ctest-vn-02032103 is not present in Agent 10.0.0.28 2024-08-26 19:00:10,475 - INFO - Validated that VN ctest-vn-02032103 is not in any agent 2024-08-26 19:00:10,491 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-02032103 info 2024-08-26 19:00:10,748 - DEBUG - No XMPP flaps were noticed during the test 2024-08-26 19:00:10,748 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:31] 2024-08-26 19:00:10,748 - INFO - -------------------------------------------------------------------------------- 2024-08-26 19:00:11,431 - INFO - Deleted project: ctest-TestBasicPolicy-83046257, ID : 3b0c2376-ac8a-4182-88a2-90e115b6e80f