2025-04-09 16:54:32,135 - INFO - Domain Default found not creating 2025-04-09 16:54:32,437 - INFO - Project ctest-TestRoutersBasic-35062003 not found, creating it 2025-04-09 16:54:33,090 - INFO - Created Project:ctest-TestRoutersBasic-35062003, ID : a6160902-c661-426a-a1ba-124aefe44711 2025-04-09 16:54:35,291 - INFO - ================================================================================ 2025-04-09 16:54:35,292 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2025-04-09 16:54:35,292 - 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-09 16:54:35,621 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with 2025-04-09 16:54:35,621 - INFO - Initial checks done. Running the testcase now 2025-04-09 16:54:35,622 - INFO - 2025-04-09 16:54:36,583 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-35062003 2025-04-09 16:54:36,700 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-35062003 2025-04-09 16:54:37,176 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-35062003', 'default']} 2025-04-09 16:54:37,487 - DEBUG - Response for create_network : {'network': {'id': 'a30639c5-e3f5-450e-8acc-a0df942e217f', 'name': 'ctest-vn-90976855', 'tenant_id': 'a6160902c661426aa1ba124aefe44711', 'project_id': 'a6160902c661426aa1ba124aefe44711', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-35062003', 'ctest-vn-90976855'], 'port_security_enabled': True, 'description': ''}} 2025-04-09 16:54:37,733 - DEBUG - Response for create_subnet : {'subnet': {'id': '564a9598-1866-4027-bc2a-712aad2179ce', 'name': '', 'tenant_id': 'a6160902c661426aa1ba124aefe44711', 'network_id': 'a30639c5-e3f5-450e-8acc-a0df942e217f', 'ip_version': 4, 'cidr': '12.117.42.64/26', 'allocation_pools': [{'start': '12.117.42.66', 'end': '12.117.42.126'}], 'gateway_ip': '12.117.42.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '12.117.42.66', 'tags': [], 'project_id': 'a6160902c661426aa1ba124aefe44711'}} 2025-04-09 16:54:37,754 - INFO - Created VN ctest-vn-90976855 2025-04-09 16:54:37,812 - DEBUG - VN ctest-vn-90976855 UUID is a30639c5-e3f5-450e-8acc-a0df942e217f 2025-04-09 16:54:38,361 - DEBUG - Response for create_network : {'network': {'id': '594ef8c8-d2f9-4c77-afb8-d10668a55d56', 'name': 'ctest-ext_vn-64807712', 'tenant_id': 'a6160902c661426aa1ba124aefe44711', 'project_id': 'a6160902c661426aa1ba124aefe44711', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-35062003', 'ctest-ext_vn-64807712'], 'port_security_enabled': True, 'description': ''}} 2025-04-09 16:54:38,559 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd8184227-a4d8-4601-a7d0-22779338d58e', 'name': '', 'tenant_id': 'a6160902c661426aa1ba124aefe44711', 'network_id': '594ef8c8-d2f9-4c77-afb8-d10668a55d56', 'ip_version': 4, 'cidr': '107.182.31.192/26', 'allocation_pools': [{'start': '107.182.31.194', 'end': '107.182.31.254'}], 'gateway_ip': '107.182.31.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '107.182.31.194', 'tags': [], 'project_id': 'a6160902c661426aa1ba124aefe44711'}} 2025-04-09 16:54:38,578 - INFO - Created VN ctest-ext_vn-64807712 2025-04-09 16:54:38,632 - DEBUG - VN ctest-ext_vn-64807712 UUID is 594ef8c8-d2f9-4c77-afb8-d10668a55d56 2025-04-09 16:54:38,905 - DEBUG - Services list from nova: [, , ] 2025-04-09 16:54:40,326 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3072-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3072-1) 2025-04-09 16:54:41,638 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3072-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3072-1) 2025-04-09 16:54:41,711 - INFO - Setting gateway for router 0134c24b-73a4-49e1-a519-4579de61d857 to network 594ef8c8-d2f9-4c77-afb8-d10668a55d56 2025-04-09 16:54:41,775 - INFO - Adding interface with subnet_id 564a9598-1866-4027-bc2a-712aad2179ce, port_id None to router 0134c24b-73a4-49e1-a519-4579de61d857 2025-04-09 16:54:42,212 - INFO - Waiting for VM ctest-TestRoutersBasic-35062003-60162261 to be up.. 2025-04-09 16:54:42,411 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-04-09 16:54:47,555 - DEBUG - VM is in ACTIVE state now 2025-04-09 16:54:47,555 - INFO - VM name : ctest-TestRoutersBasic-35062003-60162261 2025-04-09 16:54:47,675 - DEBUG - VM ctest-TestRoutersBasic-35062003-60162261 ID is 1c89f160-e9b4-4d21-a8d9-4c21272af8e7 2025-04-09 16:54:47,702 - DEBUG - VM ctest-TestRoutersBasic-35062003-60162261 launched on Node cn-jenkins-deploy-platform-ansible-os-3072-1 2025-04-09 16:54:47,792 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine/1c89f160-e9b4-4d21-a8d9-4c21272af8e7 2025-04-09 16:54:48,095 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine/1c89f160-e9b4-4d21-a8d9-4c21272af8e7 2025-04-09 16:54:48,150 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine-interface/830a797b-4728-4a82-91a3-81f0a1979800 2025-04-09 16:54:51,476 - 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 1019ms') 2025-04-09 16:54:51,477 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-35062003-60162261 failed! 2025-04-09 16:54:51,537 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-35062003:ctest-vn-90976855 is 12.117.42.65 and allocation pool is NOT set 2025-04-09 16:54:53,612 - 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.50 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=1.33 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 = 1.332/2.917/4.502/1.585 ms') 2025-04-09 16:54:53,612 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-35062003-60162261 passed 2025-04-09 16:54:53,777 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-09 16:54:53,777 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-35062003-60162261, IP 12.117.42.67, Port 22 2025-04-09 16:54:53,849 - 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-09 16:54:54,014 - DEBUG - VM ctest-TestRoutersBasic-35062003-60162261 is NOT ready for SSH connections, VM status: ACTIVE 2025-04-09 16:54:59,016 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-09 16:54:59,016 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-35062003-60162261, IP 12.117.42.67, Port 22 2025-04-09 16:54:59,218 - DEBUG - VM ctest-TestRoutersBasic-35062003-60162261 is ready for SSH connections 2025-04-09 16:54:59,218 - INFO - Waiting for VM ctest-TestRoutersBasic-35062003-45550947 to be up.. 2025-04-09 16:54:59,365 - DEBUG - VM is in ACTIVE state now 2025-04-09 16:54:59,365 - INFO - VM name : ctest-TestRoutersBasic-35062003-45550947 2025-04-09 16:54:59,556 - DEBUG - VM ctest-TestRoutersBasic-35062003-45550947 ID is 5eefee8e-3d15-4c5f-80ad-807917b63787 2025-04-09 16:54:59,556 - DEBUG - VM ctest-TestRoutersBasic-35062003-45550947 launched on Node cn-jenkins-deploy-platform-ansible-os-3072-1 2025-04-09 16:54:59,729 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine/5eefee8e-3d15-4c5f-80ad-807917b63787 2025-04-09 16:54:59,753 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine-interface/09589e1a-d447-4799-9ee6-b303669f1598 2025-04-09 16:55:01,057 - 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.47 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=1.76 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 = 1.757/2.612/3.467/0.855 ms') 2025-04-09 16:55:01,058 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-35062003-45550947 passed 2025-04-09 16:55:01,248 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-09 16:55:01,249 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-35062003-45550947, IP 107.182.31.195, Port 22 2025-04-09 16:55:01,439 - DEBUG - VM ctest-TestRoutersBasic-35062003-45550947 is ready for SSH connections 2025-04-09 16:55:01,440 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-09 16:55:01,440 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 107.182.31.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.254, gateway password: c0ntrail123 2025-04-09 16:55:01,440 - DEBUG - ping -s 56 -c 3 -W 1 107.182.31.195 2025-04-09 16:55:05,343 - DEBUG - PING 107.182.31.195 (107.182.31.195): 56 data bytes 64 bytes from 107.182.31.195: seq=0 ttl=62 time=12.485 ms 64 bytes from 107.182.31.195: seq=1 ttl=62 time=1.677 ms 64 bytes from 107.182.31.195: seq=2 ttl=62 time=1.942 ms --- 107.182.31.195 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.677/5.368/12.485 ms 2025-04-09 16:55:05,343 - INFO - Ping to IP 107.182.31.195 from VM ctest-TestRoutersBasic-35062003-60162261 passed 2025-04-09 16:55:05,343 - INFO - Deleting interface with subnet_id 564a9598-1866-4027-bc2a-712aad2179ce, port_id None from router 0134c24b-73a4-49e1-a519-4579de61d857 2025-04-09 16:55:05,679 - INFO - Deleting VM ctest-TestRoutersBasic-35062003-45550947 2025-04-09 16:55:05,775 - INFO - Deleting VM ctest-TestRoutersBasic-35062003-60162261 2025-04-09 16:55:05,851 - INFO - Deleting VN ctest-ext_vn-64807712 2025-04-09 16:55:05,940 - DEBUG - VN 594ef8c8-d2f9-4c77-afb8-d10668a55d56 still in use: Unable to complete operation on network 594ef8c8-d2f9-4c77-afb8-d10668a55d56. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-3fdb2ad4-3b24-4337-9c7e-ae0de9b5ddf5'] 2025-04-09 16:55:05,941 - WARNING - Deleting VN ctest-ext_vn-64807712 failed..Will retry 2025-04-09 16:55:08,165 - DEBUG - Response for deleting network () 2025-04-09 16:55:08,165 - INFO - Deleting VN ctest-vn-90976855 2025-04-09 16:55:08,288 - DEBUG - Response for deleting network () 2025-04-09 16:55:08,599 - DEBUG - No XMPP flaps were noticed during the test
2025-04-09 16:55:08,600 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:33]
2025-04-09 16:55:08,600 - INFO - -------------------------------------------------------------------------------- 2025-04-09 16:55:09,535 - INFO - Deleted project: ctest-TestRoutersBasic-35062003, ID : a6160902-c661-426a-a1ba-124aefe44711