2024-10-24 16:19:53,561 - INFO - Domain Default found not creating 2024-10-24 16:19:53,778 - INFO - Project ctest-TestBasicPolicy-30075056 not found, creating it 2024-10-24 16:19:54,335 - INFO - Created Project:ctest-TestBasicPolicy-30075056, ID : 65a106da-0978-49a5-9fc1-84d4db2fe190 2024-10-24 16:19:56,073 - INFO - ================================================================================ 2024-10-24 16:19:56,074 - INFO - STARTING TEST : test_basic_policy_allow_deny 2024-10-24 16:19:56,074 - 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-24 16:19:56,334 - DEBUG - Nothing to compare xmpp stats {'10.0.0.27': {'10.20.0.10': '0'}} with 2024-10-24 16:19:56,334 - INFO - Initial checks done. Running the testcase now 2024-10-24 16:19:56,334 - INFO - 2024-10-24 16:19:56,982 - DEBUG - Response for create_network : {'network': {'id': 'a5266bf3-473a-46ac-ae30-3b594f94b1c4', 'name': 'ctest-vn-95666636', 'tenant_id': '65a106da097849a59fc184d4db2fe190', 'project_id': '65a106da097849a59fc184d4db2fe190', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-30075056', 'ctest-vn-95666636'], 'port_security_enabled': True, 'description': ''}} 2024-10-24 16:19:57,161 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e6259b15-1aa6-44cf-a5b7-1cf549999916', 'name': '', 'tenant_id': '65a106da097849a59fc184d4db2fe190', 'network_id': 'a5266bf3-473a-46ac-ae30-3b594f94b1c4', 'ip_version': 4, 'cidr': '198.101.228.64/26', 'allocation_pools': [{'start': '198.101.228.66', 'end': '198.101.228.126'}], 'gateway_ip': '198.101.228.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '198.101.228.66', 'tags': [], 'project_id': '65a106da097849a59fc184d4db2fe190'}} 2024-10-24 16:19:57,192 - INFO - Created VN ctest-vn-95666636 2024-10-24 16:19:57,251 - DEBUG - VN ctest-vn-95666636 UUID is a5266bf3-473a-46ac-ae30-3b594f94b1c4 2024-10-24 16:19:57,613 - DEBUG - Response for create_network : {'network': {'id': '5169f0c5-59e5-4df7-8fd5-6a2ad3480bd9', 'name': 'ctest-vn-90440461', 'tenant_id': '65a106da097849a59fc184d4db2fe190', 'project_id': '65a106da097849a59fc184d4db2fe190', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-30075056', 'ctest-vn-90440461'], 'port_security_enabled': True, 'description': ''}} 2024-10-24 16:19:57,871 - DEBUG - Response for create_subnet : {'subnet': {'id': '9deaed15-5e83-4004-81a9-9b594312b3fd', 'name': '', 'tenant_id': '65a106da097849a59fc184d4db2fe190', 'network_id': '5169f0c5-59e5-4df7-8fd5-6a2ad3480bd9', 'ip_version': 4, 'cidr': '123.100.101.0/26', 'allocation_pools': [{'start': '123.100.101.2', 'end': '123.100.101.62'}], 'gateway_ip': '123.100.101.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '123.100.101.2', 'tags': [], 'project_id': '65a106da097849a59fc184d4db2fe190'}} 2024-10-24 16:19:57,895 - INFO - Created VN ctest-vn-90440461 2024-10-24 16:19:57,959 - DEBUG - VN ctest-vn-90440461 UUID is 5169f0c5-59e5-4df7-8fd5-6a2ad3480bd9 2024-10-24 16:19:58,111 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-30075056:ctest-vn-95666636, 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-30075056:ctest-vn-90440461, 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-24 16:19:58,464 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a5266bf3-473a-46ac-ae30-3b594f94b1c4', 'name': 'ctest-vn-95666636', 'tenant_id': '65a106da097849a59fc184d4db2fe190', 'project_id': '65a106da097849a59fc184d4db2fe190', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['e6259b15-1aa6-44cf-a5b7-1cf549999916'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-30075056', 'ctest-vn-95666636'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-30075056', 'ctest-policy-allow-all-06181143']], 'subnet_ipam': [{'subnet_cidr': '198.101.228.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-10-24 16:19:58,724 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '5169f0c5-59e5-4df7-8fd5-6a2ad3480bd9', 'name': 'ctest-vn-90440461', 'tenant_id': '65a106da097849a59fc184d4db2fe190', 'project_id': '65a106da097849a59fc184d4db2fe190', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['9deaed15-5e83-4004-81a9-9b594312b3fd'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-30075056', 'ctest-vn-90440461'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-30075056', 'ctest-policy-allow-all-06181143']], 'subnet_ipam': [{'subnet_cidr': '123.100.101.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-10-24 16:19:58,927 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2024-10-24 16:19:59,237 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2024-10-24 16:19:59,280 - DEBUG - Requesting: http://10.0.0.27:8082/domain/601ceeaf-5dea-4ead-99e3-6ec9647d577d 2024-10-24 16:19:59,297 - DEBUG - Requesting: http://10.0.0.27:8082/project/65a106da-0978-49a5-9fc1-84d4db2fe190 2024-10-24 16:19:59,392 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/a5266bf3-473a-46ac-ae30-3b594f94b1c4 2024-10-24 16:19:59,411 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/a5266bf3-473a-46ac-ae30-3b594f94b1c4 2024-10-24 16:19:59,428 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/07551a91-e79a-4000-bc82-442c942280d4 2024-10-24 16:19:59,440 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/07551a91-e79a-4000-bc82-442c942280d4 2024-10-24 16:19:59,451 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/f1e1e28f-9535-4569-8d2b-c73d2d986187 2024-10-24 16:19:59,463 - DEBUG - Route Targets: ['target:64512:8000004'] 2024-10-24 16:19:59,463 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/a5266bf3-473a-46ac-ae30-3b594f94b1c4 2024-10-24 16:19:59,481 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/07551a91-e79a-4000-bc82-442c942280d4 2024-10-24 16:19:59,507 - INFO - Verified VN network id 7 for VN a5266bf3-473a-46ac-ae30-3b594f94b1c4 2024-10-24 16:19:59,507 - INFO - Verifications in API Server for VN ctest-vn-95666636 passed 2024-10-24 16:19:59,507 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/a5266bf3-473a-46ac-ae30-3b594f94b1c4 2024-10-24 16:19:59,526 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/07551a91-e79a-4000-bc82-442c942280d4 2024-10-24 16:19:59,538 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/07551a91-e79a-4000-bc82-442c942280d4 2024-10-24 16:19:59,550 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/f1e1e28f-9535-4569-8d2b-c73d2d986187 2024-10-24 16:19:59,571 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-30075056:ctest-vn-95666636', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-30075056', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11900317757989340844', 'uuid-lslong': '12551597416254845380'}, 'enable': 'true', 'created': '2024-10-24T16:19:56', 'last-modified': '2024-10-24T16:19:58', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.135378'} 2024-10-24 16:19:59,582 - DEBUG - Route Targets: ['target:64512:8000004'] 2024-10-24 16:19:59,583 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-95666636 passed 2024-10-24 16:19:59,583 - DEBUG - ====Verifying policy data for ctest-vn-95666636 in API_Server ====== 2024-10-24 16:19:59,583 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2024-10-24 16:19:59,593 - DEBUG - Requesting: http://10.0.0.27:8082/domain/601ceeaf-5dea-4ead-99e3-6ec9647d577d 2024-10-24 16:19:59,613 - DEBUG - Requesting: http://10.0.0.27:8082/project/65a106da-0978-49a5-9fc1-84d4db2fe190 2024-10-24 16:19:59,711 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/a5266bf3-473a-46ac-ae30-3b594f94b1c4 2024-10-24 16:19:59,728 - DEBUG - ==>Verifying data for policy with id: 16738293-0f78-4da4-bcf8-6a59a12ba5d9, fqn: ['default-domain', 'ctest-TestBasicPolicy-30075056', 'ctest-policy-allow-all-06181143'] 2024-10-24 16:19:59,728 - INFO - VN ctest-vn-95666636 Policy verification: verify_vn_policy_in_api_server, status: True 2024-10-24 16:19:59,728 - DEBUG - Verifying the vn in opserver 2024-10-24 16:19:59,728 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-30075056:ctest-vn-95666636 virtual network link through opserver 10.0.0.27 2024-10-24 16:19:59,729 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks 2024-10-24 16:20:00,049 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks 2024-10-24 16:20:00,140 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-30075056:ctest-vn-95666636', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-30075056:ctest-vn-95666636?flat'} 2024-10-24 16:20:00,140 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-30075056:ctest-vn-95666636 is found in opserver 2024-10-24 16:20:00,154 - DEBUG - Do not have enough data to verify VN in agent 2024-10-24 16:20:00,162 - DEBUG - VRF ids for VN ctest-vn-95666636: {} 2024-10-24 16:20:00,162 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2024-10-24 16:20:00,171 - DEBUG - Requesting: http://10.0.0.27:8082/domain/601ceeaf-5dea-4ead-99e3-6ec9647d577d 2024-10-24 16:20:00,191 - DEBUG - Requesting: http://10.0.0.27:8082/project/65a106da-0978-49a5-9fc1-84d4db2fe190 2024-10-24 16:20:00,282 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/5169f0c5-59e5-4df7-8fd5-6a2ad3480bd9 2024-10-24 16:20:00,302 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/5169f0c5-59e5-4df7-8fd5-6a2ad3480bd9 2024-10-24 16:20:00,322 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/6eb6b2e2-7baf-4946-a698-f62ef624aefe 2024-10-24 16:20:00,335 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/6eb6b2e2-7baf-4946-a698-f62ef624aefe 2024-10-24 16:20:00,351 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/bf8a944c-d3f5-44de-b065-9a533227f33d 2024-10-24 16:20:00,365 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-10-24 16:20:00,365 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/5169f0c5-59e5-4df7-8fd5-6a2ad3480bd9 2024-10-24 16:20:00,386 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/6eb6b2e2-7baf-4946-a698-f62ef624aefe 2024-10-24 16:20:00,415 - INFO - Verified VN network id 8 for VN 5169f0c5-59e5-4df7-8fd5-6a2ad3480bd9 2024-10-24 16:20:00,415 - INFO - Verifications in API Server for VN ctest-vn-90440461 passed 2024-10-24 16:20:00,415 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/5169f0c5-59e5-4df7-8fd5-6a2ad3480bd9 2024-10-24 16:20:00,433 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/6eb6b2e2-7baf-4946-a698-f62ef624aefe 2024-10-24 16:20:00,447 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/6eb6b2e2-7baf-4946-a698-f62ef624aefe 2024-10-24 16:20:00,461 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/bf8a944c-d3f5-44de-b065-9a533227f33d 2024-10-24 16:20:00,483 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-30075056:ctest-vn-90440461', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-30075056', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5866484720034205175', 'uuid-lslong': '10364306849628949465'}, 'enable': 'true', 'created': '2024-10-24T16:19:57', 'last-modified': '2024-10-24T16:19:58', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.787561'} 2024-10-24 16:20:00,492 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-10-24 16:20:00,492 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-90440461 passed 2024-10-24 16:20:00,492 - DEBUG - ====Verifying policy data for ctest-vn-90440461 in API_Server ====== 2024-10-24 16:20:00,493 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2024-10-24 16:20:00,502 - DEBUG - Requesting: http://10.0.0.27:8082/domain/601ceeaf-5dea-4ead-99e3-6ec9647d577d 2024-10-24 16:20:00,520 - DEBUG - Requesting: http://10.0.0.27:8082/project/65a106da-0978-49a5-9fc1-84d4db2fe190 2024-10-24 16:20:00,623 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/5169f0c5-59e5-4df7-8fd5-6a2ad3480bd9 2024-10-24 16:20:00,644 - DEBUG - ==>Verifying data for policy with id: 16738293-0f78-4da4-bcf8-6a59a12ba5d9, fqn: ['default-domain', 'ctest-TestBasicPolicy-30075056', 'ctest-policy-allow-all-06181143'] 2024-10-24 16:20:00,644 - INFO - VN ctest-vn-90440461 Policy verification: verify_vn_policy_in_api_server, status: True 2024-10-24 16:20:00,644 - DEBUG - Verifying the vn in opserver 2024-10-24 16:20:00,644 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-30075056:ctest-vn-90440461 virtual network link through opserver 10.0.0.27 2024-10-24 16:20:00,644 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks 2024-10-24 16:20:00,660 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-30075056:ctest-vn-90440461', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-30075056:ctest-vn-90440461?flat'} 2024-10-24 16:20:00,660 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-30075056:ctest-vn-90440461 is found in opserver 2024-10-24 16:20:00,677 - DEBUG - Do not have enough data to verify VN in agent 2024-10-24 16:20:00,684 - DEBUG - VRF ids for VN ctest-vn-90440461: {} 2024-10-24 16:20:00,758 - DEBUG - Services list from nova: [, , ] 2024-10-24 16:20:02,171 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2143-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2143-1) 2024-10-24 16:20:03,545 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2143-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2143-1) 2024-10-24 16:20:03,545 - INFO - Waiting for VM ctest-TestBasicPolicy-30075056-14954872 to be up.. 2024-10-24 16:20:03,660 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-10-24 16:20:08,772 - DEBUG - VM is in ACTIVE state now 2024-10-24 16:20:08,772 - INFO - VM name : ctest-TestBasicPolicy-30075056-14954872 2024-10-24 16:20:08,885 - DEBUG - VM ctest-TestBasicPolicy-30075056-14954872 ID is c8cde66c-3c00-45b7-a248-93d29b85c151 2024-10-24 16:20:08,915 - DEBUG - VM ctest-TestBasicPolicy-30075056-14954872 launched on Node cn-jenkins-deploy-platform-ansible-os-2143-1 2024-10-24 16:20:09,036 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-machine/c8cde66c-3c00-45b7-a248-93d29b85c151 2024-10-24 16:20:09,048 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-machine-interface/0a4da5db-0e47-4719-aaed-d0e5edccf707 2024-10-24 16:20:12,346 - 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 1025ms') 2024-10-24 16:20:12,346 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-30075056-14954872 failed! 2024-10-24 16:20:12,415 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-30075056:ctest-vn-95666636 is 198.101.228.65 and allocation pool is NOT set 2024-10-24 16:20:14,482 - 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=7.94 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=1.91 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 = 1.909/4.926/7.943/3.017 ms') 2024-10-24 16:20:14,482 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-30075056-14954872 passed 2024-10-24 16:20:14,651 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-24 16:20:14,652 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-30075056-14954872, IP 198.101.228.67, Port 22 2024-10-24 16:20:14,826 - DEBUG - VM ctest-TestBasicPolicy-30075056-14954872 is ready for SSH connections 2024-10-24 16:20:14,827 - INFO - Waiting for VM ctest-TestBasicPolicy-30075056-72584194 to be up.. 2024-10-24 16:20:14,937 - DEBUG - VM is in ACTIVE state now 2024-10-24 16:20:14,937 - INFO - VM name : ctest-TestBasicPolicy-30075056-72584194 2024-10-24 16:20:15,051 - DEBUG - VM ctest-TestBasicPolicy-30075056-72584194 ID is b97608a1-512c-47ba-b2f2-21c0dea5f0c1 2024-10-24 16:20:15,052 - DEBUG - VM ctest-TestBasicPolicy-30075056-72584194 launched on Node cn-jenkins-deploy-platform-ansible-os-2143-1 2024-10-24 16:20:15,163 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-machine/b97608a1-512c-47ba-b2f2-21c0dea5f0c1 2024-10-24 16:20:15,176 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-machine-interface/66cc101a-8946-4cfb-861d-bc645639e85a 2024-10-24 16:20:16,450 - 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.05 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.655 ms\r\n\r\n--- 169.254.0.4 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1000ms\r\nrtt min/avg/max/mdev = 0.655/1.853/3.051/1.198 ms') 2024-10-24 16:20:16,450 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-30075056-72584194 passed 2024-10-24 16:20:16,612 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-24 16:20:16,612 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-30075056-72584194, IP 123.100.101.3, Port 22 2024-10-24 16:20:16,782 - DEBUG - VM ctest-TestBasicPolicy-30075056-72584194 is ready for SSH connections 2024-10-24 16:20:16,782 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-24 16:20:16,782 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 123.100.101.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.27, gateway password: c0ntrail123 2024-10-24 16:20:16,782 - DEBUG - ping -s 56 -c 3 -W 1 123.100.101.3 2024-10-24 16:20:20,882 - DEBUG - PING 123.100.101.3 (123.100.101.3): 56 data bytes 64 bytes from 123.100.101.3: seq=0 ttl=63 time=4.732 ms 64 bytes from 123.100.101.3: seq=1 ttl=63 time=1.333 ms 64 bytes from 123.100.101.3: seq=2 ttl=63 time=1.059 ms --- 123.100.101.3 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.059/2.374/4.732 ms 2024-10-24 16:20:20,882 - INFO - Ping to IP 123.100.101.3 from VM ctest-TestBasicPolicy-30075056-14954872 passed 2024-10-24 16:20:21,087 - DEBUG - Policy Update Response {"network-policy": {"uuid": "16738293-0f78-4da4-bcf8-6a59a12ba5d9", "href": "http://10.0.0.27:8082/network-policy/16738293-0f78-4da4-bcf8-6a59a12ba5d9"}} 2024-10-24 16:20:21,087 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-24 16:20:21,087 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 123.100.101.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.27, gateway password: c0ntrail123 2024-10-24 16:20:21,088 - DEBUG - ping -s 56 -c 3 -W 1 123.100.101.3 2024-10-24 16:20:24,309 - DEBUG - PING 123.100.101.3 (123.100.101.3): 56 data bytes --- 123.100.101.3 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2024-10-24 16:20:24,310 - WARNING - Ping to IP 123.100.101.3 from VM ctest-TestBasicPolicy-30075056-14954872 failed 2024-10-24 16:20:24,310 - INFO - Deleting VM ctest-TestBasicPolicy-30075056-72584194 2024-10-24 16:20:24,396 - INFO - Deleting VM ctest-TestBasicPolicy-30075056-14954872 2024-10-24 16:20:24,911 - INFO - Deleted policy ctest-policy-allow-all-06181143 2024-10-24 16:20:24,911 - INFO - Deleting VN ctest-vn-90440461 2024-10-24 16:20:24,974 - DEBUG - VN 5169f0c5-59e5-4df7-8fd5-6a2ad3480bd9 still in use: Unable to complete operation on network 5169f0c5-59e5-4df7-8fd5-6a2ad3480bd9. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-9181d66a-7bc5-4733-875e-84cee439360c'] 2024-10-24 16:20:24,974 - WARNING - Deleting VN ctest-vn-90440461 failed..Will retry 2024-10-24 16:20:27,153 - DEBUG - Response for deleting network () 2024-10-24 16:20:27,153 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/6eb6b2e2-7baf-4946-a698-f62ef624aefe 2024-10-24 16:20:27,161 - DEBUG - Response Code: 404 2024-10-24 16:20:27,161 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2024-10-24 16:20:27,176 - DEBUG - Requesting: http://10.0.0.27:8082/domain/601ceeaf-5dea-4ead-99e3-6ec9647d577d 2024-10-24 16:20:27,193 - DEBUG - Requesting: http://10.0.0.27:8082/project/65a106da-0978-49a5-9fc1-84d4db2fe190 2024-10-24 16:20:27,278 - INFO - Validated that VN ctest-vn-90440461 is not found in API Server 2024-10-24 16:20:27,292 - DEBUG - VN ctest-vn-90440461 is not present in Agent 10.0.0.27 2024-10-24 16:20:27,292 - INFO - Validated that VN ctest-vn-90440461 is not in any agent 2024-10-24 16:20:27,313 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-90440461 info 2024-10-24 16:20:27,313 - INFO - Deleting VN ctest-vn-95666636 2024-10-24 16:20:27,448 - DEBUG - Response for deleting network () 2024-10-24 16:20:27,448 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/07551a91-e79a-4000-bc82-442c942280d4 2024-10-24 16:20:27,455 - DEBUG - Response Code: 404 2024-10-24 16:20:27,456 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2024-10-24 16:20:27,465 - DEBUG - Requesting: http://10.0.0.27:8082/domain/601ceeaf-5dea-4ead-99e3-6ec9647d577d 2024-10-24 16:20:27,527 - DEBUG - Requesting: http://10.0.0.27:8082/project/65a106da-0978-49a5-9fc1-84d4db2fe190 2024-10-24 16:20:27,618 - INFO - Validated that VN ctest-vn-95666636 is not found in API Server 2024-10-24 16:20:27,631 - DEBUG - VN ctest-vn-95666636 is not present in Agent 10.0.0.27 2024-10-24 16:20:27,631 - INFO - Validated that VN ctest-vn-95666636 is not in any agent 2024-10-24 16:20:27,651 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-95666636 info 2024-10-24 16:20:27,910 - DEBUG - No XMPP flaps were noticed during the test
2024-10-24 16:20:27,910 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:31]
2024-10-24 16:20:27,910 - INFO - -------------------------------------------------------------------------------- 2024-10-24 16:20:28,732 - INFO - Deleted project: ctest-TestBasicPolicy-30075056, ID : 65a106da-0978-49a5-9fc1-84d4db2fe190