2025-08-06 14:16:50,591 - INFO - Domain Default found not creating 2025-08-06 14:16:50,785 - INFO - Project ctest-TestRoutersBasic-08109248 not found, creating it 2025-08-06 14:16:51,291 - INFO - Created Project:ctest-TestRoutersBasic-08109248, ID : b65a44df-f68d-4560-8ff5-bd0ff43c1f62 2025-08-06 14:16:53,006 - INFO - ================================================================================ 2025-08-06 14:16:53,006 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2025-08-06 14:16:53,006 - 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-08-06 14:16:53,289 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with 2025-08-06 14:16:53,289 - INFO - Initial checks done. Running the testcase now 2025-08-06 14:16:53,289 - INFO - 2025-08-06 14:16:54,149 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-08109248 2025-08-06 14:16:54,253 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-08109248 2025-08-06 14:16:54,628 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-08109248', 'default']} 2025-08-06 14:16:54,983 - DEBUG - Response for create_network : {'network': {'id': 'db058e53-dbf2-4bf6-8b6b-4b7d047dbbfa', 'name': 'ctest-vn-56482392', 'tenant_id': 'b65a44dff68d45608ff5bd0ff43c1f62', 'project_id': 'b65a44dff68d45608ff5bd0ff43c1f62', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-08109248', 'ctest-vn-56482392'], 'port_security_enabled': True, 'description': ''}} 2025-08-06 14:16:55,176 - DEBUG - Response for create_subnet : {'subnet': {'id': 'cc3bb2fd-33f0-44e5-9b3e-5c7c773798ee', 'name': '', 'tenant_id': 'b65a44dff68d45608ff5bd0ff43c1f62', 'network_id': 'db058e53-dbf2-4bf6-8b6b-4b7d047dbbfa', 'ip_version': 4, 'cidr': '79.48.49.192/26', 'allocation_pools': [{'start': '79.48.49.194', 'end': '79.48.49.254'}], 'gateway_ip': '79.48.49.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '79.48.49.194', 'tags': [], 'project_id': 'b65a44dff68d45608ff5bd0ff43c1f62'}} 2025-08-06 14:16:55,198 - INFO - Created VN ctest-vn-56482392 2025-08-06 14:16:55,252 - DEBUG - VN ctest-vn-56482392 UUID is db058e53-dbf2-4bf6-8b6b-4b7d047dbbfa 2025-08-06 14:16:55,665 - DEBUG - Response for create_network : {'network': {'id': '1a60d332-01e1-433a-8a15-df19db976358', 'name': 'ctest-ext_vn-43706057', 'tenant_id': 'b65a44dff68d45608ff5bd0ff43c1f62', 'project_id': 'b65a44dff68d45608ff5bd0ff43c1f62', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-08109248', 'ctest-ext_vn-43706057'], 'port_security_enabled': True, 'description': ''}} 2025-08-06 14:16:55,909 - DEBUG - Response for create_subnet : {'subnet': {'id': '49e0c2cd-b13c-43ca-995f-3d49475585a0', 'name': '', 'tenant_id': 'b65a44dff68d45608ff5bd0ff43c1f62', 'network_id': '1a60d332-01e1-433a-8a15-df19db976358', 'ip_version': 4, 'cidr': '138.197.123.128/26', 'allocation_pools': [{'start': '138.197.123.130', 'end': '138.197.123.190'}], 'gateway_ip': '138.197.123.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '138.197.123.130', 'tags': [], 'project_id': 'b65a44dff68d45608ff5bd0ff43c1f62'}} 2025-08-06 14:16:55,934 - INFO - Created VN ctest-ext_vn-43706057 2025-08-06 14:16:55,988 - DEBUG - VN ctest-ext_vn-43706057 UUID is 1a60d332-01e1-433a-8a15-df19db976358 2025-08-06 14:16:56,180 - DEBUG - Services list from nova: [, , ] 2025-08-06 14:16:57,351 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3762-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3762-1) 2025-08-06 14:16:58,753 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3762-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3762-1) 2025-08-06 14:16:58,875 - INFO - Setting gateway for router 8a459378-2f39-4f3b-ad42-0ed5713a7ff7 to network 1a60d332-01e1-433a-8a15-df19db976358 2025-08-06 14:16:58,959 - INFO - Adding interface with subnet_id cc3bb2fd-33f0-44e5-9b3e-5c7c773798ee, port_id None to router 8a459378-2f39-4f3b-ad42-0ed5713a7ff7 2025-08-06 14:16:59,446 - INFO - Waiting for VM ctest-TestRoutersBasic-08109248-95325383 to be up.. 2025-08-06 14:16:59,577 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-08-06 14:17:04,680 - DEBUG - VM is in ACTIVE state now 2025-08-06 14:17:04,680 - INFO - VM name : ctest-TestRoutersBasic-08109248-95325383 2025-08-06 14:17:04,818 - DEBUG - VM ctest-TestRoutersBasic-08109248-95325383 ID is d566e329-b99d-4a37-8c0e-642953eceb70 2025-08-06 14:17:04,848 - DEBUG - VM ctest-TestRoutersBasic-08109248-95325383 launched on Node cn-jenkins-deploy-platform-ansible-os-3762-1 2025-08-06 14:17:04,968 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine/d566e329-b99d-4a37-8c0e-642953eceb70 2025-08-06 14:17:05,330 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine/d566e329-b99d-4a37-8c0e-642953eceb70 2025-08-06 14:17:05,375 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine-interface/e1e140f1-95ed-4f3c-8d99-c4c797b8583f 2025-08-06 14:17:08,646 - 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 1005ms') 2025-08-06 14:17:08,646 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-08109248-95325383 failed! 2025-08-06 14:17:08,704 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-08109248:ctest-vn-56482392 is 79.48.49.193 and allocation pool is NOT set 2025-08-06 14:17:10,781 - 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.71 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=2.48 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 = 2.477/4.091/5.706/1.614 ms') 2025-08-06 14:17:10,781 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-08109248-95325383 passed 2025-08-06 14:17:10,940 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-06 14:17:10,941 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-08109248-95325383, IP 79.48.49.195, Port 22 2025-08-06 14:17:11,011 - 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-08-06 14:17:11,102 - DEBUG - VM ctest-TestRoutersBasic-08109248-95325383 is NOT ready for SSH connections, VM status: ACTIVE 2025-08-06 14:17:16,103 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-06 14:17:16,103 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-08109248-95325383, IP 79.48.49.195, Port 22 2025-08-06 14:17:16,271 - DEBUG - VM ctest-TestRoutersBasic-08109248-95325383 is ready for SSH connections 2025-08-06 14:17:16,271 - INFO - Waiting for VM ctest-TestRoutersBasic-08109248-03320397 to be up.. 2025-08-06 14:17:16,359 - DEBUG - VM is in ACTIVE state now 2025-08-06 14:17:16,359 - INFO - VM name : ctest-TestRoutersBasic-08109248-03320397 2025-08-06 14:17:16,443 - DEBUG - VM ctest-TestRoutersBasic-08109248-03320397 ID is 1b1f5ee3-40a9-4ece-8505-fa733a28ae62 2025-08-06 14:17:16,444 - DEBUG - VM ctest-TestRoutersBasic-08109248-03320397 launched on Node cn-jenkins-deploy-platform-ansible-os-3762-1 2025-08-06 14:17:16,530 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine/1b1f5ee3-40a9-4ece-8505-fa733a28ae62 2025-08-06 14:17:16,542 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine-interface/7ebb2239-ddeb-452c-abbb-431512ef5fd6 2025-08-06 14:17:17,801 - 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.37 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.493 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.493/1.932/3.372/1.439 ms') 2025-08-06 14:17:17,801 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-08109248-03320397 passed 2025-08-06 14:17:17,957 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-06 14:17:17,957 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-08109248-03320397, IP 138.197.123.131, Port 22 2025-08-06 14:17:18,120 - DEBUG - VM ctest-TestRoutersBasic-08109248-03320397 is ready for SSH connections 2025-08-06 14:17:18,120 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-06 14:17:18,121 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 138.197.123.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.50, gateway password: c0ntrail123 2025-08-06 14:17:18,121 - DEBUG - ping -s 56 -c 3 -W 1 138.197.123.131 2025-08-06 14:17:21,938 - DEBUG - PING 138.197.123.131 (138.197.123.131): 56 data bytes 64 bytes from 138.197.123.131: seq=0 ttl=62 time=5.971 ms 64 bytes from 138.197.123.131: seq=1 ttl=62 time=1.070 ms 64 bytes from 138.197.123.131: seq=2 ttl=62 time=1.025 ms --- 138.197.123.131 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.025/2.688/5.971 ms 2025-08-06 14:17:21,938 - INFO - Ping to IP 138.197.123.131 from VM ctest-TestRoutersBasic-08109248-95325383 passed 2025-08-06 14:17:21,938 - INFO - Deleting interface with subnet_id cc3bb2fd-33f0-44e5-9b3e-5c7c773798ee, port_id None from router 8a459378-2f39-4f3b-ad42-0ed5713a7ff7 2025-08-06 14:17:22,336 - INFO - Deleting VM ctest-TestRoutersBasic-08109248-03320397 2025-08-06 14:17:22,439 - INFO - Deleting VM ctest-TestRoutersBasic-08109248-95325383 2025-08-06 14:17:22,550 - INFO - Deleting VN ctest-ext_vn-43706057 2025-08-06 14:17:22,647 - DEBUG - VN 1a60d332-01e1-433a-8a15-df19db976358 still in use: Unable to complete operation on network 1a60d332-01e1-433a-8a15-df19db976358. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-414a564e-fe71-4330-bd1b-eca51fda2739'] 2025-08-06 14:17:22,648 - WARNING - Deleting VN ctest-ext_vn-43706057 failed..Will retry 2025-08-06 14:17:24,769 - DEBUG - Response for deleting network () 2025-08-06 14:17:24,769 - INFO - Deleting VN ctest-vn-56482392 2025-08-06 14:17:24,927 - DEBUG - Response for deleting network () 2025-08-06 14:17:25,196 - DEBUG - No XMPP flaps were noticed during the test
2025-08-06 14:17:25,196 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:32]
2025-08-06 14:17:25,197 - INFO - -------------------------------------------------------------------------------- 2025-08-06 14:17:25,985 - INFO - Deleted project: ctest-TestRoutersBasic-08109248, ID : b65a44df-f68d-4560-8ff5-bd0ff43c1f62