2024-09-17 09:25:38,433 - INFO - Domain Default found not creating 2024-09-17 09:25:38,610 - INFO - Project ctest-TestBasicPolicy-20391349 not found, creating it 2024-09-17 09:25:39,102 - INFO - Created Project:ctest-TestBasicPolicy-20391349, ID : 50a3558f-f3a0-4af4-bdaf-703e51186c36 2024-09-17 09:25:40,629 - INFO - ================================================================================ 2024-09-17 09:25:40,629 - INFO - STARTING TEST : test_basic_policy_allow_deny 2024-09-17 09:25:40,630 - 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 09:25:40,887 - DEBUG - Nothing to compare xmpp stats {'10.0.0.47': {'10.20.0.18': '0'}} with 2024-09-17 09:25:40,887 - INFO - Initial checks done. Running the testcase now 2024-09-17 09:25:40,887 - INFO - 2024-09-17 09:25:41,476 - DEBUG - Response for create_network : {'network': {'id': '729c6d5f-70c7-41b8-b4ad-a5e86f87bc9a', 'name': 'ctest-vn-72819486', 'tenant_id': '50a3558ff3a04af4bdaf703e51186c36', 'project_id': '50a3558ff3a04af4bdaf703e51186c36', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-20391349', 'ctest-vn-72819486'], 'port_security_enabled': True, 'description': ''}} 2024-09-17 09:25:41,686 - DEBUG - Response for create_subnet : {'subnet': {'id': 'cf66264b-453f-400d-8663-0e45330f19e2', 'name': '', 'tenant_id': '50a3558ff3a04af4bdaf703e51186c36', 'network_id': '729c6d5f-70c7-41b8-b4ad-a5e86f87bc9a', 'ip_version': 4, 'cidr': '147.238.9.192/26', 'allocation_pools': [{'start': '147.238.9.194', 'end': '147.238.9.254'}], 'gateway_ip': '147.238.9.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '147.238.9.194', 'tags': [], 'project_id': '50a3558ff3a04af4bdaf703e51186c36'}} 2024-09-17 09:25:41,706 - INFO - Created VN ctest-vn-72819486 2024-09-17 09:25:41,763 - DEBUG - VN ctest-vn-72819486 UUID is 729c6d5f-70c7-41b8-b4ad-a5e86f87bc9a 2024-09-17 09:25:42,087 - DEBUG - Response for create_network : {'network': {'id': 'ef717723-9e01-4a2a-a694-f942ebaa50b9', 'name': 'ctest-vn-98313127', 'tenant_id': '50a3558ff3a04af4bdaf703e51186c36', 'project_id': '50a3558ff3a04af4bdaf703e51186c36', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-20391349', 'ctest-vn-98313127'], 'port_security_enabled': True, 'description': ''}} 2024-09-17 09:25:42,269 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e5972c32-115a-40bc-b1c0-7d1116632ffd', 'name': '', 'tenant_id': '50a3558ff3a04af4bdaf703e51186c36', 'network_id': 'ef717723-9e01-4a2a-a694-f942ebaa50b9', 'ip_version': 4, 'cidr': '67.162.61.192/26', 'allocation_pools': [{'start': '67.162.61.194', 'end': '67.162.61.254'}], 'gateway_ip': '67.162.61.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '67.162.61.194', 'tags': [], 'project_id': '50a3558ff3a04af4bdaf703e51186c36'}} 2024-09-17 09:25:42,287 - INFO - Created VN ctest-vn-98313127 2024-09-17 09:25:42,343 - DEBUG - VN ctest-vn-98313127 UUID is ef717723-9e01-4a2a-a694-f942ebaa50b9 2024-09-17 09:25:42,468 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-20391349:ctest-vn-72819486, 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-20391349:ctest-vn-98313127, 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 09:25:42,786 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '729c6d5f-70c7-41b8-b4ad-a5e86f87bc9a', 'name': 'ctest-vn-72819486', 'tenant_id': '50a3558ff3a04af4bdaf703e51186c36', 'project_id': '50a3558ff3a04af4bdaf703e51186c36', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['cf66264b-453f-400d-8663-0e45330f19e2'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-20391349', 'ctest-vn-72819486'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-20391349', 'ctest-policy-allow-all-32892247']], 'subnet_ipam': [{'subnet_cidr': '147.238.9.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-09-17 09:25:43,024 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ef717723-9e01-4a2a-a694-f942ebaa50b9', 'name': 'ctest-vn-98313127', 'tenant_id': '50a3558ff3a04af4bdaf703e51186c36', 'project_id': '50a3558ff3a04af4bdaf703e51186c36', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['e5972c32-115a-40bc-b1c0-7d1116632ffd'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-20391349', 'ctest-vn-98313127'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-20391349', 'ctest-policy-allow-all-32892247']], 'subnet_ipam': [{'subnet_cidr': '67.162.61.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-09-17 09:25:43,219 - DEBUG - Requesting: http://10.0.0.47:8082/domains 2024-09-17 09:25:43,518 - DEBUG - Requesting: http://10.0.0.47:8082/domains 2024-09-17 09:25:43,553 - DEBUG - Requesting: http://10.0.0.47:8082/domain/62cc0c24-9329-4f1f-90f0-d5588f68311e 2024-09-17 09:25:43,580 - DEBUG - Requesting: http://10.0.0.47:8082/project/50a3558f-f3a0-4af4-bdaf-703e51186c36 2024-09-17 09:25:43,672 - DEBUG - Requesting: http://10.0.0.47:8082/virtual-network/729c6d5f-70c7-41b8-b4ad-a5e86f87bc9a 2024-09-17 09:25:43,690 - DEBUG - Requesting: http://10.0.0.47:8082/virtual-network/729c6d5f-70c7-41b8-b4ad-a5e86f87bc9a 2024-09-17 09:25:43,705 - DEBUG - Requesting: http://10.0.0.47:8082/routing-instance/67e06f28-6d97-4348-983d-ec1e8ecdbfa8 2024-09-17 09:25:43,715 - DEBUG - Requesting: http://10.0.0.47:8082/routing-instance/67e06f28-6d97-4348-983d-ec1e8ecdbfa8 2024-09-17 09:25:43,726 - DEBUG - Requesting: http://10.0.0.47:8082/route-target/188b4697-f308-421d-8834-5a32e0011ac2 2024-09-17 09:25:43,734 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-09-17 09:25:43,734 - DEBUG - Requesting: http://10.0.0.47:8082/virtual-network/729c6d5f-70c7-41b8-b4ad-a5e86f87bc9a 2024-09-17 09:25:43,748 - DEBUG - Requesting: http://10.0.0.47:8082/routing-instance/67e06f28-6d97-4348-983d-ec1e8ecdbfa8 2024-09-17 09:25:43,766 - INFO - Verified VN network id 8 for VN 729c6d5f-70c7-41b8-b4ad-a5e86f87bc9a 2024-09-17 09:25:43,766 - INFO - Verifications in API Server for VN ctest-vn-72819486 passed 2024-09-17 09:25:43,766 - DEBUG - Requesting: http://10.0.0.47:8082/virtual-network/729c6d5f-70c7-41b8-b4ad-a5e86f87bc9a 2024-09-17 09:25:43,783 - DEBUG - Requesting: http://10.0.0.47:8082/routing-instance/67e06f28-6d97-4348-983d-ec1e8ecdbfa8 2024-09-17 09:25:43,791 - DEBUG - Requesting: http://10.0.0.47:8082/routing-instance/67e06f28-6d97-4348-983d-ec1e8ecdbfa8 2024-09-17 09:25:43,799 - DEBUG - Requesting: http://10.0.0.47:8082/route-target/188b4697-f308-421d-8834-5a32e0011ac2 2024-09-17 09:25:43,813 - DEBUG - Control-node 10.0.0.47 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-20391349:ctest-vn-72819486', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-20391349', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8258596073372074424', 'uuid-lslong': '13019244515520134298'}, 'enable': 'true', 'created': '2024-09-17T09:25:41', 'last-modified': '2024-09-17T09:25:42', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.058197'} 2024-09-17 09:25:43,820 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-09-17 09:25:43,820 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-72819486 passed 2024-09-17 09:25:43,820 - DEBUG - ====Verifying policy data for ctest-vn-72819486 in API_Server ====== 2024-09-17 09:25:43,820 - DEBUG - Requesting: http://10.0.0.47:8082/domains 2024-09-17 09:25:43,826 - DEBUG - Requesting: http://10.0.0.47:8082/domain/62cc0c24-9329-4f1f-90f0-d5588f68311e 2024-09-17 09:25:43,837 - DEBUG - Requesting: http://10.0.0.47:8082/project/50a3558f-f3a0-4af4-bdaf-703e51186c36 2024-09-17 09:25:43,922 - DEBUG - Requesting: http://10.0.0.47:8082/virtual-network/729c6d5f-70c7-41b8-b4ad-a5e86f87bc9a 2024-09-17 09:25:43,937 - DEBUG - ==>Verifying data for policy with id: afddacc9-5913-4e68-b0d1-be82d8879b63, fqn: ['default-domain', 'ctest-TestBasicPolicy-20391349', 'ctest-policy-allow-all-32892247'] 2024-09-17 09:25:43,937 - INFO - VN ctest-vn-72819486 Policy verification: verify_vn_policy_in_api_server, status: True 2024-09-17 09:25:43,937 - DEBUG - Verifying the vn in opserver 2024-09-17 09:25:43,937 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-20391349:ctest-vn-72819486 virtual network link through opserver 10.0.0.47 2024-09-17 09:25:43,937 - DEBUG - Requesting: http://10.0.0.47:8081/analytics/uves/virtual-networks 2024-09-17 09:25:44,256 - DEBUG - Requesting: http://10.0.0.47:8081/analytics/uves/virtual-networks 2024-09-17 09:25:44,315 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-20391349:ctest-vn-72819486', 'href': 'http://10.0.0.47:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-20391349:ctest-vn-72819486?flat'} 2024-09-17 09:25:44,315 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-20391349:ctest-vn-72819486 is found in opserver 2024-09-17 09:25:44,326 - DEBUG - Do not have enough data to verify VN in agent 2024-09-17 09:25:44,331 - DEBUG - VRF ids for VN ctest-vn-72819486: {} 2024-09-17 09:25:44,331 - DEBUG - Requesting: http://10.0.0.47:8082/domains 2024-09-17 09:25:44,338 - DEBUG - Requesting: http://10.0.0.47:8082/domain/62cc0c24-9329-4f1f-90f0-d5588f68311e 2024-09-17 09:25:44,350 - DEBUG - Requesting: http://10.0.0.47:8082/project/50a3558f-f3a0-4af4-bdaf-703e51186c36 2024-09-17 09:25:44,432 - DEBUG - Requesting: http://10.0.0.47:8082/virtual-network/ef717723-9e01-4a2a-a694-f942ebaa50b9 2024-09-17 09:25:44,448 - DEBUG - Requesting: http://10.0.0.47:8082/virtual-network/ef717723-9e01-4a2a-a694-f942ebaa50b9 2024-09-17 09:25:44,464 - DEBUG - Requesting: http://10.0.0.47:8082/routing-instance/663c4476-4d4c-49be-aa50-091b974a57d0 2024-09-17 09:25:44,472 - DEBUG - Requesting: http://10.0.0.47:8082/routing-instance/663c4476-4d4c-49be-aa50-091b974a57d0 2024-09-17 09:25:44,480 - DEBUG - Requesting: http://10.0.0.47:8082/route-target/9bf97b08-acf8-492d-813d-9d6db22c2ab1 2024-09-17 09:25:44,488 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-09-17 09:25:44,488 - DEBUG - Requesting: http://10.0.0.47:8082/virtual-network/ef717723-9e01-4a2a-a694-f942ebaa50b9 2024-09-17 09:25:44,504 - DEBUG - Requesting: http://10.0.0.47:8082/routing-instance/663c4476-4d4c-49be-aa50-091b974a57d0 2024-09-17 09:25:44,523 - INFO - Verified VN network id 9 for VN ef717723-9e01-4a2a-a694-f942ebaa50b9 2024-09-17 09:25:44,523 - INFO - Verifications in API Server for VN ctest-vn-98313127 passed 2024-09-17 09:25:44,523 - DEBUG - Requesting: http://10.0.0.47:8082/virtual-network/ef717723-9e01-4a2a-a694-f942ebaa50b9 2024-09-17 09:25:44,536 - DEBUG - Requesting: http://10.0.0.47:8082/routing-instance/663c4476-4d4c-49be-aa50-091b974a57d0 2024-09-17 09:25:44,544 - DEBUG - Requesting: http://10.0.0.47:8082/routing-instance/663c4476-4d4c-49be-aa50-091b974a57d0 2024-09-17 09:25:44,553 - DEBUG - Requesting: http://10.0.0.47:8082/route-target/9bf97b08-acf8-492d-813d-9d6db22c2ab1 2024-09-17 09:25:44,567 - DEBUG - Control-node 10.0.0.47 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-20391349:ctest-vn-98313127', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-20391349', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17253702642291526186', 'uuid-lslong': '12003492972666179769'}, 'enable': 'true', 'created': '2024-09-17T09:25:42', 'last-modified': '2024-09-17T09:25:42', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.564122'} 2024-09-17 09:25:44,574 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-09-17 09:25:44,574 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-98313127 passed 2024-09-17 09:25:44,575 - DEBUG - ====Verifying policy data for ctest-vn-98313127 in API_Server ====== 2024-09-17 09:25:44,575 - DEBUG - Requesting: http://10.0.0.47:8082/domains 2024-09-17 09:25:44,580 - DEBUG - Requesting: http://10.0.0.47:8082/domain/62cc0c24-9329-4f1f-90f0-d5588f68311e 2024-09-17 09:25:44,596 - DEBUG - Requesting: http://10.0.0.47:8082/project/50a3558f-f3a0-4af4-bdaf-703e51186c36 2024-09-17 09:25:44,686 - DEBUG - Requesting: http://10.0.0.47:8082/virtual-network/ef717723-9e01-4a2a-a694-f942ebaa50b9 2024-09-17 09:25:44,700 - DEBUG - ==>Verifying data for policy with id: afddacc9-5913-4e68-b0d1-be82d8879b63, fqn: ['default-domain', 'ctest-TestBasicPolicy-20391349', 'ctest-policy-allow-all-32892247'] 2024-09-17 09:25:44,700 - INFO - VN ctest-vn-98313127 Policy verification: verify_vn_policy_in_api_server, status: True 2024-09-17 09:25:44,700 - DEBUG - Verifying the vn in opserver 2024-09-17 09:25:44,700 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-20391349:ctest-vn-98313127 virtual network link through opserver 10.0.0.47 2024-09-17 09:25:44,700 - DEBUG - Requesting: http://10.0.0.47:8081/analytics/uves/virtual-networks 2024-09-17 09:25:44,711 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-20391349:ctest-vn-98313127', 'href': 'http://10.0.0.47:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-20391349:ctest-vn-98313127?flat'} 2024-09-17 09:25:44,711 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-20391349:ctest-vn-98313127 is found in opserver 2024-09-17 09:25:44,722 - DEBUG - Do not have enough data to verify VN in agent 2024-09-17 09:25:44,727 - DEBUG - VRF ids for VN ctest-vn-98313127: {} 2024-09-17 09:25:44,784 - DEBUG - Services list from nova: [, , ] 2024-09-17 09:25:45,972 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1957-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1957-1) 2024-09-17 09:25:47,185 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1957-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1957-1) 2024-09-17 09:25:47,185 - INFO - Waiting for VM ctest-TestBasicPolicy-20391349-03111213 to be up.. 2024-09-17 09:25:47,271 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-09-17 09:25:52,355 - DEBUG - VM is in ACTIVE state now 2024-09-17 09:25:52,355 - INFO - VM name : ctest-TestBasicPolicy-20391349-03111213 2024-09-17 09:25:52,430 - DEBUG - VM ctest-TestBasicPolicy-20391349-03111213 ID is cd8a14fc-8de9-47b1-8ea9-ac900abc8d7e 2024-09-17 09:25:52,452 - DEBUG - VM ctest-TestBasicPolicy-20391349-03111213 launched on Node cn-jenkins-deploy-platform-ansible-os-1957-1 2024-09-17 09:25:52,540 - DEBUG - Requesting: http://10.0.0.47:8082/virtual-machine/cd8a14fc-8de9-47b1-8ea9-ac900abc8d7e 2024-09-17 09:25:52,550 - DEBUG - Requesting: http://10.0.0.47:8082/virtual-machine-interface/164af7e9-591b-4145-bd7a-b26d9e3fe2db 2024-09-17 09:25:55,814 - 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 1023ms') 2024-09-17 09:25:55,815 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-20391349-03111213 failed! 2024-09-17 09:25:55,875 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-20391349:ctest-vn-72819486 is 147.238.9.193 and allocation pool is NOT set 2024-09-17 09:25:57,938 - 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.10 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.434 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.434/1.764/3.095/1.330 ms') 2024-09-17 09:25:57,938 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-20391349-03111213 passed 2024-09-17 09:25:58,095 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-17 09:25:58,095 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-20391349-03111213, IP 147.238.9.195, Port 22 2024-09-17 09:25:58,251 - DEBUG - VM ctest-TestBasicPolicy-20391349-03111213 is ready for SSH connections 2024-09-17 09:25:58,251 - INFO - Waiting for VM ctest-TestBasicPolicy-20391349-80713666 to be up.. 2024-09-17 09:25:58,347 - DEBUG - VM is in ACTIVE state now 2024-09-17 09:25:58,347 - INFO - VM name : ctest-TestBasicPolicy-20391349-80713666 2024-09-17 09:25:58,426 - DEBUG - VM ctest-TestBasicPolicy-20391349-80713666 ID is 2c995031-8903-4773-b464-a9219aa6afc0 2024-09-17 09:25:58,426 - DEBUG - VM ctest-TestBasicPolicy-20391349-80713666 launched on Node cn-jenkins-deploy-platform-ansible-os-1957-1 2024-09-17 09:25:58,506 - DEBUG - Requesting: http://10.0.0.47:8082/virtual-machine/2c995031-8903-4773-b464-a9219aa6afc0 2024-09-17 09:25:58,517 - DEBUG - Requesting: http://10.0.0.47:8082/virtual-machine-interface/b9304b58-b517-499e-bedb-53435040f8ea 2024-09-17 09:25:59,772 - 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.56 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.720 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.720/2.139/3.558/1.419 ms') 2024-09-17 09:25:59,773 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-20391349-80713666 passed 2024-09-17 09:25:59,927 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-17 09:25:59,927 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-20391349-80713666, IP 67.162.61.195, Port 22 2024-09-17 09:26:00,082 - DEBUG - VM ctest-TestBasicPolicy-20391349-80713666 is ready for SSH connections 2024-09-17 09:26:00,082 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-17 09:26:00,083 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 67.162.61.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.47, gateway password: c0ntrail123 2024-09-17 09:26:00,083 - DEBUG - ping -s 56 -c 3 -W 1 67.162.61.195 2024-09-17 09:26:03,826 - DEBUG - PING 67.162.61.195 (67.162.61.195): 56 data bytes 64 bytes from 67.162.61.195: seq=0 ttl=63 time=3.162 ms 64 bytes from 67.162.61.195: seq=1 ttl=63 time=1.021 ms 64 bytes from 67.162.61.195: seq=2 ttl=63 time=1.230 ms --- 67.162.61.195 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.021/1.804/3.162 ms 2024-09-17 09:26:03,826 - INFO - Ping to IP 67.162.61.195 from VM ctest-TestBasicPolicy-20391349-03111213 passed 2024-09-17 09:26:04,015 - DEBUG - Policy Update Response {"network-policy": {"uuid": "afddacc9-5913-4e68-b0d1-be82d8879b63", "href": "http://10.0.0.47:8082/network-policy/afddacc9-5913-4e68-b0d1-be82d8879b63"}} 2024-09-17 09:26:04,015 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-17 09:26:04,015 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 67.162.61.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.47, gateway password: c0ntrail123 2024-09-17 09:26:04,015 - DEBUG - ping -s 56 -c 3 -W 1 67.162.61.195 2024-09-17 09:26:07,212 - DEBUG - PING 67.162.61.195 (67.162.61.195): 56 data bytes 64 bytes from 67.162.61.195: seq=0 ttl=63 time=1.352 ms --- 67.162.61.195 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.352/1.352/1.352 ms 2024-09-17 09:26:07,212 - WARNING - Ping to IP 67.162.61.195 from VM ctest-TestBasicPolicy-20391349-03111213 failed 2024-09-17 09:26:07,212 - INFO - Deleting VM ctest-TestBasicPolicy-20391349-80713666 2024-09-17 09:26:07,283 - INFO - Deleting VM ctest-TestBasicPolicy-20391349-03111213 2024-09-17 09:26:07,762 - INFO - Deleted policy ctest-policy-allow-all-32892247 2024-09-17 09:26:07,763 - INFO - Deleting VN ctest-vn-98313127 2024-09-17 09:26:07,803 - DEBUG - VN ef717723-9e01-4a2a-a694-f942ebaa50b9 still in use: Unable to complete operation on network ef717723-9e01-4a2a-a694-f942ebaa50b9. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-e2585c64-ae3d-411e-b6e5-9dc0496cc83e'] 2024-09-17 09:26:07,803 - WARNING - Deleting VN ctest-vn-98313127 failed..Will retry 2024-09-17 09:26:09,914 - DEBUG - Response for deleting network () 2024-09-17 09:26:09,914 - DEBUG - Requesting: http://10.0.0.47:8082/routing-instance/663c4476-4d4c-49be-aa50-091b974a57d0 2024-09-17 09:26:09,922 - DEBUG - Response Code: 404 2024-09-17 09:26:09,923 - DEBUG - Requesting: http://10.0.0.47:8082/domains 2024-09-17 09:26:09,928 - DEBUG - Requesting: http://10.0.0.47:8082/domain/62cc0c24-9329-4f1f-90f0-d5588f68311e 2024-09-17 09:26:09,987 - DEBUG - Requesting: http://10.0.0.47:8082/project/50a3558f-f3a0-4af4-bdaf-703e51186c36 2024-09-17 09:26:10,082 - INFO - Validated that VN ctest-vn-98313127 is not found in API Server 2024-09-17 09:26:10,096 - DEBUG - VN ctest-vn-98313127 is not present in Agent 10.0.0.47 2024-09-17 09:26:10,096 - INFO - Validated that VN ctest-vn-98313127 is not in any agent 2024-09-17 09:26:10,111 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-98313127 info 2024-09-17 09:26:10,111 - INFO - Deleting VN ctest-vn-72819486 2024-09-17 09:26:10,221 - DEBUG - Response for deleting network () 2024-09-17 09:26:10,221 - DEBUG - Requesting: http://10.0.0.47:8082/routing-instance/67e06f28-6d97-4348-983d-ec1e8ecdbfa8 2024-09-17 09:26:10,227 - DEBUG - Response Code: 404 2024-09-17 09:26:10,227 - DEBUG - Requesting: http://10.0.0.47:8082/domains 2024-09-17 09:26:10,234 - DEBUG - Requesting: http://10.0.0.47:8082/domain/62cc0c24-9329-4f1f-90f0-d5588f68311e 2024-09-17 09:26:10,290 - DEBUG - Requesting: http://10.0.0.47:8082/project/50a3558f-f3a0-4af4-bdaf-703e51186c36 2024-09-17 09:26:10,380 - INFO - Validated that VN ctest-vn-72819486 is not found in API Server 2024-09-17 09:26:10,393 - DEBUG - VN ctest-vn-72819486 is not present in Agent 10.0.0.47 2024-09-17 09:26:10,393 - INFO - Validated that VN ctest-vn-72819486 is not in any agent 2024-09-17 09:26:10,412 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-72819486 info 2024-09-17 09:26:10,664 - DEBUG - No XMPP flaps were noticed during the test
2024-09-17 09:26:10,664 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:30]
2024-09-17 09:26:10,665 - INFO - -------------------------------------------------------------------------------- 2024-09-17 09:26:11,364 - INFO - Deleted project: ctest-TestBasicPolicy-20391349, ID : 50a3558f-f3a0-4af4-bdaf-703e51186c36