2025-03-27 13:38:13,788 - INFO - Domain Default found not creating 2025-03-27 13:38:13,964 - INFO - Project ctest-TestBasicPolicy-69147711 not found, creating it 2025-03-27 13:38:14,471 - INFO - Created Project:ctest-TestBasicPolicy-69147711, ID : 6827610e-43a6-43f5-b9ea-5222a5f5d882 2025-03-27 13:38:16,119 - INFO - ================================================================================ 2025-03-27 13:38:16,119 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-03-27 13:38:16,119 - 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-03-27 13:38:16,384 - DEBUG - Nothing to compare xmpp stats {'10.0.0.55': {'10.20.0.5': '0'}} with 2025-03-27 13:38:16,385 - INFO - Initial checks done. Running the testcase now 2025-03-27 13:38:16,385 - INFO - 2025-03-27 13:38:17,008 - DEBUG - Response for create_network : {'network': {'id': 'c43e7a22-a12b-40da-abdf-bfb27d181d90', 'name': 'ctest-vn-59740294', 'tenant_id': '6827610e43a643f5b9ea5222a5f5d882', 'project_id': '6827610e43a643f5b9ea5222a5f5d882', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-69147711', 'ctest-vn-59740294'], 'port_security_enabled': True, 'description': ''}} 2025-03-27 13:38:17,211 - DEBUG - Response for create_subnet : {'subnet': {'id': '7767f6fb-4cbb-43b4-b28c-76801813d90a', 'name': '', 'tenant_id': '6827610e43a643f5b9ea5222a5f5d882', 'network_id': 'c43e7a22-a12b-40da-abdf-bfb27d181d90', 'ip_version': 4, 'cidr': '21.228.66.0/26', 'allocation_pools': [{'start': '21.228.66.2', 'end': '21.228.66.62'}], 'gateway_ip': '21.228.66.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '21.228.66.2', 'tags': [], 'project_id': '6827610e43a643f5b9ea5222a5f5d882'}} 2025-03-27 13:38:17,230 - INFO - Created VN ctest-vn-59740294 2025-03-27 13:38:17,285 - DEBUG - VN ctest-vn-59740294 UUID is c43e7a22-a12b-40da-abdf-bfb27d181d90 2025-03-27 13:38:17,608 - DEBUG - Response for create_network : {'network': {'id': '8fb6e6a1-5d14-4a32-a3a2-9f5c149ca0fd', 'name': 'ctest-vn-13398759', 'tenant_id': '6827610e43a643f5b9ea5222a5f5d882', 'project_id': '6827610e43a643f5b9ea5222a5f5d882', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-69147711', 'ctest-vn-13398759'], 'port_security_enabled': True, 'description': ''}} 2025-03-27 13:38:17,792 - DEBUG - Response for create_subnet : {'subnet': {'id': '11407ee5-d112-44a7-87b3-ab2f2c4b562c', 'name': '', 'tenant_id': '6827610e43a643f5b9ea5222a5f5d882', 'network_id': '8fb6e6a1-5d14-4a32-a3a2-9f5c149ca0fd', 'ip_version': 4, 'cidr': '103.144.130.0/26', 'allocation_pools': [{'start': '103.144.130.2', 'end': '103.144.130.62'}], 'gateway_ip': '103.144.130.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '103.144.130.2', 'tags': [], 'project_id': '6827610e43a643f5b9ea5222a5f5d882'}} 2025-03-27 13:38:17,813 - INFO - Created VN ctest-vn-13398759 2025-03-27 13:38:17,869 - DEBUG - VN ctest-vn-13398759 UUID is 8fb6e6a1-5d14-4a32-a3a2-9f5c149ca0fd 2025-03-27 13:38:18,008 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-69147711:ctest-vn-59740294, 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-69147711:ctest-vn-13398759, 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-03-27 13:38:18,340 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'c43e7a22-a12b-40da-abdf-bfb27d181d90', 'name': 'ctest-vn-59740294', 'tenant_id': '6827610e43a643f5b9ea5222a5f5d882', 'project_id': '6827610e43a643f5b9ea5222a5f5d882', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['7767f6fb-4cbb-43b4-b28c-76801813d90a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-69147711', 'ctest-vn-59740294'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-69147711', 'ctest-policy-allow-all-39275159']], 'subnet_ipam': [{'subnet_cidr': '21.228.66.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-03-27 13:38:18,595 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '8fb6e6a1-5d14-4a32-a3a2-9f5c149ca0fd', 'name': 'ctest-vn-13398759', 'tenant_id': '6827610e43a643f5b9ea5222a5f5d882', 'project_id': '6827610e43a643f5b9ea5222a5f5d882', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['11407ee5-d112-44a7-87b3-ab2f2c4b562c'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-69147711', 'ctest-vn-13398759'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-69147711', 'ctest-policy-allow-all-39275159']], 'subnet_ipam': [{'subnet_cidr': '103.144.130.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-03-27 13:38:18,773 - DEBUG - Requesting: http://10.0.0.55:8082/domains 2025-03-27 13:38:19,120 - DEBUG - Requesting: http://10.0.0.55:8082/domains 2025-03-27 13:38:19,153 - DEBUG - Requesting: http://10.0.0.55:8082/domain/2020a6fd-f2c6-481a-b832-8428f11c5c03 2025-03-27 13:38:19,171 - DEBUG - Requesting: http://10.0.0.55:8082/project/6827610e-43a6-43f5-b9ea-5222a5f5d882 2025-03-27 13:38:19,255 - DEBUG - Requesting: http://10.0.0.55:8082/virtual-network/c43e7a22-a12b-40da-abdf-bfb27d181d90 2025-03-27 13:38:19,270 - DEBUG - Requesting: http://10.0.0.55:8082/virtual-network/c43e7a22-a12b-40da-abdf-bfb27d181d90 2025-03-27 13:38:19,283 - DEBUG - Requesting: http://10.0.0.55:8082/routing-instance/96b5fc4a-3088-4a2e-a7fa-71de6aba8e9c 2025-03-27 13:38:19,292 - DEBUG - Requesting: http://10.0.0.55:8082/routing-instance/96b5fc4a-3088-4a2e-a7fa-71de6aba8e9c 2025-03-27 13:38:19,301 - DEBUG - Requesting: http://10.0.0.55:8082/route-target/252fa472-9bb9-46d7-b64b-0537c9b5b0dd 2025-03-27 13:38:19,310 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-03-27 13:38:19,310 - DEBUG - Requesting: http://10.0.0.55:8082/virtual-network/c43e7a22-a12b-40da-abdf-bfb27d181d90 2025-03-27 13:38:19,321 - DEBUG - Requesting: http://10.0.0.55:8082/routing-instance/96b5fc4a-3088-4a2e-a7fa-71de6aba8e9c 2025-03-27 13:38:19,338 - INFO - Verified VN network id 9 for VN c43e7a22-a12b-40da-abdf-bfb27d181d90 2025-03-27 13:38:19,338 - INFO - Verifications in API Server for VN ctest-vn-59740294 passed 2025-03-27 13:38:19,338 - DEBUG - Requesting: http://10.0.0.55:8082/virtual-network/c43e7a22-a12b-40da-abdf-bfb27d181d90 2025-03-27 13:38:19,350 - DEBUG - Requesting: http://10.0.0.55:8082/routing-instance/96b5fc4a-3088-4a2e-a7fa-71de6aba8e9c 2025-03-27 13:38:19,358 - DEBUG - Requesting: http://10.0.0.55:8082/routing-instance/96b5fc4a-3088-4a2e-a7fa-71de6aba8e9c 2025-03-27 13:38:19,367 - DEBUG - Requesting: http://10.0.0.55:8082/route-target/252fa472-9bb9-46d7-b64b-0537c9b5b0dd 2025-03-27 13:38:19,383 - DEBUG - Control-node 10.0.0.55 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-69147711:ctest-vn-59740294', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-69147711', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14140874169141379290', 'uuid-lslong': '12384828273615969680'}, 'enable': 'true', 'created': '2025-03-27T13:38:16', 'last-modified': '2025-03-27T13:38:18', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.074976'} 2025-03-27 13:38:19,391 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-03-27 13:38:19,391 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-59740294 passed 2025-03-27 13:38:19,391 - DEBUG - ====Verifying policy data for ctest-vn-59740294 in API_Server ====== 2025-03-27 13:38:19,391 - DEBUG - Requesting: http://10.0.0.55:8082/domains 2025-03-27 13:38:19,399 - DEBUG - Requesting: http://10.0.0.55:8082/domain/2020a6fd-f2c6-481a-b832-8428f11c5c03 2025-03-27 13:38:19,415 - DEBUG - Requesting: http://10.0.0.55:8082/project/6827610e-43a6-43f5-b9ea-5222a5f5d882 2025-03-27 13:38:19,499 - DEBUG - Requesting: http://10.0.0.55:8082/virtual-network/c43e7a22-a12b-40da-abdf-bfb27d181d90 2025-03-27 13:38:19,512 - DEBUG - ==>Verifying data for policy with id: ca360d01-5d74-45d2-802f-0907921f7e75, fqn: ['default-domain', 'ctest-TestBasicPolicy-69147711', 'ctest-policy-allow-all-39275159'] 2025-03-27 13:38:19,512 - INFO - VN ctest-vn-59740294 Policy verification: verify_vn_policy_in_api_server, status: True 2025-03-27 13:38:19,512 - DEBUG - Verifying the vn in opserver 2025-03-27 13:38:19,513 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-69147711:ctest-vn-59740294 virtual network link through opserver 10.0.0.55 2025-03-27 13:38:19,513 - DEBUG - Requesting: http://10.0.0.55:8081/analytics/uves/virtual-networks 2025-03-27 13:38:19,858 - DEBUG - Requesting: http://10.0.0.55:8081/analytics/uves/virtual-networks 2025-03-27 13:38:19,926 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-69147711:ctest-vn-59740294', 'href': 'http://10.0.0.55:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-69147711:ctest-vn-59740294?flat'} 2025-03-27 13:38:19,926 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-69147711:ctest-vn-59740294 is found in opserver 2025-03-27 13:38:19,939 - DEBUG - Do not have enough data to verify VN in agent 2025-03-27 13:38:19,944 - DEBUG - VRF ids for VN ctest-vn-59740294: {} 2025-03-27 13:38:19,944 - DEBUG - Requesting: http://10.0.0.55:8082/domains 2025-03-27 13:38:19,951 - DEBUG - Requesting: http://10.0.0.55:8082/domain/2020a6fd-f2c6-481a-b832-8428f11c5c03 2025-03-27 13:38:19,965 - DEBUG - Requesting: http://10.0.0.55:8082/project/6827610e-43a6-43f5-b9ea-5222a5f5d882 2025-03-27 13:38:20,041 - DEBUG - Requesting: http://10.0.0.55:8082/virtual-network/8fb6e6a1-5d14-4a32-a3a2-9f5c149ca0fd 2025-03-27 13:38:20,056 - DEBUG - Requesting: http://10.0.0.55:8082/virtual-network/8fb6e6a1-5d14-4a32-a3a2-9f5c149ca0fd 2025-03-27 13:38:20,072 - DEBUG - Requesting: http://10.0.0.55:8082/routing-instance/d960ee68-379a-4fd0-a2bb-84ebe655a1db 2025-03-27 13:38:20,082 - DEBUG - Requesting: http://10.0.0.55:8082/routing-instance/d960ee68-379a-4fd0-a2bb-84ebe655a1db 2025-03-27 13:38:20,091 - DEBUG - Requesting: http://10.0.0.55:8082/route-target/27a8ddb5-7f52-44f1-bba4-6cd691ff00a8 2025-03-27 13:38:20,100 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-03-27 13:38:20,100 - DEBUG - Requesting: http://10.0.0.55:8082/virtual-network/8fb6e6a1-5d14-4a32-a3a2-9f5c149ca0fd 2025-03-27 13:38:20,112 - DEBUG - Requesting: http://10.0.0.55:8082/routing-instance/d960ee68-379a-4fd0-a2bb-84ebe655a1db 2025-03-27 13:38:20,134 - INFO - Verified VN network id 10 for VN 8fb6e6a1-5d14-4a32-a3a2-9f5c149ca0fd 2025-03-27 13:38:20,134 - INFO - Verifications in API Server for VN ctest-vn-13398759 passed 2025-03-27 13:38:20,134 - DEBUG - Requesting: http://10.0.0.55:8082/virtual-network/8fb6e6a1-5d14-4a32-a3a2-9f5c149ca0fd 2025-03-27 13:38:20,150 - DEBUG - Requesting: http://10.0.0.55:8082/routing-instance/d960ee68-379a-4fd0-a2bb-84ebe655a1db 2025-03-27 13:38:20,162 - DEBUG - Requesting: http://10.0.0.55:8082/routing-instance/d960ee68-379a-4fd0-a2bb-84ebe655a1db 2025-03-27 13:38:20,174 - DEBUG - Requesting: http://10.0.0.55:8082/route-target/27a8ddb5-7f52-44f1-bba4-6cd691ff00a8 2025-03-27 13:38:20,191 - DEBUG - Control-node 10.0.0.55 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-69147711:ctest-vn-13398759', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-69147711', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10355717973910768178', 'uuid-lslong': '11791161992240996605'}, 'enable': 'true', 'created': '2025-03-27T13:38:17', 'last-modified': '2025-03-27T13:38:18', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.624250'} 2025-03-27 13:38:20,199 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-03-27 13:38:20,199 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-13398759 passed 2025-03-27 13:38:20,199 - DEBUG - ====Verifying policy data for ctest-vn-13398759 in API_Server ====== 2025-03-27 13:38:20,199 - DEBUG - Requesting: http://10.0.0.55:8082/domains 2025-03-27 13:38:20,207 - DEBUG - Requesting: http://10.0.0.55:8082/domain/2020a6fd-f2c6-481a-b832-8428f11c5c03 2025-03-27 13:38:20,224 - DEBUG - Requesting: http://10.0.0.55:8082/project/6827610e-43a6-43f5-b9ea-5222a5f5d882 2025-03-27 13:38:20,302 - DEBUG - Requesting: http://10.0.0.55:8082/virtual-network/8fb6e6a1-5d14-4a32-a3a2-9f5c149ca0fd 2025-03-27 13:38:20,317 - DEBUG - ==>Verifying data for policy with id: ca360d01-5d74-45d2-802f-0907921f7e75, fqn: ['default-domain', 'ctest-TestBasicPolicy-69147711', 'ctest-policy-allow-all-39275159'] 2025-03-27 13:38:20,317 - INFO - VN ctest-vn-13398759 Policy verification: verify_vn_policy_in_api_server, status: True 2025-03-27 13:38:20,317 - DEBUG - Verifying the vn in opserver 2025-03-27 13:38:20,317 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-69147711:ctest-vn-13398759 virtual network link through opserver 10.0.0.55 2025-03-27 13:38:20,317 - DEBUG - Requesting: http://10.0.0.55:8081/analytics/uves/virtual-networks 2025-03-27 13:38:20,331 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-69147711:ctest-vn-13398759', 'href': 'http://10.0.0.55:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-69147711:ctest-vn-13398759?flat'} 2025-03-27 13:38:20,331 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-69147711:ctest-vn-13398759 is found in opserver 2025-03-27 13:38:20,345 - DEBUG - Do not have enough data to verify VN in agent 2025-03-27 13:38:20,350 - DEBUG - VRF ids for VN ctest-vn-13398759: {} 2025-03-27 13:38:20,417 - DEBUG - Services list from nova: [, , ] 2025-03-27 13:38:21,591 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2971-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2971-1) 2025-03-27 13:38:23,072 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2971-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2971-1) 2025-03-27 13:38:23,072 - INFO - Waiting for VM ctest-TestBasicPolicy-69147711-10551379 to be up.. 2025-03-27 13:38:23,161 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-03-27 13:38:28,264 - DEBUG - VM is in ACTIVE state now 2025-03-27 13:38:28,264 - INFO - VM name : ctest-TestBasicPolicy-69147711-10551379 2025-03-27 13:38:28,358 - DEBUG - VM ctest-TestBasicPolicy-69147711-10551379 ID is cfed5286-62e7-4e21-b44d-20822e6eee79 2025-03-27 13:38:28,384 - DEBUG - VM ctest-TestBasicPolicy-69147711-10551379 launched on Node cn-jenkins-deploy-platform-ansible-os-2971-1 2025-03-27 13:38:28,471 - DEBUG - Requesting: http://10.0.0.55:8082/virtual-machine/cfed5286-62e7-4e21-b44d-20822e6eee79 2025-03-27 13:38:28,481 - DEBUG - Requesting: http://10.0.0.55:8082/virtual-machine-interface/fb174758-f4d5-4bcf-bf87-dcf9ca6263e8 2025-03-27 13:38:31,738 - 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') 2025-03-27 13:38:31,738 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-69147711-10551379 failed! 2025-03-27 13:38:31,801 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-69147711:ctest-vn-59740294 is 21.228.66.1 and allocation pool is NOT set 2025-03-27 13:38:33,868 - 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=7.68 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=1.92 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 = 1.924/4.803/7.683/2.879 ms') 2025-03-27 13:38:33,868 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-69147711-10551379 passed 2025-03-27 13:38:34,021 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-27 13:38:34,021 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-69147711-10551379, IP 21.228.66.3, Port 22 2025-03-27 13:38:34,181 - DEBUG - VM ctest-TestBasicPolicy-69147711-10551379 is ready for SSH connections 2025-03-27 13:38:34,181 - INFO - Waiting for VM ctest-TestBasicPolicy-69147711-70749432 to be up.. 2025-03-27 13:38:34,289 - DEBUG - VM is in ACTIVE state now 2025-03-27 13:38:34,289 - INFO - VM name : ctest-TestBasicPolicy-69147711-70749432 2025-03-27 13:38:34,380 - DEBUG - VM ctest-TestBasicPolicy-69147711-70749432 ID is 28437a8d-eb29-4686-abce-82e65c187e67 2025-03-27 13:38:34,380 - DEBUG - VM ctest-TestBasicPolicy-69147711-70749432 launched on Node cn-jenkins-deploy-platform-ansible-os-2971-1 2025-03-27 13:38:34,473 - DEBUG - Requesting: http://10.0.0.55:8082/virtual-machine/28437a8d-eb29-4686-abce-82e65c187e67 2025-03-27 13:38:34,483 - DEBUG - Requesting: http://10.0.0.55:8082/virtual-machine-interface/e88bf578-da58-4862-940c-45c458bb3f03 2025-03-27 13:38:35,735 - 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.77 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=3.40 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 = 3.395/3.580/3.765/0.185 ms') 2025-03-27 13:38:35,735 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-69147711-70749432 passed 2025-03-27 13:38:35,893 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-27 13:38:35,894 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-69147711-70749432, IP 103.144.130.3, Port 22 2025-03-27 13:38:35,960 - DEBUG - Error on ssh to cirros@169.254.0.4:22, result: /bin/bash: connect: Connection refused /bin/bash: line 1: /dev/tcp/169.254.0.4/22: Connection refused {'failed': True, 'command': '(echo > /dev/tcp/169.254.0.4/22)', 'real_command': '/bin/bash -l -c "(echo > /dev/tcp/169.254.0.4/22)"', 'return_code': 1, 'succeeded': False, 'stderr': ''} 2025-03-27 13:38:36,051 - DEBUG - VM ctest-TestBasicPolicy-69147711-70749432 is NOT ready for SSH connections, VM status: ACTIVE 2025-03-27 13:38:41,052 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-27 13:38:41,052 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-69147711-70749432, IP 103.144.130.3, Port 22 2025-03-27 13:38:41,209 - DEBUG - VM ctest-TestBasicPolicy-69147711-70749432 is ready for SSH connections 2025-03-27 13:38:41,209 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-27 13:38:41,209 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 103.144.130.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.55, gateway password: c0ntrail123 2025-03-27 13:38:41,209 - DEBUG - ping -s 56 -c 3 -W 1 103.144.130.3 2025-03-27 13:38:44,959 - DEBUG - PING 103.144.130.3 (103.144.130.3): 56 data bytes 64 bytes from 103.144.130.3: seq=0 ttl=63 time=3.675 ms 64 bytes from 103.144.130.3: seq=1 ttl=63 time=1.012 ms 64 bytes from 103.144.130.3: seq=2 ttl=63 time=0.916 ms --- 103.144.130.3 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.916/1.867/3.675 ms 2025-03-27 13:38:44,959 - INFO - Ping to IP 103.144.130.3 from VM ctest-TestBasicPolicy-69147711-10551379 passed 2025-03-27 13:38:45,145 - DEBUG - Policy Update Response {"network-policy": {"uuid": "ca360d01-5d74-45d2-802f-0907921f7e75", "href": "http://10.0.0.55:8082/network-policy/ca360d01-5d74-45d2-802f-0907921f7e75"}} 2025-03-27 13:38:45,145 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-27 13:38:45,146 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 103.144.130.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.55, gateway password: c0ntrail123 2025-03-27 13:38:45,146 - DEBUG - ping -s 56 -c 3 -W 1 103.144.130.3 2025-03-27 13:38:48,365 - DEBUG - PING 103.144.130.3 (103.144.130.3): 56 data bytes 64 bytes from 103.144.130.3: seq=0 ttl=63 time=1.694 ms --- 103.144.130.3 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.694/1.694/1.694 ms 2025-03-27 13:38:48,365 - WARNING - Ping to IP 103.144.130.3 from VM ctest-TestBasicPolicy-69147711-10551379 failed 2025-03-27 13:38:48,365 - INFO - Deleting VM ctest-TestBasicPolicy-69147711-70749432 2025-03-27 13:38:48,437 - INFO - Deleting VM ctest-TestBasicPolicy-69147711-10551379 2025-03-27 13:38:48,873 - INFO - Deleted policy ctest-policy-allow-all-39275159 2025-03-27 13:38:48,873 - INFO - Deleting VN ctest-vn-13398759 2025-03-27 13:38:48,918 - DEBUG - VN 8fb6e6a1-5d14-4a32-a3a2-9f5c149ca0fd still in use: Unable to complete operation on network 8fb6e6a1-5d14-4a32-a3a2-9f5c149ca0fd. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-b81a1673-5872-423e-8f3f-91723f32845e'] 2025-03-27 13:38:48,918 - WARNING - Deleting VN ctest-vn-13398759 failed..Will retry 2025-03-27 13:38:51,034 - DEBUG - Response for deleting network () 2025-03-27 13:38:51,034 - DEBUG - Requesting: http://10.0.0.55:8082/routing-instance/d960ee68-379a-4fd0-a2bb-84ebe655a1db 2025-03-27 13:38:51,045 - DEBUG - Response Code: 404 2025-03-27 13:38:51,045 - DEBUG - Requesting: http://10.0.0.55:8082/domains 2025-03-27 13:38:51,054 - DEBUG - Requesting: http://10.0.0.55:8082/domain/2020a6fd-f2c6-481a-b832-8428f11c5c03 2025-03-27 13:38:51,113 - DEBUG - Requesting: http://10.0.0.55:8082/project/6827610e-43a6-43f5-b9ea-5222a5f5d882 2025-03-27 13:38:51,199 - INFO - Validated that VN ctest-vn-13398759 is not found in API Server 2025-03-27 13:38:51,213 - DEBUG - VN ctest-vn-13398759 is not present in Agent 10.0.0.55 2025-03-27 13:38:51,214 - INFO - Validated that VN ctest-vn-13398759 is not in any agent 2025-03-27 13:38:51,232 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-13398759 info 2025-03-27 13:38:51,233 - INFO - Deleting VN ctest-vn-59740294 2025-03-27 13:38:51,343 - DEBUG - Response for deleting network () 2025-03-27 13:38:51,343 - DEBUG - Requesting: http://10.0.0.55:8082/routing-instance/96b5fc4a-3088-4a2e-a7fa-71de6aba8e9c 2025-03-27 13:38:51,351 - DEBUG - Response Code: 404 2025-03-27 13:38:51,351 - DEBUG - Requesting: http://10.0.0.55:8082/domains 2025-03-27 13:38:51,362 - DEBUG - Requesting: http://10.0.0.55:8082/domain/2020a6fd-f2c6-481a-b832-8428f11c5c03 2025-03-27 13:38:51,419 - DEBUG - Requesting: http://10.0.0.55:8082/project/6827610e-43a6-43f5-b9ea-5222a5f5d882 2025-03-27 13:38:51,498 - INFO - Validated that VN ctest-vn-59740294 is not found in API Server 2025-03-27 13:38:51,512 - DEBUG - VN ctest-vn-59740294 is not present in Agent 10.0.0.55 2025-03-27 13:38:51,512 - INFO - Validated that VN ctest-vn-59740294 is not in any agent 2025-03-27 13:38:51,533 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-59740294 info 2025-03-27 13:38:51,789 - DEBUG - No XMPP flaps were noticed during the test 2025-03-27 13:38:51,789 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:35] 2025-03-27 13:38:51,789 - INFO - -------------------------------------------------------------------------------- 2025-03-27 13:38:52,516 - INFO - Deleted project: ctest-TestBasicPolicy-69147711, ID : 6827610e-43a6-43f5-b9ea-5222a5f5d882