2024-11-10 21:59:14,846 - INFO - Domain Default found not creating 2024-11-10 21:59:15,024 - INFO - Project ctest-TestBasicPolicy-88945236 not found, creating it 2024-11-10 21:59:15,500 - INFO - Created Project:ctest-TestBasicPolicy-88945236, ID : bd39cbbe-bf4b-46fc-9b96-6cc7a8dc9925 2024-11-10 21:59:17,014 - INFO - ================================================================================ 2024-11-10 21:59:17,014 - INFO - STARTING TEST : test_basic_policy_allow_deny 2024-11-10 21:59:17,014 - 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-11-10 21:59:17,268 - DEBUG - Nothing to compare xmpp stats {'10.0.0.47': {'10.20.0.5': '0'}} with 2024-11-10 21:59:17,268 - INFO - Initial checks done. Running the testcase now 2024-11-10 21:59:17,268 - INFO - 2024-11-10 21:59:17,844 - DEBUG - Response for create_network : {'network': {'id': 'afd1df42-b658-450a-8011-6c4cc9a21f34', 'name': 'ctest-vn-30009739', 'tenant_id': 'bd39cbbebf4b46fc9b966cc7a8dc9925', 'project_id': 'bd39cbbebf4b46fc9b966cc7a8dc9925', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-88945236', 'ctest-vn-30009739'], 'port_security_enabled': True, 'description': ''}} 2024-11-10 21:59:18,007 - DEBUG - Response for create_subnet : {'subnet': {'id': '276a4930-5e32-4648-8885-1a7a3189bcec', 'name': '', 'tenant_id': 'bd39cbbebf4b46fc9b966cc7a8dc9925', 'network_id': 'afd1df42-b658-450a-8011-6c4cc9a21f34', 'ip_version': 4, 'cidr': '45.231.188.128/26', 'allocation_pools': [{'start': '45.231.188.130', 'end': '45.231.188.190'}], 'gateway_ip': '45.231.188.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '45.231.188.130', 'tags': [], 'project_id': 'bd39cbbebf4b46fc9b966cc7a8dc9925'}} 2024-11-10 21:59:18,030 - INFO - Created VN ctest-vn-30009739 2024-11-10 21:59:18,086 - DEBUG - VN ctest-vn-30009739 UUID is afd1df42-b658-450a-8011-6c4cc9a21f34 2024-11-10 21:59:18,427 - DEBUG - Response for create_network : {'network': {'id': 'ff25c73f-38ab-4979-b1d5-ec4c2325de0b', 'name': 'ctest-vn-90870592', 'tenant_id': 'bd39cbbebf4b46fc9b966cc7a8dc9925', 'project_id': 'bd39cbbebf4b46fc9b966cc7a8dc9925', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-88945236', 'ctest-vn-90870592'], 'port_security_enabled': True, 'description': ''}} 2024-11-10 21:59:18,645 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd43feb25-7671-472a-a3a0-d63cfbfb9555', 'name': '', 'tenant_id': 'bd39cbbebf4b46fc9b966cc7a8dc9925', 'network_id': 'ff25c73f-38ab-4979-b1d5-ec4c2325de0b', 'ip_version': 4, 'cidr': '146.223.178.64/26', 'allocation_pools': [{'start': '146.223.178.66', 'end': '146.223.178.126'}], 'gateway_ip': '146.223.178.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '146.223.178.66', 'tags': [], 'project_id': 'bd39cbbebf4b46fc9b966cc7a8dc9925'}} 2024-11-10 21:59:18,669 - INFO - Created VN ctest-vn-90870592 2024-11-10 21:59:18,730 - DEBUG - VN ctest-vn-90870592 UUID is ff25c73f-38ab-4979-b1d5-ec4c2325de0b 2024-11-10 21:59:18,867 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-88945236:ctest-vn-30009739, 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-88945236:ctest-vn-90870592, 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-11-10 21:59:19,212 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'afd1df42-b658-450a-8011-6c4cc9a21f34', 'name': 'ctest-vn-30009739', 'tenant_id': 'bd39cbbebf4b46fc9b966cc7a8dc9925', 'project_id': 'bd39cbbebf4b46fc9b966cc7a8dc9925', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['276a4930-5e32-4648-8885-1a7a3189bcec'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-88945236', 'ctest-vn-30009739'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-88945236', 'ctest-policy-allow-all-25359501']], 'subnet_ipam': [{'subnet_cidr': '45.231.188.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-11-10 21:59:19,480 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ff25c73f-38ab-4979-b1d5-ec4c2325de0b', 'name': 'ctest-vn-90870592', 'tenant_id': 'bd39cbbebf4b46fc9b966cc7a8dc9925', 'project_id': 'bd39cbbebf4b46fc9b966cc7a8dc9925', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['d43feb25-7671-472a-a3a0-d63cfbfb9555'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-88945236', 'ctest-vn-90870592'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-88945236', 'ctest-policy-allow-all-25359501']], 'subnet_ipam': [{'subnet_cidr': '146.223.178.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-11-10 21:59:19,654 - DEBUG - Requesting: http://10.0.0.47:8082/domains 2024-11-10 21:59:19,949 - DEBUG - Requesting: http://10.0.0.47:8082/domains 2024-11-10 21:59:19,982 - DEBUG - Requesting: http://10.0.0.47:8082/domain/d5b58b9f-8aab-4002-9fb3-f77467580507 2024-11-10 21:59:19,997 - DEBUG - Requesting: http://10.0.0.47:8082/project/bd39cbbe-bf4b-46fc-9b96-6cc7a8dc9925 2024-11-10 21:59:20,079 - DEBUG - Requesting: http://10.0.0.47:8082/virtual-network/afd1df42-b658-450a-8011-6c4cc9a21f34 2024-11-10 21:59:20,095 - DEBUG - Requesting: http://10.0.0.47:8082/virtual-network/afd1df42-b658-450a-8011-6c4cc9a21f34 2024-11-10 21:59:20,110 - DEBUG - Requesting: http://10.0.0.47:8082/routing-instance/665950ec-5090-4e28-9dd7-e844d16142dc 2024-11-10 21:59:20,120 - DEBUG - Requesting: http://10.0.0.47:8082/routing-instance/665950ec-5090-4e28-9dd7-e844d16142dc 2024-11-10 21:59:20,129 - DEBUG - Requesting: http://10.0.0.47:8082/route-target/084250df-0d52-42f5-8198-f9427ac0a583 2024-11-10 21:59:20,144 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-11-10 21:59:20,144 - DEBUG - Requesting: http://10.0.0.47:8082/virtual-network/afd1df42-b658-450a-8011-6c4cc9a21f34 2024-11-10 21:59:20,165 - DEBUG - Requesting: http://10.0.0.47:8082/routing-instance/665950ec-5090-4e28-9dd7-e844d16142dc 2024-11-10 21:59:20,189 - INFO - Verified VN network id 8 for VN afd1df42-b658-450a-8011-6c4cc9a21f34 2024-11-10 21:59:20,189 - INFO - Verifications in API Server for VN ctest-vn-30009739 passed 2024-11-10 21:59:20,189 - DEBUG - Requesting: http://10.0.0.47:8082/virtual-network/afd1df42-b658-450a-8011-6c4cc9a21f34 2024-11-10 21:59:20,207 - DEBUG - Requesting: http://10.0.0.47:8082/routing-instance/665950ec-5090-4e28-9dd7-e844d16142dc 2024-11-10 21:59:20,217 - DEBUG - Requesting: http://10.0.0.47:8082/routing-instance/665950ec-5090-4e28-9dd7-e844d16142dc 2024-11-10 21:59:20,226 - DEBUG - Requesting: http://10.0.0.47:8082/route-target/084250df-0d52-42f5-8198-f9427ac0a583 2024-11-10 21:59:20,243 - DEBUG - Control-node 10.0.0.47 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-88945236:ctest-vn-30009739', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-88945236', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12669152704389989642', 'uuid-lslong': '9228276188515016500'}, 'enable': 'true', 'created': '2024-11-10T21:59:17', 'last-modified': '2024-11-10T21:59:19', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.065813'} 2024-11-10 21:59:20,251 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-11-10 21:59:20,252 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-30009739 passed 2024-11-10 21:59:20,252 - DEBUG - ====Verifying policy data for ctest-vn-30009739 in API_Server ====== 2024-11-10 21:59:20,252 - DEBUG - Requesting: http://10.0.0.47:8082/domains 2024-11-10 21:59:20,260 - DEBUG - Requesting: http://10.0.0.47:8082/domain/d5b58b9f-8aab-4002-9fb3-f77467580507 2024-11-10 21:59:20,277 - DEBUG - Requesting: http://10.0.0.47:8082/project/bd39cbbe-bf4b-46fc-9b96-6cc7a8dc9925 2024-11-10 21:59:20,366 - DEBUG - Requesting: http://10.0.0.47:8082/virtual-network/afd1df42-b658-450a-8011-6c4cc9a21f34 2024-11-10 21:59:20,387 - DEBUG - ==>Verifying data for policy with id: 4a342adb-525d-46d7-8281-ec7ddd530b3c, fqn: ['default-domain', 'ctest-TestBasicPolicy-88945236', 'ctest-policy-allow-all-25359501'] 2024-11-10 21:59:20,387 - INFO - VN ctest-vn-30009739 Policy verification: verify_vn_policy_in_api_server, status: True 2024-11-10 21:59:20,388 - DEBUG - Verifying the vn in opserver 2024-11-10 21:59:20,388 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-88945236:ctest-vn-30009739 virtual network link through opserver 10.0.0.47 2024-11-10 21:59:20,388 - DEBUG - Requesting: http://10.0.0.47:8081/analytics/uves/virtual-networks 2024-11-10 21:59:20,686 - DEBUG - Requesting: http://10.0.0.47:8081/analytics/uves/virtual-networks 2024-11-10 21:59:20,760 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-88945236:ctest-vn-30009739', 'href': 'http://10.0.0.47:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-88945236:ctest-vn-30009739?flat'} 2024-11-10 21:59:20,760 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-88945236:ctest-vn-30009739 is found in opserver 2024-11-10 21:59:20,772 - DEBUG - Do not have enough data to verify VN in agent 2024-11-10 21:59:20,778 - DEBUG - VRF ids for VN ctest-vn-30009739: {} 2024-11-10 21:59:20,778 - DEBUG - Requesting: http://10.0.0.47:8082/domains 2024-11-10 21:59:20,787 - DEBUG - Requesting: http://10.0.0.47:8082/domain/d5b58b9f-8aab-4002-9fb3-f77467580507 2024-11-10 21:59:20,801 - DEBUG - Requesting: http://10.0.0.47:8082/project/bd39cbbe-bf4b-46fc-9b96-6cc7a8dc9925 2024-11-10 21:59:20,883 - DEBUG - Requesting: http://10.0.0.47:8082/virtual-network/ff25c73f-38ab-4979-b1d5-ec4c2325de0b 2024-11-10 21:59:20,900 - DEBUG - Requesting: http://10.0.0.47:8082/virtual-network/ff25c73f-38ab-4979-b1d5-ec4c2325de0b 2024-11-10 21:59:20,915 - DEBUG - Requesting: http://10.0.0.47:8082/routing-instance/b050db75-f443-4ba3-9ac8-fb573912fadf 2024-11-10 21:59:20,925 - DEBUG - Requesting: http://10.0.0.47:8082/routing-instance/b050db75-f443-4ba3-9ac8-fb573912fadf 2024-11-10 21:59:20,934 - DEBUG - Requesting: http://10.0.0.47:8082/route-target/cb1f8be6-c42f-49d2-8e3d-43c15761d849 2024-11-10 21:59:20,942 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-11-10 21:59:20,943 - DEBUG - Requesting: http://10.0.0.47:8082/virtual-network/ff25c73f-38ab-4979-b1d5-ec4c2325de0b 2024-11-10 21:59:20,958 - DEBUG - Requesting: http://10.0.0.47:8082/routing-instance/b050db75-f443-4ba3-9ac8-fb573912fadf 2024-11-10 21:59:20,982 - INFO - Verified VN network id 9 for VN ff25c73f-38ab-4979-b1d5-ec4c2325de0b 2024-11-10 21:59:20,982 - INFO - Verifications in API Server for VN ctest-vn-90870592 passed 2024-11-10 21:59:20,982 - DEBUG - Requesting: http://10.0.0.47:8082/virtual-network/ff25c73f-38ab-4979-b1d5-ec4c2325de0b 2024-11-10 21:59:20,998 - DEBUG - Requesting: http://10.0.0.47:8082/routing-instance/b050db75-f443-4ba3-9ac8-fb573912fadf 2024-11-10 21:59:21,009 - DEBUG - Requesting: http://10.0.0.47:8082/routing-instance/b050db75-f443-4ba3-9ac8-fb573912fadf 2024-11-10 21:59:21,018 - DEBUG - Requesting: http://10.0.0.47:8082/route-target/cb1f8be6-c42f-49d2-8e3d-43c15761d849 2024-11-10 21:59:21,033 - DEBUG - Control-node 10.0.0.47 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-88945236:ctest-vn-90870592', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-88945236', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '18385320128157534585', 'uuid-lslong': '12814408126503968267'}, 'enable': 'true', 'created': '2024-11-10T21:59:18', 'last-modified': '2024-11-10T21:59:19', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.583867'} 2024-11-10 21:59:21,040 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-11-10 21:59:21,040 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-90870592 passed 2024-11-10 21:59:21,040 - DEBUG - ====Verifying policy data for ctest-vn-90870592 in API_Server ====== 2024-11-10 21:59:21,040 - DEBUG - Requesting: http://10.0.0.47:8082/domains 2024-11-10 21:59:21,051 - DEBUG - Requesting: http://10.0.0.47:8082/domain/d5b58b9f-8aab-4002-9fb3-f77467580507 2024-11-10 21:59:21,066 - DEBUG - Requesting: http://10.0.0.47:8082/project/bd39cbbe-bf4b-46fc-9b96-6cc7a8dc9925 2024-11-10 21:59:21,151 - DEBUG - Requesting: http://10.0.0.47:8082/virtual-network/ff25c73f-38ab-4979-b1d5-ec4c2325de0b 2024-11-10 21:59:21,167 - DEBUG - ==>Verifying data for policy with id: 4a342adb-525d-46d7-8281-ec7ddd530b3c, fqn: ['default-domain', 'ctest-TestBasicPolicy-88945236', 'ctest-policy-allow-all-25359501'] 2024-11-10 21:59:21,167 - INFO - VN ctest-vn-90870592 Policy verification: verify_vn_policy_in_api_server, status: True 2024-11-10 21:59:21,167 - DEBUG - Verifying the vn in opserver 2024-11-10 21:59:21,167 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-88945236:ctest-vn-90870592 virtual network link through opserver 10.0.0.47 2024-11-10 21:59:21,167 - DEBUG - Requesting: http://10.0.0.47:8081/analytics/uves/virtual-networks 2024-11-10 21:59:21,180 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-88945236:ctest-vn-90870592', 'href': 'http://10.0.0.47:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-88945236:ctest-vn-90870592?flat'} 2024-11-10 21:59:21,180 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-88945236:ctest-vn-90870592 is found in opserver 2024-11-10 21:59:21,192 - DEBUG - Do not have enough data to verify VN in agent 2024-11-10 21:59:21,198 - DEBUG - VRF ids for VN ctest-vn-90870592: {} 2024-11-10 21:59:21,260 - DEBUG - Services list from nova: [, , ] 2024-11-10 21:59:22,312 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2266-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2266-1) 2024-11-10 21:59:23,621 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2266-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2266-1) 2024-11-10 21:59:23,621 - INFO - Waiting for VM ctest-TestBasicPolicy-88945236-00178543 to be up.. 2024-11-10 21:59:23,711 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-11-10 21:59:28,795 - DEBUG - VM is in ACTIVE state now 2024-11-10 21:59:28,795 - INFO - VM name : ctest-TestBasicPolicy-88945236-00178543 2024-11-10 21:59:28,879 - DEBUG - VM ctest-TestBasicPolicy-88945236-00178543 ID is 0a9cda06-b7ba-4927-b9d4-b34ac2a83e83 2024-11-10 21:59:28,898 - DEBUG - VM ctest-TestBasicPolicy-88945236-00178543 launched on Node cn-jenkins-deploy-platform-ansible-os-2266-1 2024-11-10 21:59:28,986 - DEBUG - Requesting: http://10.0.0.47:8082/virtual-machine/0a9cda06-b7ba-4927-b9d4-b34ac2a83e83 2024-11-10 21:59:28,998 - DEBUG - Requesting: http://10.0.0.47:8082/virtual-machine-interface/746b77b0-b729-4d8c-b17a-60f437692e72 2024-11-10 21:59:32,289 - 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 1031ms') 2024-11-10 21:59:32,290 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-88945236-00178543 failed! 2024-11-10 21:59:32,350 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-88945236:ctest-vn-30009739 is 45.231.188.129 and allocation pool is NOT set 2024-11-10 21:59:34,409 - 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.81 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=2.09 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 = 2.092/2.950/3.809/0.858 ms') 2024-11-10 21:59:34,410 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-88945236-00178543 passed 2024-11-10 21:59:34,566 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-10 21:59:34,567 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-88945236-00178543, IP 45.231.188.131, Port 22 2024-11-10 21:59:34,722 - DEBUG - VM ctest-TestBasicPolicy-88945236-00178543 is ready for SSH connections 2024-11-10 21:59:34,722 - INFO - Waiting for VM ctest-TestBasicPolicy-88945236-46538345 to be up.. 2024-11-10 21:59:34,818 - DEBUG - VM is in ACTIVE state now 2024-11-10 21:59:34,818 - INFO - VM name : ctest-TestBasicPolicy-88945236-46538345 2024-11-10 21:59:34,896 - DEBUG - VM ctest-TestBasicPolicy-88945236-46538345 ID is 129e702a-eb17-40b8-9aa3-92226de99d41 2024-11-10 21:59:34,896 - DEBUG - VM ctest-TestBasicPolicy-88945236-46538345 launched on Node cn-jenkins-deploy-platform-ansible-os-2266-1 2024-11-10 21:59:34,978 - DEBUG - Requesting: http://10.0.0.47:8082/virtual-machine/129e702a-eb17-40b8-9aa3-92226de99d41 2024-11-10 21:59:34,988 - DEBUG - Requesting: http://10.0.0.47:8082/virtual-machine-interface/035c630f-1ef0-41d3-b2b3-cc47f82974a6 2024-11-10 21:59:36,242 - 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.12 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.405 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.405/1.761/3.117/1.356 ms') 2024-11-10 21:59:36,242 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-88945236-46538345 passed 2024-11-10 21:59:36,394 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-10 21:59:36,394 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-88945236-46538345, IP 146.223.178.67, Port 22 2024-11-10 21:59:36,550 - DEBUG - VM ctest-TestBasicPolicy-88945236-46538345 is ready for SSH connections 2024-11-10 21:59:36,550 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-10 21:59:36,550 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 146.223.178.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.47, gateway password: c0ntrail123 2024-11-10 21:59:36,550 - DEBUG - ping -s 56 -c 3 -W 1 146.223.178.67 2024-11-10 21:59:40,253 - DEBUG - PING 146.223.178.67 (146.223.178.67): 56 data bytes 64 bytes from 146.223.178.67: seq=0 ttl=63 time=3.556 ms 64 bytes from 146.223.178.67: seq=1 ttl=63 time=0.782 ms 64 bytes from 146.223.178.67: seq=2 ttl=63 time=0.855 ms --- 146.223.178.67 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.782/1.731/3.556 ms 2024-11-10 21:59:40,253 - INFO - Ping to IP 146.223.178.67 from VM ctest-TestBasicPolicy-88945236-00178543 passed 2024-11-10 21:59:40,446 - DEBUG - Policy Update Response {"network-policy": {"uuid": "4a342adb-525d-46d7-8281-ec7ddd530b3c", "href": "http://10.0.0.47:8082/network-policy/4a342adb-525d-46d7-8281-ec7ddd530b3c"}} 2024-11-10 21:59:40,446 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-10 21:59:40,446 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 146.223.178.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.47, gateway password: c0ntrail123 2024-11-10 21:59:40,447 - DEBUG - ping -s 56 -c 3 -W 1 146.223.178.67 2024-11-10 21:59:43,666 - DEBUG - PING 146.223.178.67 (146.223.178.67): 56 data bytes 64 bytes from 146.223.178.67: seq=0 ttl=63 time=1.424 ms --- 146.223.178.67 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.424/1.424/1.424 ms 2024-11-10 21:59:43,666 - WARNING - Ping to IP 146.223.178.67 from VM ctest-TestBasicPolicy-88945236-00178543 failed 2024-11-10 21:59:43,667 - INFO - Deleting VM ctest-TestBasicPolicy-88945236-46538345 2024-11-10 21:59:43,736 - INFO - Deleting VM ctest-TestBasicPolicy-88945236-00178543 2024-11-10 21:59:44,173 - INFO - Deleted policy ctest-policy-allow-all-25359501 2024-11-10 21:59:44,173 - INFO - Deleting VN ctest-vn-90870592 2024-11-10 21:59:44,215 - DEBUG - VN ff25c73f-38ab-4979-b1d5-ec4c2325de0b still in use: Unable to complete operation on network ff25c73f-38ab-4979-b1d5-ec4c2325de0b. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-c8651bf9-a2a4-49c2-b155-a48f346d4508'] 2024-11-10 21:59:44,215 - WARNING - Deleting VN ctest-vn-90870592 failed..Will retry 2024-11-10 21:59:46,323 - DEBUG - Response for deleting network () 2024-11-10 21:59:46,323 - DEBUG - Requesting: http://10.0.0.47:8082/routing-instance/b050db75-f443-4ba3-9ac8-fb573912fadf 2024-11-10 21:59:46,331 - DEBUG - Response Code: 404 2024-11-10 21:59:46,331 - DEBUG - Requesting: http://10.0.0.47:8082/domains 2024-11-10 21:59:46,337 - DEBUG - Requesting: http://10.0.0.47:8082/domain/d5b58b9f-8aab-4002-9fb3-f77467580507 2024-11-10 21:59:46,393 - DEBUG - Requesting: http://10.0.0.47:8082/project/bd39cbbe-bf4b-46fc-9b96-6cc7a8dc9925 2024-11-10 21:59:46,476 - INFO - Validated that VN ctest-vn-90870592 is not found in API Server 2024-11-10 21:59:46,488 - DEBUG - VN ctest-vn-90870592 is not present in Agent 10.0.0.47 2024-11-10 21:59:46,488 - INFO - Validated that VN ctest-vn-90870592 is not in any agent 2024-11-10 21:59:46,503 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-90870592 info 2024-11-10 21:59:46,503 - INFO - Deleting VN ctest-vn-30009739 2024-11-10 21:59:46,611 - DEBUG - Response for deleting network () 2024-11-10 21:59:46,611 - DEBUG - Requesting: http://10.0.0.47:8082/routing-instance/665950ec-5090-4e28-9dd7-e844d16142dc 2024-11-10 21:59:46,617 - DEBUG - Response Code: 404 2024-11-10 21:59:46,617 - DEBUG - Requesting: http://10.0.0.47:8082/domains 2024-11-10 21:59:46,623 - DEBUG - Requesting: http://10.0.0.47:8082/domain/d5b58b9f-8aab-4002-9fb3-f77467580507 2024-11-10 21:59:46,681 - DEBUG - Requesting: http://10.0.0.47:8082/project/bd39cbbe-bf4b-46fc-9b96-6cc7a8dc9925 2024-11-10 21:59:46,760 - INFO - Validated that VN ctest-vn-30009739 is not found in API Server 2024-11-10 21:59:46,772 - DEBUG - VN ctest-vn-30009739 is not present in Agent 10.0.0.47 2024-11-10 21:59:46,772 - INFO - Validated that VN ctest-vn-30009739 is not in any agent 2024-11-10 21:59:46,792 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-30009739 info 2024-11-10 21:59:47,048 - DEBUG - No XMPP flaps were noticed during the test
2024-11-10 21:59:47,048 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:30]
2024-11-10 21:59:47,048 - INFO - -------------------------------------------------------------------------------- 2024-11-10 21:59:47,795 - INFO - Deleted project: ctest-TestBasicPolicy-88945236, ID : bd39cbbe-bf4b-46fc-9b96-6cc7a8dc9925