2025-11-13 15:29:38,181 - INFO - Domain Default found not creating 2025-11-13 15:29:38,315 - INFO - Project ctest-TestBasicPolicy-84113380 not found, creating it 2025-11-13 15:29:38,742 - INFO - Created Project:ctest-TestBasicPolicy-84113380, ID : 7d9d0faf-4434-4785-9a5c-dd14230c3938 2025-11-13 15:29:40,171 - INFO - ================================================================================ 2025-11-13 15:29:40,171 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-11-13 15:29:40,171 - 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-11-13 15:29:40,423 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2025-11-13 15:29:40,423 - INFO - Initial checks done. Running the testcase now 2025-11-13 15:29:40,423 - INFO - 2025-11-13 15:29:40,948 - DEBUG - Response for create_network : {'network': {'id': 'c41cf710-ccd6-4a6a-801a-75a3dec5a581', 'name': 'ctest-vn-75273832', 'tenant_id': '7d9d0faf443447859a5cdd14230c3938', 'project_id': '7d9d0faf443447859a5cdd14230c3938', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-84113380', 'ctest-vn-75273832'], 'port_security_enabled': True, 'description': ''}} 2025-11-13 15:29:41,095 - DEBUG - Response for create_subnet : {'subnet': {'id': '3d2df9fb-db39-4410-bf9e-0f97738e2317', 'name': '', 'tenant_id': '7d9d0faf443447859a5cdd14230c3938', 'network_id': 'c41cf710-ccd6-4a6a-801a-75a3dec5a581', 'ip_version': 4, 'cidr': '165.228.49.192/26', 'allocation_pools': [{'start': '165.228.49.194', 'end': '165.228.49.254'}], 'gateway_ip': '165.228.49.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '165.228.49.194', 'tags': [], 'project_id': '7d9d0faf443447859a5cdd14230c3938'}} 2025-11-13 15:29:41,109 - INFO - Created VN ctest-vn-75273832 2025-11-13 15:29:41,161 - DEBUG - VN ctest-vn-75273832 UUID is c41cf710-ccd6-4a6a-801a-75a3dec5a581 2025-11-13 15:29:41,461 - DEBUG - Response for create_network : {'network': {'id': '3730b99e-b939-4512-aca6-6e51b11a8faf', 'name': 'ctest-vn-61222963', 'tenant_id': '7d9d0faf443447859a5cdd14230c3938', 'project_id': '7d9d0faf443447859a5cdd14230c3938', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-84113380', 'ctest-vn-61222963'], 'port_security_enabled': True, 'description': ''}} 2025-11-13 15:29:41,639 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ccb1adbf-62dc-4d43-86c9-66c031e9e2ab', 'name': '', 'tenant_id': '7d9d0faf443447859a5cdd14230c3938', 'network_id': '3730b99e-b939-4512-aca6-6e51b11a8faf', 'ip_version': 4, 'cidr': '16.62.227.192/26', 'allocation_pools': [{'start': '16.62.227.194', 'end': '16.62.227.254'}], 'gateway_ip': '16.62.227.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '16.62.227.194', 'tags': [], 'project_id': '7d9d0faf443447859a5cdd14230c3938'}} 2025-11-13 15:29:41,652 - INFO - Created VN ctest-vn-61222963 2025-11-13 15:29:41,702 - DEBUG - VN ctest-vn-61222963 UUID is 3730b99e-b939-4512-aca6-6e51b11a8faf 2025-11-13 15:29:41,842 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-84113380:ctest-vn-75273832, 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-84113380:ctest-vn-61222963, 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-11-13 15:29:42,127 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'c41cf710-ccd6-4a6a-801a-75a3dec5a581', 'name': 'ctest-vn-75273832', 'tenant_id': '7d9d0faf443447859a5cdd14230c3938', 'project_id': '7d9d0faf443447859a5cdd14230c3938', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['3d2df9fb-db39-4410-bf9e-0f97738e2317'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-84113380', 'ctest-vn-75273832'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-84113380', 'ctest-policy-allow-all-76984670']], 'subnet_ipam': [{'subnet_cidr': '165.228.49.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-11-13 15:29:42,385 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '3730b99e-b939-4512-aca6-6e51b11a8faf', 'name': 'ctest-vn-61222963', 'tenant_id': '7d9d0faf443447859a5cdd14230c3938', 'project_id': '7d9d0faf443447859a5cdd14230c3938', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['ccb1adbf-62dc-4d43-86c9-66c031e9e2ab'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-84113380', 'ctest-vn-61222963'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-84113380', 'ctest-policy-allow-all-76984670']], 'subnet_ipam': [{'subnet_cidr': '16.62.227.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-11-13 15:29:42,530 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-11-13 15:29:42,854 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-11-13 15:29:42,880 - DEBUG - Requesting: http://10.0.0.38:8082/domain/aa8e3cec-159b-4377-ac93-5461501c0fa5 2025-11-13 15:29:42,890 - DEBUG - Requesting: http://10.0.0.38:8082/project/7d9d0faf-4434-4785-9a5c-dd14230c3938 2025-11-13 15:29:42,963 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/c41cf710-ccd6-4a6a-801a-75a3dec5a581 2025-11-13 15:29:42,974 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/c41cf710-ccd6-4a6a-801a-75a3dec5a581 2025-11-13 15:29:42,986 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/14c9337c-04eb-4b40-8037-79b58d93bfd6 2025-11-13 15:29:42,993 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/14c9337c-04eb-4b40-8037-79b58d93bfd6 2025-11-13 15:29:42,999 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/48608391-3807-4c4b-ab7f-c89eec5dff0b 2025-11-13 15:29:43,004 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-13 15:29:43,004 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/c41cf710-ccd6-4a6a-801a-75a3dec5a581 2025-11-13 15:29:43,012 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/14c9337c-04eb-4b40-8037-79b58d93bfd6 2025-11-13 15:29:43,023 - INFO - Verified VN network id 11 for VN c41cf710-ccd6-4a6a-801a-75a3dec5a581 2025-11-13 15:29:43,023 - INFO - Verifications in API Server for VN ctest-vn-75273832 passed 2025-11-13 15:29:43,023 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/c41cf710-ccd6-4a6a-801a-75a3dec5a581 2025-11-13 15:29:43,030 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/14c9337c-04eb-4b40-8037-79b58d93bfd6 2025-11-13 15:29:43,034 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/14c9337c-04eb-4b40-8037-79b58d93bfd6 2025-11-13 15:29:43,039 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/48608391-3807-4c4b-ab7f-c89eec5dff0b 2025-11-13 15:29:43,048 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-84113380:ctest-vn-75273832', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-84113380', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14131441382309907050', 'uuid-lslong': '9230819732926866817'}, 'enable': 'true', 'created': '2025-11-13T15:29:40', 'last-modified': '2025-11-13T15:29:42', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.940235'} 2025-11-13 15:29:43,053 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-13 15:29:43,053 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-75273832 passed 2025-11-13 15:29:43,053 - DEBUG - ====Verifying policy data for ctest-vn-75273832 in API_Server ====== 2025-11-13 15:29:43,053 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-11-13 15:29:43,058 - DEBUG - Requesting: http://10.0.0.38:8082/domain/aa8e3cec-159b-4377-ac93-5461501c0fa5 2025-11-13 15:29:43,066 - DEBUG - Requesting: http://10.0.0.38:8082/project/7d9d0faf-4434-4785-9a5c-dd14230c3938 2025-11-13 15:29:43,131 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/c41cf710-ccd6-4a6a-801a-75a3dec5a581 2025-11-13 15:29:43,142 - DEBUG - ==>Verifying data for policy with id: d67f317d-f223-47dc-9aa7-78dac849a3dc, fqn: ['default-domain', 'ctest-TestBasicPolicy-84113380', 'ctest-policy-allow-all-76984670'] 2025-11-13 15:29:43,142 - INFO - VN ctest-vn-75273832 Policy verification: verify_vn_policy_in_api_server, status: True 2025-11-13 15:29:43,142 - DEBUG - Verifying the vn in opserver 2025-11-13 15:29:43,142 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-84113380:ctest-vn-75273832 virtual network link through opserver 10.0.0.38 2025-11-13 15:29:43,142 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-11-13 15:29:43,453 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-11-13 15:29:43,501 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-84113380:ctest-vn-75273832', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-84113380:ctest-vn-75273832?flat'} 2025-11-13 15:29:43,501 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-84113380:ctest-vn-75273832 is found in opserver 2025-11-13 15:29:43,509 - DEBUG - Do not have enough data to verify VN in agent 2025-11-13 15:29:43,513 - DEBUG - VRF ids for VN ctest-vn-75273832: {} 2025-11-13 15:29:43,513 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-11-13 15:29:43,517 - DEBUG - Requesting: http://10.0.0.38:8082/domain/aa8e3cec-159b-4377-ac93-5461501c0fa5 2025-11-13 15:29:43,526 - DEBUG - Requesting: http://10.0.0.38:8082/project/7d9d0faf-4434-4785-9a5c-dd14230c3938 2025-11-13 15:29:43,599 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/3730b99e-b939-4512-aca6-6e51b11a8faf 2025-11-13 15:29:43,611 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/3730b99e-b939-4512-aca6-6e51b11a8faf 2025-11-13 15:29:43,619 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/2cff4c0a-93af-438d-948e-a350a2e05ae8 2025-11-13 15:29:43,625 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/2cff4c0a-93af-438d-948e-a350a2e05ae8 2025-11-13 15:29:43,631 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/2e0445f1-2462-4df1-a63e-61ad0a9b479c 2025-11-13 15:29:43,637 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-11-13 15:29:43,637 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/3730b99e-b939-4512-aca6-6e51b11a8faf 2025-11-13 15:29:43,644 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/2cff4c0a-93af-438d-948e-a350a2e05ae8 2025-11-13 15:29:43,655 - INFO - Verified VN network id 12 for VN 3730b99e-b939-4512-aca6-6e51b11a8faf 2025-11-13 15:29:43,655 - INFO - Verifications in API Server for VN ctest-vn-61222963 passed 2025-11-13 15:29:43,655 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/3730b99e-b939-4512-aca6-6e51b11a8faf 2025-11-13 15:29:43,662 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/2cff4c0a-93af-438d-948e-a350a2e05ae8 2025-11-13 15:29:43,667 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/2cff4c0a-93af-438d-948e-a350a2e05ae8 2025-11-13 15:29:43,673 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/2e0445f1-2462-4df1-a63e-61ad0a9b479c 2025-11-13 15:29:43,682 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-84113380:ctest-vn-61222963', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-84113380', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3976882562331657490', 'uuid-lslong': '12440752317800288175'}, 'enable': 'true', 'created': '2025-11-13T15:29:41', 'last-modified': '2025-11-13T15:29:42', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.367709'} 2025-11-13 15:29:43,687 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-11-13 15:29:43,687 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-61222963 passed 2025-11-13 15:29:43,688 - DEBUG - ====Verifying policy data for ctest-vn-61222963 in API_Server ====== 2025-11-13 15:29:43,688 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-11-13 15:29:43,692 - DEBUG - Requesting: http://10.0.0.38:8082/domain/aa8e3cec-159b-4377-ac93-5461501c0fa5 2025-11-13 15:29:43,702 - DEBUG - Requesting: http://10.0.0.38:8082/project/7d9d0faf-4434-4785-9a5c-dd14230c3938 2025-11-13 15:29:43,768 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/3730b99e-b939-4512-aca6-6e51b11a8faf 2025-11-13 15:29:43,776 - DEBUG - ==>Verifying data for policy with id: d67f317d-f223-47dc-9aa7-78dac849a3dc, fqn: ['default-domain', 'ctest-TestBasicPolicy-84113380', 'ctest-policy-allow-all-76984670'] 2025-11-13 15:29:43,777 - INFO - VN ctest-vn-61222963 Policy verification: verify_vn_policy_in_api_server, status: True 2025-11-13 15:29:43,777 - DEBUG - Verifying the vn in opserver 2025-11-13 15:29:43,777 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-84113380:ctest-vn-61222963 virtual network link through opserver 10.0.0.38 2025-11-13 15:29:43,777 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-11-13 15:29:43,784 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-84113380:ctest-vn-61222963', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-84113380:ctest-vn-61222963?flat'} 2025-11-13 15:29:43,784 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-84113380:ctest-vn-61222963 is found in opserver 2025-11-13 15:29:43,792 - DEBUG - Do not have enough data to verify VN in agent 2025-11-13 15:29:43,796 - DEBUG - VRF ids for VN ctest-vn-61222963: {} 2025-11-13 15:29:43,841 - DEBUG - Services list from nova: [, , ] 2025-11-13 15:29:44,829 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-4723-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-4723-1) 2025-11-13 15:29:45,920 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-4723-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-4723-1) 2025-11-13 15:29:45,920 - INFO - Waiting for VM ctest-TestBasicPolicy-84113380-48226564 to be up.. 2025-11-13 15:29:45,980 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-11-13 15:29:51,048 - DEBUG - VM is in ACTIVE state now 2025-11-13 15:29:51,048 - INFO - VM name : ctest-TestBasicPolicy-84113380-48226564 2025-11-13 15:29:51,106 - DEBUG - VM ctest-TestBasicPolicy-84113380-48226564 ID is a16c8fd2-1afc-4379-877b-9fbd60ab37ac 2025-11-13 15:29:51,122 - DEBUG - VM ctest-TestBasicPolicy-84113380-48226564 launched on Node cn-jenkins-deploy-platform-ansible-os-4723-1 2025-11-13 15:29:51,181 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine/a16c8fd2-1afc-4379-877b-9fbd60ab37ac 2025-11-13 15:29:51,188 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine-interface/3b38bf36-74c0-4010-a0e0-0a73ee51364b 2025-11-13 15:29:54,434 - 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=2 ttl=63 time=10.1 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 1 received, 50% packet loss, time 1020ms\r\nrtt min/avg/max/mdev = 10.083/10.083/10.083/0.000 ms') 2025-11-13 15:29:54,434 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-84113380-48226564 passed 2025-11-13 15:29:54,582 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-11-13 15:29:54,582 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-84113380-48226564, IP 165.228.49.195, Port 22 2025-11-13 15:29:54,734 - DEBUG - VM ctest-TestBasicPolicy-84113380-48226564 is ready for SSH connections 2025-11-13 15:29:54,734 - INFO - Waiting for VM ctest-TestBasicPolicy-84113380-78290664 to be up.. 2025-11-13 15:29:54,802 - DEBUG - VM is in ACTIVE state now 2025-11-13 15:29:54,802 - INFO - VM name : ctest-TestBasicPolicy-84113380-78290664 2025-11-13 15:29:54,863 - DEBUG - VM ctest-TestBasicPolicy-84113380-78290664 ID is 992ffede-6b0e-4fb6-86d1-9d490ddd5977 2025-11-13 15:29:54,863 - DEBUG - VM ctest-TestBasicPolicy-84113380-78290664 launched on Node cn-jenkins-deploy-platform-ansible-os-4723-1 2025-11-13 15:29:54,923 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine/992ffede-6b0e-4fb6-86d1-9d490ddd5977 2025-11-13 15:29:54,929 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine-interface/62af7a39-0dad-4ec0-afc5-772cd96080c3 2025-11-13 15:29:56,157 - 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.04 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.824 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.824/2.432/4.040/1.608 ms') 2025-11-13 15:29:56,157 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-84113380-78290664 passed 2025-11-13 15:29:56,310 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-11-13 15:29:56,310 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-84113380-78290664, IP 16.62.227.195, Port 22 2025-11-13 15:29:56,376 - 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-11-13 15:29:56,455 - DEBUG - VM ctest-TestBasicPolicy-84113380-78290664 is NOT ready for SSH connections, VM status: ACTIVE 2025-11-13 15:30:01,455 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-11-13 15:30:01,456 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-84113380-78290664, IP 16.62.227.195, Port 22 2025-11-13 15:30:01,606 - DEBUG - VM ctest-TestBasicPolicy-84113380-78290664 is ready for SSH connections 2025-11-13 15:30:01,606 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-11-13 15:30:01,606 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 16.62.227.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.38, gateway password: c0ntrail123 2025-11-13 15:30:01,606 - DEBUG - ping -s 56 -c 3 -W 1 16.62.227.195 2025-11-13 15:30:05,543 - DEBUG - PING 16.62.227.195 (16.62.227.195): 56 data bytes 64 bytes from 16.62.227.195: seq=0 ttl=63 time=3.365 ms 64 bytes from 16.62.227.195: seq=1 ttl=63 time=0.769 ms 64 bytes from 16.62.227.195: seq=2 ttl=63 time=0.855 ms --- 16.62.227.195 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.769/1.663/3.365 ms 2025-11-13 15:30:05,543 - INFO - Ping to IP 16.62.227.195 from VM ctest-TestBasicPolicy-84113380-48226564 passed 2025-11-13 15:30:05,714 - DEBUG - Policy Update Response {"network-policy": {"uuid": "d67f317d-f223-47dc-9aa7-78dac849a3dc", "href": "http://10.0.0.38:8082/network-policy/d67f317d-f223-47dc-9aa7-78dac849a3dc"}} 2025-11-13 15:30:05,714 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-11-13 15:30:05,714 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 16.62.227.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.38, gateway password: c0ntrail123 2025-11-13 15:30:05,714 - DEBUG - ping -s 56 -c 3 -W 1 16.62.227.195 2025-11-13 15:30:08,823 - DEBUG - PING 16.62.227.195 (16.62.227.195): 56 data bytes 64 bytes from 16.62.227.195: seq=0 ttl=63 time=1.157 ms --- 16.62.227.195 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.157/1.157/1.157 ms 2025-11-13 15:30:08,823 - WARNING - Ping to IP 16.62.227.195 from VM ctest-TestBasicPolicy-84113380-48226564 failed 2025-11-13 15:30:08,823 - INFO - Deleting VM ctest-TestBasicPolicy-84113380-78290664 2025-11-13 15:30:08,893 - INFO - Deleting VM ctest-TestBasicPolicy-84113380-48226564 2025-11-13 15:30:09,269 - INFO - Deleted policy ctest-policy-allow-all-76984670 2025-11-13 15:30:09,269 - INFO - Deleting VN ctest-vn-61222963 2025-11-13 15:30:09,307 - DEBUG - VN 3730b99e-b939-4512-aca6-6e51b11a8faf still in use: Unable to complete operation on network 3730b99e-b939-4512-aca6-6e51b11a8faf. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-2a3b3eef-7303-49a7-9846-d492eeb476a5'] 2025-11-13 15:30:09,307 - WARNING - Deleting VN ctest-vn-61222963 failed..Will retry 2025-11-13 15:30:11,383 - DEBUG - Response for deleting network () 2025-11-13 15:30:11,383 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/2cff4c0a-93af-438d-948e-a350a2e05ae8 2025-11-13 15:30:11,389 - DEBUG - Response Code: 404 2025-11-13 15:30:11,389 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-11-13 15:30:11,393 - DEBUG - Requesting: http://10.0.0.38:8082/domain/aa8e3cec-159b-4377-ac93-5461501c0fa5 2025-11-13 15:30:11,442 - DEBUG - Requesting: http://10.0.0.38:8082/project/7d9d0faf-4434-4785-9a5c-dd14230c3938 2025-11-13 15:30:11,513 - INFO - Validated that VN ctest-vn-61222963 is not found in API Server 2025-11-13 15:30:11,525 - DEBUG - VN ctest-vn-61222963 is not present in Agent 10.0.0.38 2025-11-13 15:30:11,525 - INFO - Validated that VN ctest-vn-61222963 is not in any agent 2025-11-13 15:30:11,538 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-61222963 info 2025-11-13 15:30:11,538 - INFO - Deleting VN ctest-vn-75273832 2025-11-13 15:30:11,660 - DEBUG - Response for deleting network () 2025-11-13 15:30:11,660 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/14c9337c-04eb-4b40-8037-79b58d93bfd6 2025-11-13 15:30:11,665 - DEBUG - Response Code: 404 2025-11-13 15:30:11,665 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-11-13 15:30:11,671 - DEBUG - Requesting: http://10.0.0.38:8082/domain/aa8e3cec-159b-4377-ac93-5461501c0fa5 2025-11-13 15:30:11,723 - DEBUG - Requesting: http://10.0.0.38:8082/project/7d9d0faf-4434-4785-9a5c-dd14230c3938 2025-11-13 15:30:11,795 - INFO - Validated that VN ctest-vn-75273832 is not found in API Server 2025-11-13 15:30:11,805 - DEBUG - VN ctest-vn-75273832 is not present in Agent 10.0.0.38 2025-11-13 15:30:11,805 - INFO - Validated that VN ctest-vn-75273832 is not in any agent 2025-11-13 15:30:11,818 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-75273832 info 2025-11-13 15:30:12,070 - DEBUG - No XMPP flaps were noticed during the test 2025-11-13 15:30:12,071 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:32] 2025-11-13 15:30:12,071 - INFO - -------------------------------------------------------------------------------- 2025-11-13 15:30:12,738 - INFO - Deleted project: ctest-TestBasicPolicy-84113380, ID : 7d9d0faf-4434-4785-9a5c-dd14230c3938