2025-10-27 11:58:25,047 - INFO - Domain Default found not creating 2025-10-27 11:58:25,205 - INFO - Project ctest-TestRoutersBasic-28720237 not found, creating it 2025-10-27 11:58:25,687 - INFO - Created Project:ctest-TestRoutersBasic-28720237, ID : 1e9265ee-d98e-45f0-ad3f-e13840d1a3d8 2025-10-27 11:58:27,389 - INFO - ================================================================================ 2025-10-27 11:58:27,389 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2025-10-27 11:58:27,389 - 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-10-27 11:58:27,664 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.14': '0'}} with 2025-10-27 11:58:27,664 - INFO - Initial checks done. Running the testcase now 2025-10-27 11:58:27,664 - INFO - 2025-10-27 11:58:28,423 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-28720237 2025-10-27 11:58:28,523 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-28720237 2025-10-27 11:58:28,846 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-28720237', 'default']} 2025-10-27 11:58:29,176 - DEBUG - Response for create_network : {'network': {'id': '6340cdfe-1275-45d0-9037-4cb22eb6c107', 'name': 'ctest-vn-09748044', 'tenant_id': '1e9265eed98e45f0ad3fe13840d1a3d8', 'project_id': '1e9265eed98e45f0ad3fe13840d1a3d8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-28720237', 'ctest-vn-09748044'], 'port_security_enabled': True, 'description': ''}} 2025-10-27 11:58:29,418 - DEBUG - Response for create_subnet : {'subnet': {'id': '757599e1-02ca-47b1-8724-52b8a5aa0be4', 'name': '', 'tenant_id': '1e9265eed98e45f0ad3fe13840d1a3d8', 'network_id': '6340cdfe-1275-45d0-9037-4cb22eb6c107', 'ip_version': 4, 'cidr': '223.162.130.64/26', 'allocation_pools': [{'start': '223.162.130.66', 'end': '223.162.130.126'}], 'gateway_ip': '223.162.130.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '223.162.130.66', 'tags': [], 'project_id': '1e9265eed98e45f0ad3fe13840d1a3d8'}} 2025-10-27 11:58:29,442 - INFO - Created VN ctest-vn-09748044 2025-10-27 11:58:29,495 - DEBUG - VN ctest-vn-09748044 UUID is 6340cdfe-1275-45d0-9037-4cb22eb6c107 2025-10-27 11:58:29,846 - DEBUG - Response for create_network : {'network': {'id': '301e7e68-abc3-49e1-ac78-7bc635432ca4', 'name': 'ctest-ext_vn-40582147', 'tenant_id': '1e9265eed98e45f0ad3fe13840d1a3d8', 'project_id': '1e9265eed98e45f0ad3fe13840d1a3d8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-28720237', 'ctest-ext_vn-40582147'], 'port_security_enabled': True, 'description': ''}} 2025-10-27 11:58:30,054 - DEBUG - Response for create_subnet : {'subnet': {'id': '66938fc4-3443-4713-84c7-de2aeb320b62', 'name': '', 'tenant_id': '1e9265eed98e45f0ad3fe13840d1a3d8', 'network_id': '301e7e68-abc3-49e1-ac78-7bc635432ca4', 'ip_version': 4, 'cidr': '116.4.139.128/26', 'allocation_pools': [{'start': '116.4.139.130', 'end': '116.4.139.190'}], 'gateway_ip': '116.4.139.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '116.4.139.130', 'tags': [], 'project_id': '1e9265eed98e45f0ad3fe13840d1a3d8'}} 2025-10-27 11:58:30,073 - INFO - Created VN ctest-ext_vn-40582147 2025-10-27 11:58:30,131 - DEBUG - VN ctest-ext_vn-40582147 UUID is 301e7e68-abc3-49e1-ac78-7bc635432ca4 2025-10-27 11:58:30,305 - DEBUG - Services list from nova: [, , ] 2025-10-27 11:58:31,395 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-4501-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-4501-1) 2025-10-27 11:58:32,666 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-4501-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-4501-1) 2025-10-27 11:58:32,753 - INFO - Setting gateway for router 408f4ef9-8fa9-40fc-9ce6-f0137b1248f7 to network 301e7e68-abc3-49e1-ac78-7bc635432ca4 2025-10-27 11:58:32,836 - INFO - Adding interface with subnet_id 757599e1-02ca-47b1-8724-52b8a5aa0be4, port_id None to router 408f4ef9-8fa9-40fc-9ce6-f0137b1248f7 2025-10-27 11:58:33,250 - INFO - Waiting for VM ctest-TestRoutersBasic-28720237-56349832 to be up.. 2025-10-27 11:58:33,492 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-10-27 11:58:38,573 - DEBUG - VM is in ACTIVE state now 2025-10-27 11:58:38,573 - INFO - VM name : ctest-TestRoutersBasic-28720237-56349832 2025-10-27 11:58:38,652 - DEBUG - VM ctest-TestRoutersBasic-28720237-56349832 ID is 5a8b86d0-808d-4fbc-8495-f5670f83529e 2025-10-27 11:58:38,673 - DEBUG - VM ctest-TestRoutersBasic-28720237-56349832 launched on Node cn-jenkins-deploy-platform-ansible-os-4501-1 2025-10-27 11:58:38,754 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-machine/5a8b86d0-808d-4fbc-8495-f5670f83529e 2025-10-27 11:58:39,058 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-machine/5a8b86d0-808d-4fbc-8495-f5670f83529e 2025-10-27 11:58:39,094 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-machine-interface/91e0f40f-94d0-4ded-906c-efec816889a2 2025-10-27 11:58:42,344 - 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 1011ms') 2025-10-27 11:58:42,344 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-28720237-56349832 failed! 2025-10-27 11:58:42,399 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-28720237:ctest-vn-09748044 is 223.162.130.65 and allocation pool is NOT set 2025-10-27 11:58:44,467 - 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.45 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=2.12 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.124/3.788/5.452/1.664 ms') 2025-10-27 11:58:44,467 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-28720237-56349832 passed 2025-10-27 11:58:44,630 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-27 11:58:44,631 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-28720237-56349832, IP 223.162.130.67, Port 22 2025-10-27 11:58:44,687 - 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-10-27 11:58:44,835 - DEBUG - VM ctest-TestRoutersBasic-28720237-56349832 is NOT ready for SSH connections, VM status: ACTIVE 2025-10-27 11:58:49,836 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-27 11:58:49,836 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-28720237-56349832, IP 223.162.130.67, Port 22 2025-10-27 11:58:49,994 - DEBUG - VM ctest-TestRoutersBasic-28720237-56349832 is ready for SSH connections 2025-10-27 11:58:49,994 - INFO - Waiting for VM ctest-TestRoutersBasic-28720237-32330174 to be up.. 2025-10-27 11:58:50,075 - DEBUG - VM is in ACTIVE state now 2025-10-27 11:58:50,075 - INFO - VM name : ctest-TestRoutersBasic-28720237-32330174 2025-10-27 11:58:50,161 - DEBUG - VM ctest-TestRoutersBasic-28720237-32330174 ID is f2d40b8a-6c78-4487-b81e-2cf9e04c7a99 2025-10-27 11:58:50,162 - DEBUG - VM ctest-TestRoutersBasic-28720237-32330174 launched on Node cn-jenkins-deploy-platform-ansible-os-4501-1 2025-10-27 11:58:50,244 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-machine/f2d40b8a-6c78-4487-b81e-2cf9e04c7a99 2025-10-27 11:58:50,254 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-machine-interface/4a43d417-a623-41d5-b39c-f8d6c2960710 2025-10-27 11:58:51,503 - 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.18 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.484 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.484/1.831/3.179/1.347 ms') 2025-10-27 11:58:51,503 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-28720237-32330174 passed 2025-10-27 11:58:51,658 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-27 11:58:51,658 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-28720237-32330174, IP 116.4.139.131, Port 22 2025-10-27 11:58:51,832 - DEBUG - VM ctest-TestRoutersBasic-28720237-32330174 is ready for SSH connections 2025-10-27 11:58:51,832 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-27 11:58:51,833 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 116.4.139.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.33, gateway password: c0ntrail123 2025-10-27 11:58:51,833 - DEBUG - ping -s 56 -c 3 -W 1 116.4.139.131 2025-10-27 11:58:55,571 - DEBUG - PING 116.4.139.131 (116.4.139.131): 56 data bytes 64 bytes from 116.4.139.131: seq=0 ttl=62 time=5.352 ms 64 bytes from 116.4.139.131: seq=1 ttl=62 time=1.361 ms 64 bytes from 116.4.139.131: seq=2 ttl=62 time=1.230 ms --- 116.4.139.131 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.230/2.647/5.352 ms 2025-10-27 11:58:55,571 - INFO - Ping to IP 116.4.139.131 from VM ctest-TestRoutersBasic-28720237-56349832 passed 2025-10-27 11:58:55,572 - INFO - Deleting interface with subnet_id 757599e1-02ca-47b1-8724-52b8a5aa0be4, port_id None from router 408f4ef9-8fa9-40fc-9ce6-f0137b1248f7 2025-10-27 11:58:55,780 - INFO - Deleting VM ctest-TestRoutersBasic-28720237-32330174 2025-10-27 11:58:55,863 - INFO - Deleting VM ctest-TestRoutersBasic-28720237-56349832 2025-10-27 11:58:55,964 - INFO - Deleting VN ctest-ext_vn-40582147 2025-10-27 11:58:56,044 - DEBUG - VN 301e7e68-abc3-49e1-ac78-7bc635432ca4 still in use: Unable to complete operation on network 301e7e68-abc3-49e1-ac78-7bc635432ca4. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-2b3705c7-028f-4d44-8abb-e46249cad03e'] 2025-10-27 11:58:56,044 - WARNING - Deleting VN ctest-ext_vn-40582147 failed..Will retry 2025-10-27 11:58:58,174 - DEBUG - Response for deleting network () 2025-10-27 11:58:58,174 - INFO - Deleting VN ctest-vn-09748044 2025-10-27 11:58:58,281 - DEBUG - Response for deleting network () 2025-10-27 11:58:58,535 - DEBUG - No XMPP flaps were noticed during the test 2025-10-27 11:58:58,536 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:31] 2025-10-27 11:58:58,536 - INFO - -------------------------------------------------------------------------------- 2025-10-27 11:58:59,213 - INFO - Deleted project: ctest-TestRoutersBasic-28720237, ID : 1e9265ee-d98e-45f0-ad3f-e13840d1a3d8