2025-11-13 10:48:44,376 - INFO - Domain Default found not creating 2025-11-13 10:48:44,550 - INFO - Project ctest-TestRoutersBasic-21283714 not found, creating it 2025-11-13 10:48:45,008 - INFO - Created Project:ctest-TestRoutersBasic-21283714, ID : 3002b637-7417-4381-8403-8b54f28e486a 2025-11-13 10:48:46,546 - INFO - ================================================================================ 2025-11-13 10:48:46,546 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2025-11-13 10:48:46,546 - 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-11-13 10:48:46,809 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.254': '0'}} with 2025-11-13 10:48:46,809 - INFO - Initial checks done. Running the testcase now 2025-11-13 10:48:46,809 - INFO - 2025-11-13 10:48:47,567 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-21283714 2025-11-13 10:48:47,676 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-21283714 2025-11-13 10:48:48,003 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-21283714', 'default']} 2025-11-13 10:48:48,297 - DEBUG - Response for create_network : {'network': {'id': 'a1c0ba5b-0f4d-4503-a78a-c12edb65f66c', 'name': 'ctest-vn-91817633', 'tenant_id': '3002b6377417438184038b54f28e486a', 'project_id': '3002b6377417438184038b54f28e486a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-21283714', 'ctest-vn-91817633'], 'port_security_enabled': True, 'description': ''}} 2025-11-13 10:48:48,515 - DEBUG - Response for create_subnet : {'subnet': {'id': '0567dad6-d332-4b43-adcf-978f32824a23', 'name': '', 'tenant_id': '3002b6377417438184038b54f28e486a', 'network_id': 'a1c0ba5b-0f4d-4503-a78a-c12edb65f66c', 'ip_version': 4, 'cidr': '84.241.176.192/26', 'allocation_pools': [{'start': '84.241.176.194', 'end': '84.241.176.254'}], 'gateway_ip': '84.241.176.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '84.241.176.194', 'tags': [], 'project_id': '3002b6377417438184038b54f28e486a'}} 2025-11-13 10:48:48,531 - INFO - Created VN ctest-vn-91817633 2025-11-13 10:48:48,584 - DEBUG - VN ctest-vn-91817633 UUID is a1c0ba5b-0f4d-4503-a78a-c12edb65f66c 2025-11-13 10:48:48,927 - DEBUG - Response for create_network : {'network': {'id': '93a0dbf1-d098-4c6f-96a1-e9fa8773942c', 'name': 'ctest-ext_vn-27570981', 'tenant_id': '3002b6377417438184038b54f28e486a', 'project_id': '3002b6377417438184038b54f28e486a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-21283714', 'ctest-ext_vn-27570981'], 'port_security_enabled': True, 'description': ''}} 2025-11-13 10:48:49,092 - DEBUG - Response for create_subnet : {'subnet': {'id': '72d3136b-2da9-4bad-a227-a4dc050e3fd7', 'name': '', 'tenant_id': '3002b6377417438184038b54f28e486a', 'network_id': '93a0dbf1-d098-4c6f-96a1-e9fa8773942c', 'ip_version': 4, 'cidr': '57.229.103.64/26', 'allocation_pools': [{'start': '57.229.103.66', 'end': '57.229.103.126'}], 'gateway_ip': '57.229.103.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '57.229.103.66', 'tags': [], 'project_id': '3002b6377417438184038b54f28e486a'}} 2025-11-13 10:48:49,108 - INFO - Created VN ctest-ext_vn-27570981 2025-11-13 10:48:49,159 - DEBUG - VN ctest-ext_vn-27570981 UUID is 93a0dbf1-d098-4c6f-96a1-e9fa8773942c 2025-11-13 10:48:49,362 - DEBUG - Services list from nova: [, , ] 2025-11-13 10:48:50,590 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-4718-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-4718-1) 2025-11-13 10:48:51,913 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-4718-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-4718-1) 2025-11-13 10:48:51,999 - INFO - Setting gateway for router 889a6ec3-bff7-4d31-822d-a4f03fa497f9 to network 93a0dbf1-d098-4c6f-96a1-e9fa8773942c 2025-11-13 10:48:52,090 - INFO - Adding interface with subnet_id 0567dad6-d332-4b43-adcf-978f32824a23, port_id None to router 889a6ec3-bff7-4d31-822d-a4f03fa497f9 2025-11-13 10:48:52,541 - INFO - Waiting for VM ctest-TestRoutersBasic-21283714-73150723 to be up.. 2025-11-13 10:48:52,718 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-11-13 10:48:57,833 - DEBUG - VM is in ACTIVE state now 2025-11-13 10:48:57,833 - INFO - VM name : ctest-TestRoutersBasic-21283714-73150723 2025-11-13 10:48:57,922 - DEBUG - VM ctest-TestRoutersBasic-21283714-73150723 ID is 43597e90-bc95-409a-b649-72a4b64b898d 2025-11-13 10:48:57,948 - DEBUG - VM ctest-TestRoutersBasic-21283714-73150723 launched on Node cn-jenkins-deploy-platform-ansible-os-4718-1 2025-11-13 10:48:58,057 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine/43597e90-bc95-409a-b649-72a4b64b898d 2025-11-13 10:48:58,420 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine/43597e90-bc95-409a-b649-72a4b64b898d 2025-11-13 10:48:58,456 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine-interface/3c9ad312-8f4e-4490-a2e3-efb654874adf 2025-11-13 10:48:59,697 - 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=6.33 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.717 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 = 0.717/3.525/6.333/2.808 ms') 2025-11-13 10:48:59,697 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-21283714-73150723 passed 2025-11-13 10:48:59,856 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-11-13 10:48:59,856 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-21283714-73150723, IP 84.241.176.195, Port 22 2025-11-13 10:48:59,914 - 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-11-13 10:48:59,989 - DEBUG - VM ctest-TestRoutersBasic-21283714-73150723 is NOT ready for SSH connections, VM status: ACTIVE 2025-11-13 10:49:04,990 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-11-13 10:49:04,990 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-21283714-73150723, IP 84.241.176.195, Port 22 2025-11-13 10:49:05,148 - DEBUG - VM ctest-TestRoutersBasic-21283714-73150723 is ready for SSH connections 2025-11-13 10:49:05,148 - INFO - Waiting for VM ctest-TestRoutersBasic-21283714-29664665 to be up.. 2025-11-13 10:49:05,222 - DEBUG - VM is in ACTIVE state now 2025-11-13 10:49:05,223 - INFO - VM name : ctest-TestRoutersBasic-21283714-29664665 2025-11-13 10:49:05,290 - DEBUG - VM ctest-TestRoutersBasic-21283714-29664665 ID is ffcd9364-d402-4b8c-a0e1-83449e81a182 2025-11-13 10:49:05,290 - DEBUG - VM ctest-TestRoutersBasic-21283714-29664665 launched on Node cn-jenkins-deploy-platform-ansible-os-4718-1 2025-11-13 10:49:05,359 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine/ffcd9364-d402-4b8c-a0e1-83449e81a182 2025-11-13 10:49:05,367 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine-interface/b52af6f8-3cef-4cf7-ba54-87f930371463 2025-11-13 10:49:06,608 - 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.09 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.504 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.504/1.796/3.089/1.292 ms') 2025-11-13 10:49:06,608 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-21283714-29664665 passed 2025-11-13 10:49:06,756 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-11-13 10:49:06,756 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-21283714-29664665, IP 57.229.103.67, Port 22 2025-11-13 10:49:06,911 - DEBUG - VM ctest-TestRoutersBasic-21283714-29664665 is ready for SSH connections 2025-11-13 10:49:06,911 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-11-13 10:49:06,911 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 57.229.103.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.38, gateway password: c0ntrail123 2025-11-13 10:49:06,911 - DEBUG - ping -s 56 -c 3 -W 1 57.229.103.67 2025-11-13 10:49:10,895 - DEBUG - PING 57.229.103.67 (57.229.103.67): 56 data bytes 64 bytes from 57.229.103.67: seq=0 ttl=62 time=7.019 ms 64 bytes from 57.229.103.67: seq=1 ttl=62 time=1.055 ms 64 bytes from 57.229.103.67: seq=2 ttl=62 time=0.931 ms --- 57.229.103.67 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.931/3.001/7.019 ms 2025-11-13 10:49:10,895 - INFO - Ping to IP 57.229.103.67 from VM ctest-TestRoutersBasic-21283714-73150723 passed 2025-11-13 10:49:10,895 - INFO - Deleting interface with subnet_id 0567dad6-d332-4b43-adcf-978f32824a23, port_id None from router 889a6ec3-bff7-4d31-822d-a4f03fa497f9 2025-11-13 10:49:11,095 - INFO - Deleting VM ctest-TestRoutersBasic-21283714-29664665 2025-11-13 10:49:11,161 - INFO - Deleting VM ctest-TestRoutersBasic-21283714-73150723 2025-11-13 10:49:11,235 - INFO - Deleting VN ctest-ext_vn-27570981 2025-11-13 10:49:11,303 - DEBUG - VN 93a0dbf1-d098-4c6f-96a1-e9fa8773942c still in use: Unable to complete operation on network 93a0dbf1-d098-4c6f-96a1-e9fa8773942c. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-f5eabf2f-ff08-473b-8c50-f00e50ed6518'] 2025-11-13 10:49:11,304 - WARNING - Deleting VN ctest-ext_vn-27570981 failed..Will retry 2025-11-13 10:49:13,402 - DEBUG - Response for deleting network () 2025-11-13 10:49:13,402 - INFO - Deleting VN ctest-vn-91817633 2025-11-13 10:49:13,511 - DEBUG - Response for deleting network () 2025-11-13 10:49:13,767 - DEBUG - No XMPP flaps were noticed during the test
2025-11-13 10:49:13,767 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:27]
2025-11-13 10:49:13,767 - INFO - -------------------------------------------------------------------------------- 2025-11-13 10:49:14,466 - INFO - Deleted project: ctest-TestRoutersBasic-21283714, ID : 3002b637-7417-4381-8403-8b54f28e486a