2024-10-28 13:38:36,681 - INFO - Domain Default found not creating 2024-10-28 13:38:36,885 - INFO - Project ctest-TestBasicPolicy-61664826 not found, creating it 2024-10-28 13:38:37,414 - INFO - Created Project:ctest-TestBasicPolicy-61664826, ID : 9782290b-a61a-4079-bfe4-4c56350a617a 2024-10-28 13:38:39,000 - INFO - ================================================================================ 2024-10-28 13:38:39,001 - INFO - STARTING TEST : test_basic_policy_allow_deny 2024-10-28 13:38:39,001 - 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-10-28 13:38:39,258 - DEBUG - Nothing to compare xmpp stats {'10.0.0.23': {'10.20.0.6': '0'}} with 2024-10-28 13:38:39,259 - INFO - Initial checks done. Running the testcase now 2024-10-28 13:38:39,259 - INFO - 2024-10-28 13:38:39,836 - DEBUG - Response for create_network : {'network': {'id': '727adeff-d96a-408e-81ee-cd44d7650f93', 'name': 'ctest-vn-29197866', 'tenant_id': '9782290ba61a4079bfe44c56350a617a', 'project_id': '9782290ba61a4079bfe44c56350a617a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-61664826', 'ctest-vn-29197866'], 'port_security_enabled': True, 'description': ''}} 2024-10-28 13:38:40,027 - DEBUG - Response for create_subnet : {'subnet': {'id': '92fc7695-d348-475f-a706-b1b78df6d68a', 'name': '', 'tenant_id': '9782290ba61a4079bfe44c56350a617a', 'network_id': '727adeff-d96a-408e-81ee-cd44d7650f93', 'ip_version': 4, 'cidr': '178.65.106.0/26', 'allocation_pools': [{'start': '178.65.106.2', 'end': '178.65.106.62'}], 'gateway_ip': '178.65.106.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '178.65.106.2', 'tags': [], 'project_id': '9782290ba61a4079bfe44c56350a617a'}} 2024-10-28 13:38:40,047 - INFO - Created VN ctest-vn-29197866 2024-10-28 13:38:40,103 - DEBUG - VN ctest-vn-29197866 UUID is 727adeff-d96a-408e-81ee-cd44d7650f93 2024-10-28 13:38:40,445 - DEBUG - Response for create_network : {'network': {'id': '1351e29d-fe09-44a0-a7b2-9b9d628edaa7', 'name': 'ctest-vn-44927313', 'tenant_id': '9782290ba61a4079bfe44c56350a617a', 'project_id': '9782290ba61a4079bfe44c56350a617a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-61664826', 'ctest-vn-44927313'], 'port_security_enabled': True, 'description': ''}} 2024-10-28 13:38:40,668 - DEBUG - Response for create_subnet : {'subnet': {'id': '180dd161-7fdc-4536-96f4-dce5b1f716f6', 'name': '', 'tenant_id': '9782290ba61a4079bfe44c56350a617a', 'network_id': '1351e29d-fe09-44a0-a7b2-9b9d628edaa7', 'ip_version': 4, 'cidr': '119.90.124.0/26', 'allocation_pools': [{'start': '119.90.124.2', 'end': '119.90.124.62'}], 'gateway_ip': '119.90.124.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '119.90.124.2', 'tags': [], 'project_id': '9782290ba61a4079bfe44c56350a617a'}} 2024-10-28 13:38:40,689 - INFO - Created VN ctest-vn-44927313 2024-10-28 13:38:40,747 - DEBUG - VN ctest-vn-44927313 UUID is 1351e29d-fe09-44a0-a7b2-9b9d628edaa7 2024-10-28 13:38:40,880 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-61664826:ctest-vn-29197866, 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-61664826:ctest-vn-44927313, 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-10-28 13:38:41,198 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '727adeff-d96a-408e-81ee-cd44d7650f93', 'name': 'ctest-vn-29197866', 'tenant_id': '9782290ba61a4079bfe44c56350a617a', 'project_id': '9782290ba61a4079bfe44c56350a617a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['92fc7695-d348-475f-a706-b1b78df6d68a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-61664826', 'ctest-vn-29197866'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-61664826', 'ctest-policy-allow-all-35818382']], 'subnet_ipam': [{'subnet_cidr': '178.65.106.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-10-28 13:38:41,458 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '1351e29d-fe09-44a0-a7b2-9b9d628edaa7', 'name': 'ctest-vn-44927313', 'tenant_id': '9782290ba61a4079bfe44c56350a617a', 'project_id': '9782290ba61a4079bfe44c56350a617a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['180dd161-7fdc-4536-96f4-dce5b1f716f6'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-61664826', 'ctest-vn-44927313'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-61664826', 'ctest-policy-allow-all-35818382']], 'subnet_ipam': [{'subnet_cidr': '119.90.124.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-10-28 13:38:41,607 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2024-10-28 13:38:41,913 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2024-10-28 13:38:41,952 - DEBUG - Requesting: http://10.0.0.23:8082/domain/8b2405a9-bc14-421d-9e96-789edeb3cc34 2024-10-28 13:38:41,972 - DEBUG - Requesting: http://10.0.0.23:8082/project/9782290b-a61a-4079-bfe4-4c56350a617a 2024-10-28 13:38:42,057 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/727adeff-d96a-408e-81ee-cd44d7650f93 2024-10-28 13:38:42,073 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/727adeff-d96a-408e-81ee-cd44d7650f93 2024-10-28 13:38:42,087 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/5a40a6a9-3d93-4f4a-9961-bd3551abc359 2024-10-28 13:38:42,097 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/5a40a6a9-3d93-4f4a-9961-bd3551abc359 2024-10-28 13:38:42,107 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/e68fff74-8c5e-45c6-8283-ea6400d5f065 2024-10-28 13:38:42,115 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-10-28 13:38:42,115 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/727adeff-d96a-408e-81ee-cd44d7650f93 2024-10-28 13:38:42,129 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/5a40a6a9-3d93-4f4a-9961-bd3551abc359 2024-10-28 13:38:42,150 - INFO - Verified VN network id 9 for VN 727adeff-d96a-408e-81ee-cd44d7650f93 2024-10-28 13:38:42,151 - INFO - Verifications in API Server for VN ctest-vn-29197866 passed 2024-10-28 13:38:42,151 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/727adeff-d96a-408e-81ee-cd44d7650f93 2024-10-28 13:38:42,166 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/5a40a6a9-3d93-4f4a-9961-bd3551abc359 2024-10-28 13:38:42,176 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/5a40a6a9-3d93-4f4a-9961-bd3551abc359 2024-10-28 13:38:42,185 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/e68fff74-8c5e-45c6-8283-ea6400d5f065 2024-10-28 13:38:42,199 - DEBUG - Control-node 10.0.0.23 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-61664826:ctest-vn-29197866', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-61664826', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8249150857928130702', 'uuid-lslong': '9362646370905034643'}, 'enable': 'true', 'created': '2024-10-28T13:38:39', 'last-modified': '2024-10-28T13:38:41', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.026697'} 2024-10-28 13:38:42,206 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-10-28 13:38:42,206 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-29197866 passed 2024-10-28 13:38:42,207 - DEBUG - ====Verifying policy data for ctest-vn-29197866 in API_Server ====== 2024-10-28 13:38:42,207 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2024-10-28 13:38:42,213 - DEBUG - Requesting: http://10.0.0.23:8082/domain/8b2405a9-bc14-421d-9e96-789edeb3cc34 2024-10-28 13:38:42,232 - DEBUG - Requesting: http://10.0.0.23:8082/project/9782290b-a61a-4079-bfe4-4c56350a617a 2024-10-28 13:38:42,330 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/727adeff-d96a-408e-81ee-cd44d7650f93 2024-10-28 13:38:42,345 - DEBUG - ==>Verifying data for policy with id: 13956d19-755e-44a2-b631-ffc39362ac64, fqn: ['default-domain', 'ctest-TestBasicPolicy-61664826', 'ctest-policy-allow-all-35818382'] 2024-10-28 13:38:42,345 - INFO - VN ctest-vn-29197866 Policy verification: verify_vn_policy_in_api_server, status: True 2024-10-28 13:38:42,345 - DEBUG - Verifying the vn in opserver 2024-10-28 13:38:42,345 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-61664826:ctest-vn-29197866 virtual network link through opserver 10.0.0.23 2024-10-28 13:38:42,345 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks 2024-10-28 13:38:42,646 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks 2024-10-28 13:38:42,716 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-61664826:ctest-vn-29197866', 'href': 'http://10.0.0.23:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-61664826:ctest-vn-29197866?flat'} 2024-10-28 13:38:42,716 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-61664826:ctest-vn-29197866 is found in opserver 2024-10-28 13:38:42,728 - DEBUG - Do not have enough data to verify VN in agent 2024-10-28 13:38:42,734 - DEBUG - VRF ids for VN ctest-vn-29197866: {} 2024-10-28 13:38:42,734 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2024-10-28 13:38:42,741 - DEBUG - Requesting: http://10.0.0.23:8082/domain/8b2405a9-bc14-421d-9e96-789edeb3cc34 2024-10-28 13:38:42,757 - DEBUG - Requesting: http://10.0.0.23:8082/project/9782290b-a61a-4079-bfe4-4c56350a617a 2024-10-28 13:38:42,848 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/1351e29d-fe09-44a0-a7b2-9b9d628edaa7 2024-10-28 13:38:42,866 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/1351e29d-fe09-44a0-a7b2-9b9d628edaa7 2024-10-28 13:38:42,882 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/fa5af9df-0137-44a1-a2bc-ef9a3b1eb7e4 2024-10-28 13:38:42,894 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/fa5af9df-0137-44a1-a2bc-ef9a3b1eb7e4 2024-10-28 13:38:42,905 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/bf522398-714f-4891-acd1-fad21b21e4bc 2024-10-28 13:38:42,915 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-10-28 13:38:42,915 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/1351e29d-fe09-44a0-a7b2-9b9d628edaa7 2024-10-28 13:38:42,935 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/fa5af9df-0137-44a1-a2bc-ef9a3b1eb7e4 2024-10-28 13:38:42,959 - INFO - Verified VN network id 10 for VN 1351e29d-fe09-44a0-a7b2-9b9d628edaa7 2024-10-28 13:38:42,959 - INFO - Verifications in API Server for VN ctest-vn-44927313 passed 2024-10-28 13:38:42,959 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/1351e29d-fe09-44a0-a7b2-9b9d628edaa7 2024-10-28 13:38:42,975 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/fa5af9df-0137-44a1-a2bc-ef9a3b1eb7e4 2024-10-28 13:38:42,985 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/fa5af9df-0137-44a1-a2bc-ef9a3b1eb7e4 2024-10-28 13:38:42,996 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/bf522398-714f-4891-acd1-fad21b21e4bc 2024-10-28 13:38:43,012 - DEBUG - Control-node 10.0.0.23 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-61664826:ctest-vn-44927313', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-61664826', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1392142928033957024', 'uuid-lslong': '12083891850454162087'}, 'enable': 'true', 'created': '2024-10-28T13:38:40', 'last-modified': '2024-10-28T13:38:41', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.579125'} 2024-10-28 13:38:43,019 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-10-28 13:38:43,019 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-44927313 passed 2024-10-28 13:38:43,019 - DEBUG - ====Verifying policy data for ctest-vn-44927313 in API_Server ====== 2024-10-28 13:38:43,019 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2024-10-28 13:38:43,026 - DEBUG - Requesting: http://10.0.0.23:8082/domain/8b2405a9-bc14-421d-9e96-789edeb3cc34 2024-10-28 13:38:43,041 - DEBUG - Requesting: http://10.0.0.23:8082/project/9782290b-a61a-4079-bfe4-4c56350a617a 2024-10-28 13:38:43,137 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/1351e29d-fe09-44a0-a7b2-9b9d628edaa7 2024-10-28 13:38:43,153 - DEBUG - ==>Verifying data for policy with id: 13956d19-755e-44a2-b631-ffc39362ac64, fqn: ['default-domain', 'ctest-TestBasicPolicy-61664826', 'ctest-policy-allow-all-35818382'] 2024-10-28 13:38:43,153 - INFO - VN ctest-vn-44927313 Policy verification: verify_vn_policy_in_api_server, status: True 2024-10-28 13:38:43,154 - DEBUG - Verifying the vn in opserver 2024-10-28 13:38:43,154 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-61664826:ctest-vn-44927313 virtual network link through opserver 10.0.0.23 2024-10-28 13:38:43,154 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks 2024-10-28 13:38:43,167 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-61664826:ctest-vn-44927313', 'href': 'http://10.0.0.23:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-61664826:ctest-vn-44927313?flat'} 2024-10-28 13:38:43,167 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-61664826:ctest-vn-44927313 is found in opserver 2024-10-28 13:38:43,180 - DEBUG - Do not have enough data to verify VN in agent 2024-10-28 13:38:43,186 - DEBUG - VRF ids for VN ctest-vn-44927313: {} 2024-10-28 13:38:43,253 - DEBUG - Services list from nova: [, , ] 2024-10-28 13:38:44,293 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2162-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2162-1) 2024-10-28 13:38:45,774 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2162-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2162-1) 2024-10-28 13:38:45,774 - INFO - Waiting for VM ctest-TestBasicPolicy-61664826-83982816 to be up.. 2024-10-28 13:38:46,018 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-10-28 13:38:51,103 - DEBUG - VM is in ACTIVE state now 2024-10-28 13:38:51,103 - INFO - VM name : ctest-TestBasicPolicy-61664826-83982816 2024-10-28 13:38:51,191 - DEBUG - VM ctest-TestBasicPolicy-61664826-83982816 ID is 71daf96f-0c81-4e7e-b868-3bd74a3cdb5d 2024-10-28 13:38:51,210 - DEBUG - VM ctest-TestBasicPolicy-61664826-83982816 launched on Node cn-jenkins-deploy-platform-ansible-os-2162-1 2024-10-28 13:38:51,290 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-machine/71daf96f-0c81-4e7e-b868-3bd74a3cdb5d 2024-10-28 13:38:51,301 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-machine-interface/952fc34c-138f-41bd-942e-fc18517925c3 2024-10-28 13:38:54,563 - 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 1007ms') 2024-10-28 13:38:54,563 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-61664826-83982816 failed! 2024-10-28 13:38:54,624 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-61664826:ctest-vn-29197866 is 178.65.106.1 and allocation pool is NOT set 2024-10-28 13:38:56,686 - 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.83 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.488 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.488/1.660/2.832/1.172 ms') 2024-10-28 13:38:56,686 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-61664826-83982816 passed 2024-10-28 13:38:56,848 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-28 13:38:56,848 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-61664826-83982816, IP 178.65.106.3, Port 22 2024-10-28 13:38:57,003 - DEBUG - VM ctest-TestBasicPolicy-61664826-83982816 is ready for SSH connections 2024-10-28 13:38:57,003 - INFO - Waiting for VM ctest-TestBasicPolicy-61664826-32067297 to be up.. 2024-10-28 13:38:57,106 - DEBUG - VM is in ACTIVE state now 2024-10-28 13:38:57,107 - INFO - VM name : ctest-TestBasicPolicy-61664826-32067297 2024-10-28 13:38:57,209 - DEBUG - VM ctest-TestBasicPolicy-61664826-32067297 ID is 2356da2f-ca72-418a-8e3d-4107323a29af 2024-10-28 13:38:57,209 - DEBUG - VM ctest-TestBasicPolicy-61664826-32067297 launched on Node cn-jenkins-deploy-platform-ansible-os-2162-1 2024-10-28 13:38:57,308 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-machine/2356da2f-ca72-418a-8e3d-4107323a29af 2024-10-28 13:38:57,322 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-machine-interface/227a7682-d6e3-49a8-8e1c-ea9f9414a8df 2024-10-28 13:38:58,596 - 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=4.32 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=1.95 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 = 1.950/3.136/4.322/1.186 ms') 2024-10-28 13:38:58,596 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-61664826-32067297 passed 2024-10-28 13:38:58,755 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-28 13:38:58,756 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-61664826-32067297, IP 119.90.124.3, Port 22 2024-10-28 13:38:58,915 - DEBUG - VM ctest-TestBasicPolicy-61664826-32067297 is ready for SSH connections 2024-10-28 13:38:58,915 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-28 13:38:58,915 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 119.90.124.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.23, gateway password: c0ntrail123 2024-10-28 13:38:58,915 - DEBUG - ping -s 56 -c 3 -W 1 119.90.124.3 2024-10-28 13:39:02,925 - DEBUG - PING 119.90.124.3 (119.90.124.3): 56 data bytes 64 bytes from 119.90.124.3: seq=0 ttl=63 time=4.409 ms 64 bytes from 119.90.124.3: seq=1 ttl=63 time=1.018 ms 64 bytes from 119.90.124.3: seq=2 ttl=63 time=0.767 ms --- 119.90.124.3 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.767/2.064/4.409 ms 2024-10-28 13:39:02,925 - INFO - Ping to IP 119.90.124.3 from VM ctest-TestBasicPolicy-61664826-83982816 passed 2024-10-28 13:39:03,119 - DEBUG - Policy Update Response {"network-policy": {"uuid": "13956d19-755e-44a2-b631-ffc39362ac64", "href": "http://10.0.0.23:8082/network-policy/13956d19-755e-44a2-b631-ffc39362ac64"}} 2024-10-28 13:39:03,120 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-28 13:39:03,120 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 119.90.124.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.23, gateway password: c0ntrail123 2024-10-28 13:39:03,120 - DEBUG - ping -s 56 -c 3 -W 1 119.90.124.3 2024-10-28 13:39:06,340 - DEBUG - PING 119.90.124.3 (119.90.124.3): 56 data bytes 64 bytes from 119.90.124.3: seq=0 ttl=63 time=1.317 ms --- 119.90.124.3 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.317/1.317/1.317 ms 2024-10-28 13:39:06,340 - WARNING - Ping to IP 119.90.124.3 from VM ctest-TestBasicPolicy-61664826-83982816 failed 2024-10-28 13:39:06,340 - INFO - Deleting VM ctest-TestBasicPolicy-61664826-32067297 2024-10-28 13:39:06,404 - INFO - Deleting VM ctest-TestBasicPolicy-61664826-83982816 2024-10-28 13:39:06,850 - INFO - Deleted policy ctest-policy-allow-all-35818382 2024-10-28 13:39:06,850 - INFO - Deleting VN ctest-vn-44927313 2024-10-28 13:39:06,895 - DEBUG - VN 1351e29d-fe09-44a0-a7b2-9b9d628edaa7 still in use: Unable to complete operation on network 1351e29d-fe09-44a0-a7b2-9b9d628edaa7. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-00236818-1827-4bdc-9ebd-a0aae6737380'] 2024-10-28 13:39:06,895 - WARNING - Deleting VN ctest-vn-44927313 failed..Will retry 2024-10-28 13:39:09,011 - DEBUG - Response for deleting network () 2024-10-28 13:39:09,011 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/fa5af9df-0137-44a1-a2bc-ef9a3b1eb7e4 2024-10-28 13:39:09,019 - DEBUG - Response Code: 404 2024-10-28 13:39:09,019 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2024-10-28 13:39:09,026 - DEBUG - Requesting: http://10.0.0.23:8082/domain/8b2405a9-bc14-421d-9e96-789edeb3cc34 2024-10-28 13:39:09,085 - DEBUG - Requesting: http://10.0.0.23:8082/project/9782290b-a61a-4079-bfe4-4c56350a617a 2024-10-28 13:39:09,167 - INFO - Validated that VN ctest-vn-44927313 is not found in API Server 2024-10-28 13:39:09,193 - DEBUG - VN ctest-vn-44927313 is not present in Agent 10.0.0.23 2024-10-28 13:39:09,193 - INFO - Validated that VN ctest-vn-44927313 is not in any agent 2024-10-28 13:39:09,215 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-44927313 info 2024-10-28 13:39:09,216 - INFO - Deleting VN ctest-vn-29197866 2024-10-28 13:39:09,365 - DEBUG - Response for deleting network () 2024-10-28 13:39:09,365 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/5a40a6a9-3d93-4f4a-9961-bd3551abc359 2024-10-28 13:39:09,371 - DEBUG - Response Code: 404 2024-10-28 13:39:09,371 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2024-10-28 13:39:09,377 - DEBUG - Requesting: http://10.0.0.23:8082/domain/8b2405a9-bc14-421d-9e96-789edeb3cc34 2024-10-28 13:39:09,434 - DEBUG - Requesting: http://10.0.0.23:8082/project/9782290b-a61a-4079-bfe4-4c56350a617a 2024-10-28 13:39:09,518 - INFO - Validated that VN ctest-vn-29197866 is not found in API Server 2024-10-28 13:39:09,529 - DEBUG - VN ctest-vn-29197866 is not present in Agent 10.0.0.23 2024-10-28 13:39:09,529 - INFO - Validated that VN ctest-vn-29197866 is not in any agent 2024-10-28 13:39:09,545 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-29197866 info 2024-10-28 13:39:09,802 - DEBUG - No XMPP flaps were noticed during the test
2024-10-28 13:39:09,802 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:30]
2024-10-28 13:39:09,802 - INFO - -------------------------------------------------------------------------------- 2024-10-28 13:39:10,554 - INFO - Deleted project: ctest-TestBasicPolicy-61664826, ID : 9782290b-a61a-4079-bfe4-4c56350a617a