2024-09-15 08:42:59,749 - INFO - Domain Default found not creating 2024-09-15 08:42:59,913 - INFO - Project ctest-TestBasicPolicy-28034412 not found, creating it 2024-09-15 08:43:00,420 - INFO - Created Project:ctest-TestBasicPolicy-28034412, ID : fb9aea65-6242-435b-bcc2-dc8d72b62f2d 2024-09-15 08:43:01,955 - INFO - ================================================================================ 2024-09-15 08:43:01,955 - INFO - STARTING TEST : test_basic_policy_allow_deny 2024-09-15 08:43:01,956 - 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-15 08:43:02,209 - DEBUG - Nothing to compare xmpp stats {'10.0.0.52': {'10.20.0.14': '0'}} with 2024-09-15 08:43:02,209 - INFO - Initial checks done. Running the testcase now 2024-09-15 08:43:02,209 - INFO - 2024-09-15 08:43:02,800 - DEBUG - Response for create_network : {'network': {'id': '07c6ae92-5212-43de-aa16-b326364c2abf', 'name': 'ctest-vn-81183672', 'tenant_id': 'fb9aea656242435bbcc2dc8d72b62f2d', 'project_id': 'fb9aea656242435bbcc2dc8d72b62f2d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-28034412', 'ctest-vn-81183672'], 'port_security_enabled': True, 'description': ''}} 2024-09-15 08:43:03,040 - DEBUG - Response for create_subnet : {'subnet': {'id': '7b86c0f8-85b0-47e7-a34a-0ef7e5a53364', 'name': '', 'tenant_id': 'fb9aea656242435bbcc2dc8d72b62f2d', 'network_id': '07c6ae92-5212-43de-aa16-b326364c2abf', 'ip_version': 4, 'cidr': '180.206.234.0/26', 'allocation_pools': [{'start': '180.206.234.2', 'end': '180.206.234.62'}], 'gateway_ip': '180.206.234.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '180.206.234.2', 'tags': [], 'project_id': 'fb9aea656242435bbcc2dc8d72b62f2d'}} 2024-09-15 08:43:03,060 - INFO - Created VN ctest-vn-81183672 2024-09-15 08:43:03,127 - DEBUG - VN ctest-vn-81183672 UUID is 07c6ae92-5212-43de-aa16-b326364c2abf 2024-09-15 08:43:03,466 - DEBUG - Response for create_network : {'network': {'id': '21295ebe-3a8e-4ae7-a16a-349aa6b33db0', 'name': 'ctest-vn-88237458', 'tenant_id': 'fb9aea656242435bbcc2dc8d72b62f2d', 'project_id': 'fb9aea656242435bbcc2dc8d72b62f2d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-28034412', 'ctest-vn-88237458'], 'port_security_enabled': True, 'description': ''}} 2024-09-15 08:43:03,721 - DEBUG - Response for create_subnet : {'subnet': {'id': '1002825e-c738-4a73-86a1-5a433ee65291', 'name': '', 'tenant_id': 'fb9aea656242435bbcc2dc8d72b62f2d', 'network_id': '21295ebe-3a8e-4ae7-a16a-349aa6b33db0', 'ip_version': 4, 'cidr': '29.33.98.192/26', 'allocation_pools': [{'start': '29.33.98.194', 'end': '29.33.98.254'}], 'gateway_ip': '29.33.98.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '29.33.98.194', 'tags': [], 'project_id': 'fb9aea656242435bbcc2dc8d72b62f2d'}} 2024-09-15 08:43:03,740 - INFO - Created VN ctest-vn-88237458 2024-09-15 08:43:03,799 - DEBUG - VN ctest-vn-88237458 UUID is 21295ebe-3a8e-4ae7-a16a-349aa6b33db0 2024-09-15 08:43:03,940 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-28034412:ctest-vn-81183672, 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-28034412:ctest-vn-88237458, 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-15 08:43:04,264 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '07c6ae92-5212-43de-aa16-b326364c2abf', 'name': 'ctest-vn-81183672', 'tenant_id': 'fb9aea656242435bbcc2dc8d72b62f2d', 'project_id': 'fb9aea656242435bbcc2dc8d72b62f2d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['7b86c0f8-85b0-47e7-a34a-0ef7e5a53364'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-28034412', 'ctest-vn-81183672'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-28034412', 'ctest-policy-allow-all-74786816']], 'subnet_ipam': [{'subnet_cidr': '180.206.234.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-09-15 08:43:04,525 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '21295ebe-3a8e-4ae7-a16a-349aa6b33db0', 'name': 'ctest-vn-88237458', 'tenant_id': 'fb9aea656242435bbcc2dc8d72b62f2d', 'project_id': 'fb9aea656242435bbcc2dc8d72b62f2d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['1002825e-c738-4a73-86a1-5a433ee65291'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-28034412', 'ctest-vn-88237458'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-28034412', 'ctest-policy-allow-all-74786816']], 'subnet_ipam': [{'subnet_cidr': '29.33.98.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-09-15 08:43:04,703 - DEBUG - Requesting: http://10.0.0.52:8082/domains 2024-09-15 08:43:05,025 - DEBUG - Requesting: http://10.0.0.52:8082/domains 2024-09-15 08:43:05,059 - DEBUG - Requesting: http://10.0.0.52:8082/domain/c74ec817-aad0-4d89-911e-55477966338b 2024-09-15 08:43:05,076 - DEBUG - Requesting: http://10.0.0.52:8082/project/fb9aea65-6242-435b-bcc2-dc8d72b62f2d 2024-09-15 08:43:05,168 - DEBUG - Requesting: http://10.0.0.52:8082/virtual-network/07c6ae92-5212-43de-aa16-b326364c2abf 2024-09-15 08:43:05,182 - DEBUG - Requesting: http://10.0.0.52:8082/virtual-network/07c6ae92-5212-43de-aa16-b326364c2abf 2024-09-15 08:43:05,196 - DEBUG - Requesting: http://10.0.0.52:8082/routing-instance/f801a701-bf70-4d6e-94ac-5289f9a9160d 2024-09-15 08:43:05,206 - DEBUG - Requesting: http://10.0.0.52:8082/routing-instance/f801a701-bf70-4d6e-94ac-5289f9a9160d 2024-09-15 08:43:05,216 - DEBUG - Requesting: http://10.0.0.52:8082/route-target/daee29ce-2316-489b-8c07-ee9b388bd190 2024-09-15 08:43:05,226 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-09-15 08:43:05,226 - DEBUG - Requesting: http://10.0.0.52:8082/virtual-network/07c6ae92-5212-43de-aa16-b326364c2abf 2024-09-15 08:43:05,239 - DEBUG - Requesting: http://10.0.0.52:8082/routing-instance/f801a701-bf70-4d6e-94ac-5289f9a9160d 2024-09-15 08:43:05,257 - INFO - Verified VN network id 8 for VN 07c6ae92-5212-43de-aa16-b326364c2abf 2024-09-15 08:43:05,257 - INFO - Verifications in API Server for VN ctest-vn-81183672 passed 2024-09-15 08:43:05,257 - DEBUG - Requesting: http://10.0.0.52:8082/virtual-network/07c6ae92-5212-43de-aa16-b326364c2abf 2024-09-15 08:43:05,271 - DEBUG - Requesting: http://10.0.0.52:8082/routing-instance/f801a701-bf70-4d6e-94ac-5289f9a9160d 2024-09-15 08:43:05,278 - DEBUG - Requesting: http://10.0.0.52:8082/routing-instance/f801a701-bf70-4d6e-94ac-5289f9a9160d 2024-09-15 08:43:05,288 - DEBUG - Requesting: http://10.0.0.52:8082/route-target/daee29ce-2316-489b-8c07-ee9b388bd190 2024-09-15 08:43:05,303 - DEBUG - Control-node 10.0.0.52 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-28034412:ctest-vn-81183672', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-28034412', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '560327147119592414', 'uuid-lslong': '12256180412636474047'}, 'enable': 'true', 'created': '2024-09-15T08:43:02', 'last-modified': '2024-09-15T08:43:04', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.069217'} 2024-09-15 08:43:05,310 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-09-15 08:43:05,310 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-81183672 passed 2024-09-15 08:43:05,310 - DEBUG - ====Verifying policy data for ctest-vn-81183672 in API_Server ====== 2024-09-15 08:43:05,310 - DEBUG - Requesting: http://10.0.0.52:8082/domains 2024-09-15 08:43:05,317 - DEBUG - Requesting: http://10.0.0.52:8082/domain/c74ec817-aad0-4d89-911e-55477966338b 2024-09-15 08:43:05,338 - DEBUG - Requesting: http://10.0.0.52:8082/project/fb9aea65-6242-435b-bcc2-dc8d72b62f2d 2024-09-15 08:43:05,424 - DEBUG - Requesting: http://10.0.0.52:8082/virtual-network/07c6ae92-5212-43de-aa16-b326364c2abf 2024-09-15 08:43:05,438 - DEBUG - ==>Verifying data for policy with id: 95a89fbd-8202-43d9-b424-ab573242a8b7, fqn: ['default-domain', 'ctest-TestBasicPolicy-28034412', 'ctest-policy-allow-all-74786816'] 2024-09-15 08:43:05,438 - INFO - VN ctest-vn-81183672 Policy verification: verify_vn_policy_in_api_server, status: True 2024-09-15 08:43:05,438 - DEBUG - Verifying the vn in opserver 2024-09-15 08:43:05,438 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-28034412:ctest-vn-81183672 virtual network link through opserver 10.0.0.52 2024-09-15 08:43:05,438 - DEBUG - Requesting: http://10.0.0.52:8081/analytics/uves/virtual-networks 2024-09-15 08:43:05,745 - DEBUG - Requesting: http://10.0.0.52:8081/analytics/uves/virtual-networks 2024-09-15 08:43:05,811 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-28034412:ctest-vn-81183672', 'href': 'http://10.0.0.52:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-28034412:ctest-vn-81183672?flat'} 2024-09-15 08:43:05,811 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-28034412:ctest-vn-81183672 is found in opserver 2024-09-15 08:43:05,822 - DEBUG - Do not have enough data to verify VN in agent 2024-09-15 08:43:05,828 - DEBUG - VRF ids for VN ctest-vn-81183672: {} 2024-09-15 08:43:05,828 - DEBUG - Requesting: http://10.0.0.52:8082/domains 2024-09-15 08:43:05,834 - DEBUG - Requesting: http://10.0.0.52:8082/domain/c74ec817-aad0-4d89-911e-55477966338b 2024-09-15 08:43:05,848 - DEBUG - Requesting: http://10.0.0.52:8082/project/fb9aea65-6242-435b-bcc2-dc8d72b62f2d 2024-09-15 08:43:05,931 - DEBUG - Requesting: http://10.0.0.52:8082/virtual-network/21295ebe-3a8e-4ae7-a16a-349aa6b33db0 2024-09-15 08:43:05,960 - DEBUG - Requesting: http://10.0.0.52:8082/virtual-network/21295ebe-3a8e-4ae7-a16a-349aa6b33db0 2024-09-15 08:43:05,976 - DEBUG - Requesting: http://10.0.0.52:8082/routing-instance/5cb4d023-d731-4b8d-b9a4-c8e6d5ec4650 2024-09-15 08:43:05,985 - DEBUG - Requesting: http://10.0.0.52:8082/routing-instance/5cb4d023-d731-4b8d-b9a4-c8e6d5ec4650 2024-09-15 08:43:05,994 - DEBUG - Requesting: http://10.0.0.52:8082/route-target/1b787cfb-469e-477d-812d-7b1bd05f76b0 2024-09-15 08:43:06,003 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-09-15 08:43:06,003 - DEBUG - Requesting: http://10.0.0.52:8082/virtual-network/21295ebe-3a8e-4ae7-a16a-349aa6b33db0 2024-09-15 08:43:06,017 - DEBUG - Requesting: http://10.0.0.52:8082/routing-instance/5cb4d023-d731-4b8d-b9a4-c8e6d5ec4650 2024-09-15 08:43:06,041 - INFO - Verified VN network id 9 for VN 21295ebe-3a8e-4ae7-a16a-349aa6b33db0 2024-09-15 08:43:06,042 - INFO - Verifications in API Server for VN ctest-vn-88237458 passed 2024-09-15 08:43:06,042 - DEBUG - Requesting: http://10.0.0.52:8082/virtual-network/21295ebe-3a8e-4ae7-a16a-349aa6b33db0 2024-09-15 08:43:06,066 - DEBUG - Requesting: http://10.0.0.52:8082/routing-instance/5cb4d023-d731-4b8d-b9a4-c8e6d5ec4650 2024-09-15 08:43:06,077 - DEBUG - Requesting: http://10.0.0.52:8082/routing-instance/5cb4d023-d731-4b8d-b9a4-c8e6d5ec4650 2024-09-15 08:43:06,089 - DEBUG - Requesting: http://10.0.0.52:8082/route-target/1b787cfb-469e-477d-812d-7b1bd05f76b0 2024-09-15 08:43:06,106 - DEBUG - Control-node 10.0.0.52 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-28034412:ctest-vn-88237458', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-28034412', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2389545248415959783', 'uuid-lslong': '11631166826464099760'}, 'enable': 'true', 'created': '2024-09-15T08:43:03', 'last-modified': '2024-09-15T08:43:04', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.616641'} 2024-09-15 08:43:06,113 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-09-15 08:43:06,113 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-88237458 passed 2024-09-15 08:43:06,113 - DEBUG - ====Verifying policy data for ctest-vn-88237458 in API_Server ====== 2024-09-15 08:43:06,113 - DEBUG - Requesting: http://10.0.0.52:8082/domains 2024-09-15 08:43:06,120 - DEBUG - Requesting: http://10.0.0.52:8082/domain/c74ec817-aad0-4d89-911e-55477966338b 2024-09-15 08:43:06,134 - DEBUG - Requesting: http://10.0.0.52:8082/project/fb9aea65-6242-435b-bcc2-dc8d72b62f2d 2024-09-15 08:43:06,224 - DEBUG - Requesting: http://10.0.0.52:8082/virtual-network/21295ebe-3a8e-4ae7-a16a-349aa6b33db0 2024-09-15 08:43:06,239 - DEBUG - ==>Verifying data for policy with id: 95a89fbd-8202-43d9-b424-ab573242a8b7, fqn: ['default-domain', 'ctest-TestBasicPolicy-28034412', 'ctest-policy-allow-all-74786816'] 2024-09-15 08:43:06,239 - INFO - VN ctest-vn-88237458 Policy verification: verify_vn_policy_in_api_server, status: True 2024-09-15 08:43:06,239 - DEBUG - Verifying the vn in opserver 2024-09-15 08:43:06,239 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-28034412:ctest-vn-88237458 virtual network link through opserver 10.0.0.52 2024-09-15 08:43:06,239 - DEBUG - Requesting: http://10.0.0.52:8081/analytics/uves/virtual-networks 2024-09-15 08:43:06,251 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-28034412:ctest-vn-88237458', 'href': 'http://10.0.0.52:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-28034412:ctest-vn-88237458?flat'} 2024-09-15 08:43:06,251 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-28034412:ctest-vn-88237458 is found in opserver 2024-09-15 08:43:06,269 - DEBUG - Do not have enough data to verify VN in agent 2024-09-15 08:43:06,277 - DEBUG - VRF ids for VN ctest-vn-88237458: {} 2024-09-15 08:43:06,332 - DEBUG - Services list from nova: [, , ] 2024-09-15 08:43:07,385 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1939-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1939-1) 2024-09-15 08:43:08,692 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1939-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1939-1) 2024-09-15 08:43:08,692 - INFO - Waiting for VM ctest-TestBasicPolicy-28034412-12469627 to be up.. 2024-09-15 08:43:08,808 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-09-15 08:43:13,887 - DEBUG - VM is in ACTIVE state now 2024-09-15 08:43:13,887 - INFO - VM name : ctest-TestBasicPolicy-28034412-12469627 2024-09-15 08:43:13,960 - DEBUG - VM ctest-TestBasicPolicy-28034412-12469627 ID is 52f45c07-26f5-4812-b9ff-156f63dd9ae6 2024-09-15 08:43:13,977 - DEBUG - VM ctest-TestBasicPolicy-28034412-12469627 launched on Node cn-jenkins-deploy-platform-ansible-os-1939-1 2024-09-15 08:43:14,050 - DEBUG - Requesting: http://10.0.0.52:8082/virtual-machine/52f45c07-26f5-4812-b9ff-156f63dd9ae6 2024-09-15 08:43:14,062 - DEBUG - Requesting: http://10.0.0.52:8082/virtual-machine-interface/9869511e-882a-4b12-a35f-d932c0f867bf 2024-09-15 08:43:17,328 - 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 1015ms') 2024-09-15 08:43:17,328 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-28034412-12469627 failed! 2024-09-15 08:43:17,387 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-28034412:ctest-vn-81183672 is 180.206.234.1 and allocation pool is NOT set 2024-09-15 08:43:19,444 - 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=10.1 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=1.06 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.056/5.593/10.130/4.537 ms') 2024-09-15 08:43:19,444 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-28034412-12469627 passed 2024-09-15 08:43:19,599 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-15 08:43:19,599 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-28034412-12469627, IP 180.206.234.3, Port 22 2024-09-15 08:43:19,755 - DEBUG - VM ctest-TestBasicPolicy-28034412-12469627 is ready for SSH connections 2024-09-15 08:43:19,755 - INFO - Waiting for VM ctest-TestBasicPolicy-28034412-36523694 to be up.. 2024-09-15 08:43:19,844 - DEBUG - VM is in ACTIVE state now 2024-09-15 08:43:19,845 - INFO - VM name : ctest-TestBasicPolicy-28034412-36523694 2024-09-15 08:43:19,926 - DEBUG - VM ctest-TestBasicPolicy-28034412-36523694 ID is 0a051474-54d9-4bd3-8ca7-5cff0a5b36b7 2024-09-15 08:43:19,926 - DEBUG - VM ctest-TestBasicPolicy-28034412-36523694 launched on Node cn-jenkins-deploy-platform-ansible-os-1939-1 2024-09-15 08:43:20,012 - DEBUG - Requesting: http://10.0.0.52:8082/virtual-machine/0a051474-54d9-4bd3-8ca7-5cff0a5b36b7 2024-09-15 08:43:20,022 - DEBUG - Requesting: http://10.0.0.52:8082/virtual-machine-interface/e6ccc9aa-9c40-41ed-90ed-bd52ad901fc4 2024-09-15 08:43:21,279 - 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=2.63 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.457 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.457/1.545/2.633/1.088 ms') 2024-09-15 08:43:21,279 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-28034412-36523694 passed 2024-09-15 08:43:21,431 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-15 08:43:21,431 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-28034412-36523694, IP 29.33.98.195, Port 22 2024-09-15 08:43:21,598 - DEBUG - VM ctest-TestBasicPolicy-28034412-36523694 is ready for SSH connections 2024-09-15 08:43:21,598 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-15 08:43:21,598 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 29.33.98.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.52, gateway password: c0ntrail123 2024-09-15 08:43:21,598 - DEBUG - ping -s 56 -c 3 -W 1 29.33.98.195 2024-09-15 08:43:25,610 - DEBUG - PING 29.33.98.195 (29.33.98.195): 56 data bytes 64 bytes from 29.33.98.195: seq=0 ttl=63 time=3.511 ms 64 bytes from 29.33.98.195: seq=1 ttl=63 time=0.769 ms 64 bytes from 29.33.98.195: seq=2 ttl=63 time=0.796 ms --- 29.33.98.195 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.769/1.692/3.511 ms 2024-09-15 08:43:25,611 - INFO - Ping to IP 29.33.98.195 from VM ctest-TestBasicPolicy-28034412-12469627 passed 2024-09-15 08:43:25,799 - DEBUG - Policy Update Response {"network-policy": {"uuid": "95a89fbd-8202-43d9-b424-ab573242a8b7", "href": "http://10.0.0.52:8082/network-policy/95a89fbd-8202-43d9-b424-ab573242a8b7"}} 2024-09-15 08:43:25,799 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-15 08:43:25,799 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 29.33.98.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.52, gateway password: c0ntrail123 2024-09-15 08:43:25,799 - DEBUG - ping -s 56 -c 3 -W 1 29.33.98.195 2024-09-15 08:43:29,009 - DEBUG - PING 29.33.98.195 (29.33.98.195): 56 data bytes 64 bytes from 29.33.98.195: seq=0 ttl=63 time=1.369 ms --- 29.33.98.195 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.369/1.369/1.369 ms 2024-09-15 08:43:29,010 - WARNING - Ping to IP 29.33.98.195 from VM ctest-TestBasicPolicy-28034412-12469627 failed 2024-09-15 08:43:29,010 - INFO - Deleting VM ctest-TestBasicPolicy-28034412-36523694 2024-09-15 08:43:29,083 - INFO - Deleting VM ctest-TestBasicPolicy-28034412-12469627 2024-09-15 08:43:29,502 - INFO - Deleted policy ctest-policy-allow-all-74786816 2024-09-15 08:43:29,502 - INFO - Deleting VN ctest-vn-88237458 2024-09-15 08:43:29,550 - DEBUG - VN 21295ebe-3a8e-4ae7-a16a-349aa6b33db0 still in use: Unable to complete operation on network 21295ebe-3a8e-4ae7-a16a-349aa6b33db0. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-b9e1c59c-282a-4e36-bc9e-fb01aa12bd5b'] 2024-09-15 08:43:29,550 - WARNING - Deleting VN ctest-vn-88237458 failed..Will retry 2024-09-15 08:43:31,659 - DEBUG - Response for deleting network () 2024-09-15 08:43:31,660 - DEBUG - Requesting: http://10.0.0.52:8082/routing-instance/5cb4d023-d731-4b8d-b9a4-c8e6d5ec4650 2024-09-15 08:43:31,666 - DEBUG - Response Code: 404 2024-09-15 08:43:31,666 - DEBUG - Requesting: http://10.0.0.52:8082/domains 2024-09-15 08:43:31,672 - DEBUG - Requesting: http://10.0.0.52:8082/domain/c74ec817-aad0-4d89-911e-55477966338b 2024-09-15 08:43:31,730 - DEBUG - Requesting: http://10.0.0.52:8082/project/fb9aea65-6242-435b-bcc2-dc8d72b62f2d 2024-09-15 08:43:31,810 - INFO - Validated that VN ctest-vn-88237458 is not found in API Server 2024-09-15 08:43:31,820 - DEBUG - VN ctest-vn-88237458 is not present in Agent 10.0.0.52 2024-09-15 08:43:31,821 - INFO - Validated that VN ctest-vn-88237458 is not in any agent 2024-09-15 08:43:31,836 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-88237458 info 2024-09-15 08:43:31,837 - INFO - Deleting VN ctest-vn-81183672 2024-09-15 08:43:31,958 - DEBUG - Response for deleting network () 2024-09-15 08:43:31,958 - DEBUG - Requesting: http://10.0.0.52:8082/routing-instance/f801a701-bf70-4d6e-94ac-5289f9a9160d 2024-09-15 08:43:31,970 - DEBUG - Response Code: 404 2024-09-15 08:43:31,970 - DEBUG - Requesting: http://10.0.0.52:8082/domains 2024-09-15 08:43:31,977 - DEBUG - Requesting: http://10.0.0.52:8082/domain/c74ec817-aad0-4d89-911e-55477966338b 2024-09-15 08:43:32,033 - DEBUG - Requesting: http://10.0.0.52:8082/project/fb9aea65-6242-435b-bcc2-dc8d72b62f2d 2024-09-15 08:43:32,111 - INFO - Validated that VN ctest-vn-81183672 is not found in API Server 2024-09-15 08:43:32,123 - DEBUG - VN ctest-vn-81183672 is not present in Agent 10.0.0.52 2024-09-15 08:43:32,123 - INFO - Validated that VN ctest-vn-81183672 is not in any agent 2024-09-15 08:43:32,140 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-81183672 info 2024-09-15 08:43:32,394 - DEBUG - No XMPP flaps were noticed during the test
2024-09-15 08:43:32,394 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:31]
2024-09-15 08:43:32,394 - INFO - -------------------------------------------------------------------------------- 2024-09-15 08:43:33,085 - INFO - Deleted project: ctest-TestBasicPolicy-28034412, ID : fb9aea65-6242-435b-bcc2-dc8d72b62f2d