2025-09-16 14:59:10,687 - INFO - Domain Default found not creating 2025-09-16 14:59:10,848 - INFO - Project ctest-TestRoutersBasic-93905758 not found, creating it 2025-09-16 14:59:11,335 - INFO - Created Project:ctest-TestRoutersBasic-93905758, ID : e0e93040-3f89-47b5-8562-03e05699c04b 2025-09-16 14:59:13,047 - INFO - ================================================================================ 2025-09-16 14:59:13,047 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2025-09-16 14:59:13,047 - 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-16 14:59:13,306 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with 2025-09-16 14:59:13,306 - INFO - Initial checks done. Running the testcase now 2025-09-16 14:59:13,306 - INFO - 2025-09-16 14:59:14,107 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-93905758 2025-09-16 14:59:14,208 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-93905758 2025-09-16 14:59:14,527 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-93905758', 'default']} 2025-09-16 14:59:14,823 - DEBUG - Response for create_network : {'network': {'id': '9d544f18-1e6a-4d8a-b4d0-7f224100f2a0', 'name': 'ctest-vn-97831880', 'tenant_id': 'e0e930403f8947b5856203e05699c04b', 'project_id': 'e0e930403f8947b5856203e05699c04b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-93905758', 'ctest-vn-97831880'], 'port_security_enabled': True, 'description': ''}} 2025-09-16 14:59:15,042 - DEBUG - Response for create_subnet : {'subnet': {'id': '3b5897dd-7298-430b-9275-32cc5c624320', 'name': '', 'tenant_id': 'e0e930403f8947b5856203e05699c04b', 'network_id': '9d544f18-1e6a-4d8a-b4d0-7f224100f2a0', 'ip_version': 4, 'cidr': '139.172.222.64/26', 'allocation_pools': [{'start': '139.172.222.66', 'end': '139.172.222.126'}], 'gateway_ip': '139.172.222.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '139.172.222.66', 'tags': [], 'project_id': 'e0e930403f8947b5856203e05699c04b'}} 2025-09-16 14:59:15,061 - INFO - Created VN ctest-vn-97831880 2025-09-16 14:59:15,116 - DEBUG - VN ctest-vn-97831880 UUID is 9d544f18-1e6a-4d8a-b4d0-7f224100f2a0 2025-09-16 14:59:15,446 - DEBUG - Response for create_network : {'network': {'id': 'c0b3dd09-8d04-4bb1-8d93-75b79c4f3bb3', 'name': 'ctest-ext_vn-47303838', 'tenant_id': 'e0e930403f8947b5856203e05699c04b', 'project_id': 'e0e930403f8947b5856203e05699c04b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-93905758', 'ctest-ext_vn-47303838'], 'port_security_enabled': True, 'description': ''}} 2025-09-16 14:59:15,630 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd9fdd2a8-8843-4096-960a-c0dfcdf2609e', 'name': '', 'tenant_id': 'e0e930403f8947b5856203e05699c04b', 'network_id': 'c0b3dd09-8d04-4bb1-8d93-75b79c4f3bb3', 'ip_version': 4, 'cidr': '157.98.126.128/26', 'allocation_pools': [{'start': '157.98.126.130', 'end': '157.98.126.190'}], 'gateway_ip': '157.98.126.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '157.98.126.130', 'tags': [], 'project_id': 'e0e930403f8947b5856203e05699c04b'}} 2025-09-16 14:59:15,649 - INFO - Created VN ctest-ext_vn-47303838 2025-09-16 14:59:15,704 - DEBUG - VN ctest-ext_vn-47303838 UUID is c0b3dd09-8d04-4bb1-8d93-75b79c4f3bb3 2025-09-16 14:59:15,878 - DEBUG - Services list from nova: [, , ] 2025-09-16 14:59:17,290 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-4124-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-4124-1) 2025-09-16 14:59:18,523 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-4124-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-4124-1) 2025-09-16 14:59:18,587 - INFO - Setting gateway for router 2201aa47-21d2-468b-b6f9-879cb783ebe0 to network c0b3dd09-8d04-4bb1-8d93-75b79c4f3bb3 2025-09-16 14:59:18,663 - INFO - Adding interface with subnet_id 3b5897dd-7298-430b-9275-32cc5c624320, port_id None to router 2201aa47-21d2-468b-b6f9-879cb783ebe0 2025-09-16 14:59:19,006 - INFO - Waiting for VM ctest-TestRoutersBasic-93905758-10129269 to be up.. 2025-09-16 14:59:19,137 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-09-16 14:59:24,223 - DEBUG - VM is in ACTIVE state now 2025-09-16 14:59:24,223 - INFO - VM name : ctest-TestRoutersBasic-93905758-10129269 2025-09-16 14:59:24,309 - DEBUG - VM ctest-TestRoutersBasic-93905758-10129269 ID is 497d298f-dc45-4329-9ef9-433cf1efbe2b 2025-09-16 14:59:24,329 - DEBUG - VM ctest-TestRoutersBasic-93905758-10129269 launched on Node cn-jenkins-deploy-platform-ansible-os-4124-1 2025-09-16 14:59:24,408 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine/497d298f-dc45-4329-9ef9-433cf1efbe2b 2025-09-16 14:59:24,742 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine/497d298f-dc45-4329-9ef9-433cf1efbe2b 2025-09-16 14:59:24,775 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine-interface/56531d05-99a9-43f7-a4b2-78735c0dd87a 2025-09-16 14:59:28,021 - 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 1009ms') 2025-09-16 14:59:28,021 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-93905758-10129269 failed! 2025-09-16 14:59:28,080 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-93905758:ctest-vn-97831880 is 139.172.222.65 and allocation pool is NOT set 2025-09-16 14:59:30,144 - 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.22 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=2.17 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.173/3.694/5.216/1.521 ms') 2025-09-16 14:59:30,144 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-93905758-10129269 passed 2025-09-16 14:59:30,304 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-09-16 14:59:30,304 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-93905758-10129269, IP 139.172.222.67, Port 22 2025-09-16 14:59:30,370 - 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-16 14:59:30,454 - DEBUG - VM ctest-TestRoutersBasic-93905758-10129269 is NOT ready for SSH connections, VM status: ACTIVE 2025-09-16 14:59:35,455 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-09-16 14:59:35,455 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-93905758-10129269, IP 139.172.222.67, Port 22 2025-09-16 14:59:35,616 - DEBUG - VM ctest-TestRoutersBasic-93905758-10129269 is ready for SSH connections 2025-09-16 14:59:35,616 - INFO - Waiting for VM ctest-TestRoutersBasic-93905758-43219428 to be up.. 2025-09-16 14:59:35,701 - DEBUG - VM is in ACTIVE state now 2025-09-16 14:59:35,701 - INFO - VM name : ctest-TestRoutersBasic-93905758-43219428 2025-09-16 14:59:35,780 - DEBUG - VM ctest-TestRoutersBasic-93905758-43219428 ID is 9dfdad71-9a36-4293-a44d-e16118966892 2025-09-16 14:59:35,780 - DEBUG - VM ctest-TestRoutersBasic-93905758-43219428 launched on Node cn-jenkins-deploy-platform-ansible-os-4124-1 2025-09-16 14:59:35,856 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine/9dfdad71-9a36-4293-a44d-e16118966892 2025-09-16 14:59:35,864 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine-interface/6df50552-7325-4954-a7b0-411662cd6aa1 2025-09-16 14:59:37,107 - 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.38 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.427 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.427/1.902/3.377/1.475 ms') 2025-09-16 14:59:37,108 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-93905758-43219428 passed 2025-09-16 14:59:37,264 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-09-16 14:59:37,264 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-93905758-43219428, IP 157.98.126.131, Port 22 2025-09-16 14:59:37,430 - DEBUG - VM ctest-TestRoutersBasic-93905758-43219428 is ready for SSH connections 2025-09-16 14:59:37,431 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-09-16 14:59:37,431 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 157.98.126.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.254, gateway password: c0ntrail123 2025-09-16 14:59:37,431 - DEBUG - ping -s 56 -c 3 -W 1 157.98.126.131 2025-09-16 14:59:41,185 - DEBUG - PING 157.98.126.131 (157.98.126.131): 56 data bytes 64 bytes from 157.98.126.131: seq=0 ttl=62 time=5.013 ms 64 bytes from 157.98.126.131: seq=1 ttl=62 time=1.099 ms 64 bytes from 157.98.126.131: seq=2 ttl=62 time=1.256 ms --- 157.98.126.131 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.099/2.456/5.013 ms 2025-09-16 14:59:41,185 - INFO - Ping to IP 157.98.126.131 from VM ctest-TestRoutersBasic-93905758-10129269 passed 2025-09-16 14:59:41,186 - INFO - Deleting interface with subnet_id 3b5897dd-7298-430b-9275-32cc5c624320, port_id None from router 2201aa47-21d2-468b-b6f9-879cb783ebe0 2025-09-16 14:59:41,385 - INFO - Deleting VM ctest-TestRoutersBasic-93905758-43219428 2025-09-16 14:59:41,490 - INFO - Deleting VM ctest-TestRoutersBasic-93905758-10129269 2025-09-16 14:59:41,615 - INFO - Deleting VN ctest-ext_vn-47303838 2025-09-16 14:59:41,737 - DEBUG - VN c0b3dd09-8d04-4bb1-8d93-75b79c4f3bb3 still in use: Unable to complete operation on network c0b3dd09-8d04-4bb1-8d93-75b79c4f3bb3. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-03fbb567-820f-4c4b-8a63-6c4bcf3a0f30'] 2025-09-16 14:59:41,737 - WARNING - Deleting VN ctest-ext_vn-47303838 failed..Will retry 2025-09-16 14:59:43,885 - DEBUG - Response for deleting network () 2025-09-16 14:59:43,885 - INFO - Deleting VN ctest-vn-97831880 2025-09-16 14:59:44,015 - DEBUG - Response for deleting network () 2025-09-16 14:59:44,269 - DEBUG - No XMPP flaps were noticed during the test
2025-09-16 14:59:44,269 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:31]
2025-09-16 14:59:44,269 - INFO - -------------------------------------------------------------------------------- 2025-09-16 14:59:45,015 - INFO - Deleted project: ctest-TestRoutersBasic-93905758, ID : e0e93040-3f89-47b5-8562-03e05699c04b