2024-09-03 14:45:47,486 - INFO - Domain Default found not creating 2024-09-03 14:45:47,660 - INFO - Project ctest-TestBasicPolicy-11374359 not found, creating it 2024-09-03 14:45:48,201 - INFO - Created Project:ctest-TestBasicPolicy-11374359, ID : acda3be0-043f-49e9-8624-f86b5165ce36 2024-09-03 14:45:49,829 - INFO - ================================================================================ 2024-09-03 14:45:49,829 - INFO - STARTING TEST : test_basic_policy_allow_deny 2024-09-03 14:45:49,829 - 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-03 14:45:50,085 - DEBUG - Nothing to compare xmpp stats {'10.0.0.42': {'10.20.0.10': '0'}} with 2024-09-03 14:45:50,085 - INFO - Initial checks done. Running the testcase now 2024-09-03 14:45:50,085 - INFO - 2024-09-03 14:45:50,728 - DEBUG - Response for create_network : {'network': {'id': 'f14fc459-2b83-4f00-83d4-0f5a15254273', 'name': 'ctest-vn-79001978', 'tenant_id': 'acda3be0043f49e98624f86b5165ce36', 'project_id': 'acda3be0043f49e98624f86b5165ce36', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-11374359', 'ctest-vn-79001978'], 'port_security_enabled': True, 'description': ''}} 2024-09-03 14:45:50,960 - DEBUG - Response for create_subnet : {'subnet': {'id': 'bd71f608-9ef7-4521-88c1-4e76427df2f8', 'name': '', 'tenant_id': 'acda3be0043f49e98624f86b5165ce36', 'network_id': 'f14fc459-2b83-4f00-83d4-0f5a15254273', 'ip_version': 4, 'cidr': '24.83.96.0/26', 'allocation_pools': [{'start': '24.83.96.2', 'end': '24.83.96.62'}], 'gateway_ip': '24.83.96.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '24.83.96.2', 'tags': [], 'project_id': 'acda3be0043f49e98624f86b5165ce36'}} 2024-09-03 14:45:50,982 - INFO - Created VN ctest-vn-79001978 2024-09-03 14:45:51,035 - DEBUG - VN ctest-vn-79001978 UUID is f14fc459-2b83-4f00-83d4-0f5a15254273 2024-09-03 14:45:51,419 - DEBUG - Response for create_network : {'network': {'id': '2dcc82a7-232a-4f93-a2d1-eb157b85b0b4', 'name': 'ctest-vn-53466959', 'tenant_id': 'acda3be0043f49e98624f86b5165ce36', 'project_id': 'acda3be0043f49e98624f86b5165ce36', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-11374359', 'ctest-vn-53466959'], 'port_security_enabled': True, 'description': ''}} 2024-09-03 14:45:51,643 - DEBUG - Response for create_subnet : {'subnet': {'id': '84106e44-7fe0-4b17-aa59-b38901cc3c2e', 'name': '', 'tenant_id': 'acda3be0043f49e98624f86b5165ce36', 'network_id': '2dcc82a7-232a-4f93-a2d1-eb157b85b0b4', 'ip_version': 4, 'cidr': '58.13.137.0/26', 'allocation_pools': [{'start': '58.13.137.2', 'end': '58.13.137.62'}], 'gateway_ip': '58.13.137.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '58.13.137.2', 'tags': [], 'project_id': 'acda3be0043f49e98624f86b5165ce36'}} 2024-09-03 14:45:51,662 - INFO - Created VN ctest-vn-53466959 2024-09-03 14:45:51,715 - DEBUG - VN ctest-vn-53466959 UUID is 2dcc82a7-232a-4f93-a2d1-eb157b85b0b4 2024-09-03 14:45:51,850 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-11374359:ctest-vn-79001978, 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-11374359:ctest-vn-53466959, 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-03 14:45:52,185 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f14fc459-2b83-4f00-83d4-0f5a15254273', 'name': 'ctest-vn-79001978', 'tenant_id': 'acda3be0043f49e98624f86b5165ce36', 'project_id': 'acda3be0043f49e98624f86b5165ce36', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['bd71f608-9ef7-4521-88c1-4e76427df2f8'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-11374359', 'ctest-vn-79001978'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-11374359', 'ctest-policy-allow-all-30193933']], 'subnet_ipam': [{'subnet_cidr': '24.83.96.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-09-03 14:45:52,496 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '2dcc82a7-232a-4f93-a2d1-eb157b85b0b4', 'name': 'ctest-vn-53466959', 'tenant_id': 'acda3be0043f49e98624f86b5165ce36', 'project_id': 'acda3be0043f49e98624f86b5165ce36', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['84106e44-7fe0-4b17-aa59-b38901cc3c2e'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-11374359', 'ctest-vn-53466959'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-11374359', 'ctest-policy-allow-all-30193933']], 'subnet_ipam': [{'subnet_cidr': '58.13.137.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-09-03 14:45:52,651 - DEBUG - Requesting: http://10.0.0.42:8082/domains 2024-09-03 14:45:52,954 - DEBUG - Requesting: http://10.0.0.42:8082/domains 2024-09-03 14:45:52,987 - DEBUG - Requesting: http://10.0.0.42:8082/domain/706f5b70-19a5-4133-9b0e-cf0490ea05b5 2024-09-03 14:45:53,002 - DEBUG - Requesting: http://10.0.0.42:8082/project/acda3be0-043f-49e9-8624-f86b5165ce36 2024-09-03 14:45:53,086 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/f14fc459-2b83-4f00-83d4-0f5a15254273 2024-09-03 14:45:53,098 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/f14fc459-2b83-4f00-83d4-0f5a15254273 2024-09-03 14:45:53,107 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/de3c8e37-b3bf-46e7-a116-1967748be5b2 2024-09-03 14:45:53,113 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/de3c8e37-b3bf-46e7-a116-1967748be5b2 2024-09-03 14:45:53,121 - DEBUG - Requesting: http://10.0.0.42:8082/route-target/4a6e6f4c-bc38-4a96-bc79-464d26f827bf 2024-09-03 14:45:53,129 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-09-03 14:45:53,129 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/f14fc459-2b83-4f00-83d4-0f5a15254273 2024-09-03 14:45:53,144 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/de3c8e37-b3bf-46e7-a116-1967748be5b2 2024-09-03 14:45:53,168 - INFO - Verified VN network id 8 for VN f14fc459-2b83-4f00-83d4-0f5a15254273 2024-09-03 14:45:53,168 - INFO - Verifications in API Server for VN ctest-vn-79001978 passed 2024-09-03 14:45:53,169 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/f14fc459-2b83-4f00-83d4-0f5a15254273 2024-09-03 14:45:53,178 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/de3c8e37-b3bf-46e7-a116-1967748be5b2 2024-09-03 14:45:53,193 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/de3c8e37-b3bf-46e7-a116-1967748be5b2 2024-09-03 14:45:53,200 - DEBUG - Requesting: http://10.0.0.42:8082/route-target/4a6e6f4c-bc38-4a96-bc79-464d26f827bf 2024-09-03 14:45:53,211 - DEBUG - Control-node 10.0.0.42 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-11374359:ctest-vn-79001978', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-11374359', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17388332573561933568', 'uuid-lslong': '9499234393607455347'}, 'enable': 'true', 'created': '2024-09-03T14:45:50', 'last-modified': '2024-09-03T14:45:52', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.050962'} 2024-09-03 14:45:53,217 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-09-03 14:45:53,217 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-79001978 passed 2024-09-03 14:45:53,218 - DEBUG - ====Verifying policy data for ctest-vn-79001978 in API_Server ====== 2024-09-03 14:45:53,218 - DEBUG - Requesting: http://10.0.0.42:8082/domains 2024-09-03 14:45:53,223 - DEBUG - Requesting: http://10.0.0.42:8082/domain/706f5b70-19a5-4133-9b0e-cf0490ea05b5 2024-09-03 14:45:53,235 - DEBUG - Requesting: http://10.0.0.42:8082/project/acda3be0-043f-49e9-8624-f86b5165ce36 2024-09-03 14:45:53,302 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/f14fc459-2b83-4f00-83d4-0f5a15254273 2024-09-03 14:45:53,310 - DEBUG - ==>Verifying data for policy with id: 1f3e7fac-61c7-4870-9a7e-775e767046bb, fqn: ['default-domain', 'ctest-TestBasicPolicy-11374359', 'ctest-policy-allow-all-30193933'] 2024-09-03 14:45:53,310 - INFO - VN ctest-vn-79001978 Policy verification: verify_vn_policy_in_api_server, status: True 2024-09-03 14:45:53,311 - DEBUG - Verifying the vn in opserver 2024-09-03 14:45:53,311 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-11374359:ctest-vn-79001978 virtual network link through opserver 10.0.0.42 2024-09-03 14:45:53,311 - DEBUG - Requesting: http://10.0.0.42:8081/analytics/uves/virtual-networks 2024-09-03 14:45:53,605 - DEBUG - Requesting: http://10.0.0.42:8081/analytics/uves/virtual-networks 2024-09-03 14:45:53,673 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-11374359:ctest-vn-79001978', 'href': 'http://10.0.0.42:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-11374359:ctest-vn-79001978?flat'} 2024-09-03 14:45:53,673 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-11374359:ctest-vn-79001978 is found in opserver 2024-09-03 14:45:53,685 - DEBUG - Do not have enough data to verify VN in agent 2024-09-03 14:45:53,690 - DEBUG - VRF ids for VN ctest-vn-79001978: {} 2024-09-03 14:45:53,691 - DEBUG - Requesting: http://10.0.0.42:8082/domains 2024-09-03 14:45:53,696 - DEBUG - Requesting: http://10.0.0.42:8082/domain/706f5b70-19a5-4133-9b0e-cf0490ea05b5 2024-09-03 14:45:53,707 - DEBUG - Requesting: http://10.0.0.42:8082/project/acda3be0-043f-49e9-8624-f86b5165ce36 2024-09-03 14:45:53,774 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/2dcc82a7-232a-4f93-a2d1-eb157b85b0b4 2024-09-03 14:45:53,785 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/2dcc82a7-232a-4f93-a2d1-eb157b85b0b4 2024-09-03 14:45:53,792 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/d817332e-bc57-46ff-a260-403ad7a5286f 2024-09-03 14:45:53,799 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/d817332e-bc57-46ff-a260-403ad7a5286f 2024-09-03 14:45:53,805 - DEBUG - Requesting: http://10.0.0.42:8082/route-target/73229f31-2338-43fb-ab4d-6bc098c80997 2024-09-03 14:45:53,810 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-09-03 14:45:53,811 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/2dcc82a7-232a-4f93-a2d1-eb157b85b0b4 2024-09-03 14:45:53,817 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/d817332e-bc57-46ff-a260-403ad7a5286f 2024-09-03 14:45:53,828 - INFO - Verified VN network id 9 for VN 2dcc82a7-232a-4f93-a2d1-eb157b85b0b4 2024-09-03 14:45:53,828 - INFO - Verifications in API Server for VN ctest-vn-53466959 passed 2024-09-03 14:45:53,828 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/2dcc82a7-232a-4f93-a2d1-eb157b85b0b4 2024-09-03 14:45:53,835 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/d817332e-bc57-46ff-a260-403ad7a5286f 2024-09-03 14:45:53,842 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/d817332e-bc57-46ff-a260-403ad7a5286f 2024-09-03 14:45:53,849 - DEBUG - Requesting: http://10.0.0.42:8082/route-target/73229f31-2338-43fb-ab4d-6bc098c80997 2024-09-03 14:45:53,862 - DEBUG - Control-node 10.0.0.42 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-11374359:ctest-vn-53466959', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-11374359', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3300156281316855699', 'uuid-lslong': '11732416981776052404'}, 'enable': 'true', 'created': '2024-09-03T14:45:51', 'last-modified': '2024-09-03T14:45:52', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.441458'} 2024-09-03 14:45:53,869 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-09-03 14:45:53,869 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-53466959 passed 2024-09-03 14:45:53,869 - DEBUG - ====Verifying policy data for ctest-vn-53466959 in API_Server ====== 2024-09-03 14:45:53,869 - DEBUG - Requesting: http://10.0.0.42:8082/domains 2024-09-03 14:45:53,875 - DEBUG - Requesting: http://10.0.0.42:8082/domain/706f5b70-19a5-4133-9b0e-cf0490ea05b5 2024-09-03 14:45:53,887 - DEBUG - Requesting: http://10.0.0.42:8082/project/acda3be0-043f-49e9-8624-f86b5165ce36 2024-09-03 14:45:53,970 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/2dcc82a7-232a-4f93-a2d1-eb157b85b0b4 2024-09-03 14:45:53,983 - DEBUG - ==>Verifying data for policy with id: 1f3e7fac-61c7-4870-9a7e-775e767046bb, fqn: ['default-domain', 'ctest-TestBasicPolicy-11374359', 'ctest-policy-allow-all-30193933'] 2024-09-03 14:45:53,983 - INFO - VN ctest-vn-53466959 Policy verification: verify_vn_policy_in_api_server, status: True 2024-09-03 14:45:53,983 - DEBUG - Verifying the vn in opserver 2024-09-03 14:45:53,983 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-11374359:ctest-vn-53466959 virtual network link through opserver 10.0.0.42 2024-09-03 14:45:53,983 - DEBUG - Requesting: http://10.0.0.42:8081/analytics/uves/virtual-networks 2024-09-03 14:45:53,995 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-11374359:ctest-vn-53466959', 'href': 'http://10.0.0.42:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-11374359:ctest-vn-53466959?flat'} 2024-09-03 14:45:53,995 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-11374359:ctest-vn-53466959 is found in opserver 2024-09-03 14:45:54,006 - DEBUG - Do not have enough data to verify VN in agent 2024-09-03 14:45:54,010 - DEBUG - VRF ids for VN ctest-vn-53466959: {} 2024-09-03 14:45:54,071 - DEBUG - Services list from nova: [, , ] 2024-09-03 14:45:55,163 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1836-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1836-1) 2024-09-03 14:45:56,499 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1836-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1836-1) 2024-09-03 14:45:56,500 - INFO - Waiting for VM ctest-TestBasicPolicy-11374359-13979367 to be up.. 2024-09-03 14:45:56,618 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-09-03 14:46:01,704 - DEBUG - VM is in ACTIVE state now 2024-09-03 14:46:01,704 - INFO - VM name : ctest-TestBasicPolicy-11374359-13979367 2024-09-03 14:46:01,791 - DEBUG - VM ctest-TestBasicPolicy-11374359-13979367 ID is e8c497ae-3c08-489e-b4f5-07764cbee0dc 2024-09-03 14:46:01,812 - DEBUG - VM ctest-TestBasicPolicy-11374359-13979367 launched on Node cn-jenkins-deploy-platform-ansible-os-1836-1 2024-09-03 14:46:01,908 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-machine/e8c497ae-3c08-489e-b4f5-07764cbee0dc 2024-09-03 14:46:01,917 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-machine-interface/ec4902c6-b49c-46ef-a4c1-8137efa71b18 2024-09-03 14:46:05,181 - 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 1027ms') 2024-09-03 14:46:05,181 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-11374359-13979367 failed! 2024-09-03 14:46:05,235 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-11374359:ctest-vn-79001978 is 24.83.96.1 and allocation pool is NOT set 2024-09-03 14:46:07,306 - 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=14.2 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=6.22 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 = 6.223/10.226/14.230/4.003 ms') 2024-09-03 14:46:07,306 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-11374359-13979367 passed 2024-09-03 14:46:07,527 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-03 14:46:07,527 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-11374359-13979367, IP 24.83.96.3, Port 22 2024-09-03 14:46:07,724 - DEBUG - VM ctest-TestBasicPolicy-11374359-13979367 is ready for SSH connections 2024-09-03 14:46:07,724 - INFO - Waiting for VM ctest-TestBasicPolicy-11374359-04540665 to be up.. 2024-09-03 14:46:07,810 - DEBUG - VM is in ACTIVE state now 2024-09-03 14:46:07,810 - INFO - VM name : ctest-TestBasicPolicy-11374359-04540665 2024-09-03 14:46:07,907 - DEBUG - VM ctest-TestBasicPolicy-11374359-04540665 ID is 856b5751-a6ab-47ac-968d-38223aeb6aa5 2024-09-03 14:46:07,907 - DEBUG - VM ctest-TestBasicPolicy-11374359-04540665 launched on Node cn-jenkins-deploy-platform-ansible-os-1836-1 2024-09-03 14:46:07,992 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-machine/856b5751-a6ab-47ac-968d-38223aeb6aa5 2024-09-03 14:46:08,003 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-machine-interface/cd045897-fd9b-49cf-b3fe-f386a23fd041 2024-09-03 14:46:09,260 - 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=5.07 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=1.49 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.490/3.277/5.065/1.787 ms') 2024-09-03 14:46:09,260 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-11374359-04540665 passed 2024-09-03 14:46:09,407 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-03 14:46:09,407 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-11374359-04540665, IP 58.13.137.3, Port 22 2024-09-03 14:46:09,567 - DEBUG - VM ctest-TestBasicPolicy-11374359-04540665 is ready for SSH connections 2024-09-03 14:46:09,567 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-03 14:46:09,567 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 58.13.137.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.42, gateway password: c0ntrail123 2024-09-03 14:46:09,567 - DEBUG - ping -s 56 -c 3 -W 1 58.13.137.3 2024-09-03 14:46:13,777 - DEBUG - PING 58.13.137.3 (58.13.137.3): 56 data bytes 64 bytes from 58.13.137.3: seq=0 ttl=63 time=4.792 ms 64 bytes from 58.13.137.3: seq=1 ttl=63 time=0.895 ms 64 bytes from 58.13.137.3: seq=2 ttl=63 time=0.935 ms --- 58.13.137.3 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.895/2.207/4.792 ms 2024-09-03 14:46:13,777 - INFO - Ping to IP 58.13.137.3 from VM ctest-TestBasicPolicy-11374359-13979367 passed 2024-09-03 14:46:13,963 - DEBUG - Policy Update Response {"network-policy": {"uuid": "1f3e7fac-61c7-4870-9a7e-775e767046bb", "href": "http://10.0.0.42:8082/network-policy/1f3e7fac-61c7-4870-9a7e-775e767046bb"}} 2024-09-03 14:46:13,963 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-03 14:46:13,963 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 58.13.137.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.42, gateway password: c0ntrail123 2024-09-03 14:46:13,963 - DEBUG - ping -s 56 -c 3 -W 1 58.13.137.3 2024-09-03 14:46:17,174 - DEBUG - PING 58.13.137.3 (58.13.137.3): 56 data bytes 64 bytes from 58.13.137.3: seq=0 ttl=63 time=1.280 ms --- 58.13.137.3 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.280/1.280/1.280 ms 2024-09-03 14:46:17,174 - WARNING - Ping to IP 58.13.137.3 from VM ctest-TestBasicPolicy-11374359-13979367 failed 2024-09-03 14:46:17,174 - INFO - Deleting VM ctest-TestBasicPolicy-11374359-04540665 2024-09-03 14:46:17,238 - INFO - Deleting VM ctest-TestBasicPolicy-11374359-13979367 2024-09-03 14:46:17,652 - INFO - Deleted policy ctest-policy-allow-all-30193933 2024-09-03 14:46:17,653 - INFO - Deleting VN ctest-vn-53466959 2024-09-03 14:46:17,697 - DEBUG - VN 2dcc82a7-232a-4f93-a2d1-eb157b85b0b4 still in use: Unable to complete operation on network 2dcc82a7-232a-4f93-a2d1-eb157b85b0b4. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-e9e28e94-f1b6-417f-8365-21a8c6a35eb5'] 2024-09-03 14:46:17,697 - WARNING - Deleting VN ctest-vn-53466959 failed..Will retry 2024-09-03 14:46:19,834 - DEBUG - Response for deleting network () 2024-09-03 14:46:19,834 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/d817332e-bc57-46ff-a260-403ad7a5286f 2024-09-03 14:46:19,839 - DEBUG - Response Code: 404 2024-09-03 14:46:19,840 - DEBUG - Requesting: http://10.0.0.42:8082/domains 2024-09-03 14:46:19,849 - DEBUG - Requesting: http://10.0.0.42:8082/domain/706f5b70-19a5-4133-9b0e-cf0490ea05b5 2024-09-03 14:46:19,905 - DEBUG - Requesting: http://10.0.0.42:8082/project/acda3be0-043f-49e9-8624-f86b5165ce36 2024-09-03 14:46:19,975 - INFO - Validated that VN ctest-vn-53466959 is not found in API Server 2024-09-03 14:46:19,987 - DEBUG - VN ctest-vn-53466959 is not present in Agent 10.0.0.42 2024-09-03 14:46:19,987 - INFO - Validated that VN ctest-vn-53466959 is not in any agent 2024-09-03 14:46:20,002 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-53466959 info 2024-09-03 14:46:20,002 - INFO - Deleting VN ctest-vn-79001978 2024-09-03 14:46:20,125 - DEBUG - Response for deleting network () 2024-09-03 14:46:20,125 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/de3c8e37-b3bf-46e7-a116-1967748be5b2 2024-09-03 14:46:20,131 - DEBUG - Response Code: 404 2024-09-03 14:46:20,131 - DEBUG - Requesting: http://10.0.0.42:8082/domains 2024-09-03 14:46:20,141 - DEBUG - Requesting: http://10.0.0.42:8082/domain/706f5b70-19a5-4133-9b0e-cf0490ea05b5 2024-09-03 14:46:20,195 - DEBUG - Requesting: http://10.0.0.42:8082/project/acda3be0-043f-49e9-8624-f86b5165ce36 2024-09-03 14:46:20,260 - INFO - Validated that VN ctest-vn-79001978 is not found in API Server 2024-09-03 14:46:20,271 - DEBUG - VN ctest-vn-79001978 is not present in Agent 10.0.0.42 2024-09-03 14:46:20,271 - INFO - Validated that VN ctest-vn-79001978 is not in any agent 2024-09-03 14:46:20,286 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-79001978 info 2024-09-03 14:46:20,546 - DEBUG - No XMPP flaps were noticed during the test 2024-09-03 14:46:20,546 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:31] 2024-09-03 14:46:20,546 - INFO - -------------------------------------------------------------------------------- 2024-09-03 14:46:21,220 - INFO - Deleted project: ctest-TestBasicPolicy-11374359, ID : acda3be0-043f-49e9-8624-f86b5165ce36