2025-06-09 02:07:41,511 - INFO - Domain Default found not creating 2025-06-09 02:07:41,653 - INFO - Project ctest-TestRoutersBasic-99165934 not found, creating it 2025-06-09 02:07:42,105 - INFO - Created Project:ctest-TestRoutersBasic-99165934, ID : 59d59eba-ff47-493c-adc1-7ac95e533632 2025-06-09 02:07:43,530 - INFO - ================================================================================ 2025-06-09 02:07:43,530 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2025-06-09 02:07:43,530 - 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-06-09 02:07:43,789 - DEBUG - Nothing to compare xmpp stats {'10.0.0.130': {'10.20.0.18': '0'}} with 2025-06-09 02:07:43,789 - INFO - Initial checks done. Running the testcase now 2025-06-09 02:07:43,790 - INFO - 2025-06-09 02:07:44,477 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-99165934 2025-06-09 02:07:44,579 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-99165934 2025-06-09 02:07:44,915 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-99165934', 'default']} 2025-06-09 02:07:45,225 - DEBUG - Response for create_network : {'network': {'id': '587a9b79-dd19-4dcf-95ea-e8f615ac9b6d', 'name': 'ctest-vn-66535617', 'tenant_id': '59d59ebaff47493cadc17ac95e533632', 'project_id': '59d59ebaff47493cadc17ac95e533632', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-99165934', 'ctest-vn-66535617'], 'port_security_enabled': True, 'description': ''}} 2025-06-09 02:07:45,412 - DEBUG - Response for create_subnet : {'subnet': {'id': '0c2f0aab-7c05-4a9d-bf35-fba6a6312a02', 'name': '', 'tenant_id': '59d59ebaff47493cadc17ac95e533632', 'network_id': '587a9b79-dd19-4dcf-95ea-e8f615ac9b6d', 'ip_version': 4, 'cidr': '119.54.44.64/26', 'allocation_pools': [{'start': '119.54.44.66', 'end': '119.54.44.126'}], 'gateway_ip': '119.54.44.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '119.54.44.66', 'tags': [], 'project_id': '59d59ebaff47493cadc17ac95e533632'}} 2025-06-09 02:07:45,430 - INFO - Created VN ctest-vn-66535617 2025-06-09 02:07:45,487 - DEBUG - VN ctest-vn-66535617 UUID is 587a9b79-dd19-4dcf-95ea-e8f615ac9b6d 2025-06-09 02:07:45,832 - DEBUG - Response for create_network : {'network': {'id': '147f6e6e-81be-4eda-b3f0-0935d310a19b', 'name': 'ctest-ext_vn-49445970', 'tenant_id': '59d59ebaff47493cadc17ac95e533632', 'project_id': '59d59ebaff47493cadc17ac95e533632', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-99165934', 'ctest-ext_vn-49445970'], 'port_security_enabled': True, 'description': ''}} 2025-06-09 02:07:46,054 - DEBUG - Response for create_subnet : {'subnet': {'id': '82612624-bc85-453d-9072-80f75ffa3cfb', 'name': '', 'tenant_id': '59d59ebaff47493cadc17ac95e533632', 'network_id': '147f6e6e-81be-4eda-b3f0-0935d310a19b', 'ip_version': 4, 'cidr': '193.27.154.128/26', 'allocation_pools': [{'start': '193.27.154.130', 'end': '193.27.154.190'}], 'gateway_ip': '193.27.154.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '193.27.154.130', 'tags': [], 'project_id': '59d59ebaff47493cadc17ac95e533632'}} 2025-06-09 02:07:46,073 - INFO - Created VN ctest-ext_vn-49445970 2025-06-09 02:07:46,127 - DEBUG - VN ctest-ext_vn-49445970 UUID is 147f6e6e-81be-4eda-b3f0-0935d310a19b 2025-06-09 02:07:46,286 - DEBUG - Services list from nova: [, , ] 2025-06-09 02:07:47,251 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3419-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3419-1) 2025-06-09 02:07:48,393 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3419-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3419-1) 2025-06-09 02:07:48,486 - INFO - Setting gateway for router 6f997061-e87c-4125-a4e1-c975730a80de to network 147f6e6e-81be-4eda-b3f0-0935d310a19b 2025-06-09 02:07:48,570 - INFO - Adding interface with subnet_id 0c2f0aab-7c05-4a9d-bf35-fba6a6312a02, port_id None to router 6f997061-e87c-4125-a4e1-c975730a80de 2025-06-09 02:07:49,001 - INFO - Waiting for VM ctest-TestRoutersBasic-99165934-46070597 to be up.. 2025-06-09 02:07:49,143 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-06-09 02:07:54,222 - DEBUG - VM is in ACTIVE state now 2025-06-09 02:07:54,222 - INFO - VM name : ctest-TestRoutersBasic-99165934-46070597 2025-06-09 02:07:54,296 - DEBUG - VM ctest-TestRoutersBasic-99165934-46070597 ID is a0b2f948-1dbd-4af9-99eb-a3fb1d350fbe 2025-06-09 02:07:54,315 - DEBUG - VM ctest-TestRoutersBasic-99165934-46070597 launched on Node cn-jenkins-deploy-platform-ansible-os-3419-1 2025-06-09 02:07:54,390 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-machine/a0b2f948-1dbd-4af9-99eb-a3fb1d350fbe 2025-06-09 02:07:54,683 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-machine/a0b2f948-1dbd-4af9-99eb-a3fb1d350fbe 2025-06-09 02:07:54,711 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-machine-interface/28d9cae1-f86e-46e4-8489-6676c923ce7e 2025-06-09 02:07:57,960 - 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 1015ms') 2025-06-09 02:07:57,960 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-99165934-46070597 failed! 2025-06-09 02:07:58,019 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-99165934:ctest-vn-66535617 is 119.54.44.65 and allocation pool is NOT set 2025-06-09 02:08:00,076 - 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=4.69 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.923 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.923/2.807/4.691/1.884 ms') 2025-06-09 02:08:00,076 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-99165934-46070597 passed 2025-06-09 02:08:00,235 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-09 02:08:00,235 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-99165934-46070597, IP 119.54.44.67, Port 22 2025-06-09 02:08:00,405 - DEBUG - VM ctest-TestRoutersBasic-99165934-46070597 is ready for SSH connections 2025-06-09 02:08:00,406 - INFO - Waiting for VM ctest-TestRoutersBasic-99165934-04938956 to be up.. 2025-06-09 02:08:00,494 - DEBUG - VM is in ACTIVE state now 2025-06-09 02:08:00,494 - INFO - VM name : ctest-TestRoutersBasic-99165934-04938956 2025-06-09 02:08:00,645 - DEBUG - VM ctest-TestRoutersBasic-99165934-04938956 ID is ef0172a7-11b6-4278-870f-92baa840de17 2025-06-09 02:08:00,645 - DEBUG - VM ctest-TestRoutersBasic-99165934-04938956 launched on Node cn-jenkins-deploy-platform-ansible-os-3419-1 2025-06-09 02:08:00,772 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-machine/ef0172a7-11b6-4278-870f-92baa840de17 2025-06-09 02:08:00,804 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-machine-interface/7f97d35e-1c1b-4d4d-811b-15500af77350 2025-06-09 02:08:02,069 - 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.78 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.363 ms\r\n\r\n--- 169.254.0.4 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1002ms\r\nrtt min/avg/max/mdev = 0.363/1.569/2.775/1.206 ms') 2025-06-09 02:08:02,069 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-99165934-04938956 passed 2025-06-09 02:08:02,219 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-09 02:08:02,220 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-99165934-04938956, IP 193.27.154.131, Port 22 2025-06-09 02:08:02,371 - DEBUG - VM ctest-TestRoutersBasic-99165934-04938956 is ready for SSH connections 2025-06-09 02:08:02,371 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-09 02:08:02,371 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 193.27.154.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.130, gateway password: c0ntrail123 2025-06-09 02:08:02,371 - DEBUG - ping -s 56 -c 3 -W 1 193.27.154.131 2025-06-09 02:08:06,086 - DEBUG - PING 193.27.154.131 (193.27.154.131): 56 data bytes 64 bytes from 193.27.154.131: seq=0 ttl=62 time=5.800 ms 64 bytes from 193.27.154.131: seq=1 ttl=62 time=0.982 ms 64 bytes from 193.27.154.131: seq=2 ttl=62 time=1.190 ms --- 193.27.154.131 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.982/2.657/5.800 ms 2025-06-09 02:08:06,086 - INFO - Ping to IP 193.27.154.131 from VM ctest-TestRoutersBasic-99165934-46070597 passed 2025-06-09 02:08:06,086 - INFO - Deleting interface with subnet_id 0c2f0aab-7c05-4a9d-bf35-fba6a6312a02, port_id None from router 6f997061-e87c-4125-a4e1-c975730a80de 2025-06-09 02:08:06,294 - INFO - Deleting VM ctest-TestRoutersBasic-99165934-04938956 2025-06-09 02:08:06,362 - INFO - Deleting VM ctest-TestRoutersBasic-99165934-46070597 2025-06-09 02:08:06,432 - INFO - Deleting VN ctest-ext_vn-49445970 2025-06-09 02:08:06,504 - DEBUG - VN 147f6e6e-81be-4eda-b3f0-0935d310a19b still in use: Unable to complete operation on network 147f6e6e-81be-4eda-b3f0-0935d310a19b. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-fb237cea-c7fa-4d1a-b591-7e7ac908fbaf'] 2025-06-09 02:08:06,504 - WARNING - Deleting VN ctest-ext_vn-49445970 failed..Will retry 2025-06-09 02:08:08,621 - DEBUG - Response for deleting network () 2025-06-09 02:08:08,622 - INFO - Deleting VN ctest-vn-66535617 2025-06-09 02:08:08,724 - DEBUG - Response for deleting network () 2025-06-09 02:08:08,977 - DEBUG - No XMPP flaps were noticed during the test
2025-06-09 02:08:08,977 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:25]
2025-06-09 02:08:08,977 - INFO - -------------------------------------------------------------------------------- 2025-06-09 02:08:09,640 - INFO - Deleted project: ctest-TestRoutersBasic-99165934, ID : 59d59eba-ff47-493c-adc1-7ac95e533632