2025-09-11 08:28:32,581 - INFO - Domain Default found not creating 2025-09-11 08:28:32,736 - INFO - Project ctest-TestRoutersBasic-28023711 not found, creating it 2025-09-11 08:28:33,177 - INFO - Created Project:ctest-TestRoutersBasic-28023711, ID : 9c081ec0-1c31-45dd-a98d-036ac2c5cb3d 2025-09-11 08:28:34,619 - INFO - ================================================================================ 2025-09-11 08:28:34,619 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2025-09-11 08:28:34,619 - INFO - TEST DESCRIPTION : Create an external network, a router set router-gateway to external network launch a private network and attach it to router validate left vm pinging right vm through Snat 2025-09-11 08:28:34,875 - DEBUG - Nothing to compare xmpp stats {'10.0.0.41': {'10.20.0.254': '0'}} with 2025-09-11 08:28:34,875 - INFO - Initial checks done. Running the testcase now 2025-09-11 08:28:34,875 - INFO - 2025-09-11 08:28:35,599 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-28023711 2025-09-11 08:28:35,697 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-28023711 2025-09-11 08:28:36,020 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-28023711', 'default']} 2025-09-11 08:28:36,338 - DEBUG - Response for create_network : {'network': {'id': '91fff36f-aee8-4238-904c-70687ee402e1', 'name': 'ctest-vn-11497706', 'tenant_id': '9c081ec01c3145dda98d036ac2c5cb3d', 'project_id': '9c081ec01c3145dda98d036ac2c5cb3d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-28023711', 'ctest-vn-11497706'], 'port_security_enabled': True, 'description': ''}} 2025-09-11 08:28:36,564 - DEBUG - Response for create_subnet : {'subnet': {'id': '41f02ad0-df6c-4335-ab27-c6d4239f516d', 'name': '', 'tenant_id': '9c081ec01c3145dda98d036ac2c5cb3d', 'network_id': '91fff36f-aee8-4238-904c-70687ee402e1', 'ip_version': 4, 'cidr': '12.41.253.192/26', 'allocation_pools': [{'start': '12.41.253.194', 'end': '12.41.253.254'}], 'gateway_ip': '12.41.253.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '12.41.253.194', 'tags': [], 'project_id': '9c081ec01c3145dda98d036ac2c5cb3d'}} 2025-09-11 08:28:36,586 - INFO - Created VN ctest-vn-11497706 2025-09-11 08:28:36,641 - DEBUG - VN ctest-vn-11497706 UUID is 91fff36f-aee8-4238-904c-70687ee402e1 2025-09-11 08:28:36,962 - DEBUG - Response for create_network : {'network': {'id': '75ef38bc-b619-4ebd-89fc-e1ff546efa88', 'name': 'ctest-ext_vn-63132663', 'tenant_id': '9c081ec01c3145dda98d036ac2c5cb3d', 'project_id': '9c081ec01c3145dda98d036ac2c5cb3d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-28023711', 'ctest-ext_vn-63132663'], 'port_security_enabled': True, 'description': ''}} 2025-09-11 08:28:37,149 - DEBUG - Response for create_subnet : {'subnet': {'id': '4a48d4b1-f11c-4a05-a0c5-8cfa9ec47ce7', 'name': '', 'tenant_id': '9c081ec01c3145dda98d036ac2c5cb3d', 'network_id': '75ef38bc-b619-4ebd-89fc-e1ff546efa88', 'ip_version': 4, 'cidr': '162.90.239.0/26', 'allocation_pools': [{'start': '162.90.239.2', 'end': '162.90.239.62'}], 'gateway_ip': '162.90.239.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '162.90.239.2', 'tags': [], 'project_id': '9c081ec01c3145dda98d036ac2c5cb3d'}} 2025-09-11 08:28:37,168 - INFO - Created VN ctest-ext_vn-63132663 2025-09-11 08:28:37,221 - DEBUG - VN ctest-ext_vn-63132663 UUID is 75ef38bc-b619-4ebd-89fc-e1ff546efa88 2025-09-11 08:28:37,386 - DEBUG - Services list from nova: [, , ] 2025-09-11 08:28:38,419 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-4083-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-4083-1) 2025-09-11 08:28:39,507 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-4083-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-4083-1) 2025-09-11 08:28:39,569 - INFO - Setting gateway for router 9b308b52-9beb-4f52-ad9e-85fd775aa1ff to network 75ef38bc-b619-4ebd-89fc-e1ff546efa88 2025-09-11 08:28:39,636 - INFO - Adding interface with subnet_id 41f02ad0-df6c-4335-ab27-c6d4239f516d, port_id None to router 9b308b52-9beb-4f52-ad9e-85fd775aa1ff 2025-09-11 08:28:39,912 - INFO - Waiting for VM ctest-TestRoutersBasic-28023711-84920881 to be up.. 2025-09-11 08:28:40,095 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-09-11 08:28:45,168 - DEBUG - VM is in ACTIVE state now 2025-09-11 08:28:45,168 - INFO - VM name : ctest-TestRoutersBasic-28023711-84920881 2025-09-11 08:28:45,236 - DEBUG - VM ctest-TestRoutersBasic-28023711-84920881 ID is de5969fb-707e-4b59-8976-9ee2203ece60 2025-09-11 08:28:45,255 - DEBUG - VM ctest-TestRoutersBasic-28023711-84920881 launched on Node cn-jenkins-deploy-platform-ansible-os-4083-1 2025-09-11 08:28:45,329 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-machine/de5969fb-707e-4b59-8976-9ee2203ece60 2025-09-11 08:28:45,631 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-machine/de5969fb-707e-4b59-8976-9ee2203ece60 2025-09-11 08:28:45,661 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-machine-interface/143380cc-4545-4aeb-bfd7-0255d614b342 2025-09-11 08:28:48,894 - 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 1003ms') 2025-09-11 08:28:48,894 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-28023711-84920881 failed! 2025-09-11 08:28:48,949 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-28023711:ctest-vn-11497706 is 12.41.253.193 and allocation pool is NOT set 2025-09-11 08:28:51,016 - 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=5.13 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=2.14 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 = 2.144/3.639/5.134/1.495 ms') 2025-09-11 08:28:51,016 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-28023711-84920881 passed 2025-09-11 08:28:51,173 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-09-11 08:28:51,173 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-28023711-84920881, IP 12.41.253.195, Port 22 2025-09-11 08:28:51,228 - DEBUG - Error on ssh to cirros@169.254.0.3:22, result: /bin/bash: connect: Connection refused /bin/bash: line 1: /dev/tcp/169.254.0.3/22: Connection refused {'failed': True, 'command': '(echo > /dev/tcp/169.254.0.3/22)', 'real_command': '/bin/bash -l -c "(echo > /dev/tcp/169.254.0.3/22)"', 'return_code': 1, 'succeeded': False, 'stderr': ''} 2025-09-11 08:28:51,314 - DEBUG - VM ctest-TestRoutersBasic-28023711-84920881 is NOT ready for SSH connections, VM status: ACTIVE 2025-09-11 08:28:56,315 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-09-11 08:28:56,315 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-28023711-84920881, IP 12.41.253.195, Port 22 2025-09-11 08:28:56,472 - DEBUG - VM ctest-TestRoutersBasic-28023711-84920881 is ready for SSH connections 2025-09-11 08:28:56,472 - INFO - Waiting for VM ctest-TestRoutersBasic-28023711-10336480 to be up.. 2025-09-11 08:28:56,550 - DEBUG - VM is in ACTIVE state now 2025-09-11 08:28:56,550 - INFO - VM name : ctest-TestRoutersBasic-28023711-10336480 2025-09-11 08:28:56,618 - DEBUG - VM ctest-TestRoutersBasic-28023711-10336480 ID is 8b1469c7-a12e-48eb-a574-a54dbd7642ac 2025-09-11 08:28:56,619 - DEBUG - VM ctest-TestRoutersBasic-28023711-10336480 launched on Node cn-jenkins-deploy-platform-ansible-os-4083-1 2025-09-11 08:28:56,689 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-machine/8b1469c7-a12e-48eb-a574-a54dbd7642ac 2025-09-11 08:28:56,696 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-machine-interface/f7c75621-5517-4a20-80cb-cd4a50d257bd 2025-09-11 08:28:57,925 - 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.98 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.428 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.428/1.705/2.982/1.277 ms') 2025-09-11 08:28:57,925 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-28023711-10336480 passed 2025-09-11 08:28:58,073 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-09-11 08:28:58,073 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-28023711-10336480, IP 162.90.239.3, Port 22 2025-09-11 08:28:58,232 - DEBUG - VM ctest-TestRoutersBasic-28023711-10336480 is ready for SSH connections 2025-09-11 08:28:58,232 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-09-11 08:28:58,232 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 162.90.239.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.41, gateway password: c0ntrail123 2025-09-11 08:28:58,232 - DEBUG - ping -s 56 -c 3 -W 1 162.90.239.3 2025-09-11 08:29:01,908 - DEBUG - PING 162.90.239.3 (162.90.239.3): 56 data bytes 64 bytes from 162.90.239.3: seq=0 ttl=62 time=8.046 ms 64 bytes from 162.90.239.3: seq=1 ttl=62 time=0.995 ms 64 bytes from 162.90.239.3: seq=2 ttl=62 time=0.790 ms --- 162.90.239.3 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.790/3.277/8.046 ms 2025-09-11 08:29:01,908 - INFO - Ping to IP 162.90.239.3 from VM ctest-TestRoutersBasic-28023711-84920881 passed 2025-09-11 08:29:01,909 - INFO - Deleting interface with subnet_id 41f02ad0-df6c-4335-ab27-c6d4239f516d, port_id None from router 9b308b52-9beb-4f52-ad9e-85fd775aa1ff 2025-09-11 08:29:02,097 - INFO - Deleting VM ctest-TestRoutersBasic-28023711-10336480 2025-09-11 08:29:02,174 - INFO - Deleting VM ctest-TestRoutersBasic-28023711-84920881 2025-09-11 08:29:02,257 - INFO - Deleting VN ctest-ext_vn-63132663 2025-09-11 08:29:02,321 - DEBUG - VN 75ef38bc-b619-4ebd-89fc-e1ff546efa88 still in use: Unable to complete operation on network 75ef38bc-b619-4ebd-89fc-e1ff546efa88. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-c43d1fce-8195-448c-a761-227726f22b8a'] 2025-09-11 08:29:02,321 - WARNING - Deleting VN ctest-ext_vn-63132663 failed..Will retry 2025-09-11 08:29:04,418 - DEBUG - Response for deleting network () 2025-09-11 08:29:04,418 - INFO - Deleting VN ctest-vn-11497706 2025-09-11 08:29:04,515 - DEBUG - Response for deleting network () 2025-09-11 08:29:04,771 - DEBUG - No XMPP flaps were noticed during the test
2025-09-11 08:29:04,771 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:30]
2025-09-11 08:29:04,771 - INFO - -------------------------------------------------------------------------------- 2025-09-11 08:29:05,441 - INFO - Deleted project: ctest-TestRoutersBasic-28023711, ID : 9c081ec0-1c31-45dd-a98d-036ac2c5cb3d