2025-02-10 02:26:28,916 - INFO - Domain Default found not creating 2025-02-10 02:26:29,088 - INFO - Project ctest-TestRoutersBasic-90190787 not found, creating it 2025-02-10 02:26:29,568 - INFO - Created Project:ctest-TestRoutersBasic-90190787, ID : 945a6aec-b099-4661-9610-37c6fd7fd641 2025-02-10 02:26:31,184 - INFO - ================================================================================ 2025-02-10 02:26:31,184 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2025-02-10 02:26:31,185 - 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-02-10 02:26:31,439 - DEBUG - Nothing to compare xmpp stats {'10.0.0.49': {'10.20.0.26': '0'}} with 2025-02-10 02:26:31,439 - INFO - Initial checks done. Running the testcase now 2025-02-10 02:26:31,439 - INFO - 2025-02-10 02:26:32,206 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-90190787 2025-02-10 02:26:32,301 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-90190787 2025-02-10 02:26:32,637 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-90190787', 'default']} 2025-02-10 02:26:32,932 - DEBUG - Response for create_network : {'network': {'id': '5e42355a-f509-42fc-9dc7-8ad631d77bdb', 'name': 'ctest-vn-84115413', 'tenant_id': '945a6aecb0994661961037c6fd7fd641', 'project_id': '945a6aecb0994661961037c6fd7fd641', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-90190787', 'ctest-vn-84115413'], 'port_security_enabled': True, 'description': ''}} 2025-02-10 02:26:33,140 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f19d0607-4cb3-4145-86b8-1a0bd9cb838d', 'name': '', 'tenant_id': '945a6aecb0994661961037c6fd7fd641', 'network_id': '5e42355a-f509-42fc-9dc7-8ad631d77bdb', 'ip_version': 4, 'cidr': '128.194.205.192/26', 'allocation_pools': [{'start': '128.194.205.194', 'end': '128.194.205.254'}], 'gateway_ip': '128.194.205.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '128.194.205.194', 'tags': [], 'project_id': '945a6aecb0994661961037c6fd7fd641'}} 2025-02-10 02:26:33,160 - INFO - Created VN ctest-vn-84115413 2025-02-10 02:26:33,209 - DEBUG - VN ctest-vn-84115413 UUID is 5e42355a-f509-42fc-9dc7-8ad631d77bdb 2025-02-10 02:26:33,526 - DEBUG - Response for create_network : {'network': {'id': '35339cf1-4f62-455c-b091-2ecdf460b6fb', 'name': 'ctest-ext_vn-46707507', 'tenant_id': '945a6aecb0994661961037c6fd7fd641', 'project_id': '945a6aecb0994661961037c6fd7fd641', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-90190787', 'ctest-ext_vn-46707507'], 'port_security_enabled': True, 'description': ''}} 2025-02-10 02:26:33,749 - DEBUG - Response for create_subnet : {'subnet': {'id': '210cbda2-0431-4419-8a41-a2708f3202a5', 'name': '', 'tenant_id': '945a6aecb0994661961037c6fd7fd641', 'network_id': '35339cf1-4f62-455c-b091-2ecdf460b6fb', 'ip_version': 4, 'cidr': '168.206.109.192/26', 'allocation_pools': [{'start': '168.206.109.194', 'end': '168.206.109.254'}], 'gateway_ip': '168.206.109.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '168.206.109.194', 'tags': [], 'project_id': '945a6aecb0994661961037c6fd7fd641'}} 2025-02-10 02:26:33,767 - INFO - Created VN ctest-ext_vn-46707507 2025-02-10 02:26:33,817 - DEBUG - VN ctest-ext_vn-46707507 UUID is 35339cf1-4f62-455c-b091-2ecdf460b6fb 2025-02-10 02:26:33,982 - DEBUG - Services list from nova: [, , ] 2025-02-10 02:26:35,118 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2706-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2706-1) 2025-02-10 02:26:36,341 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2706-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2706-1) 2025-02-10 02:26:36,417 - INFO - Setting gateway for router 8e5e2d18-2686-49b9-8bb1-ded6cbe5d9d3 to network 35339cf1-4f62-455c-b091-2ecdf460b6fb 2025-02-10 02:26:36,490 - INFO - Adding interface with subnet_id f19d0607-4cb3-4145-86b8-1a0bd9cb838d, port_id None to router 8e5e2d18-2686-49b9-8bb1-ded6cbe5d9d3 2025-02-10 02:26:36,885 - INFO - Waiting for VM ctest-TestRoutersBasic-90190787-72364857 to be up.. 2025-02-10 02:26:37,081 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-02-10 02:26:42,166 - DEBUG - VM is in ACTIVE state now 2025-02-10 02:26:42,166 - INFO - VM name : ctest-TestRoutersBasic-90190787-72364857 2025-02-10 02:26:42,243 - DEBUG - VM ctest-TestRoutersBasic-90190787-72364857 ID is 02111a86-cbca-4c4b-a8d0-faf8151e4efd 2025-02-10 02:26:42,263 - DEBUG - VM ctest-TestRoutersBasic-90190787-72364857 launched on Node cn-jenkins-deploy-platform-ansible-os-2706-1 2025-02-10 02:26:42,344 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-machine/02111a86-cbca-4c4b-a8d0-faf8151e4efd 2025-02-10 02:26:42,680 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-machine/02111a86-cbca-4c4b-a8d0-faf8151e4efd 2025-02-10 02:26:42,712 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-machine-interface/30cc22f9-5d63-4f5a-abb6-dc9304d7b5e6 2025-02-10 02:26:45,959 - 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 1007ms') 2025-02-10 02:26:45,959 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-90190787-72364857 failed! 2025-02-10 02:26:46,017 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-90190787:ctest-vn-84115413 is 128.194.205.193 and allocation pool is NOT set 2025-02-10 02:26:48,077 - 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=3.44 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.444 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.444/1.943/3.443/1.499 ms') 2025-02-10 02:26:48,078 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-90190787-72364857 passed 2025-02-10 02:26:48,237 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-02-10 02:26:48,237 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-90190787-72364857, IP 128.194.205.195, Port 22 2025-02-10 02:26:48,393 - DEBUG - VM ctest-TestRoutersBasic-90190787-72364857 is ready for SSH connections 2025-02-10 02:26:48,393 - INFO - Waiting for VM ctest-TestRoutersBasic-90190787-40133179 to be up.. 2025-02-10 02:26:48,479 - DEBUG - VM is in ACTIVE state now 2025-02-10 02:26:48,479 - INFO - VM name : ctest-TestRoutersBasic-90190787-40133179 2025-02-10 02:26:48,558 - DEBUG - VM ctest-TestRoutersBasic-90190787-40133179 ID is 0a5dc37e-ee65-4e8a-9384-44ada15118dc 2025-02-10 02:26:48,558 - DEBUG - VM ctest-TestRoutersBasic-90190787-40133179 launched on Node cn-jenkins-deploy-platform-ansible-os-2706-1 2025-02-10 02:26:48,641 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-machine/0a5dc37e-ee65-4e8a-9384-44ada15118dc 2025-02-10 02:26:48,651 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-machine-interface/4a5397f1-5bc7-4a80-ae9c-f63bc177483f 2025-02-10 02:26:49,909 - 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.19 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.333 ms\r\n\r\n--- 169.254.0.4 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1000ms\r\nrtt min/avg/max/mdev = 0.333/1.762/3.192/1.429 ms') 2025-02-10 02:26:49,909 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-90190787-40133179 passed 2025-02-10 02:26:50,057 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-02-10 02:26:50,057 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-90190787-40133179, IP 168.206.109.195, Port 22 2025-02-10 02:26:50,124 - DEBUG - Error on ssh to cirros@169.254.0.4:22, result: /bin/bash: connect: Connection refused /bin/bash: line 1: /dev/tcp/169.254.0.4/22: Connection refused {'failed': True, 'command': '(echo > /dev/tcp/169.254.0.4/22)', 'real_command': '/bin/bash -l -c "(echo > /dev/tcp/169.254.0.4/22)"', 'return_code': 1, 'succeeded': False, 'stderr': ''} 2025-02-10 02:26:50,223 - DEBUG - VM ctest-TestRoutersBasic-90190787-40133179 is NOT ready for SSH connections, VM status: ACTIVE 2025-02-10 02:26:55,223 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-02-10 02:26:55,223 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-90190787-40133179, IP 168.206.109.195, Port 22 2025-02-10 02:26:55,380 - DEBUG - VM ctest-TestRoutersBasic-90190787-40133179 is ready for SSH connections 2025-02-10 02:26:55,380 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-02-10 02:26:55,380 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 168.206.109.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.49, gateway password: c0ntrail123 2025-02-10 02:26:55,381 - DEBUG - ping -s 56 -c 3 -W 1 168.206.109.195 2025-02-10 02:26:59,096 - DEBUG - PING 168.206.109.195 (168.206.109.195): 56 data bytes 64 bytes from 168.206.109.195: seq=0 ttl=62 time=7.954 ms 64 bytes from 168.206.109.195: seq=1 ttl=62 time=0.981 ms 64 bytes from 168.206.109.195: seq=2 ttl=62 time=1.108 ms --- 168.206.109.195 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.981/3.347/7.954 ms 2025-02-10 02:26:59,097 - INFO - Ping to IP 168.206.109.195 from VM ctest-TestRoutersBasic-90190787-72364857 passed 2025-02-10 02:26:59,097 - INFO - Deleting interface with subnet_id f19d0607-4cb3-4145-86b8-1a0bd9cb838d, port_id None from router 8e5e2d18-2686-49b9-8bb1-ded6cbe5d9d3 2025-02-10 02:26:59,296 - INFO - Deleting VM ctest-TestRoutersBasic-90190787-40133179 2025-02-10 02:26:59,372 - INFO - Deleting VM ctest-TestRoutersBasic-90190787-72364857 2025-02-10 02:26:59,460 - INFO - Deleting VN ctest-ext_vn-46707507 2025-02-10 02:26:59,556 - DEBUG - VN 35339cf1-4f62-455c-b091-2ecdf460b6fb still in use: Unable to complete operation on network 35339cf1-4f62-455c-b091-2ecdf460b6fb. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-8e96ced9-46d2-4476-ae53-d03d8e66137c'] 2025-02-10 02:26:59,557 - WARNING - Deleting VN ctest-ext_vn-46707507 failed..Will retry 2025-02-10 02:27:01,655 - DEBUG - Response for deleting network () 2025-02-10 02:27:01,655 - INFO - Deleting VN ctest-vn-84115413 2025-02-10 02:27:01,751 - DEBUG - Response for deleting network () 2025-02-10 02:27:02,007 - DEBUG - No XMPP flaps were noticed during the test
2025-02-10 02:27:02,007 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:31]
2025-02-10 02:27:02,007 - INFO - -------------------------------------------------------------------------------- 2025-02-10 02:27:02,730 - INFO - Deleted project: ctest-TestRoutersBasic-90190787, ID : 945a6aec-b099-4661-9610-37c6fd7fd641