2024-09-17 20:01:38,712 - INFO - Domain Default found not creating 2024-09-17 20:01:38,858 - INFO - Project ctest-TestBasicPolicy-68314587 not found, creating it 2024-09-17 20:01:39,317 - INFO - Created Project:ctest-TestBasicPolicy-68314587, ID : 1afe8abb-b6c9-48dc-9d86-93df805c6d08 2024-09-17 20:01:40,772 - INFO - ================================================================================ 2024-09-17 20:01:40,772 - INFO - STARTING TEST : test_basic_policy_allow_deny 2024-09-17 20:01:40,772 - INFO - TEST DESCRIPTION : Create 2 Vns and allow icmp traffic between them and validate with pings Update the policy to deny the same traffic Check that pings fail 2024-09-17 20:01:41,026 - DEBUG - Nothing to compare xmpp stats {'10.0.0.45': {'10.20.0.31': '0'}} with 2024-09-17 20:01:41,026 - INFO - Initial checks done. Running the testcase now 2024-09-17 20:01:41,026 - INFO - 2024-09-17 20:01:41,599 - DEBUG - Response for create_network : {'network': {'id': '8a4c3341-583e-4032-a0e1-7af40b0599b3', 'name': 'ctest-vn-46842327', 'tenant_id': '1afe8abbb6c948dc9d8693df805c6d08', 'project_id': '1afe8abbb6c948dc9d8693df805c6d08', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-68314587', 'ctest-vn-46842327'], 'port_security_enabled': True, 'description': ''}} 2024-09-17 20:01:41,782 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ca166c6d-9e3f-4a9e-b5cd-a796ff9c6fe9', 'name': '', 'tenant_id': '1afe8abbb6c948dc9d8693df805c6d08', 'network_id': '8a4c3341-583e-4032-a0e1-7af40b0599b3', 'ip_version': 4, 'cidr': '197.30.104.128/26', 'allocation_pools': [{'start': '197.30.104.130', 'end': '197.30.104.190'}], 'gateway_ip': '197.30.104.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '197.30.104.130', 'tags': [], 'project_id': '1afe8abbb6c948dc9d8693df805c6d08'}} 2024-09-17 20:01:41,800 - INFO - Created VN ctest-vn-46842327 2024-09-17 20:01:41,856 - DEBUG - VN ctest-vn-46842327 UUID is 8a4c3341-583e-4032-a0e1-7af40b0599b3 2024-09-17 20:01:42,159 - DEBUG - Response for create_network : {'network': {'id': '0983c623-d966-4668-b753-d8c832d44fbe', 'name': 'ctest-vn-97683350', 'tenant_id': '1afe8abbb6c948dc9d8693df805c6d08', 'project_id': '1afe8abbb6c948dc9d8693df805c6d08', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-68314587', 'ctest-vn-97683350'], 'port_security_enabled': True, 'description': ''}} 2024-09-17 20:01:42,383 - DEBUG - Response for create_subnet : {'subnet': {'id': '2701c5cb-7862-47b0-8582-40478a57cb63', 'name': '', 'tenant_id': '1afe8abbb6c948dc9d8693df805c6d08', 'network_id': '0983c623-d966-4668-b753-d8c832d44fbe', 'ip_version': 4, 'cidr': '187.244.233.128/26', 'allocation_pools': [{'start': '187.244.233.130', 'end': '187.244.233.190'}], 'gateway_ip': '187.244.233.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '187.244.233.130', 'tags': [], 'project_id': '1afe8abbb6c948dc9d8693df805c6d08'}} 2024-09-17 20:01:42,400 - INFO - Created VN ctest-vn-97683350 2024-09-17 20:01:42,460 - DEBUG - VN ctest-vn-97683350 UUID is 0983c623-d966-4668-b753-d8c832d44fbe 2024-09-17 20:01:42,675 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-68314587:ctest-vn-46842327, 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-68314587:ctest-vn-97683350, security_group = None, network_policy = None, subnet_list = []], dst_ports = [start_port = -1, end_port = -1], action_list = simple_action = pass, gateway_name = None, apply_service = [], service_properties = None, mirror_to = None, assign_routing_instance = None, log = False, alert = False, qos_action = None, host_based_service = False, ethertype = None, created = None, last_modified = None, description = None] 2024-09-17 20:01:43,190 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '8a4c3341-583e-4032-a0e1-7af40b0599b3', 'name': 'ctest-vn-46842327', 'tenant_id': '1afe8abbb6c948dc9d8693df805c6d08', 'project_id': '1afe8abbb6c948dc9d8693df805c6d08', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['ca166c6d-9e3f-4a9e-b5cd-a796ff9c6fe9'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-68314587', 'ctest-vn-46842327'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-68314587', 'ctest-policy-allow-all-98990797']], 'subnet_ipam': [{'subnet_cidr': '197.30.104.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-09-17 20:01:43,461 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '0983c623-d966-4668-b753-d8c832d44fbe', 'name': 'ctest-vn-97683350', 'tenant_id': '1afe8abbb6c948dc9d8693df805c6d08', 'project_id': '1afe8abbb6c948dc9d8693df805c6d08', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['2701c5cb-7862-47b0-8582-40478a57cb63'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-68314587', 'ctest-vn-97683350'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-68314587', 'ctest-policy-allow-all-98990797']], 'subnet_ipam': [{'subnet_cidr': '187.244.233.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-09-17 20:01:43,612 - DEBUG - Requesting: http://10.0.0.45:8082/domains 2024-09-17 20:01:43,909 - DEBUG - Requesting: http://10.0.0.45:8082/domains 2024-09-17 20:01:43,937 - DEBUG - Requesting: http://10.0.0.45:8082/domain/0950d80c-2f57-4878-ae76-d8d35b2ce941 2024-09-17 20:01:43,952 - DEBUG - Requesting: http://10.0.0.45:8082/project/1afe8abb-b6c9-48dc-9d86-93df805c6d08 2024-09-17 20:01:44,031 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-network/8a4c3341-583e-4032-a0e1-7af40b0599b3 2024-09-17 20:01:44,045 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-network/8a4c3341-583e-4032-a0e1-7af40b0599b3 2024-09-17 20:01:44,057 - DEBUG - Requesting: http://10.0.0.45:8082/routing-instance/4e99aba3-70ce-4754-92ac-6fc2105ba687 2024-09-17 20:01:44,065 - DEBUG - Requesting: http://10.0.0.45:8082/routing-instance/4e99aba3-70ce-4754-92ac-6fc2105ba687 2024-09-17 20:01:44,072 - DEBUG - Requesting: http://10.0.0.45:8082/route-target/7da690ce-b3d6-4e55-bd48-be2d44114185 2024-09-17 20:01:44,079 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-09-17 20:01:44,079 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-network/8a4c3341-583e-4032-a0e1-7af40b0599b3 2024-09-17 20:01:44,091 - DEBUG - Requesting: http://10.0.0.45:8082/routing-instance/4e99aba3-70ce-4754-92ac-6fc2105ba687 2024-09-17 20:01:44,108 - INFO - Verified VN network id 9 for VN 8a4c3341-583e-4032-a0e1-7af40b0599b3 2024-09-17 20:01:44,108 - INFO - Verifications in API Server for VN ctest-vn-46842327 passed 2024-09-17 20:01:44,108 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-network/8a4c3341-583e-4032-a0e1-7af40b0599b3 2024-09-17 20:01:44,121 - DEBUG - Requesting: http://10.0.0.45:8082/routing-instance/4e99aba3-70ce-4754-92ac-6fc2105ba687 2024-09-17 20:01:44,128 - DEBUG - Requesting: http://10.0.0.45:8082/routing-instance/4e99aba3-70ce-4754-92ac-6fc2105ba687 2024-09-17 20:01:44,135 - DEBUG - Requesting: http://10.0.0.45:8082/route-target/7da690ce-b3d6-4e55-bd48-be2d44114185 2024-09-17 20:01:44,148 - DEBUG - Control-node 10.0.0.45 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-68314587:ctest-vn-46842327', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-68314587', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9965396431210430514', 'uuid-lslong': '11592682104403892659'}, 'enable': 'true', 'created': '2024-09-17T20:01:41', 'last-modified': '2024-09-17T20:01:43', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.982819'} 2024-09-17 20:01:44,154 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-09-17 20:01:44,154 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-46842327 passed 2024-09-17 20:01:44,154 - DEBUG - ====Verifying policy data for ctest-vn-46842327 in API_Server ====== 2024-09-17 20:01:44,154 - DEBUG - Requesting: http://10.0.0.45:8082/domains 2024-09-17 20:01:44,159 - DEBUG - Requesting: http://10.0.0.45:8082/domain/0950d80c-2f57-4878-ae76-d8d35b2ce941 2024-09-17 20:01:44,172 - DEBUG - Requesting: http://10.0.0.45:8082/project/1afe8abb-b6c9-48dc-9d86-93df805c6d08 2024-09-17 20:01:44,252 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-network/8a4c3341-583e-4032-a0e1-7af40b0599b3 2024-09-17 20:01:44,268 - DEBUG - ==>Verifying data for policy with id: de24aaa8-a647-4b55-91b0-5fb671c98777, fqn: ['default-domain', 'ctest-TestBasicPolicy-68314587', 'ctest-policy-allow-all-98990797'] 2024-09-17 20:01:44,268 - INFO - VN ctest-vn-46842327 Policy verification: verify_vn_policy_in_api_server, status: True 2024-09-17 20:01:44,268 - DEBUG - Verifying the vn in opserver 2024-09-17 20:01:44,268 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-68314587:ctest-vn-46842327 virtual network link through opserver 10.0.0.45 2024-09-17 20:01:44,268 - DEBUG - Requesting: http://10.0.0.45:8081/analytics/uves/virtual-networks 2024-09-17 20:01:44,561 - DEBUG - Requesting: http://10.0.0.45:8081/analytics/uves/virtual-networks 2024-09-17 20:01:44,619 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-68314587:ctest-vn-46842327', 'href': 'http://10.0.0.45:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-68314587:ctest-vn-46842327?flat'} 2024-09-17 20:01:44,619 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-68314587:ctest-vn-46842327 is found in opserver 2024-09-17 20:01:44,630 - DEBUG - Do not have enough data to verify VN in agent 2024-09-17 20:01:44,635 - DEBUG - VRF ids for VN ctest-vn-46842327: {} 2024-09-17 20:01:44,635 - DEBUG - Requesting: http://10.0.0.45:8082/domains 2024-09-17 20:01:44,641 - DEBUG - Requesting: http://10.0.0.45:8082/domain/0950d80c-2f57-4878-ae76-d8d35b2ce941 2024-09-17 20:01:44,653 - DEBUG - Requesting: http://10.0.0.45:8082/project/1afe8abb-b6c9-48dc-9d86-93df805c6d08 2024-09-17 20:01:44,727 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-network/0983c623-d966-4668-b753-d8c832d44fbe 2024-09-17 20:01:44,742 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-network/0983c623-d966-4668-b753-d8c832d44fbe 2024-09-17 20:01:44,754 - DEBUG - Requesting: http://10.0.0.45:8082/routing-instance/f7ba7468-49b0-4564-8f64-a37d1b9829a3 2024-09-17 20:01:44,762 - DEBUG - Requesting: http://10.0.0.45:8082/routing-instance/f7ba7468-49b0-4564-8f64-a37d1b9829a3 2024-09-17 20:01:44,769 - DEBUG - Requesting: http://10.0.0.45:8082/route-target/0fb850df-08f9-494f-a897-c67e3144dc46 2024-09-17 20:01:44,775 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-09-17 20:01:44,775 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-network/0983c623-d966-4668-b753-d8c832d44fbe 2024-09-17 20:01:44,788 - DEBUG - Requesting: http://10.0.0.45:8082/routing-instance/f7ba7468-49b0-4564-8f64-a37d1b9829a3 2024-09-17 20:01:44,807 - INFO - Verified VN network id 10 for VN 0983c623-d966-4668-b753-d8c832d44fbe 2024-09-17 20:01:44,807 - INFO - Verifications in API Server for VN ctest-vn-97683350 passed 2024-09-17 20:01:44,807 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-network/0983c623-d966-4668-b753-d8c832d44fbe 2024-09-17 20:01:44,820 - DEBUG - Requesting: http://10.0.0.45:8082/routing-instance/f7ba7468-49b0-4564-8f64-a37d1b9829a3 2024-09-17 20:01:44,827 - DEBUG - Requesting: http://10.0.0.45:8082/routing-instance/f7ba7468-49b0-4564-8f64-a37d1b9829a3 2024-09-17 20:01:44,835 - DEBUG - Requesting: http://10.0.0.45:8082/route-target/0fb850df-08f9-494f-a897-c67e3144dc46 2024-09-17 20:01:44,846 - DEBUG - Control-node 10.0.0.45 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-68314587:ctest-vn-97683350', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-68314587', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '685609425563960936', 'uuid-lslong': '13210140486365630398'}, 'enable': 'true', 'created': '2024-09-17T20:01:42', 'last-modified': '2024-09-17T20:01:43', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.453389'} 2024-09-17 20:01:44,853 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-09-17 20:01:44,853 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-97683350 passed 2024-09-17 20:01:44,853 - DEBUG - ====Verifying policy data for ctest-vn-97683350 in API_Server ====== 2024-09-17 20:01:44,853 - DEBUG - Requesting: http://10.0.0.45:8082/domains 2024-09-17 20:01:44,858 - DEBUG - Requesting: http://10.0.0.45:8082/domain/0950d80c-2f57-4878-ae76-d8d35b2ce941 2024-09-17 20:01:44,870 - DEBUG - Requesting: http://10.0.0.45:8082/project/1afe8abb-b6c9-48dc-9d86-93df805c6d08 2024-09-17 20:01:44,948 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-network/0983c623-d966-4668-b753-d8c832d44fbe 2024-09-17 20:01:44,970 - DEBUG - ==>Verifying data for policy with id: de24aaa8-a647-4b55-91b0-5fb671c98777, fqn: ['default-domain', 'ctest-TestBasicPolicy-68314587', 'ctest-policy-allow-all-98990797'] 2024-09-17 20:01:44,971 - INFO - VN ctest-vn-97683350 Policy verification: verify_vn_policy_in_api_server, status: True 2024-09-17 20:01:44,971 - DEBUG - Verifying the vn in opserver 2024-09-17 20:01:44,971 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-68314587:ctest-vn-97683350 virtual network link through opserver 10.0.0.45 2024-09-17 20:01:44,971 - DEBUG - Requesting: http://10.0.0.45:8081/analytics/uves/virtual-networks 2024-09-17 20:01:44,982 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-68314587:ctest-vn-97683350', 'href': 'http://10.0.0.45:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-68314587:ctest-vn-97683350?flat'} 2024-09-17 20:01:44,983 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-68314587:ctest-vn-97683350 is found in opserver 2024-09-17 20:01:44,994 - DEBUG - Do not have enough data to verify VN in agent 2024-09-17 20:01:44,999 - DEBUG - VRF ids for VN ctest-vn-97683350: {} 2024-09-17 20:01:45,061 - DEBUG - Services list from nova: [, , ] 2024-09-17 20:01:46,147 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1968-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1968-1) 2024-09-17 20:01:47,357 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1968-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1968-1) 2024-09-17 20:01:47,357 - INFO - Waiting for VM ctest-TestBasicPolicy-68314587-23537941 to be up.. 2024-09-17 20:01:47,453 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-09-17 20:01:52,538 - DEBUG - VM is in ACTIVE state now 2024-09-17 20:01:52,538 - INFO - VM name : ctest-TestBasicPolicy-68314587-23537941 2024-09-17 20:01:52,619 - DEBUG - VM ctest-TestBasicPolicy-68314587-23537941 ID is 400f6a47-61d8-41d0-a34a-c11532979b45 2024-09-17 20:01:52,637 - DEBUG - VM ctest-TestBasicPolicy-68314587-23537941 launched on Node cn-jenkins-deploy-platform-ansible-os-1968-1 2024-09-17 20:01:52,713 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-machine/400f6a47-61d8-41d0-a34a-c11532979b45 2024-09-17 20:01:52,722 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-machine-interface/54e678db-0a94-4abc-8319-a490a865ace8 2024-09-17 20:01:55,944 - 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 1019ms') 2024-09-17 20:01:55,944 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-68314587-23537941 failed! 2024-09-17 20:01:56,004 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-68314587:ctest-vn-46842327 is 197.30.104.129 and allocation pool is NOT set 2024-09-17 20:01:58,066 - 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=3.11 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.483 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1001ms\r\nrtt min/avg/max/mdev = 0.483/1.797/3.112/1.314 ms') 2024-09-17 20:01:58,066 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-68314587-23537941 passed 2024-09-17 20:01:58,220 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-17 20:01:58,220 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-68314587-23537941, IP 197.30.104.131, Port 22 2024-09-17 20:01:58,394 - DEBUG - VM ctest-TestBasicPolicy-68314587-23537941 is ready for SSH connections 2024-09-17 20:01:58,394 - INFO - Waiting for VM ctest-TestBasicPolicy-68314587-42793267 to be up.. 2024-09-17 20:01:58,475 - DEBUG - VM is in ACTIVE state now 2024-09-17 20:01:58,475 - INFO - VM name : ctest-TestBasicPolicy-68314587-42793267 2024-09-17 20:01:58,548 - DEBUG - VM ctest-TestBasicPolicy-68314587-42793267 ID is 2ccbcc32-3975-4c1d-8b4c-21577ae3cac5 2024-09-17 20:01:58,548 - DEBUG - VM ctest-TestBasicPolicy-68314587-42793267 launched on Node cn-jenkins-deploy-platform-ansible-os-1968-1 2024-09-17 20:01:58,620 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-machine/2ccbcc32-3975-4c1d-8b4c-21577ae3cac5 2024-09-17 20:01:58,629 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-machine-interface/7ea28aa7-bab5-4039-830b-520ccd42f4d2 2024-09-17 20:01:59,874 - 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=3.44 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.416 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.416/1.926/3.437/1.510 ms') 2024-09-17 20:01:59,875 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-68314587-42793267 passed 2024-09-17 20:02:00,036 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-17 20:02:00,036 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-68314587-42793267, IP 187.244.233.131, Port 22 2024-09-17 20:02:00,200 - DEBUG - VM ctest-TestBasicPolicy-68314587-42793267 is ready for SSH connections 2024-09-17 20:02:00,200 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-17 20:02:00,200 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 187.244.233.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.45, gateway password: c0ntrail123 2024-09-17 20:02:00,200 - DEBUG - ping -s 56 -c 3 -W 1 187.244.233.131 2024-09-17 20:02:03,870 - DEBUG - PING 187.244.233.131 (187.244.233.131): 56 data bytes 64 bytes from 187.244.233.131: seq=0 ttl=63 time=4.303 ms 64 bytes from 187.244.233.131: seq=1 ttl=63 time=0.829 ms 64 bytes from 187.244.233.131: seq=2 ttl=63 time=0.996 ms --- 187.244.233.131 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.829/2.042/4.303 ms 2024-09-17 20:02:03,871 - INFO - Ping to IP 187.244.233.131 from VM ctest-TestBasicPolicy-68314587-23537941 passed 2024-09-17 20:02:04,064 - DEBUG - Policy Update Response {"network-policy": {"uuid": "de24aaa8-a647-4b55-91b0-5fb671c98777", "href": "http://10.0.0.45:8082/network-policy/de24aaa8-a647-4b55-91b0-5fb671c98777"}} 2024-09-17 20:02:04,064 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-17 20:02:04,064 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 187.244.233.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.45, gateway password: c0ntrail123 2024-09-17 20:02:04,064 - DEBUG - ping -s 56 -c 3 -W 1 187.244.233.131 2024-09-17 20:02:07,263 - DEBUG - PING 187.244.233.131 (187.244.233.131): 56 data bytes --- 187.244.233.131 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2024-09-17 20:02:07,263 - WARNING - Ping to IP 187.244.233.131 from VM ctest-TestBasicPolicy-68314587-23537941 failed 2024-09-17 20:02:07,263 - INFO - Deleting VM ctest-TestBasicPolicy-68314587-42793267 2024-09-17 20:02:07,330 - INFO - Deleting VM ctest-TestBasicPolicy-68314587-23537941 2024-09-17 20:02:07,711 - INFO - Deleted policy ctest-policy-allow-all-98990797 2024-09-17 20:02:07,711 - INFO - Deleting VN ctest-vn-97683350 2024-09-17 20:02:07,747 - DEBUG - VN 0983c623-d966-4668-b753-d8c832d44fbe still in use: Unable to complete operation on network 0983c623-d966-4668-b753-d8c832d44fbe. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-3684bcae-de22-4fde-9c85-fbdd839c993f'] 2024-09-17 20:02:07,747 - WARNING - Deleting VN ctest-vn-97683350 failed..Will retry 2024-09-17 20:02:09,852 - DEBUG - Response for deleting network () 2024-09-17 20:02:09,852 - DEBUG - Requesting: http://10.0.0.45:8082/routing-instance/f7ba7468-49b0-4564-8f64-a37d1b9829a3 2024-09-17 20:02:09,858 - DEBUG - Response Code: 404 2024-09-17 20:02:09,858 - DEBUG - Requesting: http://10.0.0.45:8082/domains 2024-09-17 20:02:09,863 - DEBUG - Requesting: http://10.0.0.45:8082/domain/0950d80c-2f57-4878-ae76-d8d35b2ce941 2024-09-17 20:02:09,918 - DEBUG - Requesting: http://10.0.0.45:8082/project/1afe8abb-b6c9-48dc-9d86-93df805c6d08 2024-09-17 20:02:09,998 - INFO - Validated that VN ctest-vn-97683350 is not found in API Server 2024-09-17 20:02:10,008 - DEBUG - VN ctest-vn-97683350 is not present in Agent 10.0.0.45 2024-09-17 20:02:10,008 - INFO - Validated that VN ctest-vn-97683350 is not in any agent 2024-09-17 20:02:10,024 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-97683350 info 2024-09-17 20:02:10,024 - INFO - Deleting VN ctest-vn-46842327 2024-09-17 20:02:10,132 - DEBUG - Response for deleting network () 2024-09-17 20:02:10,132 - DEBUG - Requesting: http://10.0.0.45:8082/routing-instance/4e99aba3-70ce-4754-92ac-6fc2105ba687 2024-09-17 20:02:10,137 - DEBUG - Response Code: 404 2024-09-17 20:02:10,137 - DEBUG - Requesting: http://10.0.0.45:8082/domains 2024-09-17 20:02:10,142 - DEBUG - Requesting: http://10.0.0.45:8082/domain/0950d80c-2f57-4878-ae76-d8d35b2ce941 2024-09-17 20:02:10,202 - DEBUG - Requesting: http://10.0.0.45:8082/project/1afe8abb-b6c9-48dc-9d86-93df805c6d08 2024-09-17 20:02:10,282 - INFO - Validated that VN ctest-vn-46842327 is not found in API Server 2024-09-17 20:02:10,292 - DEBUG - VN ctest-vn-46842327 is not present in Agent 10.0.0.45 2024-09-17 20:02:10,292 - INFO - Validated that VN ctest-vn-46842327 is not in any agent 2024-09-17 20:02:10,306 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-46842327 info 2024-09-17 20:02:10,561 - DEBUG - No XMPP flaps were noticed during the test
2024-09-17 20:02:10,561 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:30]
2024-09-17 20:02:10,562 - INFO - -------------------------------------------------------------------------------- 2024-09-17 20:02:11,245 - INFO - Deleted project: ctest-TestBasicPolicy-68314587, ID : 1afe8abb-b6c9-48dc-9d86-93df805c6d08