2025-07-28 02:21:11,383 - INFO - Domain Default found not creating 2025-07-28 02:21:11,531 - INFO - Project ctest-TestBasicPolicy-42025306 not found, creating it 2025-07-28 02:21:12,011 - INFO - Created Project:ctest-TestBasicPolicy-42025306, ID : 9585b837-5810-424d-80d5-cc7a28cec202 2025-07-28 02:21:13,453 - INFO - ================================================================================ 2025-07-28 02:21:13,453 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-07-28 02:21:13,453 - 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-07-28 02:21:13,709 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with 2025-07-28 02:21:13,709 - INFO - Initial checks done. Running the testcase now 2025-07-28 02:21:13,709 - INFO - 2025-07-28 02:21:14,271 - DEBUG - Response for create_network : {'network': {'id': 'ca049ff1-5595-48fb-8411-847cdcab36c5', 'name': 'ctest-vn-81332773', 'tenant_id': '9585b8375810424d80d5cc7a28cec202', 'project_id': '9585b8375810424d80d5cc7a28cec202', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-42025306', 'ctest-vn-81332773'], 'port_security_enabled': True, 'description': ''}} 2025-07-28 02:21:14,490 - DEBUG - Response for create_subnet : {'subnet': {'id': '00045165-fe0d-4641-ad90-95fdb328a92a', 'name': '', 'tenant_id': '9585b8375810424d80d5cc7a28cec202', 'network_id': 'ca049ff1-5595-48fb-8411-847cdcab36c5', 'ip_version': 4, 'cidr': '137.190.157.192/26', 'allocation_pools': [{'start': '137.190.157.194', 'end': '137.190.157.254'}], 'gateway_ip': '137.190.157.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '137.190.157.194', 'tags': [], 'project_id': '9585b8375810424d80d5cc7a28cec202'}} 2025-07-28 02:21:14,510 - INFO - Created VN ctest-vn-81332773 2025-07-28 02:21:14,563 - DEBUG - VN ctest-vn-81332773 UUID is ca049ff1-5595-48fb-8411-847cdcab36c5 2025-07-28 02:21:14,899 - DEBUG - Response for create_network : {'network': {'id': 'f7f34377-1e97-4672-8f91-4dd9b8bbb393', 'name': 'ctest-vn-33699043', 'tenant_id': '9585b8375810424d80d5cc7a28cec202', 'project_id': '9585b8375810424d80d5cc7a28cec202', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-42025306', 'ctest-vn-33699043'], 'port_security_enabled': True, 'description': ''}} 2025-07-28 02:21:15,168 - DEBUG - Response for create_subnet : {'subnet': {'id': '1d443ae4-0a29-400d-b148-5bbd846b7ba5', 'name': '', 'tenant_id': '9585b8375810424d80d5cc7a28cec202', 'network_id': 'f7f34377-1e97-4672-8f91-4dd9b8bbb393', 'ip_version': 4, 'cidr': '150.251.98.64/26', 'allocation_pools': [{'start': '150.251.98.66', 'end': '150.251.98.126'}], 'gateway_ip': '150.251.98.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '150.251.98.66', 'tags': [], 'project_id': '9585b8375810424d80d5cc7a28cec202'}} 2025-07-28 02:21:15,190 - INFO - Created VN ctest-vn-33699043 2025-07-28 02:21:15,243 - DEBUG - VN ctest-vn-33699043 UUID is f7f34377-1e97-4672-8f91-4dd9b8bbb393 2025-07-28 02:21:15,367 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-42025306:ctest-vn-81332773, 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-42025306:ctest-vn-33699043, 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-07-28 02:21:15,673 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ca049ff1-5595-48fb-8411-847cdcab36c5', 'name': 'ctest-vn-81332773', 'tenant_id': '9585b8375810424d80d5cc7a28cec202', 'project_id': '9585b8375810424d80d5cc7a28cec202', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['00045165-fe0d-4641-ad90-95fdb328a92a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-42025306', 'ctest-vn-81332773'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-42025306', 'ctest-policy-allow-all-35590710']], 'subnet_ipam': [{'subnet_cidr': '137.190.157.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-07-28 02:21:15,974 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f7f34377-1e97-4672-8f91-4dd9b8bbb393', 'name': 'ctest-vn-33699043', 'tenant_id': '9585b8375810424d80d5cc7a28cec202', 'project_id': '9585b8375810424d80d5cc7a28cec202', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['1d443ae4-0a29-400d-b148-5bbd846b7ba5'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-42025306', 'ctest-vn-33699043'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-42025306', 'ctest-policy-allow-all-35590710']], 'subnet_ipam': [{'subnet_cidr': '150.251.98.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-07-28 02:21:16,119 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-07-28 02:21:16,416 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-07-28 02:21:16,446 - DEBUG - Requesting: http://10.0.0.254:8082/domain/d65d6077-4c0e-4075-989e-ec1cda0364c0 2025-07-28 02:21:16,463 - DEBUG - Requesting: http://10.0.0.254:8082/project/9585b837-5810-424d-80d5-cc7a28cec202 2025-07-28 02:21:16,539 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/ca049ff1-5595-48fb-8411-847cdcab36c5 2025-07-28 02:21:16,555 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/ca049ff1-5595-48fb-8411-847cdcab36c5 2025-07-28 02:21:16,566 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/77deb184-326b-480a-88a1-cd81f5622306 2025-07-28 02:21:16,576 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/77deb184-326b-480a-88a1-cd81f5622306 2025-07-28 02:21:16,583 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/2b496e21-a35d-4176-b062-c906f6416b86 2025-07-28 02:21:16,590 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-07-28 02:21:16,590 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/ca049ff1-5595-48fb-8411-847cdcab36c5 2025-07-28 02:21:16,600 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/77deb184-326b-480a-88a1-cd81f5622306 2025-07-28 02:21:16,616 - INFO - Verified VN network id 11 for VN ca049ff1-5595-48fb-8411-847cdcab36c5 2025-07-28 02:21:16,616 - INFO - Verifications in API Server for VN ctest-vn-81332773 passed 2025-07-28 02:21:16,616 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/ca049ff1-5595-48fb-8411-847cdcab36c5 2025-07-28 02:21:16,626 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/77deb184-326b-480a-88a1-cd81f5622306 2025-07-28 02:21:16,634 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/77deb184-326b-480a-88a1-cd81f5622306 2025-07-28 02:21:16,642 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/2b496e21-a35d-4176-b062-c906f6416b86 2025-07-28 02:21:16,660 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-42025306:ctest-vn-81332773', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-42025306', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14556935754440067323', 'uuid-lslong': '9516533159423588037'}, 'enable': 'true', 'created': '2025-07-28T02:21:14', 'last-modified': '2025-07-28T02:21:15', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.011288'} 2025-07-28 02:21:16,667 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-07-28 02:21:16,668 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-81332773 passed 2025-07-28 02:21:16,668 - DEBUG - ====Verifying policy data for ctest-vn-81332773 in API_Server ====== 2025-07-28 02:21:16,668 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-07-28 02:21:16,674 - DEBUG - Requesting: http://10.0.0.254:8082/domain/d65d6077-4c0e-4075-989e-ec1cda0364c0 2025-07-28 02:21:16,686 - DEBUG - Requesting: http://10.0.0.254:8082/project/9585b837-5810-424d-80d5-cc7a28cec202 2025-07-28 02:21:16,755 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/ca049ff1-5595-48fb-8411-847cdcab36c5 2025-07-28 02:21:16,765 - DEBUG - ==>Verifying data for policy with id: b6e586e1-f1b9-470e-b99d-541004173016, fqn: ['default-domain', 'ctest-TestBasicPolicy-42025306', 'ctest-policy-allow-all-35590710'] 2025-07-28 02:21:16,765 - INFO - VN ctest-vn-81332773 Policy verification: verify_vn_policy_in_api_server, status: True 2025-07-28 02:21:16,765 - DEBUG - Verifying the vn in opserver 2025-07-28 02:21:16,765 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-42025306:ctest-vn-81332773 virtual network link through opserver 10.0.0.254 2025-07-28 02:21:16,765 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-07-28 02:21:17,059 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-07-28 02:21:17,114 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-42025306:ctest-vn-81332773', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-42025306:ctest-vn-81332773?flat'} 2025-07-28 02:21:17,115 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-42025306:ctest-vn-81332773 is found in opserver 2025-07-28 02:21:17,126 - DEBUG - Do not have enough data to verify VN in agent 2025-07-28 02:21:17,131 - DEBUG - VRF ids for VN ctest-vn-81332773: {} 2025-07-28 02:21:17,131 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-07-28 02:21:17,137 - DEBUG - Requesting: http://10.0.0.254:8082/domain/d65d6077-4c0e-4075-989e-ec1cda0364c0 2025-07-28 02:21:17,149 - DEBUG - Requesting: http://10.0.0.254:8082/project/9585b837-5810-424d-80d5-cc7a28cec202 2025-07-28 02:21:17,223 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/f7f34377-1e97-4672-8f91-4dd9b8bbb393 2025-07-28 02:21:17,236 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/f7f34377-1e97-4672-8f91-4dd9b8bbb393 2025-07-28 02:21:17,246 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/e41eebbc-aa6c-44de-b113-101295c4486c 2025-07-28 02:21:17,255 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/e41eebbc-aa6c-44de-b113-101295c4486c 2025-07-28 02:21:17,264 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/3c1400b1-1c05-466e-843d-504efc963049 2025-07-28 02:21:17,271 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-07-28 02:21:17,271 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/f7f34377-1e97-4672-8f91-4dd9b8bbb393 2025-07-28 02:21:17,280 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/e41eebbc-aa6c-44de-b113-101295c4486c 2025-07-28 02:21:17,294 - INFO - Verified VN network id 12 for VN f7f34377-1e97-4672-8f91-4dd9b8bbb393 2025-07-28 02:21:17,294 - INFO - Verifications in API Server for VN ctest-vn-33699043 passed 2025-07-28 02:21:17,294 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/f7f34377-1e97-4672-8f91-4dd9b8bbb393 2025-07-28 02:21:17,307 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/e41eebbc-aa6c-44de-b113-101295c4486c 2025-07-28 02:21:17,315 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/e41eebbc-aa6c-44de-b113-101295c4486c 2025-07-28 02:21:17,325 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/3c1400b1-1c05-466e-843d-504efc963049 2025-07-28 02:21:17,338 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-42025306:ctest-vn-33699043', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-42025306', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17866698325602289266', 'uuid-lslong': '10345135416549290899'}, 'enable': 'true', 'created': '2025-07-28T02:21:14', 'last-modified': '2025-07-28T02:21:15', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.435564'} 2025-07-28 02:21:17,345 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-07-28 02:21:17,345 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-33699043 passed 2025-07-28 02:21:17,346 - DEBUG - ====Verifying policy data for ctest-vn-33699043 in API_Server ====== 2025-07-28 02:21:17,346 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-07-28 02:21:17,352 - DEBUG - Requesting: http://10.0.0.254:8082/domain/d65d6077-4c0e-4075-989e-ec1cda0364c0 2025-07-28 02:21:17,364 - DEBUG - Requesting: http://10.0.0.254:8082/project/9585b837-5810-424d-80d5-cc7a28cec202 2025-07-28 02:21:17,440 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/f7f34377-1e97-4672-8f91-4dd9b8bbb393 2025-07-28 02:21:17,451 - DEBUG - ==>Verifying data for policy with id: b6e586e1-f1b9-470e-b99d-541004173016, fqn: ['default-domain', 'ctest-TestBasicPolicy-42025306', 'ctest-policy-allow-all-35590710'] 2025-07-28 02:21:17,451 - INFO - VN ctest-vn-33699043 Policy verification: verify_vn_policy_in_api_server, status: True 2025-07-28 02:21:17,451 - DEBUG - Verifying the vn in opserver 2025-07-28 02:21:17,451 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-42025306:ctest-vn-33699043 virtual network link through opserver 10.0.0.254 2025-07-28 02:21:17,451 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-07-28 02:21:17,461 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-42025306:ctest-vn-33699043', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-42025306:ctest-vn-33699043?flat'} 2025-07-28 02:21:17,461 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-42025306:ctest-vn-33699043 is found in opserver 2025-07-28 02:21:17,472 - DEBUG - Do not have enough data to verify VN in agent 2025-07-28 02:21:17,477 - DEBUG - VRF ids for VN ctest-vn-33699043: {} 2025-07-28 02:21:17,538 - DEBUG - Services list from nova: [, , ] 2025-07-28 02:21:18,534 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3716-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3716-1) 2025-07-28 02:21:19,691 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3716-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3716-1) 2025-07-28 02:21:19,692 - INFO - Waiting for VM ctest-TestBasicPolicy-42025306-58727728 to be up.. 2025-07-28 02:21:19,764 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-07-28 02:21:24,844 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-07-28 02:21:29,925 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-07-28 02:21:35,000 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-07-28 02:21:40,096 - DEBUG - VM is in ACTIVE state now 2025-07-28 02:21:40,096 - INFO - VM name : ctest-TestBasicPolicy-42025306-58727728 2025-07-28 02:21:40,187 - DEBUG - VM ctest-TestBasicPolicy-42025306-58727728 ID is d2721d7e-c87a-4bb8-b739-ca39d4f84b38 2025-07-28 02:21:40,208 - DEBUG - VM ctest-TestBasicPolicy-42025306-58727728 launched on Node cn-jenkins-deploy-platform-ansible-os-3716-1 2025-07-28 02:21:40,302 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine/d2721d7e-c87a-4bb8-b739-ca39d4f84b38 2025-07-28 02:21:40,312 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine-interface/42b12914-0f3c-486e-ad5e-27e9b8e1d2ae 2025-07-28 02:21:43,537 - DEBUG - (True, 'PING 169.254.0.3 (169.254.0.3) 56(84) bytes of data.\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 0 received, 100% packet loss, time 1031ms') 2025-07-28 02:21:43,537 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-42025306-58727728 failed! 2025-07-28 02:21:43,591 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-42025306:ctest-vn-81332773 is 137.190.157.193 and allocation pool is NOT set 2025-07-28 02:21:45,660 - 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.9 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=3.53 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 = 3.533/7.238/10.944/3.705 ms') 2025-07-28 02:21:45,660 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-42025306-58727728 passed 2025-07-28 02:21:45,811 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-07-28 02:21:45,811 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-42025306-58727728, IP 137.190.157.195, Port 22 2025-07-28 02:21:45,977 - DEBUG - VM ctest-TestBasicPolicy-42025306-58727728 is ready for SSH connections 2025-07-28 02:21:45,977 - INFO - Waiting for VM ctest-TestBasicPolicy-42025306-99688324 to be up.. 2025-07-28 02:21:46,059 - DEBUG - VM is in ACTIVE state now 2025-07-28 02:21:46,059 - INFO - VM name : ctest-TestBasicPolicy-42025306-99688324 2025-07-28 02:21:46,131 - DEBUG - VM ctest-TestBasicPolicy-42025306-99688324 ID is 58240b9a-f809-4dc5-a2d9-c77bc6a2978e 2025-07-28 02:21:46,132 - DEBUG - VM ctest-TestBasicPolicy-42025306-99688324 launched on Node cn-jenkins-deploy-platform-ansible-os-3716-1 2025-07-28 02:21:46,207 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine/58240b9a-f809-4dc5-a2d9-c77bc6a2978e 2025-07-28 02:21:46,216 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine-interface/fda31645-7aa0-4f81-bf27-62c5784e5330 2025-07-28 02:21:47,462 - 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=4.78 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=1.09 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 = 1.085/2.934/4.784/1.849 ms') 2025-07-28 02:21:47,462 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-42025306-99688324 passed 2025-07-28 02:21:47,627 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-07-28 02:21:47,627 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-42025306-99688324, IP 150.251.98.67, Port 22 2025-07-28 02:21:47,683 - 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-07-28 02:21:47,775 - DEBUG - VM ctest-TestBasicPolicy-42025306-99688324 is NOT ready for SSH connections, VM status: ACTIVE 2025-07-28 02:21:52,776 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-07-28 02:21:52,776 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-42025306-99688324, IP 150.251.98.67, Port 22 2025-07-28 02:21:52,939 - DEBUG - VM ctest-TestBasicPolicy-42025306-99688324 is ready for SSH connections 2025-07-28 02:21:52,939 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-07-28 02:21:52,939 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 150.251.98.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.254, gateway password: c0ntrail123 2025-07-28 02:21:52,939 - DEBUG - ping -s 56 -c 3 -W 1 150.251.98.67 2025-07-28 02:21:57,101 - DEBUG - PING 150.251.98.67 (150.251.98.67): 56 data bytes 64 bytes from 150.251.98.67: seq=0 ttl=63 time=5.523 ms 64 bytes from 150.251.98.67: seq=1 ttl=63 time=1.041 ms 64 bytes from 150.251.98.67: seq=2 ttl=63 time=1.083 ms --- 150.251.98.67 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.041/2.549/5.523 ms 2025-07-28 02:21:57,102 - INFO - Ping to IP 150.251.98.67 from VM ctest-TestBasicPolicy-42025306-58727728 passed 2025-07-28 02:21:57,287 - DEBUG - Policy Update Response {"network-policy": {"uuid": "b6e586e1-f1b9-470e-b99d-541004173016", "href": "http://10.0.0.254:8082/network-policy/b6e586e1-f1b9-470e-b99d-541004173016"}} 2025-07-28 02:21:57,287 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-07-28 02:21:57,287 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 150.251.98.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.254, gateway password: c0ntrail123 2025-07-28 02:21:57,288 - DEBUG - ping -s 56 -c 3 -W 1 150.251.98.67 2025-07-28 02:22:00,493 - DEBUG - PING 150.251.98.67 (150.251.98.67): 56 data bytes --- 150.251.98.67 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2025-07-28 02:22:00,494 - WARNING - Ping to IP 150.251.98.67 from VM ctest-TestBasicPolicy-42025306-58727728 failed 2025-07-28 02:22:00,494 - INFO - Deleting VM ctest-TestBasicPolicy-42025306-99688324 2025-07-28 02:22:00,580 - INFO - Deleting VM ctest-TestBasicPolicy-42025306-58727728 2025-07-28 02:22:01,250 - INFO - Deleted policy ctest-policy-allow-all-35590710 2025-07-28 02:22:01,251 - INFO - Deleting VN ctest-vn-33699043 2025-07-28 02:22:01,297 - DEBUG - VN f7f34377-1e97-4672-8f91-4dd9b8bbb393 still in use: Unable to complete operation on network f7f34377-1e97-4672-8f91-4dd9b8bbb393. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-f367d9c3-2607-4c94-94ce-93024c140ab1'] 2025-07-28 02:22:01,297 - WARNING - Deleting VN ctest-vn-33699043 failed..Will retry 2025-07-28 02:22:03,424 - DEBUG - Response for deleting network () 2025-07-28 02:22:03,424 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/e41eebbc-aa6c-44de-b113-101295c4486c 2025-07-28 02:22:03,430 - DEBUG - Response Code: 404 2025-07-28 02:22:03,430 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-07-28 02:22:03,440 - DEBUG - Requesting: http://10.0.0.254:8082/domain/d65d6077-4c0e-4075-989e-ec1cda0364c0 2025-07-28 02:22:03,494 - DEBUG - Requesting: http://10.0.0.254:8082/project/9585b837-5810-424d-80d5-cc7a28cec202 2025-07-28 02:22:03,578 - INFO - Validated that VN ctest-vn-33699043 is not found in API Server 2025-07-28 02:22:03,591 - DEBUG - VN ctest-vn-33699043 is not present in Agent 10.0.0.254 2025-07-28 02:22:03,591 - INFO - Validated that VN ctest-vn-33699043 is not in any agent 2025-07-28 02:22:03,609 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-33699043 info 2025-07-28 02:22:03,609 - INFO - Deleting VN ctest-vn-81332773 2025-07-28 02:22:03,736 - DEBUG - Response for deleting network () 2025-07-28 02:22:03,737 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/77deb184-326b-480a-88a1-cd81f5622306 2025-07-28 02:22:03,749 - DEBUG - Response Code: 404 2025-07-28 02:22:03,750 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-07-28 02:22:03,769 - DEBUG - Requesting: http://10.0.0.254:8082/domain/d65d6077-4c0e-4075-989e-ec1cda0364c0 2025-07-28 02:22:03,786 - DEBUG - Requesting: http://10.0.0.254:8082/project/9585b837-5810-424d-80d5-cc7a28cec202 2025-07-28 02:22:03,862 - INFO - Validated that VN ctest-vn-81332773 is not found in API Server 2025-07-28 02:22:03,876 - DEBUG - VN ctest-vn-81332773 is not present in Agent 10.0.0.254 2025-07-28 02:22:03,876 - INFO - Validated that VN ctest-vn-81332773 is not in any agent 2025-07-28 02:22:03,896 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-81332773 info 2025-07-28 02:22:04,161 - DEBUG - No XMPP flaps were noticed during the test 2025-07-28 02:22:04,161 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:51] 2025-07-28 02:22:04,161 - INFO - -------------------------------------------------------------------------------- 2025-07-28 02:22:04,897 - INFO - Deleted project: ctest-TestBasicPolicy-42025306, ID : 9585b837-5810-424d-80d5-cc7a28cec202