2025-08-20 13:02:34,086 - INFO - Domain Default found not creating 2025-08-20 13:02:34,206 - INFO - Project ctest-TestRoutersBasic-74294154 not found, creating it 2025-08-20 13:02:34,631 - INFO - Created Project:ctest-TestRoutersBasic-74294154, ID : 4acb258b-9be5-4b6f-b82b-302ab6ef09c1 2025-08-20 13:02:35,949 - INFO - ================================================================================ 2025-08-20 13:02:35,949 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2025-08-20 13:02:35,949 - 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-08-20 13:02:36,203 - DEBUG - Nothing to compare xmpp stats {'10.0.0.27': {'10.0.0.27': '0'}} with 2025-08-20 13:02:36,203 - INFO - Initial checks done. Running the testcase now 2025-08-20 13:02:36,204 - INFO - 2025-08-20 13:02:36,864 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-74294154 2025-08-20 13:02:36,959 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-74294154 2025-08-20 13:02:37,271 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-74294154', 'default']} 2025-08-20 13:02:37,546 - DEBUG - Response for create_network : {'network': {'id': '1443d14a-d15c-454e-bafb-1c07c1f3179c', 'name': 'ctest-vn-62779736', 'tenant_id': '4acb258b9be54b6fb82b302ab6ef09c1', 'project_id': '4acb258b9be54b6fb82b302ab6ef09c1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-74294154', 'ctest-vn-62779736'], 'port_security_enabled': True, 'description': ''}} 2025-08-20 13:02:37,724 - DEBUG - Response for create_subnet : {'subnet': {'id': '6c052732-6b4e-4555-b45f-8d1d142bf14c', 'name': '', 'tenant_id': '4acb258b9be54b6fb82b302ab6ef09c1', 'network_id': '1443d14a-d15c-454e-bafb-1c07c1f3179c', 'ip_version': 4, 'cidr': '101.76.114.192/26', 'allocation_pools': [{'start': '101.76.114.194', 'end': '101.76.114.254'}], 'gateway_ip': '101.76.114.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '101.76.114.194', 'tags': [], 'project_id': '4acb258b9be54b6fb82b302ab6ef09c1'}} 2025-08-20 13:02:37,739 - INFO - Created VN ctest-vn-62779736 2025-08-20 13:02:37,792 - DEBUG - VN ctest-vn-62779736 UUID is 1443d14a-d15c-454e-bafb-1c07c1f3179c 2025-08-20 13:02:38,101 - DEBUG - Response for create_network : {'network': {'id': 'b22532d2-4572-45a8-8cf8-10a9804450b8', 'name': 'ctest-ext_vn-62564830', 'tenant_id': '4acb258b9be54b6fb82b302ab6ef09c1', 'project_id': '4acb258b9be54b6fb82b302ab6ef09c1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-74294154', 'ctest-ext_vn-62564830'], 'port_security_enabled': True, 'description': ''}} 2025-08-20 13:02:38,274 - DEBUG - Response for create_subnet : {'subnet': {'id': '4327047a-e282-45f8-88ac-3a32a15d6464', 'name': '', 'tenant_id': '4acb258b9be54b6fb82b302ab6ef09c1', 'network_id': 'b22532d2-4572-45a8-8cf8-10a9804450b8', 'ip_version': 4, 'cidr': '110.178.157.128/26', 'allocation_pools': [{'start': '110.178.157.130', 'end': '110.178.157.190'}], 'gateway_ip': '110.178.157.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '110.178.157.130', 'tags': [], 'project_id': '4acb258b9be54b6fb82b302ab6ef09c1'}} 2025-08-20 13:02:38,289 - INFO - Created VN ctest-ext_vn-62564830 2025-08-20 13:02:38,343 - DEBUG - VN ctest-ext_vn-62564830 UUID is b22532d2-4572-45a8-8cf8-10a9804450b8 2025-08-20 13:02:38,533 - DEBUG - Services list from nova: [, , ] 2025-08-20 13:02:39,472 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3894-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3894-1) 2025-08-20 13:02:40,491 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3894-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3894-1) 2025-08-20 13:02:40,549 - INFO - Setting gateway for router f042e535-a94b-4371-98d0-6876e4b4c975 to network b22532d2-4572-45a8-8cf8-10a9804450b8 2025-08-20 13:02:40,600 - INFO - Adding interface with subnet_id 6c052732-6b4e-4555-b45f-8d1d142bf14c, port_id None to router f042e535-a94b-4371-98d0-6876e4b4c975 2025-08-20 13:02:40,832 - INFO - Waiting for VM ctest-TestRoutersBasic-74294154-09722291 to be up.. 2025-08-20 13:02:40,959 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-08-20 13:02:46,021 - DEBUG - VM is in ACTIVE state now 2025-08-20 13:02:46,021 - INFO - VM name : ctest-TestRoutersBasic-74294154-09722291 2025-08-20 13:02:46,082 - DEBUG - VM ctest-TestRoutersBasic-74294154-09722291 ID is 25af2815-1745-4c40-b04e-bb43e66fc02b 2025-08-20 13:02:46,099 - DEBUG - VM ctest-TestRoutersBasic-74294154-09722291 launched on Node cn-jenkins-deploy-platform-ansible-os-3894-1. 2025-08-20 13:02:46,159 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-machine/25af2815-1745-4c40-b04e-bb43e66fc02b 2025-08-20 13:02:46,447 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-machine/25af2815-1745-4c40-b04e-bb43e66fc02b 2025-08-20 13:02:46,472 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-machine-interface/74177029-de9f-4f30-9928-8886777eb042 2025-08-20 13:02:49,728 - 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 1028ms') 2025-08-20 13:02:49,728 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-74294154-09722291 failed! 2025-08-20 13:02:49,783 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-74294154:ctest-vn-62779736 is 101.76.114.193 and allocation pool is NOT set 2025-08-20 13:02:51,840 - 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=2.57 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.440 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1002ms\r\nrtt min/avg/max/mdev = 0.440/1.506/2.572/1.066 ms') 2025-08-20 13:02:51,840 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-74294154-09722291 passed 2025-08-20 13:02:51,991 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-20 13:02:51,991 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-74294154-09722291, IP 101.76.114.195, Port 22 2025-08-20 13:02:52,143 - DEBUG - VM ctest-TestRoutersBasic-74294154-09722291 is ready for SSH connections 2025-08-20 13:02:52,143 - INFO - Waiting for VM ctest-TestRoutersBasic-74294154-71311481 to be up.. 2025-08-20 13:02:52,200 - DEBUG - VM is in ACTIVE state now 2025-08-20 13:02:52,201 - INFO - VM name : ctest-TestRoutersBasic-74294154-71311481 2025-08-20 13:02:52,255 - DEBUG - VM ctest-TestRoutersBasic-74294154-71311481 ID is e00a1c48-3590-49bc-a276-d8e34dbe8e2a 2025-08-20 13:02:52,255 - DEBUG - VM ctest-TestRoutersBasic-74294154-71311481 launched on Node cn-jenkins-deploy-platform-ansible-os-3894-1. 2025-08-20 13:02:52,310 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-machine/e00a1c48-3590-49bc-a276-d8e34dbe8e2a 2025-08-20 13:02:52,316 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-machine-interface/b8de0a5b-b713-4ee9-b9ce-fc77fd3f66fa 2025-08-20 13:02:53,532 - 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.67 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.391 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.391/1.528/2.665/1.137 ms') 2025-08-20 13:02:53,532 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-74294154-71311481 passed 2025-08-20 13:02:53,675 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-20 13:02:53,676 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-74294154-71311481, IP 110.178.157.131, Port 22 2025-08-20 13:02:53,826 - DEBUG - VM ctest-TestRoutersBasic-74294154-71311481 is ready for SSH connections 2025-08-20 13:02:53,827 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-20 13:02:53,827 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 110.178.157.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.27, gateway password: c0ntrail123 2025-08-20 13:02:53,827 - DEBUG - ping -s 56 -c 3 -W 1 110.178.157.131 2025-08-20 13:02:57,799 - DEBUG - PING 110.178.157.131 (110.178.157.131): 56 data bytes 64 bytes from 110.178.157.131: seq=0 ttl=62 time=6.798 ms 64 bytes from 110.178.157.131: seq=1 ttl=62 time=0.779 ms 64 bytes from 110.178.157.131: seq=2 ttl=62 time=0.716 ms --- 110.178.157.131 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.716/2.764/6.798 ms 2025-08-20 13:02:57,799 - INFO - Ping to IP 110.178.157.131 from VM ctest-TestRoutersBasic-74294154-09722291 passed 2025-08-20 13:02:57,799 - INFO - Deleting interface with subnet_id 6c052732-6b4e-4555-b45f-8d1d142bf14c, port_id None from router f042e535-a94b-4371-98d0-6876e4b4c975 2025-08-20 13:02:57,953 - INFO - Deleting VM ctest-TestRoutersBasic-74294154-71311481 2025-08-20 13:02:58,010 - INFO - Deleting VM ctest-TestRoutersBasic-74294154-09722291 2025-08-20 13:02:58,080 - INFO - Deleting VN ctest-ext_vn-62564830 2025-08-20 13:02:58,132 - DEBUG - VN b22532d2-4572-45a8-8cf8-10a9804450b8 still in use: Unable to complete operation on network b22532d2-4572-45a8-8cf8-10a9804450b8. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-601634a0-3873-492c-90e1-88a0e4f9a784'] 2025-08-20 13:02:58,132 - WARNING - Deleting VN ctest-ext_vn-62564830 failed..Will retry 2025-08-20 13:03:00,213 - DEBUG - Response for deleting network () 2025-08-20 13:03:00,213 - INFO - Deleting VN ctest-vn-62779736 2025-08-20 13:03:00,287 - DEBUG - Response for deleting network () 2025-08-20 13:03:00,539 - DEBUG - No XMPP flaps were noticed during the test
2025-08-20 13:03:00,539 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:25]
2025-08-20 13:03:00,539 - INFO - -------------------------------------------------------------------------------- 2025-08-20 13:03:01,183 - INFO - Deleted project: ctest-TestRoutersBasic-74294154, ID : 4acb258b-9be5-4b6f-b82b-302ab6ef09c1