2025-07-24 02:26:24,116 - INFO - Domain Default found not creating 2025-07-24 02:26:24,295 - INFO - Project ctest-TestRoutersBasic-58035537 not found, creating it 2025-07-24 02:26:24,788 - INFO - Created Project:ctest-TestRoutersBasic-58035537, ID : 117038e0-4061-437e-a2b2-26225aa3ddf0 2025-07-24 02:26:26,353 - INFO - ================================================================================ 2025-07-24 02:26:26,353 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2025-07-24 02:26:26,353 - 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-24 02:26:26,618 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.14': '0'}} with 2025-07-24 02:26:26,619 - INFO - Initial checks done. Running the testcase now 2025-07-24 02:26:26,619 - INFO - 2025-07-24 02:26:27,441 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-58035537 2025-07-24 02:26:27,540 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-58035537 2025-07-24 02:26:27,880 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-58035537', 'default']} 2025-07-24 02:26:28,201 - DEBUG - Response for create_network : {'network': {'id': 'e770f5ee-af6e-4fb4-983c-cc1696a57a46', 'name': 'ctest-vn-33702869', 'tenant_id': '117038e04061437ea2b226225aa3ddf0', 'project_id': '117038e04061437ea2b226225aa3ddf0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-58035537', 'ctest-vn-33702869'], 'port_security_enabled': True, 'description': ''}} 2025-07-24 02:26:28,415 - DEBUG - Response for create_subnet : {'subnet': {'id': '0283636d-69a9-4851-8230-a2fbcb485476', 'name': '', 'tenant_id': '117038e04061437ea2b226225aa3ddf0', 'network_id': 'e770f5ee-af6e-4fb4-983c-cc1696a57a46', 'ip_version': 4, 'cidr': '72.234.138.128/26', 'allocation_pools': [{'start': '72.234.138.130', 'end': '72.234.138.190'}], 'gateway_ip': '72.234.138.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '72.234.138.130', 'tags': [], 'project_id': '117038e04061437ea2b226225aa3ddf0'}} 2025-07-24 02:26:28,438 - INFO - Created VN ctest-vn-33702869 2025-07-24 02:26:28,492 - DEBUG - VN ctest-vn-33702869 UUID is e770f5ee-af6e-4fb4-983c-cc1696a57a46 2025-07-24 02:26:28,858 - DEBUG - Response for create_network : {'network': {'id': 'e8bb58c6-1c08-488b-b007-209ab1c3e16b', 'name': 'ctest-ext_vn-46030001', 'tenant_id': '117038e04061437ea2b226225aa3ddf0', 'project_id': '117038e04061437ea2b226225aa3ddf0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-58035537', 'ctest-ext_vn-46030001'], 'port_security_enabled': True, 'description': ''}} 2025-07-24 02:26:29,059 - DEBUG - Response for create_subnet : {'subnet': {'id': '3e1d0a5f-2a2f-4d1c-a7c1-e628074ec2c2', 'name': '', 'tenant_id': '117038e04061437ea2b226225aa3ddf0', 'network_id': 'e8bb58c6-1c08-488b-b007-209ab1c3e16b', 'ip_version': 4, 'cidr': '17.141.114.192/26', 'allocation_pools': [{'start': '17.141.114.194', 'end': '17.141.114.254'}], 'gateway_ip': '17.141.114.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '17.141.114.194', 'tags': [], 'project_id': '117038e04061437ea2b226225aa3ddf0'}} 2025-07-24 02:26:29,082 - INFO - Created VN ctest-ext_vn-46030001 2025-07-24 02:26:29,144 - DEBUG - VN ctest-ext_vn-46030001 UUID is e8bb58c6-1c08-488b-b007-209ab1c3e16b 2025-07-24 02:26:29,346 - DEBUG - Services list from nova: [, , ] 2025-07-24 02:26:30,447 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3711-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3711-1) 2025-07-24 02:26:31,671 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3711-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3711-1) 2025-07-24 02:26:31,753 - INFO - Setting gateway for router 0a308e09-92f0-405e-a802-b9033faf71e3 to network e8bb58c6-1c08-488b-b007-209ab1c3e16b 2025-07-24 02:26:31,843 - INFO - Adding interface with subnet_id 0283636d-69a9-4851-8230-a2fbcb485476, port_id None to router 0a308e09-92f0-405e-a802-b9033faf71e3 2025-07-24 02:26:32,261 - INFO - Waiting for VM ctest-TestRoutersBasic-58035537-22542990 to be up.. 2025-07-24 02:26:32,416 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-07-24 02:26:37,507 - DEBUG - VM is in ACTIVE state now 2025-07-24 02:26:37,507 - INFO - VM name : ctest-TestRoutersBasic-58035537-22542990 2025-07-24 02:26:37,600 - DEBUG - VM ctest-TestRoutersBasic-58035537-22542990 ID is 57294a85-4a9e-4f6b-8d53-37de6a299736 2025-07-24 02:26:37,627 - DEBUG - VM ctest-TestRoutersBasic-58035537-22542990 launched on Node cn-jenkins-deploy-platform-ansible-os-3711-1 2025-07-24 02:26:37,716 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine/57294a85-4a9e-4f6b-8d53-37de6a299736 2025-07-24 02:26:38,046 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine/57294a85-4a9e-4f6b-8d53-37de6a299736 2025-07-24 02:26:38,086 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine-interface/b5865be6-e120-4299-8f21-83b0f499d59e 2025-07-24 02:26:41,369 - 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 1018ms') 2025-07-24 02:26:41,369 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-58035537-22542990 failed! 2025-07-24 02:26:41,432 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-58035537:ctest-vn-33702869 is 72.234.138.129 and allocation pool is NOT set 2025-07-24 02:26:43,498 - 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.39 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.472 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.472/1.931/3.391/1.459 ms') 2025-07-24 02:26:43,498 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-58035537-22542990 passed 2025-07-24 02:26:43,660 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-07-24 02:26:43,660 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-58035537-22542990, IP 72.234.138.131, Port 22 2025-07-24 02:26:43,815 - DEBUG - VM ctest-TestRoutersBasic-58035537-22542990 is ready for SSH connections 2025-07-24 02:26:43,816 - INFO - Waiting for VM ctest-TestRoutersBasic-58035537-08731023 to be up.. 2025-07-24 02:26:43,905 - DEBUG - VM is in ACTIVE state now 2025-07-24 02:26:43,905 - INFO - VM name : ctest-TestRoutersBasic-58035537-08731023 2025-07-24 02:26:43,995 - DEBUG - VM ctest-TestRoutersBasic-58035537-08731023 ID is 3c95f068-953b-40b6-959d-0bbe1e6c2ba5 2025-07-24 02:26:43,995 - DEBUG - VM ctest-TestRoutersBasic-58035537-08731023 launched on Node cn-jenkins-deploy-platform-ansible-os-3711-1 2025-07-24 02:26:44,084 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine/3c95f068-953b-40b6-959d-0bbe1e6c2ba5 2025-07-24 02:26:44,096 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine-interface/b23dba55-e8af-42be-b5de-ad4bd050a377 2025-07-24 02:26:45,364 - 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.03 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=3.09 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.032/3.062/3.093/0.030 ms') 2025-07-24 02:26:45,364 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-58035537-08731023 passed 2025-07-24 02:26:45,520 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-07-24 02:26:45,520 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-58035537-08731023, IP 17.141.114.195, Port 22 2025-07-24 02:26:45,576 - 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-24 02:26:45,670 - DEBUG - VM ctest-TestRoutersBasic-58035537-08731023 is NOT ready for SSH connections, VM status: ACTIVE 2025-07-24 02:26:50,671 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-07-24 02:26:50,672 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-58035537-08731023, IP 17.141.114.195, Port 22 2025-07-24 02:26:50,841 - DEBUG - VM ctest-TestRoutersBasic-58035537-08731023 is ready for SSH connections 2025-07-24 02:26:50,842 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-07-24 02:26:50,842 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 17.141.114.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.50, gateway password: c0ntrail123 2025-07-24 02:26:50,842 - DEBUG - ping -s 56 -c 3 -W 1 17.141.114.195 2025-07-24 02:26:54,580 - DEBUG - PING 17.141.114.195 (17.141.114.195): 56 data bytes 64 bytes from 17.141.114.195: seq=0 ttl=62 time=9.224 ms 64 bytes from 17.141.114.195: seq=1 ttl=62 time=1.095 ms 64 bytes from 17.141.114.195: seq=2 ttl=62 time=1.199 ms --- 17.141.114.195 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.095/3.839/9.224 ms 2025-07-24 02:26:54,580 - INFO - Ping to IP 17.141.114.195 from VM ctest-TestRoutersBasic-58035537-22542990 passed 2025-07-24 02:26:54,581 - INFO - Deleting interface with subnet_id 0283636d-69a9-4851-8230-a2fbcb485476, port_id None from router 0a308e09-92f0-405e-a802-b9033faf71e3 2025-07-24 02:26:54,818 - INFO - Deleting VM ctest-TestRoutersBasic-58035537-08731023 2025-07-24 02:26:54,908 - INFO - Deleting VM ctest-TestRoutersBasic-58035537-22542990 2025-07-24 02:26:55,024 - INFO - Deleting VN ctest-ext_vn-46030001 2025-07-24 02:26:55,118 - DEBUG - VN e8bb58c6-1c08-488b-b007-209ab1c3e16b still in use: Unable to complete operation on network e8bb58c6-1c08-488b-b007-209ab1c3e16b. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-37467579-0e2b-4b21-a245-929c9c06a835'] 2025-07-24 02:26:55,119 - WARNING - Deleting VN ctest-ext_vn-46030001 failed..Will retry 2025-07-24 02:26:57,256 - DEBUG - Response for deleting network () 2025-07-24 02:26:57,256 - INFO - Deleting VN ctest-vn-33702869 2025-07-24 02:26:57,375 - DEBUG - Response for deleting network () 2025-07-24 02:26:57,640 - DEBUG - No XMPP flaps were noticed during the test 2025-07-24 02:26:57,640 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:31] 2025-07-24 02:26:57,640 - INFO - -------------------------------------------------------------------------------- 2025-07-24 02:26:58,371 - INFO - Deleted project: ctest-TestRoutersBasic-58035537, ID : 117038e0-4061-437e-a2b2-26225aa3ddf0