2025-06-30 16:34:12,749 - INFO - Domain Default found not creating 2025-06-30 16:34:12,964 - INFO - Project ctest-TestRoutersBasic-09859160 not found, creating it 2025-06-30 16:34:13,443 - INFO - Created Project:ctest-TestRoutersBasic-09859160, ID : 76900d4b-cf2e-4c50-bc7a-5b3c89454ba3 2025-06-30 16:34:14,982 - INFO - ================================================================================ 2025-06-30 16:34:14,982 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2025-06-30 16:34:14,982 - 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-06-30 16:34:15,268 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.0.0.38': '0'}} with 2025-06-30 16:34:15,268 - INFO - Initial checks done. Running the testcase now 2025-06-30 16:34:15,268 - INFO - 2025-06-30 16:34:16,033 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-09859160 2025-06-30 16:34:16,130 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-09859160 2025-06-30 16:34:16,466 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-09859160', 'default']} 2025-06-30 16:34:16,787 - DEBUG - Response for create_network : {'network': {'id': '4b88d9b1-57b8-4737-9d6f-a9770f2884a1', 'name': 'ctest-vn-79963622', 'tenant_id': '76900d4bcf2e4c50bc7a5b3c89454ba3', 'project_id': '76900d4bcf2e4c50bc7a5b3c89454ba3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-09859160', 'ctest-vn-79963622'], 'port_security_enabled': True, 'description': ''}} 2025-06-30 16:34:17,035 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ce2e1a9b-36a2-4268-a844-de724032487e', 'name': '', 'tenant_id': '76900d4bcf2e4c50bc7a5b3c89454ba3', 'network_id': '4b88d9b1-57b8-4737-9d6f-a9770f2884a1', 'ip_version': 4, 'cidr': '177.61.242.0/26', 'allocation_pools': [{'start': '177.61.242.2', 'end': '177.61.242.62'}], 'gateway_ip': '177.61.242.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '177.61.242.2', 'tags': [], 'project_id': '76900d4bcf2e4c50bc7a5b3c89454ba3'}} 2025-06-30 16:34:17,058 - INFO - Created VN ctest-vn-79963622 2025-06-30 16:34:17,109 - DEBUG - VN ctest-vn-79963622 UUID is 4b88d9b1-57b8-4737-9d6f-a9770f2884a1 2025-06-30 16:34:17,481 - DEBUG - Response for create_network : {'network': {'id': '6ac37ecd-4bf0-49bc-a23a-aed813766835', 'name': 'ctest-ext_vn-09393180', 'tenant_id': '76900d4bcf2e4c50bc7a5b3c89454ba3', 'project_id': '76900d4bcf2e4c50bc7a5b3c89454ba3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-09859160', 'ctest-ext_vn-09393180'], 'port_security_enabled': True, 'description': ''}} 2025-06-30 16:34:17,673 - DEBUG - Response for create_subnet : {'subnet': {'id': '273ef7d4-883f-49a7-b0b6-7ae8b0075e79', 'name': '', 'tenant_id': '76900d4bcf2e4c50bc7a5b3c89454ba3', 'network_id': '6ac37ecd-4bf0-49bc-a23a-aed813766835', 'ip_version': 4, 'cidr': '38.248.77.192/26', 'allocation_pools': [{'start': '38.248.77.194', 'end': '38.248.77.254'}], 'gateway_ip': '38.248.77.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '38.248.77.194', 'tags': [], 'project_id': '76900d4bcf2e4c50bc7a5b3c89454ba3'}} 2025-06-30 16:34:17,695 - INFO - Created VN ctest-ext_vn-09393180 2025-06-30 16:34:17,749 - DEBUG - VN ctest-ext_vn-09393180 UUID is 6ac37ecd-4bf0-49bc-a23a-aed813766835 2025-06-30 16:34:17,932 - DEBUG - Services list from nova: [, , ] 2025-06-30 16:34:19,029 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3582-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3582-1) 2025-06-30 16:34:20,249 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3582-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3582-1) 2025-06-30 16:34:20,324 - INFO - Setting gateway for router 9b90a0ca-4ace-4f1b-a674-8e89956b5660 to network 6ac37ecd-4bf0-49bc-a23a-aed813766835 2025-06-30 16:34:20,425 - INFO - Adding interface with subnet_id ce2e1a9b-36a2-4268-a844-de724032487e, port_id None to router 9b90a0ca-4ace-4f1b-a674-8e89956b5660 2025-06-30 16:34:20,880 - INFO - Waiting for VM ctest-TestRoutersBasic-09859160-29278851 to be up.. 2025-06-30 16:34:21,079 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-06-30 16:34:26,167 - DEBUG - VM is in ACTIVE state now 2025-06-30 16:34:26,167 - INFO - VM name : ctest-TestRoutersBasic-09859160-29278851 2025-06-30 16:34:26,253 - DEBUG - VM ctest-TestRoutersBasic-09859160-29278851 ID is 855ac5c8-c8dc-409e-97c3-a0a1693db308 2025-06-30 16:34:26,277 - DEBUG - VM ctest-TestRoutersBasic-09859160-29278851 launched on Node cn-jenkins-deploy-platform-ansible-os-3582-1. 2025-06-30 16:34:26,366 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine/855ac5c8-c8dc-409e-97c3-a0a1693db308 2025-06-30 16:34:26,674 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine/855ac5c8-c8dc-409e-97c3-a0a1693db308 2025-06-30 16:34:26,712 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine-interface/3223cefe-3d19-42af-be8b-3a5255b7b69c 2025-06-30 16:34:29,954 - 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 1000ms') 2025-06-30 16:34:29,954 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-09859160-29278851 failed! 2025-06-30 16:34:30,025 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-09859160:ctest-vn-79963622 is 177.61.242.1 and allocation pool is NOT set 2025-06-30 16:34:32,090 - 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.20 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.812 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 = 0.812/2.507/4.202/1.695 ms') 2025-06-30 16:34:32,090 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-09859160-29278851 passed 2025-06-30 16:34:32,257 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-30 16:34:32,258 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-09859160-29278851, IP 177.61.242.3, Port 22 2025-06-30 16:34:32,432 - DEBUG - VM ctest-TestRoutersBasic-09859160-29278851 is ready for SSH connections 2025-06-30 16:34:32,432 - INFO - Waiting for VM ctest-TestRoutersBasic-09859160-52926725 to be up.. 2025-06-30 16:34:32,535 - DEBUG - VM is in ACTIVE state now 2025-06-30 16:34:32,535 - INFO - VM name : ctest-TestRoutersBasic-09859160-52926725 2025-06-30 16:34:32,631 - DEBUG - VM ctest-TestRoutersBasic-09859160-52926725 ID is fc8e716b-112e-4b04-913c-ed4316b00356 2025-06-30 16:34:32,631 - DEBUG - VM ctest-TestRoutersBasic-09859160-52926725 launched on Node cn-jenkins-deploy-platform-ansible-os-3582-1. 2025-06-30 16:34:32,720 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine/fc8e716b-112e-4b04-913c-ed4316b00356 2025-06-30 16:34:32,731 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine-interface/c51bf8ef-5dbe-4238-91a6-7967ea11ea91 2025-06-30 16:34:33,997 - 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=4.33 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=1.14 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.142/2.735/4.329/1.593 ms') 2025-06-30 16:34:33,998 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-09859160-52926725 passed 2025-06-30 16:34:34,169 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-30 16:34:34,170 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-09859160-52926725, IP 38.248.77.195, Port 22 2025-06-30 16:34:34,226 - 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-06-30 16:34:34,321 - DEBUG - VM ctest-TestRoutersBasic-09859160-52926725 is NOT ready for SSH connections, VM status: ACTIVE 2025-06-30 16:34:39,321 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-30 16:34:39,322 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-09859160-52926725, IP 38.248.77.195, Port 22 2025-06-30 16:34:39,496 - DEBUG - VM ctest-TestRoutersBasic-09859160-52926725 is ready for SSH connections 2025-06-30 16:34:39,496 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-30 16:34:39,496 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 38.248.77.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.38, gateway password: c0ntrail123 2025-06-30 16:34:39,496 - DEBUG - ping -s 56 -c 3 -W 1 38.248.77.195 2025-06-30 16:34:43,287 - DEBUG - PING 38.248.77.195 (38.248.77.195): 56 data bytes 64 bytes from 38.248.77.195: seq=0 ttl=62 time=5.905 ms 64 bytes from 38.248.77.195: seq=1 ttl=62 time=1.254 ms 64 bytes from 38.248.77.195: seq=2 ttl=62 time=1.242 ms --- 38.248.77.195 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.242/2.800/5.905 ms 2025-06-30 16:34:43,287 - INFO - Ping to IP 38.248.77.195 from VM ctest-TestRoutersBasic-09859160-29278851 passed 2025-06-30 16:34:43,287 - INFO - Deleting interface with subnet_id ce2e1a9b-36a2-4268-a844-de724032487e, port_id None from router 9b90a0ca-4ace-4f1b-a674-8e89956b5660 2025-06-30 16:34:43,493 - INFO - Deleting VM ctest-TestRoutersBasic-09859160-52926725 2025-06-30 16:34:43,568 - INFO - Deleting VM ctest-TestRoutersBasic-09859160-29278851 2025-06-30 16:34:43,646 - INFO - Deleting VN ctest-ext_vn-09393180 2025-06-30 16:34:43,726 - DEBUG - VN 6ac37ecd-4bf0-49bc-a23a-aed813766835 still in use: Unable to complete operation on network 6ac37ecd-4bf0-49bc-a23a-aed813766835. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-b178b189-062d-441b-990a-bf7b7eb6ab95'] 2025-06-30 16:34:43,726 - WARNING - Deleting VN ctest-ext_vn-09393180 failed..Will retry 2025-06-30 16:34:45,878 - DEBUG - Response for deleting network () 2025-06-30 16:34:45,878 - INFO - Deleting VN ctest-vn-79963622 2025-06-30 16:34:45,998 - DEBUG - Response for deleting network () 2025-06-30 16:34:46,255 - DEBUG - No XMPP flaps were noticed during the test
2025-06-30 16:34:46,255 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:32]
2025-06-30 16:34:46,255 - INFO - -------------------------------------------------------------------------------- 2025-06-30 16:34:46,987 - INFO - Deleted project: ctest-TestRoutersBasic-09859160, ID : 76900d4b-cf2e-4c50-bc7a-5b3c89454ba3