2025-02-03 02:29:16,256 - INFO - Domain Default found not creating 2025-02-03 02:29:16,443 - INFO - Project ctest-TestRoutersBasic-51709614 not found, creating it 2025-02-03 02:29:16,967 - INFO - Created Project:ctest-TestRoutersBasic-51709614, ID : 45b3edaf-5220-48e2-8a6b-2a67ed4238ad 2025-02-03 02:29:18,849 - INFO - ================================================================================ 2025-02-03 02:29:18,849 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2025-02-03 02:29:18,849 - 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-03 02:29:19,121 - DEBUG - Nothing to compare xmpp stats {'10.0.0.24': {'10.20.0.30': '0'}} with 2025-02-03 02:29:19,121 - INFO - Initial checks done. Running the testcase now 2025-02-03 02:29:19,122 - INFO - 2025-02-03 02:29:20,068 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-51709614 2025-02-03 02:29:20,171 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-51709614 2025-02-03 02:29:20,511 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-51709614', 'default']} 2025-02-03 02:29:20,840 - DEBUG - Response for create_network : {'network': {'id': '7ea42656-15a0-4249-8bff-00c26c3c3f33', 'name': 'ctest-vn-36816171', 'tenant_id': '45b3edaf522048e28a6b2a67ed4238ad', 'project_id': '45b3edaf522048e28a6b2a67ed4238ad', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-51709614', 'ctest-vn-36816171'], 'port_security_enabled': True, 'description': ''}} 2025-02-03 02:29:21,063 - DEBUG - Response for create_subnet : {'subnet': {'id': 'bae5fe7a-a23d-4f1e-8ffc-69402e3dcc31', 'name': '', 'tenant_id': '45b3edaf522048e28a6b2a67ed4238ad', 'network_id': '7ea42656-15a0-4249-8bff-00c26c3c3f33', 'ip_version': 4, 'cidr': '210.207.56.128/26', 'allocation_pools': [{'start': '210.207.56.130', 'end': '210.207.56.190'}], 'gateway_ip': '210.207.56.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '210.207.56.130', 'tags': [], 'project_id': '45b3edaf522048e28a6b2a67ed4238ad'}} 2025-02-03 02:29:21,087 - INFO - Created VN ctest-vn-36816171 2025-02-03 02:29:21,139 - DEBUG - VN ctest-vn-36816171 UUID is 7ea42656-15a0-4249-8bff-00c26c3c3f33 2025-02-03 02:29:21,500 - DEBUG - Response for create_network : {'network': {'id': '064f2357-1023-4d7c-98e3-c65a29a602ff', 'name': 'ctest-ext_vn-72843255', 'tenant_id': '45b3edaf522048e28a6b2a67ed4238ad', 'project_id': '45b3edaf522048e28a6b2a67ed4238ad', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-51709614', 'ctest-ext_vn-72843255'], 'port_security_enabled': True, 'description': ''}} 2025-02-03 02:29:21,780 - DEBUG - Response for create_subnet : {'subnet': {'id': '3a9c1eb4-5797-43fb-89cc-431d6a6a12ab', 'name': '', 'tenant_id': '45b3edaf522048e28a6b2a67ed4238ad', 'network_id': '064f2357-1023-4d7c-98e3-c65a29a602ff', 'ip_version': 4, 'cidr': '112.144.189.0/26', 'allocation_pools': [{'start': '112.144.189.2', 'end': '112.144.189.62'}], 'gateway_ip': '112.144.189.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '112.144.189.2', 'tags': [], 'project_id': '45b3edaf522048e28a6b2a67ed4238ad'}} 2025-02-03 02:29:21,803 - INFO - Created VN ctest-ext_vn-72843255 2025-02-03 02:29:21,859 - DEBUG - VN ctest-ext_vn-72843255 UUID is 064f2357-1023-4d7c-98e3-c65a29a602ff 2025-02-03 02:29:22,067 - DEBUG - Services list from nova: [, , ] 2025-02-03 02:29:23,293 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2673-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2673-1) 2025-02-03 02:29:24,677 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2673-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2673-1) 2025-02-03 02:29:24,780 - INFO - Setting gateway for router 64a9f237-f30f-4db3-92d0-e52452d43c4e to network 064f2357-1023-4d7c-98e3-c65a29a602ff 2025-02-03 02:29:24,870 - INFO - Adding interface with subnet_id bae5fe7a-a23d-4f1e-8ffc-69402e3dcc31, port_id None to router 64a9f237-f30f-4db3-92d0-e52452d43c4e 2025-02-03 02:29:25,412 - INFO - Waiting for VM ctest-TestRoutersBasic-51709614-74025201 to be up.. 2025-02-03 02:29:25,603 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-02-03 02:29:30,720 - DEBUG - VM is in ACTIVE state now 2025-02-03 02:29:30,721 - INFO - VM name : ctest-TestRoutersBasic-51709614-74025201 2025-02-03 02:29:30,847 - DEBUG - VM ctest-TestRoutersBasic-51709614-74025201 ID is 467aec3f-df3c-4b2f-9c65-f9679c74cba1 2025-02-03 02:29:30,875 - DEBUG - VM ctest-TestRoutersBasic-51709614-74025201 launched on Node cn-jenkins-deploy-platform-ansible-os-2673-1 2025-02-03 02:29:30,978 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-machine/467aec3f-df3c-4b2f-9c65-f9679c74cba1 2025-02-03 02:29:31,334 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-machine/467aec3f-df3c-4b2f-9c65-f9679c74cba1 2025-02-03 02:29:31,374 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-machine-interface/58d15685-dcba-4522-8fd9-056127a8a1ff 2025-02-03 02:29:34,625 - 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 1001ms') 2025-02-03 02:29:34,625 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-51709614-74025201 failed! 2025-02-03 02:29:34,679 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-51709614:ctest-vn-36816171 is 210.207.56.129 and allocation pool is NOT set 2025-02-03 02:29:36,743 - 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=15.6 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=2.56 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.563/9.077/15.591/6.514 ms') 2025-02-03 02:29:36,743 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-51709614-74025201 passed 2025-02-03 02:29:36,899 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-02-03 02:29:36,899 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-51709614-74025201, IP 210.207.56.131, Port 22 2025-02-03 02:29:36,956 - 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-02-03 02:29:37,045 - DEBUG - VM ctest-TestRoutersBasic-51709614-74025201 is NOT ready for SSH connections, VM status: ACTIVE 2025-02-03 02:29:42,046 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-02-03 02:29:42,047 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-51709614-74025201, IP 210.207.56.131, Port 22 2025-02-03 02:29:42,218 - DEBUG - VM ctest-TestRoutersBasic-51709614-74025201 is ready for SSH connections 2025-02-03 02:29:42,218 - INFO - Waiting for VM ctest-TestRoutersBasic-51709614-73253315 to be up.. 2025-02-03 02:29:42,316 - DEBUG - VM is in ACTIVE state now 2025-02-03 02:29:42,316 - INFO - VM name : ctest-TestRoutersBasic-51709614-73253315 2025-02-03 02:29:42,409 - DEBUG - VM ctest-TestRoutersBasic-51709614-73253315 ID is 721ac8fb-7fb6-41a8-8f5b-cac317dea9fd 2025-02-03 02:29:42,409 - DEBUG - VM ctest-TestRoutersBasic-51709614-73253315 launched on Node cn-jenkins-deploy-platform-ansible-os-2673-1 2025-02-03 02:29:42,502 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-machine/721ac8fb-7fb6-41a8-8f5b-cac317dea9fd 2025-02-03 02:29:42,513 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-machine-interface/4179bbf4-b672-4cc6-a4d1-82106a6e941b 2025-02-03 02:29:43,765 - 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.43 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.491 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.491/1.958/3.426/1.467 ms') 2025-02-03 02:29:43,765 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-51709614-73253315 passed 2025-02-03 02:29:43,919 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-02-03 02:29:43,919 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-51709614-73253315, IP 112.144.189.3, Port 22 2025-02-03 02:29:44,090 - DEBUG - VM ctest-TestRoutersBasic-51709614-73253315 is ready for SSH connections 2025-02-03 02:29:44,090 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-02-03 02:29:44,090 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 112.144.189.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.24, gateway password: c0ntrail123 2025-02-03 02:29:44,091 - DEBUG - ping -s 56 -c 3 -W 1 112.144.189.3 2025-02-03 02:29:47,896 - DEBUG - PING 112.144.189.3 (112.144.189.3): 56 data bytes 64 bytes from 112.144.189.3: seq=0 ttl=62 time=7.466 ms 64 bytes from 112.144.189.3: seq=1 ttl=62 time=1.066 ms 64 bytes from 112.144.189.3: seq=2 ttl=62 time=1.106 ms --- 112.144.189.3 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.066/3.212/7.466 ms 2025-02-03 02:29:47,896 - INFO - Ping to IP 112.144.189.3 from VM ctest-TestRoutersBasic-51709614-74025201 passed 2025-02-03 02:29:47,897 - INFO - Deleting interface with subnet_id bae5fe7a-a23d-4f1e-8ffc-69402e3dcc31, port_id None from router 64a9f237-f30f-4db3-92d0-e52452d43c4e 2025-02-03 02:29:48,110 - INFO - Deleting VM ctest-TestRoutersBasic-51709614-73253315 2025-02-03 02:29:48,204 - INFO - Deleting VM ctest-TestRoutersBasic-51709614-74025201 2025-02-03 02:29:48,309 - INFO - Deleting VN ctest-ext_vn-72843255 2025-02-03 02:29:48,385 - DEBUG - VN 064f2357-1023-4d7c-98e3-c65a29a602ff still in use: Unable to complete operation on network 064f2357-1023-4d7c-98e3-c65a29a602ff. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-5b2100e3-014a-4b7a-ab9a-b2babcb8ea94'] 2025-02-03 02:29:48,385 - WARNING - Deleting VN ctest-ext_vn-72843255 failed..Will retry 2025-02-03 02:29:50,513 - DEBUG - Response for deleting network () 2025-02-03 02:29:50,513 - INFO - Deleting VN ctest-vn-36816171 2025-02-03 02:29:50,628 - DEBUG - Response for deleting network () 2025-02-03 02:29:50,894 - DEBUG - No XMPP flaps were noticed during the test 2025-02-03 02:29:50,894 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:32] 2025-02-03 02:29:50,894 - INFO - -------------------------------------------------------------------------------- 2025-02-03 02:29:51,723 - INFO - Deleted project: ctest-TestRoutersBasic-51709614, ID : 45b3edaf-5220-48e2-8a6b-2a67ed4238ad