2025-04-28 15:34:47,928 - INFO - Domain Default found not creating 2025-04-28 15:34:48,073 - INFO - Project ctest-TestRoutersBasic-70140643 not found, creating it 2025-04-28 15:34:48,374 - INFO - Created Project:ctest-TestRoutersBasic-70140643, ID : 58eba7d0-6b27-45c5-93f9-da783183a3e9 2025-04-28 15:34:49,988 - INFO - ================================================================================ 2025-04-28 15:34:49,988 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2025-04-28 15:34:49,988 - 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-04-28 15:34:50,136 - DEBUG - Nothing to compare xmpp stats {'10.0.0.242': {'10.20.0.254': '0'}} with 2025-04-28 15:34:50,136 - INFO - Initial checks done. Running the testcase now 2025-04-28 15:34:50,136 - INFO - 2025-04-28 15:34:50,888 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-70140643 2025-04-28 15:34:50,902 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-70140643 2025-04-28 15:34:51,057 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-70140643', 'default']} 2025-04-28 15:34:51,265 - DEBUG - Response for create_network : {'network': {'id': '05dea13d-936b-4b7c-a7a6-e933045b7289', 'name': 'ctest-vn-31311327', 'tenant_id': '58eba7d06b2745c593f9da783183a3e9', 'project_id': '58eba7d06b2745c593f9da783183a3e9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-70140643', 'ctest-vn-31311327'], 'port_security_enabled': True, 'description': ''}} 2025-04-28 15:34:51,431 - DEBUG - Response for create_subnet : {'subnet': {'id': '03120774-b53e-44dd-9e02-6af15624d769', 'name': '', 'tenant_id': '58eba7d06b2745c593f9da783183a3e9', 'network_id': '05dea13d-936b-4b7c-a7a6-e933045b7289', 'ip_version': 4, 'cidr': '137.138.63.128/26', 'allocation_pools': [{'start': '137.138.63.130', 'end': '137.138.63.190'}], 'gateway_ip': '137.138.63.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '137.138.63.130', 'tags': [], 'project_id': '58eba7d06b2745c593f9da783183a3e9'}} 2025-04-28 15:34:51,451 - INFO - Created VN ctest-vn-31311327 2025-04-28 15:34:51,506 - DEBUG - VN ctest-vn-31311327 UUID is 05dea13d-936b-4b7c-a7a6-e933045b7289 2025-04-28 15:34:51,779 - DEBUG - Response for create_network : {'network': {'id': 'dc8d92c9-5a64-48fa-b356-ca3e982c3f27', 'name': 'ctest-ext_vn-61468190', 'tenant_id': '58eba7d06b2745c593f9da783183a3e9', 'project_id': '58eba7d06b2745c593f9da783183a3e9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-70140643', 'ctest-ext_vn-61468190'], 'port_security_enabled': True, 'description': ''}} 2025-04-28 15:34:51,995 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c4335955-563e-4590-bff5-15f6d80aa345', 'name': '', 'tenant_id': '58eba7d06b2745c593f9da783183a3e9', 'network_id': 'dc8d92c9-5a64-48fa-b356-ca3e982c3f27', 'ip_version': 4, 'cidr': '197.126.95.192/26', 'allocation_pools': [{'start': '197.126.95.194', 'end': '197.126.95.254'}], 'gateway_ip': '197.126.95.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '197.126.95.194', 'tags': [], 'project_id': '58eba7d06b2745c593f9da783183a3e9'}} 2025-04-28 15:34:52,015 - INFO - Created VN ctest-ext_vn-61468190 2025-04-28 15:34:52,070 - DEBUG - VN ctest-ext_vn-61468190 UUID is dc8d92c9-5a64-48fa-b356-ca3e982c3f27 2025-04-28 15:34:52,196 - DEBUG - Services list from nova: [, , ] 2025-04-28 15:34:53,247 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3239-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3239-1) 2025-04-28 15:34:54,697 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3239-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3239-1) 2025-04-28 15:34:54,772 - INFO - Setting gateway for router d79fbf3f-9820-48e1-ae29-d39bb83bb7c3 to network dc8d92c9-5a64-48fa-b356-ca3e982c3f27 2025-04-28 15:34:54,837 - INFO - Adding interface with subnet_id 03120774-b53e-44dd-9e02-6af15624d769, port_id None to router d79fbf3f-9820-48e1-ae29-d39bb83bb7c3 2025-04-28 15:34:55,368 - INFO - Waiting for VM ctest-TestRoutersBasic-70140643-33344922 to be up.. 2025-04-28 15:34:55,532 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-04-28 15:35:00,617 - DEBUG - VM is in ACTIVE state now 2025-04-28 15:35:00,617 - INFO - VM name : ctest-TestRoutersBasic-70140643-33344922 2025-04-28 15:35:00,695 - DEBUG - VM ctest-TestRoutersBasic-70140643-33344922 ID is 5dd42ee9-3e0e-494b-bbf4-05529bbb7574 2025-04-28 15:35:00,718 - DEBUG - VM ctest-TestRoutersBasic-70140643-33344922 launched on Node cn-jenkins-deploy-platform-ansible-os-3239-1 2025-04-28 15:35:00,795 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-machine/5dd42ee9-3e0e-494b-bbf4-05529bbb7574 2025-04-28 15:35:01,131 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-machine/5dd42ee9-3e0e-494b-bbf4-05529bbb7574 2025-04-28 15:35:01,168 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-machine-interface/e5f9ae0f-b06a-40c3-bb0d-862b2c5e1cb9 2025-04-28 15:35:04,297 - 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-04-28 15:35:04,297 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-70140643-33344922 failed! 2025-04-28 15:35:04,354 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-70140643:ctest-vn-31311327 is 137.138.63.129 and allocation pool is NOT set 2025-04-28 15:35:06,421 - 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.64 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=2.03 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.029/3.836/5.643/1.807 ms') 2025-04-28 15:35:06,421 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-70140643-33344922 passed 2025-04-28 15:35:06,490 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-28 15:35:06,490 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-70140643-33344922, IP 137.138.63.131, Port 22 2025-04-28 15:35:06,580 - DEBUG - VM ctest-TestRoutersBasic-70140643-33344922 is ready for SSH connections 2025-04-28 15:35:06,580 - INFO - Waiting for VM ctest-TestRoutersBasic-70140643-49339768 to be up.. 2025-04-28 15:35:06,658 - DEBUG - VM is in ACTIVE state now 2025-04-28 15:35:06,659 - INFO - VM name : ctest-TestRoutersBasic-70140643-49339768 2025-04-28 15:35:06,734 - DEBUG - VM ctest-TestRoutersBasic-70140643-49339768 ID is ca3e6a33-036f-452a-94cf-d72d5c379a7e 2025-04-28 15:35:06,734 - DEBUG - VM ctest-TestRoutersBasic-70140643-49339768 launched on Node cn-jenkins-deploy-platform-ansible-os-3239-1 2025-04-28 15:35:06,811 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-machine/ca3e6a33-036f-452a-94cf-d72d5c379a7e 2025-04-28 15:35:06,821 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-machine-interface/6dac3ddb-4e6d-488f-a77c-ca80f1ecad11 2025-04-28 15:35:07,944 - 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=4.23 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.989 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.989/2.611/4.234/1.622 ms') 2025-04-28 15:35:07,944 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-70140643-49339768 passed 2025-04-28 15:35:07,968 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-28 15:35:07,969 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-70140643-49339768, IP 197.126.95.195, Port 22 2025-04-28 15:35:08,060 - DEBUG - VM ctest-TestRoutersBasic-70140643-49339768 is ready for SSH connections 2025-04-28 15:35:08,060 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-28 15:35:08,060 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 197.126.95.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.242, gateway password: c0ntrail123 2025-04-28 15:35:08,060 - DEBUG - ping -s 56 -c 3 -W 1 197.126.95.195 2025-04-28 15:35:12,137 - DEBUG - PING 197.126.95.195 (197.126.95.195): 56 data bytes 64 bytes from 197.126.95.195: seq=0 ttl=62 time=5.444 ms 64 bytes from 197.126.95.195: seq=1 ttl=62 time=0.902 ms 64 bytes from 197.126.95.195: seq=2 ttl=62 time=0.898 ms --- 197.126.95.195 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.898/2.414/5.444 ms 2025-04-28 15:35:12,137 - INFO - Ping to IP 197.126.95.195 from VM ctest-TestRoutersBasic-70140643-33344922 passed 2025-04-28 15:35:12,137 - INFO - Deleting interface with subnet_id 03120774-b53e-44dd-9e02-6af15624d769, port_id None from router d79fbf3f-9820-48e1-ae29-d39bb83bb7c3 2025-04-28 15:35:12,437 - INFO - Deleting VM ctest-TestRoutersBasic-70140643-49339768 2025-04-28 15:35:12,513 - INFO - Deleting VM ctest-TestRoutersBasic-70140643-33344922 2025-04-28 15:35:12,583 - INFO - Deleting VN ctest-ext_vn-61468190 2025-04-28 15:35:12,654 - DEBUG - VN dc8d92c9-5a64-48fa-b356-ca3e982c3f27 still in use: Unable to complete operation on network dc8d92c9-5a64-48fa-b356-ca3e982c3f27. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-6509aed9-342c-4a4e-bfec-fa8e2273250f'] 2025-04-28 15:35:12,654 - WARNING - Deleting VN ctest-ext_vn-61468190 failed..Will retry 2025-04-28 15:35:14,752 - DEBUG - Response for deleting network () 2025-04-28 15:35:14,752 - INFO - Deleting VN ctest-vn-31311327 2025-04-28 15:35:14,856 - DEBUG - Response for deleting network () 2025-04-28 15:35:14,946 - DEBUG - No XMPP flaps were noticed during the test
2025-04-28 15:35:14,946 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:25]
2025-04-28 15:35:14,946 - INFO - -------------------------------------------------------------------------------- 2025-04-28 15:35:15,530 - INFO - Deleted project: ctest-TestRoutersBasic-70140643, ID : 58eba7d0-6b27-45c5-93f9-da783183a3e9