2025-02-12 08:16:33,876 - INFO - Domain Default found not creating 2025-02-12 08:16:34,037 - INFO - Project ctest-TestRoutersBasic-54735758 not found, creating it 2025-02-12 08:16:34,546 - INFO - Created Project:ctest-TestRoutersBasic-54735758, ID : 67639c8b-53df-4d52-af65-01d1826ccfc0 2025-02-12 08:16:36,203 - INFO - ================================================================================ 2025-02-12 08:16:36,203 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2025-02-12 08:16:36,203 - 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-02-12 08:16:36,466 - DEBUG - Nothing to compare xmpp stats {'10.0.0.12': {'10.20.0.6': '0'}} with 2025-02-12 08:16:36,466 - INFO - Initial checks done. Running the testcase now 2025-02-12 08:16:36,466 - INFO - 2025-02-12 08:16:37,281 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-54735758 2025-02-12 08:16:37,383 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-54735758 2025-02-12 08:16:37,722 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-54735758', 'default']} 2025-02-12 08:16:38,078 - DEBUG - Response for create_network : {'network': {'id': '77203c28-c4c5-4d0e-8603-10f0cc087135', 'name': 'ctest-vn-21852907', 'tenant_id': '67639c8b53df4d52af6501d1826ccfc0', 'project_id': '67639c8b53df4d52af6501d1826ccfc0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-54735758', 'ctest-vn-21852907'], 'port_security_enabled': True, 'description': ''}} 2025-02-12 08:16:38,268 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c62dce3d-84b9-4482-b931-a087f9d2b1bd', 'name': '', 'tenant_id': '67639c8b53df4d52af6501d1826ccfc0', 'network_id': '77203c28-c4c5-4d0e-8603-10f0cc087135', 'ip_version': 4, 'cidr': '134.118.254.0/26', 'allocation_pools': [{'start': '134.118.254.2', 'end': '134.118.254.62'}], 'gateway_ip': '134.118.254.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '134.118.254.2', 'tags': [], 'project_id': '67639c8b53df4d52af6501d1826ccfc0'}} 2025-02-12 08:16:38,289 - INFO - Created VN ctest-vn-21852907 2025-02-12 08:16:38,342 - DEBUG - VN ctest-vn-21852907 UUID is 77203c28-c4c5-4d0e-8603-10f0cc087135 2025-02-12 08:16:38,698 - DEBUG - Response for create_network : {'network': {'id': 'c904f4a5-1206-4454-9cc8-a8b96b1b2bcd', 'name': 'ctest-ext_vn-83281752', 'tenant_id': '67639c8b53df4d52af6501d1826ccfc0', 'project_id': '67639c8b53df4d52af6501d1826ccfc0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-54735758', 'ctest-ext_vn-83281752'], 'port_security_enabled': True, 'description': ''}} 2025-02-12 08:16:38,847 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e661f8de-417f-40e7-83b4-962d225bbdda', 'name': '', 'tenant_id': '67639c8b53df4d52af6501d1826ccfc0', 'network_id': 'c904f4a5-1206-4454-9cc8-a8b96b1b2bcd', 'ip_version': 4, 'cidr': '78.26.160.0/26', 'allocation_pools': [{'start': '78.26.160.2', 'end': '78.26.160.62'}], 'gateway_ip': '78.26.160.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '78.26.160.2', 'tags': [], 'project_id': '67639c8b53df4d52af6501d1826ccfc0'}} 2025-02-12 08:16:38,868 - INFO - Created VN ctest-ext_vn-83281752 2025-02-12 08:16:38,922 - DEBUG - VN ctest-ext_vn-83281752 UUID is c904f4a5-1206-4454-9cc8-a8b96b1b2bcd 2025-02-12 08:16:39,101 - DEBUG - Services list from nova: [, , ] 2025-02-12 08:16:40,279 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2727-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2727-1) 2025-02-12 08:16:41,617 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2727-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2727-1) 2025-02-12 08:16:41,745 - INFO - Setting gateway for router 1822a113-4eee-4b4c-a9a8-4c8cda32a6a7 to network c904f4a5-1206-4454-9cc8-a8b96b1b2bcd 2025-02-12 08:16:41,839 - INFO - Adding interface with subnet_id c62dce3d-84b9-4482-b931-a087f9d2b1bd, port_id None to router 1822a113-4eee-4b4c-a9a8-4c8cda32a6a7 2025-02-12 08:16:42,321 - INFO - Waiting for VM ctest-TestRoutersBasic-54735758-85971148 to be up.. 2025-02-12 08:16:42,517 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-02-12 08:16:47,604 - DEBUG - VM is in ACTIVE state now 2025-02-12 08:16:47,604 - INFO - VM name : ctest-TestRoutersBasic-54735758-85971148 2025-02-12 08:16:47,689 - DEBUG - VM ctest-TestRoutersBasic-54735758-85971148 ID is 2e679241-b620-44b7-af2f-a07b3a9e113b 2025-02-12 08:16:47,710 - DEBUG - VM ctest-TestRoutersBasic-54735758-85971148 launched on Node cn-jenkins-deploy-platform-ansible-os-2727-1 2025-02-12 08:16:47,797 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-machine/2e679241-b620-44b7-af2f-a07b3a9e113b 2025-02-12 08:16:48,139 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-machine/2e679241-b620-44b7-af2f-a07b3a9e113b 2025-02-12 08:16:48,177 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-machine-interface/0d75fefc-ae96-45fd-9a20-0c3dbe6bb485 2025-02-12 08:16:51,441 - 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 1013ms') 2025-02-12 08:16:51,441 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-54735758-85971148 failed! 2025-02-12 08:16:51,498 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-54735758:ctest-vn-21852907 is 134.118.254.1 and allocation pool is NOT set 2025-02-12 08:16:53,563 - 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.44 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=1.93 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.930/3.682/5.435/1.752 ms') 2025-02-12 08:16:53,564 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-54735758-85971148 passed 2025-02-12 08:16:53,722 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-02-12 08:16:53,723 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-54735758-85971148, IP 134.118.254.3, Port 22 2025-02-12 08:16:53,778 - 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-02-12 08:16:53,870 - DEBUG - VM ctest-TestRoutersBasic-54735758-85971148 is NOT ready for SSH connections, VM status: ACTIVE 2025-02-12 08:16:58,871 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-02-12 08:16:58,871 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-54735758-85971148, IP 134.118.254.3, Port 22 2025-02-12 08:16:59,027 - DEBUG - VM ctest-TestRoutersBasic-54735758-85971148 is ready for SSH connections 2025-02-12 08:16:59,027 - INFO - Waiting for VM ctest-TestRoutersBasic-54735758-67984438 to be up.. 2025-02-12 08:16:59,123 - DEBUG - VM is in ACTIVE state now 2025-02-12 08:16:59,124 - INFO - VM name : ctest-TestRoutersBasic-54735758-67984438 2025-02-12 08:16:59,212 - DEBUG - VM ctest-TestRoutersBasic-54735758-67984438 ID is 70c07510-cf13-4aaa-8690-aad732a39b85 2025-02-12 08:16:59,212 - DEBUG - VM ctest-TestRoutersBasic-54735758-67984438 launched on Node cn-jenkins-deploy-platform-ansible-os-2727-1 2025-02-12 08:16:59,295 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-machine/70c07510-cf13-4aaa-8690-aad732a39b85 2025-02-12 08:16:59,304 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-machine-interface/fb7ac7c9-f0a0-45a5-b38c-876673381451 2025-02-12 08:17:00,552 - 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.14 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.414 ms\r\n\r\n--- 169.254.0.4 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1000ms\r\nrtt min/avg/max/mdev = 0.414/1.777/3.141/1.363 ms') 2025-02-12 08:17:00,552 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-54735758-67984438 passed 2025-02-12 08:17:00,714 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-02-12 08:17:00,715 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-54735758-67984438, IP 78.26.160.3, Port 22 2025-02-12 08:17:00,885 - DEBUG - VM ctest-TestRoutersBasic-54735758-67984438 is ready for SSH connections 2025-02-12 08:17:00,885 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-02-12 08:17:00,885 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 78.26.160.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.12, gateway password: c0ntrail123 2025-02-12 08:17:00,885 - DEBUG - ping -s 56 -c 3 -W 1 78.26.160.3 2025-02-12 08:17:05,030 - DEBUG - PING 78.26.160.3 (78.26.160.3): 56 data bytes 64 bytes from 78.26.160.3: seq=0 ttl=62 time=7.120 ms 64 bytes from 78.26.160.3: seq=1 ttl=62 time=0.917 ms 64 bytes from 78.26.160.3: seq=2 ttl=62 time=1.100 ms --- 78.26.160.3 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.917/3.045/7.120 ms 2025-02-12 08:17:05,030 - INFO - Ping to IP 78.26.160.3 from VM ctest-TestRoutersBasic-54735758-85971148 passed 2025-02-12 08:17:05,030 - INFO - Deleting interface with subnet_id c62dce3d-84b9-4482-b931-a087f9d2b1bd, port_id None from router 1822a113-4eee-4b4c-a9a8-4c8cda32a6a7 2025-02-12 08:17:05,273 - INFO - Deleting VM ctest-TestRoutersBasic-54735758-67984438 2025-02-12 08:17:05,348 - INFO - Deleting VM ctest-TestRoutersBasic-54735758-85971148 2025-02-12 08:17:05,459 - INFO - Deleting VN ctest-ext_vn-83281752 2025-02-12 08:17:05,558 - DEBUG - VN c904f4a5-1206-4454-9cc8-a8b96b1b2bcd still in use: Unable to complete operation on network c904f4a5-1206-4454-9cc8-a8b96b1b2bcd. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-fe4ad8d9-51e4-4d25-8627-2986e796f2cc'] 2025-02-12 08:17:05,558 - WARNING - Deleting VN ctest-ext_vn-83281752 failed..Will retry 2025-02-12 08:17:07,706 - DEBUG - Response for deleting network () 2025-02-12 08:17:07,706 - INFO - Deleting VN ctest-vn-21852907 2025-02-12 08:17:07,843 - DEBUG - Response for deleting network () 2025-02-12 08:17:08,112 - DEBUG - No XMPP flaps were noticed during the test
2025-02-12 08:17:08,112 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:32]
2025-02-12 08:17:08,112 - INFO - -------------------------------------------------------------------------------- 2025-02-12 08:17:08,877 - INFO - Deleted project: ctest-TestRoutersBasic-54735758, ID : 67639c8b-53df-4d52-af65-01d1826ccfc0