2025-01-16 02:27:42,153 - INFO - Domain Default found not creating 2025-01-16 02:27:42,289 - INFO - Project ctest-TestBasicPolicy-52809048 not found, creating it 2025-01-16 02:27:42,809 - INFO - Created Project:ctest-TestBasicPolicy-52809048, ID : 98d8a925-7e2c-4e04-ab8a-5373b1fe832e 2025-01-16 02:27:44,207 - INFO - ================================================================================ 2025-01-16 02:27:44,207 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-01-16 02:27:44,207 - 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 2025-01-16 02:27:44,464 - DEBUG - Nothing to compare xmpp stats {'10.0.0.44': {'10.20.0.19': '0'}} with 2025-01-16 02:27:44,464 - INFO - Initial checks done. Running the testcase now 2025-01-16 02:27:44,464 - INFO - 2025-01-16 02:27:44,989 - DEBUG - Response for create_network : {'network': {'id': '78eb691b-12c1-41da-9719-015b1081c18d', 'name': 'ctest-vn-44423307', 'tenant_id': '98d8a9257e2c4e04ab8a5373b1fe832e', 'project_id': '98d8a9257e2c4e04ab8a5373b1fe832e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-52809048', 'ctest-vn-44423307'], 'port_security_enabled': True, 'description': ''}} 2025-01-16 02:27:45,175 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ea88527e-f937-4d41-acd5-58cd1361c17e', 'name': '', 'tenant_id': '98d8a9257e2c4e04ab8a5373b1fe832e', 'network_id': '78eb691b-12c1-41da-9719-015b1081c18d', 'ip_version': 4, 'cidr': '166.94.134.192/26', 'allocation_pools': [{'start': '166.94.134.194', 'end': '166.94.134.254'}], 'gateway_ip': '166.94.134.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '166.94.134.194', 'tags': [], 'project_id': '98d8a9257e2c4e04ab8a5373b1fe832e'}} 2025-01-16 02:27:45,192 - INFO - Created VN ctest-vn-44423307 2025-01-16 02:27:45,242 - DEBUG - VN ctest-vn-44423307 UUID is 78eb691b-12c1-41da-9719-015b1081c18d 2025-01-16 02:27:45,545 - DEBUG - Response for create_network : {'network': {'id': '66e3d222-d59f-457a-8676-41d31b5e3ba6', 'name': 'ctest-vn-54706745', 'tenant_id': '98d8a9257e2c4e04ab8a5373b1fe832e', 'project_id': '98d8a9257e2c4e04ab8a5373b1fe832e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-52809048', 'ctest-vn-54706745'], 'port_security_enabled': True, 'description': ''}} 2025-01-16 02:27:45,684 - DEBUG - Response for create_subnet : {'subnet': {'id': 'cabd9264-47ff-4c57-b6f2-2a509364697b', 'name': '', 'tenant_id': '98d8a9257e2c4e04ab8a5373b1fe832e', 'network_id': '66e3d222-d59f-457a-8676-41d31b5e3ba6', 'ip_version': 4, 'cidr': '111.134.231.0/26', 'allocation_pools': [{'start': '111.134.231.2', 'end': '111.134.231.62'}], 'gateway_ip': '111.134.231.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '111.134.231.2', 'tags': [], 'project_id': '98d8a9257e2c4e04ab8a5373b1fe832e'}} 2025-01-16 02:27:45,702 - INFO - Created VN ctest-vn-54706745 2025-01-16 02:27:45,754 - DEBUG - VN ctest-vn-54706745 UUID is 66e3d222-d59f-457a-8676-41d31b5e3ba6 2025-01-16 02:27:45,898 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-52809048:ctest-vn-44423307, 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-52809048:ctest-vn-54706745, 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] 2025-01-16 02:27:46,363 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '78eb691b-12c1-41da-9719-015b1081c18d', 'name': 'ctest-vn-44423307', 'tenant_id': '98d8a9257e2c4e04ab8a5373b1fe832e', 'project_id': '98d8a9257e2c4e04ab8a5373b1fe832e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['ea88527e-f937-4d41-acd5-58cd1361c17e'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-52809048', 'ctest-vn-44423307'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-52809048', 'ctest-policy-allow-all-82746458']], 'subnet_ipam': [{'subnet_cidr': '166.94.134.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-01-16 02:27:46,573 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '66e3d222-d59f-457a-8676-41d31b5e3ba6', 'name': 'ctest-vn-54706745', 'tenant_id': '98d8a9257e2c4e04ab8a5373b1fe832e', 'project_id': '98d8a9257e2c4e04ab8a5373b1fe832e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['cabd9264-47ff-4c57-b6f2-2a509364697b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-52809048', 'ctest-vn-54706745'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-52809048', 'ctest-policy-allow-all-82746458']], 'subnet_ipam': [{'subnet_cidr': '111.134.231.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-01-16 02:27:46,698 - DEBUG - Requesting: http://10.0.0.44:8082/domains 2025-01-16 02:27:46,988 - DEBUG - Requesting: http://10.0.0.44:8082/domains 2025-01-16 02:27:47,015 - DEBUG - Requesting: http://10.0.0.44:8082/domain/3bbaf8ec-d89e-4017-a208-1c21bab5923d 2025-01-16 02:27:47,027 - DEBUG - Requesting: http://10.0.0.44:8082/project/98d8a925-7e2c-4e04-ab8a-5373b1fe832e 2025-01-16 02:27:47,099 - DEBUG - Requesting: http://10.0.0.44:8082/virtual-network/78eb691b-12c1-41da-9719-015b1081c18d 2025-01-16 02:27:47,108 - DEBUG - Requesting: http://10.0.0.44:8082/virtual-network/78eb691b-12c1-41da-9719-015b1081c18d 2025-01-16 02:27:47,119 - DEBUG - Requesting: http://10.0.0.44:8082/routing-instance/0074e908-8b96-45a2-a83f-2e72222234ee 2025-01-16 02:27:47,126 - DEBUG - Requesting: http://10.0.0.44:8082/routing-instance/0074e908-8b96-45a2-a83f-2e72222234ee 2025-01-16 02:27:47,133 - DEBUG - Requesting: http://10.0.0.44:8082/route-target/0fcda946-63c1-4e92-a6a8-79c0144c75c3 2025-01-16 02:27:47,139 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-01-16 02:27:47,139 - DEBUG - Requesting: http://10.0.0.44:8082/virtual-network/78eb691b-12c1-41da-9719-015b1081c18d 2025-01-16 02:27:47,147 - DEBUG - Requesting: http://10.0.0.44:8082/routing-instance/0074e908-8b96-45a2-a83f-2e72222234ee 2025-01-16 02:27:47,159 - INFO - Verified VN network id 9 for VN 78eb691b-12c1-41da-9719-015b1081c18d 2025-01-16 02:27:47,160 - INFO - Verifications in API Server for VN ctest-vn-44423307 passed 2025-01-16 02:27:47,160 - DEBUG - Requesting: http://10.0.0.44:8082/virtual-network/78eb691b-12c1-41da-9719-015b1081c18d 2025-01-16 02:27:47,168 - DEBUG - Requesting: http://10.0.0.44:8082/routing-instance/0074e908-8b96-45a2-a83f-2e72222234ee 2025-01-16 02:27:47,174 - DEBUG - Requesting: http://10.0.0.44:8082/routing-instance/0074e908-8b96-45a2-a83f-2e72222234ee 2025-01-16 02:27:47,181 - DEBUG - Requesting: http://10.0.0.44:8082/route-target/0fcda946-63c1-4e92-a6a8-79c0144c75c3 2025-01-16 02:27:47,193 - DEBUG - Control-node 10.0.0.44 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-52809048:ctest-vn-44423307', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-52809048', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8713173469078045146', 'uuid-lslong': '10887735064775475597'}, 'enable': 'true', 'created': '2025-01-16T02:27:44', 'last-modified': '2025-01-16T02:27:46', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.875085'} 2025-01-16 02:27:47,200 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-01-16 02:27:47,200 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-44423307 passed 2025-01-16 02:27:47,200 - DEBUG - ====Verifying policy data for ctest-vn-44423307 in API_Server ====== 2025-01-16 02:27:47,200 - DEBUG - Requesting: http://10.0.0.44:8082/domains 2025-01-16 02:27:47,205 - DEBUG - Requesting: http://10.0.0.44:8082/domain/3bbaf8ec-d89e-4017-a208-1c21bab5923d 2025-01-16 02:27:47,216 - DEBUG - Requesting: http://10.0.0.44:8082/project/98d8a925-7e2c-4e04-ab8a-5373b1fe832e 2025-01-16 02:27:47,285 - DEBUG - Requesting: http://10.0.0.44:8082/virtual-network/78eb691b-12c1-41da-9719-015b1081c18d 2025-01-16 02:27:47,292 - DEBUG - ==>Verifying data for policy with id: a3341598-5530-46ef-b7f6-9ab19b5404c4, fqn: ['default-domain', 'ctest-TestBasicPolicy-52809048', 'ctest-policy-allow-all-82746458'] 2025-01-16 02:27:47,292 - INFO - VN ctest-vn-44423307 Policy verification: verify_vn_policy_in_api_server, status: True 2025-01-16 02:27:47,293 - DEBUG - Verifying the vn in opserver 2025-01-16 02:27:47,293 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-52809048:ctest-vn-44423307 virtual network link through opserver 10.0.0.44 2025-01-16 02:27:47,293 - DEBUG - Requesting: http://10.0.0.44:8081/analytics/uves/virtual-networks 2025-01-16 02:27:47,587 - DEBUG - Requesting: http://10.0.0.44:8081/analytics/uves/virtual-networks 2025-01-16 02:27:47,643 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-52809048:ctest-vn-44423307', 'href': 'http://10.0.0.44:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-52809048:ctest-vn-44423307?flat'} 2025-01-16 02:27:47,643 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-52809048:ctest-vn-44423307 is found in opserver 2025-01-16 02:27:47,654 - DEBUG - Do not have enough data to verify VN in agent 2025-01-16 02:27:47,660 - DEBUG - VRF ids for VN ctest-vn-44423307: {} 2025-01-16 02:27:47,660 - DEBUG - Requesting: http://10.0.0.44:8082/domains 2025-01-16 02:27:47,667 - DEBUG - Requesting: http://10.0.0.44:8082/domain/3bbaf8ec-d89e-4017-a208-1c21bab5923d 2025-01-16 02:27:47,677 - DEBUG - Requesting: http://10.0.0.44:8082/project/98d8a925-7e2c-4e04-ab8a-5373b1fe832e 2025-01-16 02:27:47,743 - DEBUG - Requesting: http://10.0.0.44:8082/virtual-network/66e3d222-d59f-457a-8676-41d31b5e3ba6 2025-01-16 02:27:47,753 - DEBUG - Requesting: http://10.0.0.44:8082/virtual-network/66e3d222-d59f-457a-8676-41d31b5e3ba6 2025-01-16 02:27:47,760 - DEBUG - Requesting: http://10.0.0.44:8082/routing-instance/2666af4f-cabf-47f2-a2c1-1bb3ded52104 2025-01-16 02:27:47,767 - DEBUG - Requesting: http://10.0.0.44:8082/routing-instance/2666af4f-cabf-47f2-a2c1-1bb3ded52104 2025-01-16 02:27:47,773 - DEBUG - Requesting: http://10.0.0.44:8082/route-target/b1a5b5a4-933e-4363-99e5-2b739d1a3432 2025-01-16 02:27:47,779 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-01-16 02:27:47,779 - DEBUG - Requesting: http://10.0.0.44:8082/virtual-network/66e3d222-d59f-457a-8676-41d31b5e3ba6 2025-01-16 02:27:47,788 - DEBUG - Requesting: http://10.0.0.44:8082/routing-instance/2666af4f-cabf-47f2-a2c1-1bb3ded52104 2025-01-16 02:27:47,799 - INFO - Verified VN network id 10 for VN 66e3d222-d59f-457a-8676-41d31b5e3ba6 2025-01-16 02:27:47,799 - INFO - Verifications in API Server for VN ctest-vn-54706745 passed 2025-01-16 02:27:47,799 - DEBUG - Requesting: http://10.0.0.44:8082/virtual-network/66e3d222-d59f-457a-8676-41d31b5e3ba6 2025-01-16 02:27:47,806 - DEBUG - Requesting: http://10.0.0.44:8082/routing-instance/2666af4f-cabf-47f2-a2c1-1bb3ded52104 2025-01-16 02:27:47,812 - DEBUG - Requesting: http://10.0.0.44:8082/routing-instance/2666af4f-cabf-47f2-a2c1-1bb3ded52104 2025-01-16 02:27:47,818 - DEBUG - Requesting: http://10.0.0.44:8082/route-target/b1a5b5a4-933e-4363-99e5-2b739d1a3432 2025-01-16 02:27:47,829 - DEBUG - Control-node 10.0.0.44 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-52809048:ctest-vn-54706745', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-52809048', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7414000458636674426', 'uuid-lslong': '9689004023287266214'}, 'enable': 'true', 'created': '2025-01-16T02:27:45', 'last-modified': '2025-01-16T02:27:46', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.269207'} 2025-01-16 02:27:47,835 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-01-16 02:27:47,835 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-54706745 passed 2025-01-16 02:27:47,835 - DEBUG - ====Verifying policy data for ctest-vn-54706745 in API_Server ====== 2025-01-16 02:27:47,835 - DEBUG - Requesting: http://10.0.0.44:8082/domains 2025-01-16 02:27:47,840 - DEBUG - Requesting: http://10.0.0.44:8082/domain/3bbaf8ec-d89e-4017-a208-1c21bab5923d 2025-01-16 02:27:47,850 - DEBUG - Requesting: http://10.0.0.44:8082/project/98d8a925-7e2c-4e04-ab8a-5373b1fe832e 2025-01-16 02:27:47,917 - DEBUG - Requesting: http://10.0.0.44:8082/virtual-network/66e3d222-d59f-457a-8676-41d31b5e3ba6 2025-01-16 02:27:47,925 - DEBUG - ==>Verifying data for policy with id: a3341598-5530-46ef-b7f6-9ab19b5404c4, fqn: ['default-domain', 'ctest-TestBasicPolicy-52809048', 'ctest-policy-allow-all-82746458'] 2025-01-16 02:27:47,925 - INFO - VN ctest-vn-54706745 Policy verification: verify_vn_policy_in_api_server, status: True 2025-01-16 02:27:47,925 - DEBUG - Verifying the vn in opserver 2025-01-16 02:27:47,925 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-52809048:ctest-vn-54706745 virtual network link through opserver 10.0.0.44 2025-01-16 02:27:47,925 - DEBUG - Requesting: http://10.0.0.44:8081/analytics/uves/virtual-networks 2025-01-16 02:27:47,937 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-52809048:ctest-vn-54706745', 'href': 'http://10.0.0.44:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-52809048:ctest-vn-54706745?flat'} 2025-01-16 02:27:47,937 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-52809048:ctest-vn-54706745 is found in opserver 2025-01-16 02:27:47,947 - DEBUG - Do not have enough data to verify VN in agent 2025-01-16 02:27:47,952 - DEBUG - VRF ids for VN ctest-vn-54706745: {} 2025-01-16 02:27:48,007 - DEBUG - Services list from nova: [, , ] 2025-01-16 02:27:48,981 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2647-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2647-1) 2025-01-16 02:27:50,158 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2647-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2647-1) 2025-01-16 02:27:50,158 - INFO - Waiting for VM ctest-TestBasicPolicy-52809048-78331162 to be up.. 2025-01-16 02:27:50,255 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-01-16 02:27:55,327 - DEBUG - VM is in ACTIVE state now 2025-01-16 02:27:55,327 - INFO - VM name : ctest-TestBasicPolicy-52809048-78331162 2025-01-16 02:27:55,395 - DEBUG - VM ctest-TestBasicPolicy-52809048-78331162 ID is e77222a3-f752-43f2-b3fc-5bd9f45d3434 2025-01-16 02:27:55,413 - DEBUG - VM ctest-TestBasicPolicy-52809048-78331162 launched on Node cn-jenkins-deploy-platform-ansible-os-2647-1 2025-01-16 02:27:55,490 - DEBUG - Requesting: http://10.0.0.44:8082/virtual-machine/e77222a3-f752-43f2-b3fc-5bd9f45d3434 2025-01-16 02:27:55,499 - DEBUG - Requesting: http://10.0.0.44:8082/virtual-machine-interface/9ee7b975-fe2c-452c-b877-12fa6e4fee7c 2025-01-16 02:27:58,772 - 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 1032ms') 2025-01-16 02:27:58,772 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-52809048-78331162 failed! 2025-01-16 02:27:58,826 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-52809048:ctest-vn-44423307 is 166.94.134.193 and allocation pool is NOT set 2025-01-16 02:28:00,890 - 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=2.81 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.438 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.438/1.626/2.814/1.188 ms') 2025-01-16 02:28:00,890 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-52809048-78331162 passed 2025-01-16 02:28:01,038 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-16 02:28:01,038 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-52809048-78331162, IP 166.94.134.195, Port 22 2025-01-16 02:28:01,206 - DEBUG - VM ctest-TestBasicPolicy-52809048-78331162 is ready for SSH connections 2025-01-16 02:28:01,206 - INFO - Waiting for VM ctest-TestBasicPolicy-52809048-17116322 to be up.. 2025-01-16 02:28:01,280 - DEBUG - VM is in ACTIVE state now 2025-01-16 02:28:01,280 - INFO - VM name : ctest-TestBasicPolicy-52809048-17116322 2025-01-16 02:28:01,349 - DEBUG - VM ctest-TestBasicPolicy-52809048-17116322 ID is c0fdff5f-76d3-4cc3-bdb0-608cb890d82f 2025-01-16 02:28:01,349 - DEBUG - VM ctest-TestBasicPolicy-52809048-17116322 launched on Node cn-jenkins-deploy-platform-ansible-os-2647-1 2025-01-16 02:28:01,419 - DEBUG - Requesting: http://10.0.0.44:8082/virtual-machine/c0fdff5f-76d3-4cc3-bdb0-608cb890d82f 2025-01-16 02:28:01,427 - DEBUG - Requesting: http://10.0.0.44:8082/virtual-machine-interface/e86e26f9-7692-48f3-914a-f70a32326af9 2025-01-16 02:28:02,661 - 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.84 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.334 ms\r\n\r\n--- 169.254.0.4 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1002ms\r\nrtt min/avg/max/mdev = 0.334/1.584/2.835/1.250 ms') 2025-01-16 02:28:02,661 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-52809048-17116322 passed 2025-01-16 02:28:02,814 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-16 02:28:02,814 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-52809048-17116322, IP 111.134.231.3, Port 22 2025-01-16 02:28:02,969 - DEBUG - VM ctest-TestBasicPolicy-52809048-17116322 is ready for SSH connections 2025-01-16 02:28:02,969 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-16 02:28:02,970 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 111.134.231.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.44, gateway password: c0ntrail123 2025-01-16 02:28:02,970 - DEBUG - ping -s 56 -c 3 -W 1 111.134.231.3 2025-01-16 02:28:06,625 - DEBUG - PING 111.134.231.3 (111.134.231.3): 56 data bytes 64 bytes from 111.134.231.3: seq=0 ttl=63 time=3.155 ms 64 bytes from 111.134.231.3: seq=1 ttl=63 time=0.723 ms 64 bytes from 111.134.231.3: seq=2 ttl=63 time=0.762 ms --- 111.134.231.3 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.723/1.546/3.155 ms 2025-01-16 02:28:06,625 - INFO - Ping to IP 111.134.231.3 from VM ctest-TestBasicPolicy-52809048-78331162 passed 2025-01-16 02:28:06,794 - DEBUG - Policy Update Response {"network-policy": {"uuid": "a3341598-5530-46ef-b7f6-9ab19b5404c4", "href": "http://10.0.0.44:8082/network-policy/a3341598-5530-46ef-b7f6-9ab19b5404c4"}} 2025-01-16 02:28:06,794 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-16 02:28:06,794 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 111.134.231.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.44, gateway password: c0ntrail123 2025-01-16 02:28:06,794 - DEBUG - ping -s 56 -c 3 -W 1 111.134.231.3 2025-01-16 02:28:09,988 - DEBUG - PING 111.134.231.3 (111.134.231.3): 56 data bytes --- 111.134.231.3 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2025-01-16 02:28:09,989 - WARNING - Ping to IP 111.134.231.3 from VM ctest-TestBasicPolicy-52809048-78331162 failed 2025-01-16 02:28:09,989 - INFO - Deleting VM ctest-TestBasicPolicy-52809048-17116322 2025-01-16 02:28:10,048 - INFO - Deleting VM ctest-TestBasicPolicy-52809048-78331162 2025-01-16 02:28:10,392 - INFO - Deleted policy ctest-policy-allow-all-82746458 2025-01-16 02:28:10,392 - INFO - Deleting VN ctest-vn-54706745 2025-01-16 02:28:10,423 - DEBUG - VN 66e3d222-d59f-457a-8676-41d31b5e3ba6 still in use: Unable to complete operation on network 66e3d222-d59f-457a-8676-41d31b5e3ba6. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-70d06809-7b23-48d9-8b1d-b83472323627'] 2025-01-16 02:28:10,423 - WARNING - Deleting VN ctest-vn-54706745 failed..Will retry 2025-01-16 02:28:12,519 - DEBUG - Response for deleting network () 2025-01-16 02:28:12,519 - DEBUG - Requesting: http://10.0.0.44:8082/routing-instance/2666af4f-cabf-47f2-a2c1-1bb3ded52104 2025-01-16 02:28:12,528 - DEBUG - Response Code: 404 2025-01-16 02:28:12,528 - DEBUG - Requesting: http://10.0.0.44:8082/domains 2025-01-16 02:28:12,534 - DEBUG - Requesting: http://10.0.0.44:8082/domain/3bbaf8ec-d89e-4017-a208-1c21bab5923d 2025-01-16 02:28:12,590 - DEBUG - Requesting: http://10.0.0.44:8082/project/98d8a925-7e2c-4e04-ab8a-5373b1fe832e 2025-01-16 02:28:12,657 - INFO - Validated that VN ctest-vn-54706745 is not found in API Server 2025-01-16 02:28:12,668 - DEBUG - VN ctest-vn-54706745 is not present in Agent 10.0.0.44 2025-01-16 02:28:12,668 - INFO - Validated that VN ctest-vn-54706745 is not in any agent 2025-01-16 02:28:12,684 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-54706745 info 2025-01-16 02:28:12,684 - INFO - Deleting VN ctest-vn-44423307 2025-01-16 02:28:12,780 - DEBUG - Response for deleting network () 2025-01-16 02:28:12,781 - DEBUG - Requesting: http://10.0.0.44:8082/routing-instance/0074e908-8b96-45a2-a83f-2e72222234ee 2025-01-16 02:28:12,787 - DEBUG - Response Code: 404 2025-01-16 02:28:12,787 - DEBUG - Requesting: http://10.0.0.44:8082/domains 2025-01-16 02:28:12,793 - DEBUG - Requesting: http://10.0.0.44:8082/domain/3bbaf8ec-d89e-4017-a208-1c21bab5923d 2025-01-16 02:28:12,847 - DEBUG - Requesting: http://10.0.0.44:8082/project/98d8a925-7e2c-4e04-ab8a-5373b1fe832e 2025-01-16 02:28:12,914 - INFO - Validated that VN ctest-vn-44423307 is not found in API Server 2025-01-16 02:28:12,925 - DEBUG - VN ctest-vn-44423307 is not present in Agent 10.0.0.44 2025-01-16 02:28:12,925 - INFO - Validated that VN ctest-vn-44423307 is not in any agent 2025-01-16 02:28:12,940 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-44423307 info 2025-01-16 02:28:13,197 - DEBUG - No XMPP flaps were noticed during the test 2025-01-16 02:28:13,197 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:29] 2025-01-16 02:28:13,197 - INFO - -------------------------------------------------------------------------------- 2025-01-16 02:28:13,836 - INFO - Deleted project: ctest-TestBasicPolicy-52809048, ID : 98d8a925-7e2c-4e04-ab8a-5373b1fe832e