2025-06-21 03:54:23,203 - INFO - Domain Default found not creating 2025-06-21 03:54:23,356 - INFO - Project ctest-TestRoutersBasic-99934271 not found, creating it 2025-06-21 03:54:23,819 - INFO - Created Project:ctest-TestRoutersBasic-99934271, ID : b715a0cd-96f7-40b7-a412-b350e8c3874b 2025-06-21 03:54:25,384 - INFO - ================================================================================ 2025-06-21 03:54:25,385 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2025-06-21 03:54:25,385 - 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-21 03:54:25,639 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with 2025-06-21 03:54:25,640 - INFO - Initial checks done. Running the testcase now 2025-06-21 03:54:25,640 - INFO - 2025-06-21 03:54:26,443 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-99934271 2025-06-21 03:54:26,545 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-99934271 2025-06-21 03:54:26,881 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-99934271', 'default']} 2025-06-21 03:54:27,217 - DEBUG - Response for create_network : {'network': {'id': 'da710715-95c1-4d4b-8d6d-4626ac0a92b6', 'name': 'ctest-vn-86263268', 'tenant_id': 'b715a0cd96f740b7a412b350e8c3874b', 'project_id': 'b715a0cd96f740b7a412b350e8c3874b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-99934271', 'ctest-vn-86263268'], 'port_security_enabled': True, 'description': ''}} 2025-06-21 03:54:27,391 - DEBUG - Response for create_subnet : {'subnet': {'id': 'edf4b496-141f-4067-aced-359f661e9c91', 'name': '', 'tenant_id': 'b715a0cd96f740b7a412b350e8c3874b', 'network_id': 'da710715-95c1-4d4b-8d6d-4626ac0a92b6', 'ip_version': 4, 'cidr': '70.0.155.192/26', 'allocation_pools': [{'start': '70.0.155.194', 'end': '70.0.155.254'}], 'gateway_ip': '70.0.155.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '70.0.155.194', 'tags': [], 'project_id': 'b715a0cd96f740b7a412b350e8c3874b'}} 2025-06-21 03:54:27,413 - INFO - Created VN ctest-vn-86263268 2025-06-21 03:54:27,465 - DEBUG - VN ctest-vn-86263268 UUID is da710715-95c1-4d4b-8d6d-4626ac0a92b6 2025-06-21 03:54:27,803 - DEBUG - Response for create_network : {'network': {'id': '769890fb-f576-4d54-ba4a-de734b4ce8ce', 'name': 'ctest-ext_vn-83969187', 'tenant_id': 'b715a0cd96f740b7a412b350e8c3874b', 'project_id': 'b715a0cd96f740b7a412b350e8c3874b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-99934271', 'ctest-ext_vn-83969187'], 'port_security_enabled': True, 'description': ''}} 2025-06-21 03:54:28,031 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c14654b1-f6e5-41e8-99f7-69d3c7527669', 'name': '', 'tenant_id': 'b715a0cd96f740b7a412b350e8c3874b', 'network_id': '769890fb-f576-4d54-ba4a-de734b4ce8ce', 'ip_version': 4, 'cidr': '184.171.7.128/26', 'allocation_pools': [{'start': '184.171.7.130', 'end': '184.171.7.190'}], 'gateway_ip': '184.171.7.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '184.171.7.130', 'tags': [], 'project_id': 'b715a0cd96f740b7a412b350e8c3874b'}} 2025-06-21 03:54:28,052 - INFO - Created VN ctest-ext_vn-83969187 2025-06-21 03:54:28,109 - DEBUG - VN ctest-ext_vn-83969187 UUID is 769890fb-f576-4d54-ba4a-de734b4ce8ce 2025-06-21 03:54:28,288 - DEBUG - Services list from nova: [, , ] 2025-06-21 03:54:29,428 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3509-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3509-1) 2025-06-21 03:54:30,705 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3509-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3509-1) 2025-06-21 03:54:30,801 - INFO - Setting gateway for router 1fe09dbd-3fbf-462e-9bc5-f1e6b03bb140 to network 769890fb-f576-4d54-ba4a-de734b4ce8ce 2025-06-21 03:54:30,873 - INFO - Adding interface with subnet_id edf4b496-141f-4067-aced-359f661e9c91, port_id None to router 1fe09dbd-3fbf-462e-9bc5-f1e6b03bb140 2025-06-21 03:54:31,384 - INFO - Waiting for VM ctest-TestRoutersBasic-99934271-07595821 to be up.. 2025-06-21 03:54:31,597 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-06-21 03:54:36,678 - DEBUG - VM is in ACTIVE state now 2025-06-21 03:54:36,678 - INFO - VM name : ctest-TestRoutersBasic-99934271-07595821 2025-06-21 03:54:36,761 - DEBUG - VM ctest-TestRoutersBasic-99934271-07595821 ID is af8ff84c-feaa-4a28-b852-2133ee6fb4b7 2025-06-21 03:54:36,780 - DEBUG - VM ctest-TestRoutersBasic-99934271-07595821 launched on Node cn-jenkins-deploy-platform-ansible-os-3509-1 2025-06-21 03:54:36,853 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine/af8ff84c-feaa-4a28-b852-2133ee6fb4b7 2025-06-21 03:54:37,208 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine/af8ff84c-feaa-4a28-b852-2133ee6fb4b7 2025-06-21 03:54:37,258 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine-interface/03465d52-0859-44a9-98b9-7f5b1dff1b1e 2025-06-21 03:54:40,532 - 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 1026ms') 2025-06-21 03:54:40,532 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-99934271-07595821 failed! 2025-06-21 03:54:40,589 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-99934271:ctest-vn-86263268 is 70.0.155.193 and allocation pool is NOT set 2025-06-21 03:54:42,650 - 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.74 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.851 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.851/2.294/3.737/1.443 ms') 2025-06-21 03:54:42,650 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-99934271-07595821 passed 2025-06-21 03:54:42,801 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-21 03:54:42,801 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-99934271-07595821, IP 70.0.155.195, Port 22 2025-06-21 03:54:42,960 - DEBUG - VM ctest-TestRoutersBasic-99934271-07595821 is ready for SSH connections 2025-06-21 03:54:42,960 - INFO - Waiting for VM ctest-TestRoutersBasic-99934271-67272797 to be up.. 2025-06-21 03:54:43,052 - DEBUG - VM is in ACTIVE state now 2025-06-21 03:54:43,052 - INFO - VM name : ctest-TestRoutersBasic-99934271-67272797 2025-06-21 03:54:43,156 - DEBUG - VM ctest-TestRoutersBasic-99934271-67272797 ID is b11a3804-c75e-4130-b5ee-80876aade965 2025-06-21 03:54:43,156 - DEBUG - VM ctest-TestRoutersBasic-99934271-67272797 launched on Node cn-jenkins-deploy-platform-ansible-os-3509-1 2025-06-21 03:54:43,245 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine/b11a3804-c75e-4130-b5ee-80876aade965 2025-06-21 03:54:43,256 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine-interface/c3f61897-7ce2-4451-a4cf-e35a0a13ce59 2025-06-21 03:54:44,517 - 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.46 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.602 ms\r\n\r\n--- 169.254.0.4 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1002ms\r\nrtt min/avg/max/mdev = 0.602/2.531/4.461/1.929 ms') 2025-06-21 03:54:44,517 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-99934271-67272797 passed 2025-06-21 03:54:44,681 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-21 03:54:44,681 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-99934271-67272797, IP 184.171.7.131, Port 22 2025-06-21 03:54:44,747 - 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-21 03:54:44,838 - DEBUG - VM ctest-TestRoutersBasic-99934271-67272797 is NOT ready for SSH connections, VM status: ACTIVE 2025-06-21 03:54:49,839 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-21 03:54:49,839 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-99934271-67272797, IP 184.171.7.131, Port 22 2025-06-21 03:54:50,004 - DEBUG - VM ctest-TestRoutersBasic-99934271-67272797 is ready for SSH connections 2025-06-21 03:54:50,004 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-21 03:54:50,004 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 184.171.7.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.254, gateway password: c0ntrail123 2025-06-21 03:54:50,004 - DEBUG - ping -s 56 -c 3 -W 1 184.171.7.131 2025-06-21 03:54:53,717 - DEBUG - PING 184.171.7.131 (184.171.7.131): 56 data bytes 64 bytes from 184.171.7.131: seq=0 ttl=62 time=6.859 ms 64 bytes from 184.171.7.131: seq=1 ttl=62 time=0.795 ms 64 bytes from 184.171.7.131: seq=2 ttl=62 time=0.949 ms --- 184.171.7.131 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.795/2.867/6.859 ms 2025-06-21 03:54:53,717 - INFO - Ping to IP 184.171.7.131 from VM ctest-TestRoutersBasic-99934271-07595821 passed 2025-06-21 03:54:53,717 - INFO - Deleting interface with subnet_id edf4b496-141f-4067-aced-359f661e9c91, port_id None from router 1fe09dbd-3fbf-462e-9bc5-f1e6b03bb140 2025-06-21 03:54:53,945 - INFO - Deleting VM ctest-TestRoutersBasic-99934271-67272797 2025-06-21 03:54:54,018 - INFO - Deleting VM ctest-TestRoutersBasic-99934271-07595821 2025-06-21 03:54:54,099 - INFO - Deleting VN ctest-ext_vn-83969187 2025-06-21 03:54:54,164 - DEBUG - VN 769890fb-f576-4d54-ba4a-de734b4ce8ce still in use: Unable to complete operation on network 769890fb-f576-4d54-ba4a-de734b4ce8ce. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-414600d4-0441-4a39-93ab-cb0c76a12ee0'] 2025-06-21 03:54:54,165 - WARNING - Deleting VN ctest-ext_vn-83969187 failed..Will retry 2025-06-21 03:54:56,275 - DEBUG - Response for deleting network () 2025-06-21 03:54:56,275 - INFO - Deleting VN ctest-vn-86263268 2025-06-21 03:54:56,397 - DEBUG - Response for deleting network () 2025-06-21 03:54:56,651 - DEBUG - No XMPP flaps were noticed during the test 2025-06-21 03:54:56,651 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:31] 2025-06-21 03:54:56,651 - INFO - -------------------------------------------------------------------------------- 2025-06-21 03:54:57,432 - INFO - Deleted project: ctest-TestRoutersBasic-99934271, ID : b715a0cd-96f7-40b7-a412-b350e8c3874b