2025-12-04 15:37:48,804 - INFO - Domain Default found not creating 2025-12-04 15:37:48,964 - INFO - Project ctest-TestRoutersBasic-12716604 not found, creating it 2025-12-04 15:37:49,401 - INFO - Created Project:ctest-TestRoutersBasic-12716604, ID : d1e276a7-58a6-4dd1-9292-25621e73f4bd 2025-12-04 15:37:50,799 - INFO - ================================================================================ 2025-12-04 15:37:50,799 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2025-12-04 15:37:50,800 - 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-12-04 15:37:51,060 - DEBUG - Nothing to compare xmpp stats {'10.0.0.249': {'10.20.0.254': '0'}} with 2025-12-04 15:37:51,060 - INFO - Initial checks done. Running the testcase now 2025-12-04 15:37:51,060 - INFO - 2025-12-04 15:37:51,755 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-12716604 2025-12-04 15:37:51,851 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-12716604 2025-12-04 15:37:52,167 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-12716604', 'default']} 2025-12-04 15:37:52,437 - DEBUG - Response for create_network : {'network': {'id': 'b4cd16a8-9cf5-43ff-92b0-23140a088e7b', 'name': 'ctest-vn-13016716', 'tenant_id': 'd1e276a758a64dd1929225621e73f4bd', 'project_id': 'd1e276a758a64dd1929225621e73f4bd', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-12716604', 'ctest-vn-13016716'], 'port_security_enabled': True, 'description': ''}} 2025-12-04 15:37:52,605 - DEBUG - Response for create_subnet : {'subnet': {'id': '54f93730-898f-49cd-b137-c1e10bb306d0', 'name': '', 'tenant_id': 'd1e276a758a64dd1929225621e73f4bd', 'network_id': 'b4cd16a8-9cf5-43ff-92b0-23140a088e7b', 'ip_version': 4, 'cidr': '84.63.231.64/26', 'allocation_pools': [{'start': '84.63.231.66', 'end': '84.63.231.126'}], 'gateway_ip': '84.63.231.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '84.63.231.66', 'tags': [], 'project_id': 'd1e276a758a64dd1929225621e73f4bd'}} 2025-12-04 15:37:52,622 - INFO - Created VN ctest-vn-13016716 2025-12-04 15:37:52,671 - DEBUG - VN ctest-vn-13016716 UUID is b4cd16a8-9cf5-43ff-92b0-23140a088e7b 2025-12-04 15:37:52,961 - DEBUG - Response for create_network : {'network': {'id': '8d0c053c-0aa5-48fc-be2f-dabb4cc6bbcf', 'name': 'ctest-ext_vn-00514915', 'tenant_id': 'd1e276a758a64dd1929225621e73f4bd', 'project_id': 'd1e276a758a64dd1929225621e73f4bd', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-12716604', 'ctest-ext_vn-00514915'], 'port_security_enabled': True, 'description': ''}} 2025-12-04 15:37:53,108 - DEBUG - Response for create_subnet : {'subnet': {'id': '189cbfe8-3643-4c7d-8638-3592c2349738', 'name': '', 'tenant_id': 'd1e276a758a64dd1929225621e73f4bd', 'network_id': '8d0c053c-0aa5-48fc-be2f-dabb4cc6bbcf', 'ip_version': 4, 'cidr': '62.12.15.192/26', 'allocation_pools': [{'start': '62.12.15.194', 'end': '62.12.15.254'}], 'gateway_ip': '62.12.15.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '62.12.15.194', 'tags': [], 'project_id': 'd1e276a758a64dd1929225621e73f4bd'}} 2025-12-04 15:37:53,123 - INFO - Created VN ctest-ext_vn-00514915 2025-12-04 15:37:53,175 - DEBUG - VN ctest-ext_vn-00514915 UUID is 8d0c053c-0aa5-48fc-be2f-dabb4cc6bbcf 2025-12-04 15:37:53,366 - DEBUG - Services list from nova: [, , ] 2025-12-04 15:37:54,324 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-4844-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-4844-1) 2025-12-04 15:37:55,402 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-4844-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-4844-1) 2025-12-04 15:37:55,467 - INFO - Setting gateway for router 3b3d3e35-d367-4b94-98ce-a95bc5164b1e to network 8d0c053c-0aa5-48fc-be2f-dabb4cc6bbcf 2025-12-04 15:37:55,514 - INFO - Adding interface with subnet_id 54f93730-898f-49cd-b137-c1e10bb306d0, port_id None to router 3b3d3e35-d367-4b94-98ce-a95bc5164b1e 2025-12-04 15:37:55,938 - INFO - Waiting for VM ctest-TestRoutersBasic-12716604-85804083 to be up.. 2025-12-04 15:37:56,059 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-12-04 15:38:01,128 - DEBUG - VM is in ACTIVE state now 2025-12-04 15:38:01,128 - INFO - VM name : ctest-TestRoutersBasic-12716604-85804083 2025-12-04 15:38:01,191 - DEBUG - VM ctest-TestRoutersBasic-12716604-85804083 ID is d785737a-9c25-4c61-bd7b-05de4c6e3de2 2025-12-04 15:38:01,209 - DEBUG - VM ctest-TestRoutersBasic-12716604-85804083 launched on Node cn-jenkins-deploy-platform-ansible-os-4844-1 2025-12-04 15:38:01,273 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-machine/d785737a-9c25-4c61-bd7b-05de4c6e3de2 2025-12-04 15:38:01,700 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-machine/d785737a-9c25-4c61-bd7b-05de4c6e3de2 2025-12-04 15:38:01,749 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-machine-interface/e81f1220-d34e-4d65-97b2-47995053a956 2025-12-04 15:38:05,008 - 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=12.6 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 1 received, 50% packet loss, time 1007ms\r\nrtt min/avg/max/mdev = 12.634/12.634/12.634/0.000 ms') 2025-12-04 15:38:05,008 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-12716604-85804083 passed 2025-12-04 15:38:05,159 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-12-04 15:38:05,159 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-12716604-85804083, IP 84.63.231.67, Port 22 2025-12-04 15:38:05,215 - 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-12-04 15:38:05,279 - DEBUG - VM ctest-TestRoutersBasic-12716604-85804083 is NOT ready for SSH connections, VM status: ACTIVE 2025-12-04 15:38:10,279 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-12-04 15:38:10,279 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-12716604-85804083, IP 84.63.231.67, Port 22 2025-12-04 15:38:10,438 - DEBUG - VM ctest-TestRoutersBasic-12716604-85804083 is ready for SSH connections 2025-12-04 15:38:10,438 - INFO - Waiting for VM ctest-TestRoutersBasic-12716604-23578205 to be up.. 2025-12-04 15:38:10,511 - DEBUG - VM is in ACTIVE state now 2025-12-04 15:38:10,511 - INFO - VM name : ctest-TestRoutersBasic-12716604-23578205 2025-12-04 15:38:10,573 - DEBUG - VM ctest-TestRoutersBasic-12716604-23578205 ID is bdd2a525-7205-41e3-af31-5f1c18f69b3c 2025-12-04 15:38:10,573 - DEBUG - VM ctest-TestRoutersBasic-12716604-23578205 launched on Node cn-jenkins-deploy-platform-ansible-os-4844-1 2025-12-04 15:38:10,637 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-machine/bdd2a525-7205-41e3-af31-5f1c18f69b3c 2025-12-04 15:38:10,644 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-machine-interface/e17c15cf-7bac-4973-b7d2-a63bcdb755c0 2025-12-04 15:38:11,876 - 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.81 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.329 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.329/1.568/2.808/1.239 ms') 2025-12-04 15:38:11,876 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-12716604-23578205 passed 2025-12-04 15:38:12,027 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-12-04 15:38:12,027 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-12716604-23578205, IP 62.12.15.195, Port 22 2025-12-04 15:38:12,182 - DEBUG - VM ctest-TestRoutersBasic-12716604-23578205 is ready for SSH connections 2025-12-04 15:38:12,183 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-12-04 15:38:12,183 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 62.12.15.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.249, gateway password: c0ntrail123 2025-12-04 15:38:12,183 - DEBUG - ping -s 56 -c 3 -W 1 62.12.15.195 2025-12-04 15:38:15,870 - DEBUG - PING 62.12.15.195 (62.12.15.195): 56 data bytes 64 bytes from 62.12.15.195: seq=0 ttl=62 time=4.288 ms 64 bytes from 62.12.15.195: seq=1 ttl=62 time=0.842 ms 64 bytes from 62.12.15.195: seq=2 ttl=62 time=0.885 ms --- 62.12.15.195 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.842/2.005/4.288 ms 2025-12-04 15:38:15,870 - INFO - Ping to IP 62.12.15.195 from VM ctest-TestRoutersBasic-12716604-85804083 passed 2025-12-04 15:38:15,870 - INFO - Deleting interface with subnet_id 54f93730-898f-49cd-b137-c1e10bb306d0, port_id None from router 3b3d3e35-d367-4b94-98ce-a95bc5164b1e 2025-12-04 15:38:16,025 - INFO - Deleting VM ctest-TestRoutersBasic-12716604-23578205 2025-12-04 15:38:16,089 - INFO - Deleting VM ctest-TestRoutersBasic-12716604-85804083 2025-12-04 15:38:16,161 - INFO - Deleting VN ctest-ext_vn-00514915 2025-12-04 15:38:16,227 - DEBUG - VN 8d0c053c-0aa5-48fc-be2f-dabb4cc6bbcf still in use: Unable to complete operation on network 8d0c053c-0aa5-48fc-be2f-dabb4cc6bbcf. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-5495be98-61b0-48bc-a391-eb5d624a57c3'] 2025-12-04 15:38:16,227 - WARNING - Deleting VN ctest-ext_vn-00514915 failed..Will retry 2025-12-04 15:38:18,315 - DEBUG - Response for deleting network () 2025-12-04 15:38:18,315 - INFO - Deleting VN ctest-vn-13016716 2025-12-04 15:38:18,390 - DEBUG - Response for deleting network () 2025-12-04 15:38:18,648 - DEBUG - No XMPP flaps were noticed during the test
2025-12-04 15:38:18,648 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:28]
2025-12-04 15:38:18,648 - INFO - -------------------------------------------------------------------------------- 2025-12-04 15:38:19,283 - INFO - Deleted project: ctest-TestRoutersBasic-12716604, ID : d1e276a7-58a6-4dd1-9292-25621e73f4bd