2025-04-09 07:44:19,175 - INFO - Domain Default found not creating 2025-04-09 07:44:19,333 - INFO - Project ctest-TestRoutersBasic-02134215 not found, creating it 2025-04-09 07:44:19,778 - INFO - Created Project:ctest-TestRoutersBasic-02134215, ID : ff7d2806-5095-4df8-9020-317e9402aa1b 2025-04-09 07:44:21,218 - INFO - ================================================================================ 2025-04-09 07:44:21,219 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2025-04-09 07:44:21,219 - 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 07:44:21,474 - DEBUG - Nothing to compare xmpp stats {'10.0.0.52': {'10.20.0.20': '0'}} with 2025-04-09 07:44:21,474 - INFO - Initial checks done. Running the testcase now 2025-04-09 07:44:21,474 - INFO - 2025-04-09 07:44:22,176 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-02134215 2025-04-09 07:44:22,273 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-02134215 2025-04-09 07:44:22,596 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-02134215', 'default']} 2025-04-09 07:44:22,915 - DEBUG - Response for create_network : {'network': {'id': 'dde7ec69-ce00-4ad6-bdcc-3e96b5dd68f2', 'name': 'ctest-vn-97580404', 'tenant_id': 'ff7d280650954df89020317e9402aa1b', 'project_id': 'ff7d280650954df89020317e9402aa1b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-02134215', 'ctest-vn-97580404'], 'port_security_enabled': True, 'description': ''}} 2025-04-09 07:44:23,125 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f20e3492-bb4c-4628-931b-796bebfe62bd', 'name': '', 'tenant_id': 'ff7d280650954df89020317e9402aa1b', 'network_id': 'dde7ec69-ce00-4ad6-bdcc-3e96b5dd68f2', 'ip_version': 4, 'cidr': '51.195.46.64/26', 'allocation_pools': [{'start': '51.195.46.66', 'end': '51.195.46.126'}], 'gateway_ip': '51.195.46.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '51.195.46.66', 'tags': [], 'project_id': 'ff7d280650954df89020317e9402aa1b'}} 2025-04-09 07:44:23,143 - INFO - Created VN ctest-vn-97580404 2025-04-09 07:44:23,196 - DEBUG - VN ctest-vn-97580404 UUID is dde7ec69-ce00-4ad6-bdcc-3e96b5dd68f2 2025-04-09 07:44:23,531 - DEBUG - Response for create_network : {'network': {'id': '4f7208b8-f930-4fa9-b001-51e75d492681', 'name': 'ctest-ext_vn-51097686', 'tenant_id': 'ff7d280650954df89020317e9402aa1b', 'project_id': 'ff7d280650954df89020317e9402aa1b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-02134215', 'ctest-ext_vn-51097686'], 'port_security_enabled': True, 'description': ''}} 2025-04-09 07:44:23,710 - DEBUG - Response for create_subnet : {'subnet': {'id': '9d2a937c-1554-4bbd-bc1a-b2c9ce398224', 'name': '', 'tenant_id': 'ff7d280650954df89020317e9402aa1b', 'network_id': '4f7208b8-f930-4fa9-b001-51e75d492681', 'ip_version': 4, 'cidr': '4.70.132.128/26', 'allocation_pools': [{'start': '4.70.132.130', 'end': '4.70.132.190'}], 'gateway_ip': '4.70.132.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '4.70.132.130', 'tags': [], 'project_id': 'ff7d280650954df89020317e9402aa1b'}} 2025-04-09 07:44:23,732 - INFO - Created VN ctest-ext_vn-51097686 2025-04-09 07:44:23,784 - DEBUG - VN ctest-ext_vn-51097686 UUID is 4f7208b8-f930-4fa9-b001-51e75d492681 2025-04-09 07:44:23,955 - DEBUG - Services list from nova: [, , ] 2025-04-09 07:44:24,971 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3060-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3060-1) 2025-04-09 07:44:26,119 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3060-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3060-1) 2025-04-09 07:44:26,200 - INFO - Setting gateway for router ae6b998a-db4b-4573-a6d2-fce206132fea to network 4f7208b8-f930-4fa9-b001-51e75d492681 2025-04-09 07:44:26,267 - INFO - Adding interface with subnet_id f20e3492-bb4c-4628-931b-796bebfe62bd, port_id None to router ae6b998a-db4b-4573-a6d2-fce206132fea 2025-04-09 07:44:26,580 - INFO - Waiting for VM ctest-TestRoutersBasic-02134215-43570242 to be up.. 2025-04-09 07:44:26,692 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-04-09 07:44:31,768 - DEBUG - VM is in ACTIVE state now 2025-04-09 07:44:31,768 - INFO - VM name : ctest-TestRoutersBasic-02134215-43570242 2025-04-09 07:44:31,841 - DEBUG - VM ctest-TestRoutersBasic-02134215-43570242 ID is 59d07069-d627-4518-9bf0-81183d58df8c 2025-04-09 07:44:31,860 - DEBUG - VM ctest-TestRoutersBasic-02134215-43570242 launched on Node cn-jenkins-deploy-platform-ansible-os-3060-1 2025-04-09 07:44:31,936 - DEBUG - Requesting: http://10.0.0.52:8082/virtual-machine/59d07069-d627-4518-9bf0-81183d58df8c 2025-04-09 07:44:32,230 - DEBUG - Requesting: http://10.0.0.52:8082/virtual-machine/59d07069-d627-4518-9bf0-81183d58df8c 2025-04-09 07:44:32,264 - DEBUG - Requesting: http://10.0.0.52:8082/virtual-machine-interface/bdfde9fe-5866-45b5-9742-21b9b072964e 2025-04-09 07:44:35,511 - 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 1003ms') 2025-04-09 07:44:35,511 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-02134215-43570242 failed! 2025-04-09 07:44:35,568 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-02134215:ctest-vn-97580404 is 51.195.46.65 and allocation pool is NOT set 2025-04-09 07:44:37,636 - 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.12 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=2.24 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1000ms\r\nrtt min/avg/max/mdev = 2.239/3.181/4.124/0.942 ms') 2025-04-09 07:44:37,636 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-02134215-43570242 passed 2025-04-09 07:44:37,797 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-09 07:44:37,797 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-02134215-43570242, IP 51.195.46.67, Port 22 2025-04-09 07:44:37,862 - 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 07:44:37,975 - DEBUG - VM ctest-TestRoutersBasic-02134215-43570242 is NOT ready for SSH connections, VM status: ACTIVE 2025-04-09 07:44:42,975 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-09 07:44:42,975 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-02134215-43570242, IP 51.195.46.67, Port 22 2025-04-09 07:44:43,131 - DEBUG - VM ctest-TestRoutersBasic-02134215-43570242 is ready for SSH connections 2025-04-09 07:44:43,131 - INFO - Waiting for VM ctest-TestRoutersBasic-02134215-24022384 to be up.. 2025-04-09 07:44:43,217 - DEBUG - VM is in ACTIVE state now 2025-04-09 07:44:43,217 - INFO - VM name : ctest-TestRoutersBasic-02134215-24022384 2025-04-09 07:44:43,292 - DEBUG - VM ctest-TestRoutersBasic-02134215-24022384 ID is 019f6930-923b-43a1-b512-3197718744b5 2025-04-09 07:44:43,293 - DEBUG - VM ctest-TestRoutersBasic-02134215-24022384 launched on Node cn-jenkins-deploy-platform-ansible-os-3060-1 2025-04-09 07:44:43,369 - DEBUG - Requesting: http://10.0.0.52:8082/virtual-machine/019f6930-923b-43a1-b512-3197718744b5 2025-04-09 07:44:43,379 - DEBUG - Requesting: http://10.0.0.52:8082/virtual-machine-interface/6776892d-6556-4787-9ee4-abbcf1c1b67f 2025-04-09 07:44:44,618 - 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.17 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.398 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.398/1.781/3.165/1.383 ms') 2025-04-09 07:44:44,618 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-02134215-24022384 passed 2025-04-09 07:44:44,772 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-09 07:44:44,773 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-02134215-24022384, IP 4.70.132.131, Port 22 2025-04-09 07:44:44,942 - DEBUG - VM ctest-TestRoutersBasic-02134215-24022384 is ready for SSH connections 2025-04-09 07:44:44,942 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-09 07:44:44,943 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 4.70.132.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.52, gateway password: c0ntrail123 2025-04-09 07:44:44,943 - DEBUG - ping -s 56 -c 3 -W 1 4.70.132.131 2025-04-09 07:44:48,929 - DEBUG - PING 4.70.132.131 (4.70.132.131): 56 data bytes 64 bytes from 4.70.132.131: seq=0 ttl=62 time=6.308 ms 64 bytes from 4.70.132.131: seq=1 ttl=62 time=0.866 ms 64 bytes from 4.70.132.131: seq=2 ttl=62 time=1.045 ms --- 4.70.132.131 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.866/2.739/6.308 ms 2025-04-09 07:44:48,929 - INFO - Ping to IP 4.70.132.131 from VM ctest-TestRoutersBasic-02134215-43570242 passed 2025-04-09 07:44:48,929 - INFO - Deleting interface with subnet_id f20e3492-bb4c-4628-931b-796bebfe62bd, port_id None from router ae6b998a-db4b-4573-a6d2-fce206132fea 2025-04-09 07:44:49,156 - INFO - Deleting VM ctest-TestRoutersBasic-02134215-24022384 2025-04-09 07:44:49,227 - INFO - Deleting VM ctest-TestRoutersBasic-02134215-43570242 2025-04-09 07:44:49,315 - INFO - Deleting VN ctest-ext_vn-51097686 2025-04-09 07:44:49,402 - DEBUG - VN 4f7208b8-f930-4fa9-b001-51e75d492681 still in use: Unable to complete operation on network 4f7208b8-f930-4fa9-b001-51e75d492681. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-234526d6-087e-4c5b-8acd-a553caa0013d'] 2025-04-09 07:44:49,402 - WARNING - Deleting VN ctest-ext_vn-51097686 failed..Will retry 2025-04-09 07:44:51,518 - DEBUG - Response for deleting network () 2025-04-09 07:44:51,518 - INFO - Deleting VN ctest-vn-97580404 2025-04-09 07:44:51,637 - DEBUG - Response for deleting network () 2025-04-09 07:44:51,895 - DEBUG - No XMPP flaps were noticed during the test 2025-04-09 07:44:51,895 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:30] 2025-04-09 07:44:51,895 - INFO - -------------------------------------------------------------------------------- 2025-04-09 07:44:52,906 - INFO - Deleted project: ctest-TestRoutersBasic-02134215, ID : ff7d2806-5095-4df8-9020-317e9402aa1b