2025-06-09 16:37:18,261 - INFO - Domain Default found not creating 2025-06-09 16:37:18,412 - INFO - Project ctest-TestRoutersBasic-64037995 not found, creating it 2025-06-09 16:37:18,891 - INFO - Created Project:ctest-TestRoutersBasic-64037995, ID : 0f474342-8374-4530-9f22-8f92c9bf4921 2025-06-09 16:37:20,557 - INFO - ================================================================================ 2025-06-09 16:37:20,557 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2025-06-09 16:37:20,557 - 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-09 16:37:20,824 - DEBUG - Nothing to compare xmpp stats {'10.0.0.27': {'10.20.0.17': '0'}} with 2025-06-09 16:37:20,824 - INFO - Initial checks done. Running the testcase now 2025-06-09 16:37:20,824 - INFO - 2025-06-09 16:37:21,648 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-64037995 2025-06-09 16:37:21,743 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-64037995 2025-06-09 16:37:22,115 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-64037995', 'default']} 2025-06-09 16:37:22,539 - DEBUG - Response for create_network : {'network': {'id': 'f0b2735f-a739-46c5-977b-48c73a575b08', 'name': 'ctest-vn-33247769', 'tenant_id': '0f474342837445309f228f92c9bf4921', 'project_id': '0f474342837445309f228f92c9bf4921', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-64037995', 'ctest-vn-33247769'], 'port_security_enabled': True, 'description': ''}} 2025-06-09 16:37:22,764 - DEBUG - Response for create_subnet : {'subnet': {'id': '496d9164-81a0-4881-ac86-62cd2d7baab9', 'name': '', 'tenant_id': '0f474342837445309f228f92c9bf4921', 'network_id': 'f0b2735f-a739-46c5-977b-48c73a575b08', 'ip_version': 4, 'cidr': '155.248.176.64/26', 'allocation_pools': [{'start': '155.248.176.66', 'end': '155.248.176.126'}], 'gateway_ip': '155.248.176.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '155.248.176.66', 'tags': [], 'project_id': '0f474342837445309f228f92c9bf4921'}} 2025-06-09 16:37:22,785 - INFO - Created VN ctest-vn-33247769 2025-06-09 16:37:22,843 - DEBUG - VN ctest-vn-33247769 UUID is f0b2735f-a739-46c5-977b-48c73a575b08 2025-06-09 16:37:23,184 - DEBUG - Response for create_network : {'network': {'id': '595c9172-22a6-429f-a68f-7aff51b4d9ef', 'name': 'ctest-ext_vn-73044410', 'tenant_id': '0f474342837445309f228f92c9bf4921', 'project_id': '0f474342837445309f228f92c9bf4921', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-64037995', 'ctest-ext_vn-73044410'], 'port_security_enabled': True, 'description': ''}} 2025-06-09 16:37:23,398 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd7d7867d-9c4b-4005-842c-bd19872d39fc', 'name': '', 'tenant_id': '0f474342837445309f228f92c9bf4921', 'network_id': '595c9172-22a6-429f-a68f-7aff51b4d9ef', 'ip_version': 4, 'cidr': '117.243.188.0/26', 'allocation_pools': [{'start': '117.243.188.2', 'end': '117.243.188.62'}], 'gateway_ip': '117.243.188.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '117.243.188.2', 'tags': [], 'project_id': '0f474342837445309f228f92c9bf4921'}} 2025-06-09 16:37:23,420 - INFO - Created VN ctest-ext_vn-73044410 2025-06-09 16:37:23,475 - DEBUG - VN ctest-ext_vn-73044410 UUID is 595c9172-22a6-429f-a68f-7aff51b4d9ef 2025-06-09 16:37:23,649 - DEBUG - Services list from nova: [, , ] 2025-06-09 16:37:24,779 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3426-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3426-1) 2025-06-09 16:37:26,086 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3426-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3426-1) 2025-06-09 16:37:26,204 - INFO - Setting gateway for router 3142f18c-81b7-445d-987e-4312d30f552b to network 595c9172-22a6-429f-a68f-7aff51b4d9ef 2025-06-09 16:37:26,298 - INFO - Adding interface with subnet_id 496d9164-81a0-4881-ac86-62cd2d7baab9, port_id None to router 3142f18c-81b7-445d-987e-4312d30f552b 2025-06-09 16:37:26,905 - INFO - Waiting for VM ctest-TestRoutersBasic-64037995-75063149 to be up.. 2025-06-09 16:37:27,113 - DEBUG - VM is in ACTIVE state now 2025-06-09 16:37:27,113 - INFO - VM name : ctest-TestRoutersBasic-64037995-75063149 2025-06-09 16:37:27,242 - DEBUG - VM ctest-TestRoutersBasic-64037995-75063149 ID is 20ba2adb-f68c-488e-854d-dc306036d6b1 2025-06-09 16:37:27,266 - DEBUG - VM ctest-TestRoutersBasic-64037995-75063149 launched on Node cn-jenkins-deploy-platform-ansible-os-3426-1 2025-06-09 16:37:27,396 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-machine/20ba2adb-f68c-488e-854d-dc306036d6b1 2025-06-09 16:37:27,765 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-machine/20ba2adb-f68c-488e-854d-dc306036d6b1 2025-06-09 16:37:27,812 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-machine-interface/cbdef4a7-1f69-4b97-81ab-3bc7d8664a24 2025-06-09 16:37:31,098 - 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 1006ms') 2025-06-09 16:37:31,098 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-64037995-75063149 failed! 2025-06-09 16:37:31,159 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-64037995:ctest-vn-33247769 is 155.248.176.65 and allocation pool is NOT set 2025-06-09 16:37:35,231 - 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 1010ms') 2025-06-09 16:37:35,231 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-64037995-75063149 failed! 2025-06-09 16:37:35,291 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-64037995:ctest-vn-33247769 is 155.248.176.65 and allocation pool is NOT set 2025-06-09 16:37:37,358 - 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=5.76 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=2.24 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 = 2.238/3.996/5.755/1.758 ms') 2025-06-09 16:37:37,358 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-64037995-75063149 passed 2025-06-09 16:37:37,511 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-09 16:37:37,511 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-64037995-75063149, IP 155.248.176.67, Port 22 2025-06-09 16:37:37,580 - 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-06-09 16:37:37,671 - DEBUG - VM ctest-TestRoutersBasic-64037995-75063149 is NOT ready for SSH connections, VM status: ACTIVE 2025-06-09 16:37:42,672 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-09 16:37:42,672 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-64037995-75063149, IP 155.248.176.67, Port 22 2025-06-09 16:37:42,830 - DEBUG - VM ctest-TestRoutersBasic-64037995-75063149 is ready for SSH connections 2025-06-09 16:37:42,830 - INFO - Waiting for VM ctest-TestRoutersBasic-64037995-88677290 to be up.. 2025-06-09 16:37:42,911 - DEBUG - VM is in ACTIVE state now 2025-06-09 16:37:42,911 - INFO - VM name : ctest-TestRoutersBasic-64037995-88677290 2025-06-09 16:37:43,009 - DEBUG - VM ctest-TestRoutersBasic-64037995-88677290 ID is 5fdfcd8e-efdb-405d-854f-79950d0ab8cf 2025-06-09 16:37:43,009 - DEBUG - VM ctest-TestRoutersBasic-64037995-88677290 launched on Node cn-jenkins-deploy-platform-ansible-os-3426-1 2025-06-09 16:37:43,085 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-machine/5fdfcd8e-efdb-405d-854f-79950d0ab8cf 2025-06-09 16:37:43,095 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-machine-interface/51bae355-3556-4ce7-a9d3-bb5ec42df9c2 2025-06-09 16:37:44,342 - 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.12 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.415 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.415/2.266/4.117/1.851 ms') 2025-06-09 16:37:44,342 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-64037995-88677290 passed 2025-06-09 16:37:44,495 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-09 16:37:44,495 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-64037995-88677290, IP 117.243.188.3, Port 22 2025-06-09 16:37:44,661 - DEBUG - VM ctest-TestRoutersBasic-64037995-88677290 is ready for SSH connections 2025-06-09 16:37:44,661 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-09 16:37:44,661 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 117.243.188.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.27, gateway password: c0ntrail123 2025-06-09 16:37:44,661 - DEBUG - ping -s 56 -c 3 -W 1 117.243.188.3 2025-06-09 16:37:48,389 - DEBUG - PING 117.243.188.3 (117.243.188.3): 56 data bytes 64 bytes from 117.243.188.3: seq=0 ttl=62 time=7.829 ms 64 bytes from 117.243.188.3: seq=1 ttl=62 time=1.085 ms 64 bytes from 117.243.188.3: seq=2 ttl=62 time=0.924 ms --- 117.243.188.3 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.924/3.279/7.829 ms 2025-06-09 16:37:48,389 - INFO - Ping to IP 117.243.188.3 from VM ctest-TestRoutersBasic-64037995-75063149 passed 2025-06-09 16:37:48,389 - INFO - Deleting interface with subnet_id 496d9164-81a0-4881-ac86-62cd2d7baab9, port_id None from router 3142f18c-81b7-445d-987e-4312d30f552b 2025-06-09 16:37:48,620 - INFO - Deleting VM ctest-TestRoutersBasic-64037995-88677290 2025-06-09 16:37:48,733 - INFO - Deleting VM ctest-TestRoutersBasic-64037995-75063149 2025-06-09 16:37:48,839 - INFO - Deleting VN ctest-ext_vn-73044410 2025-06-09 16:37:48,922 - DEBUG - VN 595c9172-22a6-429f-a68f-7aff51b4d9ef still in use: Unable to complete operation on network 595c9172-22a6-429f-a68f-7aff51b4d9ef. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-a61aaaab-2fc3-4dea-ab0f-1c9887ec116d'] 2025-06-09 16:37:48,922 - WARNING - Deleting VN ctest-ext_vn-73044410 failed..Will retry 2025-06-09 16:37:51,052 - DEBUG - Response for deleting network () 2025-06-09 16:37:51,052 - INFO - Deleting VN ctest-vn-33247769 2025-06-09 16:37:51,190 - DEBUG - Response for deleting network () 2025-06-09 16:37:51,446 - DEBUG - No XMPP flaps were noticed during the test
2025-06-09 16:37:51,446 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:31]
2025-06-09 16:37:51,446 - INFO - -------------------------------------------------------------------------------- 2025-06-09 16:37:52,207 - INFO - Deleted project: ctest-TestRoutersBasic-64037995, ID : 0f474342-8374-4530-9f22-8f92c9bf4921