2025-01-06 13:03:58,636 - INFO - Domain Default found not creating 2025-01-06 13:03:58,772 - INFO - Project ctest-TestBasicPolicy-32504847 not found, creating it 2025-01-06 13:03:59,223 - INFO - Created Project:ctest-TestBasicPolicy-32504847, ID : bea565d6-26d9-45d3-b348-64380ef11eb1 2025-01-06 13:04:00,644 - INFO - ================================================================================ 2025-01-06 13:04:00,644 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-01-06 13:04:00,644 - 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 2025-01-06 13:04:00,898 - DEBUG - Nothing to compare xmpp stats {'10.0.0.12': {'10.20.0.19': '0'}} with 2025-01-06 13:04:00,898 - INFO - Initial checks done. Running the testcase now 2025-01-06 13:04:00,898 - INFO - 2025-01-06 13:04:01,439 - DEBUG - Response for create_network : {'network': {'id': '7a00bf83-b738-4587-8d0b-72a4b5124efa', 'name': 'ctest-vn-87462597', 'tenant_id': 'bea565d626d945d3b34864380ef11eb1', 'project_id': 'bea565d626d945d3b34864380ef11eb1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-32504847', 'ctest-vn-87462597'], 'port_security_enabled': True, 'description': ''}} 2025-01-06 13:04:01,603 - DEBUG - Response for create_subnet : {'subnet': {'id': 'abd024ba-90fc-41bf-bcfa-3b5d3201af83', 'name': '', 'tenant_id': 'bea565d626d945d3b34864380ef11eb1', 'network_id': '7a00bf83-b738-4587-8d0b-72a4b5124efa', 'ip_version': 4, 'cidr': '219.132.114.192/26', 'allocation_pools': [{'start': '219.132.114.194', 'end': '219.132.114.254'}], 'gateway_ip': '219.132.114.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '219.132.114.194', 'tags': [], 'project_id': 'bea565d626d945d3b34864380ef11eb1'}} 2025-01-06 13:04:01,619 - INFO - Created VN ctest-vn-87462597 2025-01-06 13:04:01,671 - DEBUG - VN ctest-vn-87462597 UUID is 7a00bf83-b738-4587-8d0b-72a4b5124efa 2025-01-06 13:04:01,982 - DEBUG - Response for create_network : {'network': {'id': '7ca74622-1b8c-491a-8e9c-e11b16432ea1', 'name': 'ctest-vn-82193982', 'tenant_id': 'bea565d626d945d3b34864380ef11eb1', 'project_id': 'bea565d626d945d3b34864380ef11eb1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-32504847', 'ctest-vn-82193982'], 'port_security_enabled': True, 'description': ''}} 2025-01-06 13:04:02,131 - DEBUG - Response for create_subnet : {'subnet': {'id': '7ec82cdb-a077-44df-bc45-907265b7e156', 'name': '', 'tenant_id': 'bea565d626d945d3b34864380ef11eb1', 'network_id': '7ca74622-1b8c-491a-8e9c-e11b16432ea1', 'ip_version': 4, 'cidr': '186.5.50.64/26', 'allocation_pools': [{'start': '186.5.50.66', 'end': '186.5.50.126'}], 'gateway_ip': '186.5.50.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '186.5.50.66', 'tags': [], 'project_id': 'bea565d626d945d3b34864380ef11eb1'}} 2025-01-06 13:04:02,148 - INFO - Created VN ctest-vn-82193982 2025-01-06 13:04:02,199 - DEBUG - VN ctest-vn-82193982 UUID is 7ca74622-1b8c-491a-8e9c-e11b16432ea1 2025-01-06 13:04:02,347 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-32504847:ctest-vn-87462597, 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-32504847:ctest-vn-82193982, 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] 2025-01-06 13:04:02,651 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '7a00bf83-b738-4587-8d0b-72a4b5124efa', 'name': 'ctest-vn-87462597', 'tenant_id': 'bea565d626d945d3b34864380ef11eb1', 'project_id': 'bea565d626d945d3b34864380ef11eb1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['abd024ba-90fc-41bf-bcfa-3b5d3201af83'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-32504847', 'ctest-vn-87462597'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-32504847', 'ctest-policy-allow-all-43319587']], 'subnet_ipam': [{'subnet_cidr': '219.132.114.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-01-06 13:04:02,938 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '7ca74622-1b8c-491a-8e9c-e11b16432ea1', 'name': 'ctest-vn-82193982', 'tenant_id': 'bea565d626d945d3b34864380ef11eb1', 'project_id': 'bea565d626d945d3b34864380ef11eb1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['7ec82cdb-a077-44df-bc45-907265b7e156'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-32504847', 'ctest-vn-82193982'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-32504847', 'ctest-policy-allow-all-43319587']], 'subnet_ipam': [{'subnet_cidr': '186.5.50.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-01-06 13:04:03,083 - DEBUG - Requesting: http://10.0.0.12:8082/domains 2025-01-06 13:04:03,381 - DEBUG - Requesting: http://10.0.0.12:8082/domains 2025-01-06 13:04:03,411 - DEBUG - Requesting: http://10.0.0.12:8082/domain/4236e424-a699-4a11-b417-4103c0cf66f6 2025-01-06 13:04:03,423 - DEBUG - Requesting: http://10.0.0.12:8082/project/bea565d6-26d9-45d3-b348-64380ef11eb1 2025-01-06 13:04:03,496 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/7a00bf83-b738-4587-8d0b-72a4b5124efa 2025-01-06 13:04:03,508 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/7a00bf83-b738-4587-8d0b-72a4b5124efa 2025-01-06 13:04:03,518 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/aca2282b-ad39-4761-8d86-f7de486e44f4 2025-01-06 13:04:03,526 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/aca2282b-ad39-4761-8d86-f7de486e44f4 2025-01-06 13:04:03,534 - DEBUG - Requesting: http://10.0.0.12:8082/route-target/3eb357dd-34ea-4ab1-851d-b639d701fc2b 2025-01-06 13:04:03,541 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-01-06 13:04:03,541 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/7a00bf83-b738-4587-8d0b-72a4b5124efa 2025-01-06 13:04:03,551 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/aca2282b-ad39-4761-8d86-f7de486e44f4 2025-01-06 13:04:03,565 - INFO - Verified VN network id 8 for VN 7a00bf83-b738-4587-8d0b-72a4b5124efa 2025-01-06 13:04:03,565 - INFO - Verifications in API Server for VN ctest-vn-87462597 passed 2025-01-06 13:04:03,565 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/7a00bf83-b738-4587-8d0b-72a4b5124efa 2025-01-06 13:04:03,574 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/aca2282b-ad39-4761-8d86-f7de486e44f4 2025-01-06 13:04:03,581 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/aca2282b-ad39-4761-8d86-f7de486e44f4 2025-01-06 13:04:03,589 - DEBUG - Requesting: http://10.0.0.12:8082/route-target/3eb357dd-34ea-4ab1-851d-b639d701fc2b 2025-01-06 13:04:03,600 - DEBUG - Control-node 10.0.0.12 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-32504847:ctest-vn-87462597', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-32504847', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8791237045062747527', 'uuid-lslong': '10163343035829735162'}, 'enable': 'true', 'created': '2025-01-06T13:04:01', 'last-modified': '2025-01-06T13:04:02', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.978317'} 2025-01-06 13:04:03,608 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-01-06 13:04:03,609 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-87462597 passed 2025-01-06 13:04:03,609 - DEBUG - ====Verifying policy data for ctest-vn-87462597 in API_Server ====== 2025-01-06 13:04:03,609 - DEBUG - Requesting: http://10.0.0.12:8082/domains 2025-01-06 13:04:03,615 - DEBUG - Requesting: http://10.0.0.12:8082/domain/4236e424-a699-4a11-b417-4103c0cf66f6 2025-01-06 13:04:03,626 - DEBUG - Requesting: http://10.0.0.12:8082/project/bea565d6-26d9-45d3-b348-64380ef11eb1 2025-01-06 13:04:03,706 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/7a00bf83-b738-4587-8d0b-72a4b5124efa 2025-01-06 13:04:03,715 - DEBUG - ==>Verifying data for policy with id: 86433cc5-b5d4-4f8c-a93c-a8ad098ba3e7, fqn: ['default-domain', 'ctest-TestBasicPolicy-32504847', 'ctest-policy-allow-all-43319587'] 2025-01-06 13:04:03,716 - INFO - VN ctest-vn-87462597 Policy verification: verify_vn_policy_in_api_server, status: True 2025-01-06 13:04:03,716 - DEBUG - Verifying the vn in opserver 2025-01-06 13:04:03,716 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-32504847:ctest-vn-87462597 virtual network link through opserver 10.0.0.12 2025-01-06 13:04:03,716 - DEBUG - Requesting: http://10.0.0.12:8081/analytics/uves/virtual-networks 2025-01-06 13:04:04,004 - DEBUG - Requesting: http://10.0.0.12:8081/analytics/uves/virtual-networks 2025-01-06 13:04:04,052 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-32504847:ctest-vn-87462597', 'href': 'http://10.0.0.12:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-32504847:ctest-vn-87462597?flat'} 2025-01-06 13:04:04,052 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-32504847:ctest-vn-87462597 is found in opserver 2025-01-06 13:04:04,062 - DEBUG - Do not have enough data to verify VN in agent 2025-01-06 13:04:04,067 - DEBUG - VRF ids for VN ctest-vn-87462597: {} 2025-01-06 13:04:04,067 - DEBUG - Requesting: http://10.0.0.12:8082/domains 2025-01-06 13:04:04,072 - DEBUG - Requesting: http://10.0.0.12:8082/domain/4236e424-a699-4a11-b417-4103c0cf66f6 2025-01-06 13:04:04,083 - DEBUG - Requesting: http://10.0.0.12:8082/project/bea565d6-26d9-45d3-b348-64380ef11eb1 2025-01-06 13:04:04,153 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/7ca74622-1b8c-491a-8e9c-e11b16432ea1 2025-01-06 13:04:04,165 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/7ca74622-1b8c-491a-8e9c-e11b16432ea1 2025-01-06 13:04:04,173 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/4a6bf41e-b221-4477-8ca8-7ebc6e5c25b4 2025-01-06 13:04:04,180 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/4a6bf41e-b221-4477-8ca8-7ebc6e5c25b4 2025-01-06 13:04:04,187 - DEBUG - Requesting: http://10.0.0.12:8082/route-target/07a53e57-0298-4d8b-8c13-b3248a28bb9d 2025-01-06 13:04:04,192 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-01-06 13:04:04,192 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/7ca74622-1b8c-491a-8e9c-e11b16432ea1 2025-01-06 13:04:04,201 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/4a6bf41e-b221-4477-8ca8-7ebc6e5c25b4 2025-01-06 13:04:04,214 - INFO - Verified VN network id 9 for VN 7ca74622-1b8c-491a-8e9c-e11b16432ea1 2025-01-06 13:04:04,214 - INFO - Verifications in API Server for VN ctest-vn-82193982 passed 2025-01-06 13:04:04,214 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/7ca74622-1b8c-491a-8e9c-e11b16432ea1 2025-01-06 13:04:04,223 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/4a6bf41e-b221-4477-8ca8-7ebc6e5c25b4 2025-01-06 13:04:04,230 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/4a6bf41e-b221-4477-8ca8-7ebc6e5c25b4 2025-01-06 13:04:04,235 - DEBUG - Requesting: http://10.0.0.12:8082/route-target/07a53e57-0298-4d8b-8c13-b3248a28bb9d 2025-01-06 13:04:04,246 - DEBUG - Control-node 10.0.0.12 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-32504847:ctest-vn-82193982', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-32504847', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8982225094118754586', 'uuid-lslong': '10276335956206497441'}, 'enable': 'true', 'created': '2025-01-06T13:04:01', 'last-modified': '2025-01-06T13:04:02', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.380101'} 2025-01-06 13:04:04,252 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-01-06 13:04:04,252 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-82193982 passed 2025-01-06 13:04:04,252 - DEBUG - ====Verifying policy data for ctest-vn-82193982 in API_Server ====== 2025-01-06 13:04:04,253 - DEBUG - Requesting: http://10.0.0.12:8082/domains 2025-01-06 13:04:04,257 - DEBUG - Requesting: http://10.0.0.12:8082/domain/4236e424-a699-4a11-b417-4103c0cf66f6 2025-01-06 13:04:04,268 - DEBUG - Requesting: http://10.0.0.12:8082/project/bea565d6-26d9-45d3-b348-64380ef11eb1 2025-01-06 13:04:04,344 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/7ca74622-1b8c-491a-8e9c-e11b16432ea1 2025-01-06 13:04:04,354 - DEBUG - ==>Verifying data for policy with id: 86433cc5-b5d4-4f8c-a93c-a8ad098ba3e7, fqn: ['default-domain', 'ctest-TestBasicPolicy-32504847', 'ctest-policy-allow-all-43319587'] 2025-01-06 13:04:04,354 - INFO - VN ctest-vn-82193982 Policy verification: verify_vn_policy_in_api_server, status: True 2025-01-06 13:04:04,354 - DEBUG - Verifying the vn in opserver 2025-01-06 13:04:04,354 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-32504847:ctest-vn-82193982 virtual network link through opserver 10.0.0.12 2025-01-06 13:04:04,354 - DEBUG - Requesting: http://10.0.0.12:8081/analytics/uves/virtual-networks 2025-01-06 13:04:04,364 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-32504847:ctest-vn-82193982', 'href': 'http://10.0.0.12:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-32504847:ctest-vn-82193982?flat'} 2025-01-06 13:04:04,364 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-32504847:ctest-vn-82193982 is found in opserver 2025-01-06 13:04:04,374 - DEBUG - Do not have enough data to verify VN in agent 2025-01-06 13:04:04,379 - DEBUG - VRF ids for VN ctest-vn-82193982: {} 2025-01-06 13:04:04,435 - DEBUG - Services list from nova: [, , ] 2025-01-06 13:04:05,410 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2541-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2541-1) 2025-01-06 13:04:06,667 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2541-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2541-1) 2025-01-06 13:04:06,668 - INFO - Waiting for VM ctest-TestBasicPolicy-32504847-86016868 to be up.. 2025-01-06 13:04:06,753 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-01-06 13:04:11,829 - DEBUG - VM is in ACTIVE state now 2025-01-06 13:04:11,829 - INFO - VM name : ctest-TestBasicPolicy-32504847-86016868 2025-01-06 13:04:11,898 - DEBUG - VM ctest-TestBasicPolicy-32504847-86016868 ID is 5b6289b2-ac63-483c-8c96-1b8e0c8e626a 2025-01-06 13:04:11,928 - DEBUG - VM ctest-TestBasicPolicy-32504847-86016868 launched on Node cn-jenkins-deploy-platform-ansible-os-2541-1 2025-01-06 13:04:12,006 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-machine/5b6289b2-ac63-483c-8c96-1b8e0c8e626a 2025-01-06 13:04:12,014 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-machine-interface/5f908970-7acc-45f5-b61d-80d6f1893409 2025-01-06 13:04:15,280 - 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') 2025-01-06 13:04:15,280 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-32504847-86016868 failed! 2025-01-06 13:04:15,336 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-32504847:ctest-vn-87462597 is 219.132.114.193 and allocation pool is NOT set 2025-01-06 13:04:17,404 - 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.19 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.800 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.800/1.996/3.192/1.196 ms') 2025-01-06 13:04:17,404 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-32504847-86016868 passed 2025-01-06 13:04:17,556 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-06 13:04:17,556 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-32504847-86016868, IP 219.132.114.195, Port 22 2025-01-06 13:04:17,723 - DEBUG - VM ctest-TestBasicPolicy-32504847-86016868 is ready for SSH connections 2025-01-06 13:04:17,724 - INFO - Waiting for VM ctest-TestBasicPolicy-32504847-31480686 to be up.. 2025-01-06 13:04:17,796 - DEBUG - VM is in ACTIVE state now 2025-01-06 13:04:17,796 - INFO - VM name : ctest-TestBasicPolicy-32504847-31480686 2025-01-06 13:04:17,867 - DEBUG - VM ctest-TestBasicPolicy-32504847-31480686 ID is 0fb897ba-cfda-4bbf-8fc2-eb95769f81db 2025-01-06 13:04:17,867 - DEBUG - VM ctest-TestBasicPolicy-32504847-31480686 launched on Node cn-jenkins-deploy-platform-ansible-os-2541-1 2025-01-06 13:04:17,947 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-machine/0fb897ba-cfda-4bbf-8fc2-eb95769f81db 2025-01-06 13:04:17,958 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-machine-interface/5606f98a-610a-40fd-923d-8ee6160f7a35 2025-01-06 13:04:19,201 - 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.87 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.496 ms\r\n\r\n--- 169.254.0.4 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1002ms\r\nrtt min/avg/max/mdev = 0.496/1.684/2.872/1.188 ms') 2025-01-06 13:04:19,201 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-32504847-31480686 passed 2025-01-06 13:04:19,351 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-06 13:04:19,352 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-32504847-31480686, IP 186.5.50.67, Port 22 2025-01-06 13:04:19,507 - DEBUG - VM ctest-TestBasicPolicy-32504847-31480686 is ready for SSH connections 2025-01-06 13:04:19,507 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-06 13:04:19,507 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 186.5.50.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.12, gateway password: c0ntrail123 2025-01-06 13:04:19,508 - DEBUG - ping -s 56 -c 3 -W 1 186.5.50.67 2025-01-06 13:04:23,181 - DEBUG - PING 186.5.50.67 (186.5.50.67): 56 data bytes 64 bytes from 186.5.50.67: seq=0 ttl=63 time=4.503 ms 64 bytes from 186.5.50.67: seq=1 ttl=63 time=1.062 ms 64 bytes from 186.5.50.67: seq=2 ttl=63 time=0.878 ms --- 186.5.50.67 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.878/2.147/4.503 ms 2025-01-06 13:04:23,181 - INFO - Ping to IP 186.5.50.67 from VM ctest-TestBasicPolicy-32504847-86016868 passed 2025-01-06 13:04:23,356 - DEBUG - Policy Update Response {"network-policy": {"uuid": "86433cc5-b5d4-4f8c-a93c-a8ad098ba3e7", "href": "http://10.0.0.12:8082/network-policy/86433cc5-b5d4-4f8c-a93c-a8ad098ba3e7"}} 2025-01-06 13:04:23,356 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-06 13:04:23,356 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 186.5.50.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.12, gateway password: c0ntrail123 2025-01-06 13:04:23,356 - DEBUG - ping -s 56 -c 3 -W 1 186.5.50.67 2025-01-06 13:04:26,563 - DEBUG - PING 186.5.50.67 (186.5.50.67): 56 data bytes 64 bytes from 186.5.50.67: seq=0 ttl=63 time=1.957 ms --- 186.5.50.67 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.957/1.957/1.957 ms 2025-01-06 13:04:26,564 - WARNING - Ping to IP 186.5.50.67 from VM ctest-TestBasicPolicy-32504847-86016868 failed 2025-01-06 13:04:26,564 - INFO - Deleting VM ctest-TestBasicPolicy-32504847-31480686 2025-01-06 13:04:26,656 - INFO - Deleting VM ctest-TestBasicPolicy-32504847-86016868 2025-01-06 13:04:27,041 - INFO - Deleted policy ctest-policy-allow-all-43319587 2025-01-06 13:04:27,041 - INFO - Deleting VN ctest-vn-82193982 2025-01-06 13:04:27,083 - DEBUG - VN 7ca74622-1b8c-491a-8e9c-e11b16432ea1 still in use: Unable to complete operation on network 7ca74622-1b8c-491a-8e9c-e11b16432ea1. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-d8054ae7-5e1b-4078-b503-ce6ff9b5354c'] 2025-01-06 13:04:27,083 - WARNING - Deleting VN ctest-vn-82193982 failed..Will retry 2025-01-06 13:04:29,182 - DEBUG - Response for deleting network () 2025-01-06 13:04:29,182 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/4a6bf41e-b221-4477-8ca8-7ebc6e5c25b4 2025-01-06 13:04:29,187 - DEBUG - Response Code: 404 2025-01-06 13:04:29,187 - DEBUG - Requesting: http://10.0.0.12:8082/domains 2025-01-06 13:04:29,193 - DEBUG - Requesting: http://10.0.0.12:8082/domain/4236e424-a699-4a11-b417-4103c0cf66f6 2025-01-06 13:04:29,249 - DEBUG - Requesting: http://10.0.0.12:8082/project/bea565d6-26d9-45d3-b348-64380ef11eb1 2025-01-06 13:04:29,324 - INFO - Validated that VN ctest-vn-82193982 is not found in API Server 2025-01-06 13:04:29,334 - DEBUG - VN ctest-vn-82193982 is not present in Agent 10.0.0.12 2025-01-06 13:04:29,334 - INFO - Validated that VN ctest-vn-82193982 is not in any agent 2025-01-06 13:04:29,349 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-82193982 info 2025-01-06 13:04:29,349 - INFO - Deleting VN ctest-vn-87462597 2025-01-06 13:04:29,446 - DEBUG - Response for deleting network () 2025-01-06 13:04:29,446 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/aca2282b-ad39-4761-8d86-f7de486e44f4 2025-01-06 13:04:29,452 - DEBUG - Response Code: 404 2025-01-06 13:04:29,452 - DEBUG - Requesting: http://10.0.0.12:8082/domains 2025-01-06 13:04:29,461 - DEBUG - Requesting: http://10.0.0.12:8082/domain/4236e424-a699-4a11-b417-4103c0cf66f6 2025-01-06 13:04:29,518 - DEBUG - Requesting: http://10.0.0.12:8082/project/bea565d6-26d9-45d3-b348-64380ef11eb1 2025-01-06 13:04:29,601 - INFO - Validated that VN ctest-vn-87462597 is not found in API Server 2025-01-06 13:04:29,611 - DEBUG - VN ctest-vn-87462597 is not present in Agent 10.0.0.12 2025-01-06 13:04:29,611 - INFO - Validated that VN ctest-vn-87462597 is not in any agent 2025-01-06 13:04:29,629 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-87462597 info 2025-01-06 13:04:29,890 - DEBUG - No XMPP flaps were noticed during the test 2025-01-06 13:04:29,890 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:29] 2025-01-06 13:04:29,890 - INFO - -------------------------------------------------------------------------------- 2025-01-06 13:04:30,610 - INFO - Deleted project: ctest-TestBasicPolicy-32504847, ID : bea565d6-26d9-45d3-b348-64380ef11eb1