2025-04-24 13:30:04,084 - INFO - Domain Default found not creating 2025-04-24 13:30:04,206 - INFO - Project ctest-TestRoutersBasic-29568919 not found, creating it 2025-04-24 13:30:04,632 - INFO - Created Project:ctest-TestRoutersBasic-29568919, ID : e6b47885-4ad5-447f-a766-a0294f26bed7 2025-04-24 13:30:05,970 - INFO - ================================================================================ 2025-04-24 13:30:05,970 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2025-04-24 13:30:05,971 - 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-24 13:30:06,228 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.254': '0'}} with 2025-04-24 13:30:06,228 - INFO - Initial checks done. Running the testcase now 2025-04-24 13:30:06,228 - INFO - 2025-04-24 13:30:06,909 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-29568919 2025-04-24 13:30:07,006 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-29568919 2025-04-24 13:30:07,330 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-29568919', 'default']} 2025-04-24 13:30:07,607 - DEBUG - Response for create_network : {'network': {'id': '18d37a43-12a8-4158-a3dd-1ad832ea98ff', 'name': 'ctest-vn-77819844', 'tenant_id': 'e6b478854ad5447fa766a0294f26bed7', 'project_id': 'e6b478854ad5447fa766a0294f26bed7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-29568919', 'ctest-vn-77819844'], 'port_security_enabled': True, 'description': ''}} 2025-04-24 13:30:07,760 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f55ba1d0-afc7-4708-ba23-f1e61cdac70c', 'name': '', 'tenant_id': 'e6b478854ad5447fa766a0294f26bed7', 'network_id': '18d37a43-12a8-4158-a3dd-1ad832ea98ff', 'ip_version': 4, 'cidr': '168.75.54.64/26', 'allocation_pools': [{'start': '168.75.54.66', 'end': '168.75.54.126'}], 'gateway_ip': '168.75.54.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '168.75.54.66', 'tags': [], 'project_id': 'e6b478854ad5447fa766a0294f26bed7'}} 2025-04-24 13:30:07,778 - INFO - Created VN ctest-vn-77819844 2025-04-24 13:30:07,830 - DEBUG - VN ctest-vn-77819844 UUID is 18d37a43-12a8-4158-a3dd-1ad832ea98ff 2025-04-24 13:30:08,143 - DEBUG - Response for create_network : {'network': {'id': 'd41ad6bb-d8ef-419d-8414-75bd38b7893d', 'name': 'ctest-ext_vn-87411679', 'tenant_id': 'e6b478854ad5447fa766a0294f26bed7', 'project_id': 'e6b478854ad5447fa766a0294f26bed7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-29568919', 'ctest-ext_vn-87411679'], 'port_security_enabled': True, 'description': ''}} 2025-04-24 13:30:08,316 - DEBUG - Response for create_subnet : {'subnet': {'id': '337fadc7-1aea-480e-a64b-c2a473b4351a', 'name': '', 'tenant_id': 'e6b478854ad5447fa766a0294f26bed7', 'network_id': 'd41ad6bb-d8ef-419d-8414-75bd38b7893d', 'ip_version': 4, 'cidr': '118.203.26.128/26', 'allocation_pools': [{'start': '118.203.26.130', 'end': '118.203.26.190'}], 'gateway_ip': '118.203.26.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '118.203.26.130', 'tags': [], 'project_id': 'e6b478854ad5447fa766a0294f26bed7'}} 2025-04-24 13:30:08,332 - INFO - Created VN ctest-ext_vn-87411679 2025-04-24 13:30:08,382 - DEBUG - VN ctest-ext_vn-87411679 UUID is d41ad6bb-d8ef-419d-8414-75bd38b7893d 2025-04-24 13:30:08,577 - DEBUG - Services list from nova: [, , ] 2025-04-24 13:30:09,533 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3205-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3205-1) 2025-04-24 13:30:10,567 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3205-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3205-1) 2025-04-24 13:30:10,637 - INFO - Setting gateway for router e09f97fb-2341-4766-8b65-65c430a4fa6e to network d41ad6bb-d8ef-419d-8414-75bd38b7893d 2025-04-24 13:30:10,698 - INFO - Adding interface with subnet_id f55ba1d0-afc7-4708-ba23-f1e61cdac70c, port_id None to router e09f97fb-2341-4766-8b65-65c430a4fa6e 2025-04-24 13:30:11,206 - INFO - Waiting for VM ctest-TestRoutersBasic-29568919-55350114 to be up.. 2025-04-24 13:30:11,313 - DEBUG - VM is in ACTIVE state now 2025-04-24 13:30:11,313 - INFO - VM name : ctest-TestRoutersBasic-29568919-55350114 2025-04-24 13:30:11,477 - DEBUG - VM ctest-TestRoutersBasic-29568919-55350114 ID is 34a4949f-8e73-4ad4-a8db-fe8662b80248 2025-04-24 13:30:11,506 - DEBUG - VM ctest-TestRoutersBasic-29568919-55350114 launched on Node cn-jenkins-deploy-platform-ansible-os-3205-1 2025-04-24 13:30:11,609 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine/34a4949f-8e73-4ad4-a8db-fe8662b80248 2025-04-24 13:30:11,921 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine/34a4949f-8e73-4ad4-a8db-fe8662b80248 2025-04-24 13:30:11,951 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine-interface/7317d8c5-a62e-4511-804e-f623c012a71d 2025-04-24 13:30:15,239 - 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-04-24 13:30:15,239 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-29568919-55350114 failed! 2025-04-24 13:30:15,294 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-29568919:ctest-vn-77819844 is 168.75.54.65 and allocation pool is NOT set 2025-04-24 13:30:19,368 - 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 1018ms') 2025-04-24 13:30:19,368 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-29568919-55350114 failed! 2025-04-24 13:30:19,422 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-29568919:ctest-vn-77819844 is 168.75.54.65 and allocation pool is NOT set 2025-04-24 13:30:21,480 - 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.98 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=2.75 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.745/2.863/2.981/0.118 ms') 2025-04-24 13:30:21,480 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-29568919-55350114 passed 2025-04-24 13:30:21,630 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-24 13:30:21,630 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-29568919-55350114, IP 168.75.54.67, Port 22 2025-04-24 13:30:21,686 - 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-04-24 13:30:21,755 - DEBUG - VM ctest-TestRoutersBasic-29568919-55350114 is NOT ready for SSH connections, VM status: ACTIVE 2025-04-24 13:30:26,756 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-24 13:30:26,756 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-29568919-55350114, IP 168.75.54.67, Port 22 2025-04-24 13:30:26,909 - DEBUG - VM ctest-TestRoutersBasic-29568919-55350114 is ready for SSH connections 2025-04-24 13:30:26,909 - INFO - Waiting for VM ctest-TestRoutersBasic-29568919-00989349 to be up.. 2025-04-24 13:30:26,977 - DEBUG - VM is in ACTIVE state now 2025-04-24 13:30:26,977 - INFO - VM name : ctest-TestRoutersBasic-29568919-00989349 2025-04-24 13:30:27,046 - DEBUG - VM ctest-TestRoutersBasic-29568919-00989349 ID is b63c28f8-9a58-49cc-b694-3361155587f2 2025-04-24 13:30:27,046 - DEBUG - VM ctest-TestRoutersBasic-29568919-00989349 launched on Node cn-jenkins-deploy-platform-ansible-os-3205-1 2025-04-24 13:30:27,122 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine/b63c28f8-9a58-49cc-b694-3361155587f2 2025-04-24 13:30:27,130 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine-interface/f99d9d0d-339e-4353-8c4f-68f752ec0c80 2025-04-24 13:30:28,367 - 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.347 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.347/1.563/2.780/1.216 ms') 2025-04-24 13:30:28,367 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-29568919-00989349 passed 2025-04-24 13:30:28,514 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-24 13:30:28,514 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-29568919-00989349, IP 118.203.26.131, Port 22 2025-04-24 13:30:28,674 - DEBUG - VM ctest-TestRoutersBasic-29568919-00989349 is ready for SSH connections 2025-04-24 13:30:28,674 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-24 13:30:28,674 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 118.203.26.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.38, gateway password: c0ntrail123 2025-04-24 13:30:28,674 - DEBUG - ping -s 56 -c 3 -W 1 118.203.26.131 2025-04-24 13:30:32,659 - DEBUG - PING 118.203.26.131 (118.203.26.131): 56 data bytes 64 bytes from 118.203.26.131: seq=0 ttl=62 time=5.463 ms 64 bytes from 118.203.26.131: seq=1 ttl=62 time=0.836 ms 64 bytes from 118.203.26.131: seq=2 ttl=62 time=0.718 ms --- 118.203.26.131 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.718/2.339/5.463 ms 2025-04-24 13:30:32,659 - INFO - Ping to IP 118.203.26.131 from VM ctest-TestRoutersBasic-29568919-55350114 passed 2025-04-24 13:30:32,659 - INFO - Deleting interface with subnet_id f55ba1d0-afc7-4708-ba23-f1e61cdac70c, port_id None from router e09f97fb-2341-4766-8b65-65c430a4fa6e 2025-04-24 13:30:32,860 - INFO - Deleting VM ctest-TestRoutersBasic-29568919-00989349 2025-04-24 13:30:32,937 - INFO - Deleting VM ctest-TestRoutersBasic-29568919-55350114 2025-04-24 13:30:33,009 - INFO - Deleting VN ctest-ext_vn-87411679 2025-04-24 13:30:33,079 - DEBUG - VN d41ad6bb-d8ef-419d-8414-75bd38b7893d still in use: Unable to complete operation on network d41ad6bb-d8ef-419d-8414-75bd38b7893d. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-24f71001-3c38-4bf6-9678-59604c4498e9'] 2025-04-24 13:30:33,079 - WARNING - Deleting VN ctest-ext_vn-87411679 failed..Will retry 2025-04-24 13:30:35,186 - DEBUG - Response for deleting network () 2025-04-24 13:30:35,186 - INFO - Deleting VN ctest-vn-77819844 2025-04-24 13:30:35,273 - DEBUG - Response for deleting network () 2025-04-24 13:30:35,535 - DEBUG - No XMPP flaps were noticed during the test
2025-04-24 13:30:35,535 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:30]
2025-04-24 13:30:35,535 - INFO - -------------------------------------------------------------------------------- 2025-04-24 13:30:36,183 - INFO - Deleted project: ctest-TestRoutersBasic-29568919, ID : e6b47885-4ad5-447f-a766-a0294f26bed7