2025-05-13 12:03:12,503 - INFO - Domain Default found not creating 2025-05-13 12:03:12,685 - INFO - Project ctest-TestRoutersBasic-31447409 not found, creating it 2025-05-13 12:03:13,198 - INFO - Created Project:ctest-TestRoutersBasic-31447409, ID : c57f34dc-f1b6-4398-88bf-bf1a8a3d961b 2025-05-13 12:03:14,837 - INFO - ================================================================================ 2025-05-13 12:03:14,837 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2025-05-13 12:03:14,837 - 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-05-13 12:03:15,100 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with 2025-05-13 12:03:15,100 - INFO - Initial checks done. Running the testcase now 2025-05-13 12:03:15,100 - INFO - 2025-05-13 12:03:15,936 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-31447409 2025-05-13 12:03:16,036 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-31447409 2025-05-13 12:03:16,372 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-31447409', 'default']} 2025-05-13 12:03:16,704 - DEBUG - Response for create_network : {'network': {'id': 'b6485343-6057-417b-9949-eabd60d7b686', 'name': 'ctest-vn-48581909', 'tenant_id': 'c57f34dcf1b6439888bfbf1a8a3d961b', 'project_id': 'c57f34dcf1b6439888bfbf1a8a3d961b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-31447409', 'ctest-vn-48581909'], 'port_security_enabled': True, 'description': ''}} 2025-05-13 12:03:16,879 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c01f3bd7-dfd4-4a4d-8bcc-2515a702312c', 'name': '', 'tenant_id': 'c57f34dcf1b6439888bfbf1a8a3d961b', 'network_id': 'b6485343-6057-417b-9949-eabd60d7b686', 'ip_version': 4, 'cidr': '94.11.48.128/26', 'allocation_pools': [{'start': '94.11.48.130', 'end': '94.11.48.190'}], 'gateway_ip': '94.11.48.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '94.11.48.130', 'tags': [], 'project_id': 'c57f34dcf1b6439888bfbf1a8a3d961b'}} 2025-05-13 12:03:16,900 - INFO - Created VN ctest-vn-48581909 2025-05-13 12:03:16,956 - DEBUG - VN ctest-vn-48581909 UUID is b6485343-6057-417b-9949-eabd60d7b686 2025-05-13 12:03:17,307 - DEBUG - Response for create_network : {'network': {'id': 'cb6b4e9c-4dfc-426e-bdcd-004b46ddf83e', 'name': 'ctest-ext_vn-89957594', 'tenant_id': 'c57f34dcf1b6439888bfbf1a8a3d961b', 'project_id': 'c57f34dcf1b6439888bfbf1a8a3d961b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-31447409', 'ctest-ext_vn-89957594'], 'port_security_enabled': True, 'description': ''}} 2025-05-13 12:03:17,521 - DEBUG - Response for create_subnet : {'subnet': {'id': '113bc12c-a33f-4950-bdcc-4770a3241654', 'name': '', 'tenant_id': 'c57f34dcf1b6439888bfbf1a8a3d961b', 'network_id': 'cb6b4e9c-4dfc-426e-bdcd-004b46ddf83e', 'ip_version': 4, 'cidr': '137.41.157.192/26', 'allocation_pools': [{'start': '137.41.157.194', 'end': '137.41.157.254'}], 'gateway_ip': '137.41.157.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '137.41.157.194', 'tags': [], 'project_id': 'c57f34dcf1b6439888bfbf1a8a3d961b'}} 2025-05-13 12:03:17,546 - INFO - Created VN ctest-ext_vn-89957594 2025-05-13 12:03:17,600 - DEBUG - VN ctest-ext_vn-89957594 UUID is cb6b4e9c-4dfc-426e-bdcd-004b46ddf83e 2025-05-13 12:03:17,790 - DEBUG - Services list from nova: [, , ] 2025-05-13 12:03:18,927 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3306-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3306-1) 2025-05-13 12:03:20,185 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3306-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3306-1) 2025-05-13 12:03:20,270 - INFO - Setting gateway for router 8657475f-0813-4e98-b51a-214f5d94496e to network cb6b4e9c-4dfc-426e-bdcd-004b46ddf83e 2025-05-13 12:03:20,362 - INFO - Adding interface with subnet_id c01f3bd7-dfd4-4a4d-8bcc-2515a702312c, port_id None to router 8657475f-0813-4e98-b51a-214f5d94496e 2025-05-13 12:03:20,907 - INFO - Waiting for VM ctest-TestRoutersBasic-31447409-72770710 to be up.. 2025-05-13 12:03:21,148 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-05-13 12:03:26,236 - DEBUG - VM is in ACTIVE state now 2025-05-13 12:03:26,236 - INFO - VM name : ctest-TestRoutersBasic-31447409-72770710 2025-05-13 12:03:26,341 - DEBUG - VM ctest-TestRoutersBasic-31447409-72770710 ID is f863b39d-5e13-4fc2-ab98-c9eb0ac50261 2025-05-13 12:03:26,367 - DEBUG - VM ctest-TestRoutersBasic-31447409-72770710 launched on Node cn-jenkins-deploy-platform-ansible-os-3306-1 2025-05-13 12:03:26,489 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine/f863b39d-5e13-4fc2-ab98-c9eb0ac50261 2025-05-13 12:03:26,842 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine/f863b39d-5e13-4fc2-ab98-c9eb0ac50261 2025-05-13 12:03:26,885 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine-interface/f4cf595d-9023-4ad8-93dc-8c80721a1c53 2025-05-13 12:03:30,166 - 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-05-13 12:03:30,166 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-31447409-72770710 failed! 2025-05-13 12:03:30,224 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-31447409:ctest-vn-48581909 is 94.11.48.129 and allocation pool is NOT set 2025-05-13 12:03:32,288 - 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.15 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=1.36 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.364/2.258/3.152/0.894 ms') 2025-05-13 12:03:32,288 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-31447409-72770710 passed 2025-05-13 12:03:32,448 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-05-13 12:03:32,448 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-31447409-72770710, IP 94.11.48.131, Port 22 2025-05-13 12:03:32,603 - DEBUG - VM ctest-TestRoutersBasic-31447409-72770710 is ready for SSH connections 2025-05-13 12:03:32,603 - INFO - Waiting for VM ctest-TestRoutersBasic-31447409-92075629 to be up.. 2025-05-13 12:03:32,696 - DEBUG - VM is in ACTIVE state now 2025-05-13 12:03:32,696 - INFO - VM name : ctest-TestRoutersBasic-31447409-92075629 2025-05-13 12:03:32,782 - DEBUG - VM ctest-TestRoutersBasic-31447409-92075629 ID is 3594c7ee-4fc7-44d5-9c28-893e006c59a2 2025-05-13 12:03:32,782 - DEBUG - VM ctest-TestRoutersBasic-31447409-92075629 launched on Node cn-jenkins-deploy-platform-ansible-os-3306-1 2025-05-13 12:03:32,867 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine/3594c7ee-4fc7-44d5-9c28-893e006c59a2 2025-05-13 12:03:32,879 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine-interface/ed17d6b3-5bec-4ee3-a3e6-6485ea00c95f 2025-05-13 12:03:34,130 - 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=5.22 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=2.13 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 = 2.131/3.677/5.224/1.546 ms') 2025-05-13 12:03:34,130 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-31447409-92075629 passed 2025-05-13 12:03:34,284 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-05-13 12:03:34,284 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-31447409-92075629, IP 137.41.157.195, Port 22 2025-05-13 12:03:34,340 - 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-05-13 12:03:34,422 - DEBUG - VM ctest-TestRoutersBasic-31447409-92075629 is NOT ready for SSH connections, VM status: ACTIVE 2025-05-13 12:03:39,423 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-05-13 12:03:39,424 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-31447409-92075629, IP 137.41.157.195, Port 22 2025-05-13 12:03:39,584 - DEBUG - VM ctest-TestRoutersBasic-31447409-92075629 is ready for SSH connections 2025-05-13 12:03:39,584 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-05-13 12:03:39,584 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 137.41.157.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.50, gateway password: c0ntrail123 2025-05-13 12:03:39,585 - DEBUG - ping -s 56 -c 3 -W 1 137.41.157.195 2025-05-13 12:03:43,337 - DEBUG - PING 137.41.157.195 (137.41.157.195): 56 data bytes 64 bytes from 137.41.157.195: seq=0 ttl=62 time=5.905 ms 64 bytes from 137.41.157.195: seq=1 ttl=62 time=1.111 ms 64 bytes from 137.41.157.195: seq=2 ttl=62 time=0.966 ms --- 137.41.157.195 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.966/2.660/5.905 ms 2025-05-13 12:03:43,337 - INFO - Ping to IP 137.41.157.195 from VM ctest-TestRoutersBasic-31447409-72770710 passed 2025-05-13 12:03:43,338 - INFO - Deleting interface with subnet_id c01f3bd7-dfd4-4a4d-8bcc-2515a702312c, port_id None from router 8657475f-0813-4e98-b51a-214f5d94496e 2025-05-13 12:03:43,592 - INFO - Deleting VM ctest-TestRoutersBasic-31447409-92075629 2025-05-13 12:03:43,679 - INFO - Deleting VM ctest-TestRoutersBasic-31447409-72770710 2025-05-13 12:03:43,769 - INFO - Deleting VN ctest-ext_vn-89957594 2025-05-13 12:03:43,840 - DEBUG - VN cb6b4e9c-4dfc-426e-bdcd-004b46ddf83e still in use: Unable to complete operation on network cb6b4e9c-4dfc-426e-bdcd-004b46ddf83e. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-b582f900-5e76-49a0-9cef-56b762d56c1a'] 2025-05-13 12:03:43,840 - WARNING - Deleting VN ctest-ext_vn-89957594 failed..Will retry 2025-05-13 12:03:45,975 - DEBUG - Response for deleting network () 2025-05-13 12:03:45,975 - INFO - Deleting VN ctest-vn-48581909 2025-05-13 12:03:46,091 - DEBUG - Response for deleting network () 2025-05-13 12:03:46,346 - DEBUG - No XMPP flaps were noticed during the test 2025-05-13 12:03:46,346 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:32] 2025-05-13 12:03:46,346 - INFO - -------------------------------------------------------------------------------- 2025-05-13 12:03:47,111 - INFO - Deleted project: ctest-TestRoutersBasic-31447409, ID : c57f34dc-f1b6-4398-88bf-bf1a8a3d961b