2025-11-05 08:20:30,970 - INFO - Domain Default found not creating 2025-11-05 08:20:31,134 - INFO - Project ctest-TestRoutersBasic-37686135 not found, creating it 2025-11-05 08:20:31,583 - INFO - Created Project:ctest-TestRoutersBasic-37686135, ID : e4d29a67-20ef-4b7f-a387-a19bac54b0e8 2025-11-05 08:20:33,106 - INFO - ================================================================================ 2025-11-05 08:20:33,106 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2025-11-05 08:20:33,106 - 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-05 08:20:33,359 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.25': '0'}} with 2025-11-05 08:20:33,359 - INFO - Initial checks done. Running the testcase now 2025-11-05 08:20:33,359 - INFO - 2025-11-05 08:20:34,126 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-37686135 2025-11-05 08:20:34,222 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-37686135 2025-11-05 08:20:34,542 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-37686135', 'default']} 2025-11-05 08:20:34,832 - DEBUG - Response for create_network : {'network': {'id': 'ce05d4be-0875-4606-9f2e-45b6c6a5ad73', 'name': 'ctest-vn-45193093', 'tenant_id': 'e4d29a6720ef4b7fa387a19bac54b0e8', 'project_id': 'e4d29a6720ef4b7fa387a19bac54b0e8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-37686135', 'ctest-vn-45193093'], 'port_security_enabled': True, 'description': ''}} 2025-11-05 08:20:35,048 - DEBUG - Response for create_subnet : {'subnet': {'id': '3cd415b0-fec0-451a-807b-dfb348da37d7', 'name': '', 'tenant_id': 'e4d29a6720ef4b7fa387a19bac54b0e8', 'network_id': 'ce05d4be-0875-4606-9f2e-45b6c6a5ad73', 'ip_version': 4, 'cidr': '214.241.67.64/26', 'allocation_pools': [{'start': '214.241.67.66', 'end': '214.241.67.126'}], 'gateway_ip': '214.241.67.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '214.241.67.66', 'tags': [], 'project_id': 'e4d29a6720ef4b7fa387a19bac54b0e8'}} 2025-11-05 08:20:35,065 - INFO - Created VN ctest-vn-45193093 2025-11-05 08:20:35,118 - DEBUG - VN ctest-vn-45193093 UUID is ce05d4be-0875-4606-9f2e-45b6c6a5ad73 2025-11-05 08:20:35,462 - DEBUG - Response for create_network : {'network': {'id': '1fe07035-0932-44c9-a52f-e5f83b18a25e', 'name': 'ctest-ext_vn-62891497', 'tenant_id': 'e4d29a6720ef4b7fa387a19bac54b0e8', 'project_id': 'e4d29a6720ef4b7fa387a19bac54b0e8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-37686135', 'ctest-ext_vn-62891497'], 'port_security_enabled': True, 'description': ''}} 2025-11-05 08:20:35,660 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e34022f4-f966-4c02-92c0-c0198089bfd5', 'name': '', 'tenant_id': 'e4d29a6720ef4b7fa387a19bac54b0e8', 'network_id': '1fe07035-0932-44c9-a52f-e5f83b18a25e', 'ip_version': 4, 'cidr': '70.82.107.192/26', 'allocation_pools': [{'start': '70.82.107.194', 'end': '70.82.107.254'}], 'gateway_ip': '70.82.107.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '70.82.107.194', 'tags': [], 'project_id': 'e4d29a6720ef4b7fa387a19bac54b0e8'}} 2025-11-05 08:20:35,679 - INFO - Created VN ctest-ext_vn-62891497 2025-11-05 08:20:35,730 - DEBUG - VN ctest-ext_vn-62891497 UUID is 1fe07035-0932-44c9-a52f-e5f83b18a25e 2025-11-05 08:20:35,931 - DEBUG - Services list from nova: [, , ] 2025-11-05 08:20:36,997 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-4630-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-4630-1) 2025-11-05 08:20:38,231 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-4630-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-4630-1) 2025-11-05 08:20:38,293 - INFO - Setting gateway for router 41c54d56-1b0e-4a5f-8b92-d2ef36ab282b to network 1fe07035-0932-44c9-a52f-e5f83b18a25e 2025-11-05 08:20:38,353 - INFO - Adding interface with subnet_id 3cd415b0-fec0-451a-807b-dfb348da37d7, port_id None to router 41c54d56-1b0e-4a5f-8b92-d2ef36ab282b 2025-11-05 08:20:38,648 - INFO - Waiting for VM ctest-TestRoutersBasic-37686135-22706059 to be up.. 2025-11-05 08:20:38,752 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-11-05 08:20:43,822 - DEBUG - VM is in ACTIVE state now 2025-11-05 08:20:43,822 - INFO - VM name : ctest-TestRoutersBasic-37686135-22706059 2025-11-05 08:20:43,885 - DEBUG - VM ctest-TestRoutersBasic-37686135-22706059 ID is b1ed6e41-2867-4c3f-b89c-e95dfeb274db 2025-11-05 08:20:43,903 - DEBUG - VM ctest-TestRoutersBasic-37686135-22706059 launched on Node cn-jenkins-deploy-platform-ansible-os-4630-1 2025-11-05 08:20:43,964 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-machine/b1ed6e41-2867-4c3f-b89c-e95dfeb274db 2025-11-05 08:20:44,275 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-machine/b1ed6e41-2867-4c3f-b89c-e95dfeb274db 2025-11-05 08:20:44,310 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-machine-interface/551ea4fc-fa7b-4580-bb25-491e3516cd2d 2025-11-05 08:20:45,547 - 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=9.55 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=2.92 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.916/6.233/9.551/3.317 ms') 2025-11-05 08:20:45,547 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-37686135-22706059 passed 2025-11-05 08:20:45,694 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-11-05 08:20:45,694 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-37686135-22706059, IP 214.241.67.67, Port 22 2025-11-05 08:20:45,760 - 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-05 08:20:45,830 - DEBUG - VM ctest-TestRoutersBasic-37686135-22706059 is NOT ready for SSH connections, VM status: ACTIVE 2025-11-05 08:20:50,831 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-11-05 08:20:50,831 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-37686135-22706059, IP 214.241.67.67, Port 22 2025-11-05 08:20:50,986 - DEBUG - VM ctest-TestRoutersBasic-37686135-22706059 is ready for SSH connections 2025-11-05 08:20:50,986 - INFO - Waiting for VM ctest-TestRoutersBasic-37686135-52521177 to be up.. 2025-11-05 08:20:51,059 - DEBUG - VM is in ACTIVE state now 2025-11-05 08:20:51,059 - INFO - VM name : ctest-TestRoutersBasic-37686135-52521177 2025-11-05 08:20:51,133 - DEBUG - VM ctest-TestRoutersBasic-37686135-52521177 ID is b145ac54-771a-48be-9fb7-6c38b6b8cd5f 2025-11-05 08:20:51,133 - DEBUG - VM ctest-TestRoutersBasic-37686135-52521177 launched on Node cn-jenkins-deploy-platform-ansible-os-4630-1 2025-11-05 08:20:51,199 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-machine/b145ac54-771a-48be-9fb7-6c38b6b8cd5f 2025-11-05 08:20:51,207 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-machine-interface/825ab60f-628f-43f2-8e60-05b1268925da 2025-11-05 08:20:52,448 - 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.23 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.359 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.359/1.794/3.229/1.435 ms') 2025-11-05 08:20:52,448 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-37686135-52521177 passed 2025-11-05 08:20:52,598 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-11-05 08:20:52,598 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-37686135-52521177, IP 70.82.107.195, Port 22 2025-11-05 08:20:52,776 - DEBUG - VM ctest-TestRoutersBasic-37686135-52521177 is ready for SSH connections 2025-11-05 08:20:52,776 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-11-05 08:20:52,776 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 70.82.107.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.22, gateway password: c0ntrail123 2025-11-05 08:20:52,776 - DEBUG - ping -s 56 -c 3 -W 1 70.82.107.195 2025-11-05 08:20:56,686 - DEBUG - PING 70.82.107.195 (70.82.107.195): 56 data bytes 64 bytes from 70.82.107.195: seq=0 ttl=62 time=6.528 ms 64 bytes from 70.82.107.195: seq=1 ttl=62 time=1.202 ms 64 bytes from 70.82.107.195: seq=2 ttl=62 time=1.278 ms --- 70.82.107.195 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.202/3.002/6.528 ms 2025-11-05 08:20:56,686 - INFO - Ping to IP 70.82.107.195 from VM ctest-TestRoutersBasic-37686135-22706059 passed 2025-11-05 08:20:56,687 - INFO - Deleting interface with subnet_id 3cd415b0-fec0-451a-807b-dfb348da37d7, port_id None from router 41c54d56-1b0e-4a5f-8b92-d2ef36ab282b 2025-11-05 08:20:56,852 - INFO - Deleting VM ctest-TestRoutersBasic-37686135-52521177 2025-11-05 08:20:56,916 - INFO - Deleting VM ctest-TestRoutersBasic-37686135-22706059 2025-11-05 08:20:56,991 - INFO - Deleting VN ctest-ext_vn-62891497 2025-11-05 08:20:57,059 - DEBUG - VN 1fe07035-0932-44c9-a52f-e5f83b18a25e still in use: Unable to complete operation on network 1fe07035-0932-44c9-a52f-e5f83b18a25e. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-8559ff06-a5a9-43ee-919e-7bb728657cd0'] 2025-11-05 08:20:57,059 - WARNING - Deleting VN ctest-ext_vn-62891497 failed..Will retry 2025-11-05 08:20:59,153 - DEBUG - Response for deleting network () 2025-11-05 08:20:59,153 - INFO - Deleting VN ctest-vn-45193093 2025-11-05 08:20:59,271 - DEBUG - Response for deleting network () 2025-11-05 08:20:59,529 - DEBUG - No XMPP flaps were noticed during the test 2025-11-05 08:20:59,529 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:26] 2025-11-05 08:20:59,529 - INFO - -------------------------------------------------------------------------------- 2025-11-05 08:21:00,228 - INFO - Deleted project: ctest-TestRoutersBasic-37686135, ID : e4d29a67-20ef-4b7f-a387-a19bac54b0e8