2025-07-17 12:24:32,674 - INFO - Domain Default found not creating 2025-07-17 12:24:32,873 - INFO - Project ctest-TestRoutersBasic-94174739 not found, creating it 2025-07-17 12:24:33,387 - INFO - Created Project:ctest-TestRoutersBasic-94174739, ID : 49da2fbf-4fff-48c3-a50a-3e3f07e240b1 2025-07-17 12:24:35,055 - INFO - ================================================================================ 2025-07-17 12:24:35,055 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2025-07-17 12:24:35,055 - 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-07-17 12:24:35,321 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with 2025-07-17 12:24:35,321 - INFO - Initial checks done. Running the testcase now 2025-07-17 12:24:35,321 - INFO - 2025-07-17 12:24:36,129 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-94174739 2025-07-17 12:24:36,236 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-94174739 2025-07-17 12:24:36,579 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-94174739', 'default']} 2025-07-17 12:24:36,909 - DEBUG - Response for create_network : {'network': {'id': 'd3c36fc8-ae74-4b25-85ec-025c854c7d11', 'name': 'ctest-vn-94590826', 'tenant_id': '49da2fbf4fff48c3a50a3e3f07e240b1', 'project_id': '49da2fbf4fff48c3a50a3e3f07e240b1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-94174739', 'ctest-vn-94590826'], 'port_security_enabled': True, 'description': ''}} 2025-07-17 12:24:37,071 - DEBUG - Response for create_subnet : {'subnet': {'id': '93a8a0b9-4fe3-4a9a-9aa3-e8e856ea5bc5', 'name': '', 'tenant_id': '49da2fbf4fff48c3a50a3e3f07e240b1', 'network_id': 'd3c36fc8-ae74-4b25-85ec-025c854c7d11', 'ip_version': 4, 'cidr': '54.107.193.64/26', 'allocation_pools': [{'start': '54.107.193.66', 'end': '54.107.193.126'}], 'gateway_ip': '54.107.193.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '54.107.193.66', 'tags': [], 'project_id': '49da2fbf4fff48c3a50a3e3f07e240b1'}} 2025-07-17 12:24:37,093 - INFO - Created VN ctest-vn-94590826 2025-07-17 12:24:37,148 - DEBUG - VN ctest-vn-94590826 UUID is d3c36fc8-ae74-4b25-85ec-025c854c7d11 2025-07-17 12:24:37,499 - DEBUG - Response for create_network : {'network': {'id': '1bacf48a-1ec4-48ba-95c9-d7cab3acd1f0', 'name': 'ctest-ext_vn-19068267', 'tenant_id': '49da2fbf4fff48c3a50a3e3f07e240b1', 'project_id': '49da2fbf4fff48c3a50a3e3f07e240b1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-94174739', 'ctest-ext_vn-19068267'], 'port_security_enabled': True, 'description': ''}} 2025-07-17 12:24:37,669 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ef6fb262-d5ef-40af-83f4-581b184433a1', 'name': '', 'tenant_id': '49da2fbf4fff48c3a50a3e3f07e240b1', 'network_id': '1bacf48a-1ec4-48ba-95c9-d7cab3acd1f0', 'ip_version': 4, 'cidr': '139.99.74.192/26', 'allocation_pools': [{'start': '139.99.74.194', 'end': '139.99.74.254'}], 'gateway_ip': '139.99.74.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '139.99.74.194', 'tags': [], 'project_id': '49da2fbf4fff48c3a50a3e3f07e240b1'}} 2025-07-17 12:24:37,689 - INFO - Created VN ctest-ext_vn-19068267 2025-07-17 12:24:37,744 - DEBUG - VN ctest-ext_vn-19068267 UUID is 1bacf48a-1ec4-48ba-95c9-d7cab3acd1f0 2025-07-17 12:24:37,927 - DEBUG - Services list from nova: [, , ] 2025-07-17 12:24:39,064 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3655-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3655-1) 2025-07-17 12:24:40,320 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3655-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3655-1) 2025-07-17 12:24:40,408 - INFO - Setting gateway for router c6af29f5-129c-4a01-87a6-20d518768234 to network 1bacf48a-1ec4-48ba-95c9-d7cab3acd1f0 2025-07-17 12:24:40,519 - INFO - Adding interface with subnet_id 93a8a0b9-4fe3-4a9a-9aa3-e8e856ea5bc5, port_id None to router c6af29f5-129c-4a01-87a6-20d518768234 2025-07-17 12:24:41,003 - INFO - Waiting for VM ctest-TestRoutersBasic-94174739-10691747 to be up.. 2025-07-17 12:24:41,204 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-07-17 12:24:46,300 - DEBUG - VM is in ACTIVE state now 2025-07-17 12:24:46,300 - INFO - VM name : ctest-TestRoutersBasic-94174739-10691747 2025-07-17 12:24:46,419 - DEBUG - VM ctest-TestRoutersBasic-94174739-10691747 ID is 022e799b-e03d-484d-8e62-7569c48245f3 2025-07-17 12:24:46,445 - DEBUG - VM ctest-TestRoutersBasic-94174739-10691747 launched on Node cn-jenkins-deploy-platform-ansible-os-3655-1 2025-07-17 12:24:46,555 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine/022e799b-e03d-484d-8e62-7569c48245f3 2025-07-17 12:24:46,895 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine/022e799b-e03d-484d-8e62-7569c48245f3 2025-07-17 12:24:46,931 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine-interface/fbd79361-f734-4296-8472-f67c167322e7 2025-07-17 12:24:50,208 - 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 1021ms') 2025-07-17 12:24:50,208 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-94174739-10691747 failed! 2025-07-17 12:24:50,268 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-94174739:ctest-vn-94590826 is 54.107.193.65 and allocation pool is NOT set 2025-07-17 12:24:52,330 - 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.93 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=1.06 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 = 1.063/2.995/4.927/1.932 ms') 2025-07-17 12:24:52,330 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-94174739-10691747 passed 2025-07-17 12:24:52,488 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-07-17 12:24:52,488 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-94174739-10691747, IP 54.107.193.67, Port 22 2025-07-17 12:24:52,644 - DEBUG - VM ctest-TestRoutersBasic-94174739-10691747 is ready for SSH connections 2025-07-17 12:24:52,644 - INFO - Waiting for VM ctest-TestRoutersBasic-94174739-96794481 to be up.. 2025-07-17 12:24:52,748 - DEBUG - VM is in ACTIVE state now 2025-07-17 12:24:52,748 - INFO - VM name : ctest-TestRoutersBasic-94174739-96794481 2025-07-17 12:24:52,843 - DEBUG - VM ctest-TestRoutersBasic-94174739-96794481 ID is d8a2ee07-cbe4-49d0-8dcd-5ee7608113b7 2025-07-17 12:24:52,843 - DEBUG - VM ctest-TestRoutersBasic-94174739-96794481 launched on Node cn-jenkins-deploy-platform-ansible-os-3655-1 2025-07-17 12:24:52,928 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine/d8a2ee07-cbe4-49d0-8dcd-5ee7608113b7 2025-07-17 12:24:52,942 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine-interface/ded2ddfc-9158-4e75-8b1b-3a22d2d2d319 2025-07-17 12:24:54,195 - 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=6.26 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=3.12 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 = 3.120/4.687/6.255/1.567 ms') 2025-07-17 12:24:54,195 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-94174739-96794481 passed 2025-07-17 12:24:54,352 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-07-17 12:24:54,352 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-94174739-96794481, IP 139.99.74.195, Port 22 2025-07-17 12:24:54,418 - 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-07-17 12:24:54,515 - DEBUG - VM ctest-TestRoutersBasic-94174739-96794481 is NOT ready for SSH connections, VM status: ACTIVE 2025-07-17 12:24:59,517 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-07-17 12:24:59,517 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-94174739-96794481, IP 139.99.74.195, Port 22 2025-07-17 12:24:59,675 - DEBUG - VM ctest-TestRoutersBasic-94174739-96794481 is ready for SSH connections 2025-07-17 12:24:59,675 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-07-17 12:24:59,675 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 139.99.74.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.254, gateway password: c0ntrail123 2025-07-17 12:24:59,675 - DEBUG - ping -s 56 -c 3 -W 1 139.99.74.195 2025-07-17 12:25:03,962 - DEBUG - PING 139.99.74.195 (139.99.74.195): 56 data bytes 64 bytes from 139.99.74.195: seq=0 ttl=62 time=8.417 ms 64 bytes from 139.99.74.195: seq=1 ttl=62 time=0.916 ms 64 bytes from 139.99.74.195: seq=2 ttl=62 time=1.252 ms --- 139.99.74.195 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.916/3.528/8.417 ms 2025-07-17 12:25:03,962 - INFO - Ping to IP 139.99.74.195 from VM ctest-TestRoutersBasic-94174739-10691747 passed 2025-07-17 12:25:03,963 - INFO - Deleting interface with subnet_id 93a8a0b9-4fe3-4a9a-9aa3-e8e856ea5bc5, port_id None from router c6af29f5-129c-4a01-87a6-20d518768234 2025-07-17 12:25:04,232 - INFO - Deleting VM ctest-TestRoutersBasic-94174739-96794481 2025-07-17 12:25:04,312 - INFO - Deleting VM ctest-TestRoutersBasic-94174739-10691747 2025-07-17 12:25:04,427 - INFO - Deleting VN ctest-ext_vn-19068267 2025-07-17 12:25:04,536 - DEBUG - VN 1bacf48a-1ec4-48ba-95c9-d7cab3acd1f0 still in use: Unable to complete operation on network 1bacf48a-1ec4-48ba-95c9-d7cab3acd1f0. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-c05a0f4a-5a38-48a1-9e19-e1752d9e47d2'] 2025-07-17 12:25:04,536 - WARNING - Deleting VN ctest-ext_vn-19068267 failed..Will retry 2025-07-17 12:25:06,680 - DEBUG - Response for deleting network () 2025-07-17 12:25:06,681 - INFO - Deleting VN ctest-vn-94590826 2025-07-17 12:25:06,816 - DEBUG - Response for deleting network () 2025-07-17 12:25:07,098 - DEBUG - No XMPP flaps were noticed during the test
2025-07-17 12:25:07,098 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:32]
2025-07-17 12:25:07,099 - INFO - -------------------------------------------------------------------------------- 2025-07-17 12:25:07,828 - INFO - Deleted project: ctest-TestRoutersBasic-94174739, ID : 49da2fbf-4fff-48c3-a50a-3e3f07e240b1