2025-06-23 14:39:09,816 - INFO - Domain Default found not creating 2025-06-23 14:39:09,963 - INFO - Project ctest-TestRoutersBasic-57199622 not found, creating it 2025-06-23 14:39:10,435 - INFO - Created Project:ctest-TestRoutersBasic-57199622, ID : c948710e-6915-40d3-9050-9c93211d0940 2025-06-23 14:39:11,832 - INFO - ================================================================================ 2025-06-23 14:39:11,832 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2025-06-23 14:39:11,832 - 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-23 14:39:12,089 - DEBUG - Nothing to compare xmpp stats {'10.0.0.65': {'10.20.0.17': '0'}} with 2025-06-23 14:39:12,089 - INFO - Initial checks done. Running the testcase now 2025-06-23 14:39:12,089 - INFO - 2025-06-23 14:39:12,784 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-57199622 2025-06-23 14:39:12,883 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-57199622 2025-06-23 14:39:13,219 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-57199622', 'default']} 2025-06-23 14:39:13,508 - DEBUG - Response for create_network : {'network': {'id': 'f3c94e5e-d4e0-47a6-b9ce-e9ac8e5bd49c', 'name': 'ctest-vn-77662780', 'tenant_id': 'c948710e691540d390509c93211d0940', 'project_id': 'c948710e691540d390509c93211d0940', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-57199622', 'ctest-vn-77662780'], 'port_security_enabled': True, 'description': ''}} 2025-06-23 14:39:13,665 - DEBUG - Response for create_subnet : {'subnet': {'id': '034b7f5e-1ff2-4a9d-9492-051c79b99c44', 'name': '', 'tenant_id': 'c948710e691540d390509c93211d0940', 'network_id': 'f3c94e5e-d4e0-47a6-b9ce-e9ac8e5bd49c', 'ip_version': 4, 'cidr': '92.177.212.0/26', 'allocation_pools': [{'start': '92.177.212.2', 'end': '92.177.212.62'}], 'gateway_ip': '92.177.212.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '92.177.212.2', 'tags': [], 'project_id': 'c948710e691540d390509c93211d0940'}} 2025-06-23 14:39:13,685 - INFO - Created VN ctest-vn-77662780 2025-06-23 14:39:13,739 - DEBUG - VN ctest-vn-77662780 UUID is f3c94e5e-d4e0-47a6-b9ce-e9ac8e5bd49c 2025-06-23 14:39:14,085 - DEBUG - Response for create_network : {'network': {'id': 'f191f410-59a6-4d21-b307-f86e0ac640ce', 'name': 'ctest-ext_vn-98603974', 'tenant_id': 'c948710e691540d390509c93211d0940', 'project_id': 'c948710e691540d390509c93211d0940', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-57199622', 'ctest-ext_vn-98603974'], 'port_security_enabled': True, 'description': ''}} 2025-06-23 14:39:14,297 - DEBUG - Response for create_subnet : {'subnet': {'id': '77e1b6bb-ae62-45b6-8d51-e96719d2e773', 'name': '', 'tenant_id': 'c948710e691540d390509c93211d0940', 'network_id': 'f191f410-59a6-4d21-b307-f86e0ac640ce', 'ip_version': 4, 'cidr': '191.134.242.128/26', 'allocation_pools': [{'start': '191.134.242.130', 'end': '191.134.242.190'}], 'gateway_ip': '191.134.242.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '191.134.242.130', 'tags': [], 'project_id': 'c948710e691540d390509c93211d0940'}} 2025-06-23 14:39:14,316 - INFO - Created VN ctest-ext_vn-98603974 2025-06-23 14:39:14,367 - DEBUG - VN ctest-ext_vn-98603974 UUID is f191f410-59a6-4d21-b307-f86e0ac640ce 2025-06-23 14:39:14,530 - DEBUG - Services list from nova: [, , ] 2025-06-23 14:39:15,540 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3521-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3521-1) 2025-06-23 14:39:16,877 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3521-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3521-1) 2025-06-23 14:39:16,958 - INFO - Setting gateway for router da7e802f-749f-41a5-9a6d-c193bb0217be to network f191f410-59a6-4d21-b307-f86e0ac640ce 2025-06-23 14:39:17,025 - INFO - Adding interface with subnet_id 034b7f5e-1ff2-4a9d-9492-051c79b99c44, port_id None to router da7e802f-749f-41a5-9a6d-c193bb0217be 2025-06-23 14:39:17,444 - INFO - Waiting for VM ctest-TestRoutersBasic-57199622-40438991 to be up.. 2025-06-23 14:39:17,663 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-06-23 14:39:22,751 - DEBUG - VM is in ACTIVE state now 2025-06-23 14:39:22,751 - INFO - VM name : ctest-TestRoutersBasic-57199622-40438991 2025-06-23 14:39:22,837 - DEBUG - VM ctest-TestRoutersBasic-57199622-40438991 ID is aca74422-9a72-4445-9012-a0f5b6bbb323 2025-06-23 14:39:22,857 - DEBUG - VM ctest-TestRoutersBasic-57199622-40438991 launched on Node cn-jenkins-deploy-platform-ansible-os-3521-1 2025-06-23 14:39:22,940 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-machine/aca74422-9a72-4445-9012-a0f5b6bbb323 2025-06-23 14:39:23,237 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-machine/aca74422-9a72-4445-9012-a0f5b6bbb323 2025-06-23 14:39:23,269 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-machine-interface/08c182ea-7395-42d6-a294-94b772d548be 2025-06-23 14:39:26,523 - 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 1005ms') 2025-06-23 14:39:26,523 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-57199622-40438991 failed! 2025-06-23 14:39:26,587 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-57199622:ctest-vn-77662780 is 92.177.212.1 and allocation pool is NOT set 2025-06-23 14:39:28,652 - 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=6.70 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.821 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.821/3.759/6.698/2.938 ms') 2025-06-23 14:39:28,652 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-57199622-40438991 passed 2025-06-23 14:39:28,811 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-23 14:39:28,811 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-57199622-40438991, IP 92.177.212.3, Port 22 2025-06-23 14:39:28,877 - 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-23 14:39:28,965 - DEBUG - VM ctest-TestRoutersBasic-57199622-40438991 is NOT ready for SSH connections, VM status: ACTIVE 2025-06-23 14:39:33,966 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-23 14:39:33,966 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-57199622-40438991, IP 92.177.212.3, Port 22 2025-06-23 14:39:34,126 - DEBUG - VM ctest-TestRoutersBasic-57199622-40438991 is ready for SSH connections 2025-06-23 14:39:34,126 - INFO - Waiting for VM ctest-TestRoutersBasic-57199622-64578449 to be up.. 2025-06-23 14:39:34,200 - DEBUG - VM is in ACTIVE state now 2025-06-23 14:39:34,200 - INFO - VM name : ctest-TestRoutersBasic-57199622-64578449 2025-06-23 14:39:34,270 - DEBUG - VM ctest-TestRoutersBasic-57199622-64578449 ID is 3643a602-bd71-4d68-a55d-e79fe2337985 2025-06-23 14:39:34,271 - DEBUG - VM ctest-TestRoutersBasic-57199622-64578449 launched on Node cn-jenkins-deploy-platform-ansible-os-3521-1 2025-06-23 14:39:34,339 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-machine/3643a602-bd71-4d68-a55d-e79fe2337985 2025-06-23 14:39:34,347 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-machine-interface/3dc1975d-2199-4d56-a084-74e9c1b44780 2025-06-23 14:39:35,579 - 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.02 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.501 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.501/1.758/3.015/1.257 ms') 2025-06-23 14:39:35,580 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-57199622-64578449 passed 2025-06-23 14:39:35,735 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-23 14:39:35,735 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-57199622-64578449, IP 191.134.242.131, Port 22 2025-06-23 14:39:35,895 - DEBUG - VM ctest-TestRoutersBasic-57199622-64578449 is ready for SSH connections 2025-06-23 14:39:35,895 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-23 14:39:35,895 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 191.134.242.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.65, gateway password: c0ntrail123 2025-06-23 14:39:35,895 - DEBUG - ping -s 56 -c 3 -W 1 191.134.242.131 2025-06-23 14:39:39,788 - DEBUG - PING 191.134.242.131 (191.134.242.131): 56 data bytes 64 bytes from 191.134.242.131: seq=0 ttl=62 time=5.398 ms 64 bytes from 191.134.242.131: seq=1 ttl=62 time=1.086 ms 64 bytes from 191.134.242.131: seq=2 ttl=62 time=0.898 ms --- 191.134.242.131 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.898/2.460/5.398 ms 2025-06-23 14:39:39,788 - INFO - Ping to IP 191.134.242.131 from VM ctest-TestRoutersBasic-57199622-40438991 passed 2025-06-23 14:39:39,788 - INFO - Deleting interface with subnet_id 034b7f5e-1ff2-4a9d-9492-051c79b99c44, port_id None from router da7e802f-749f-41a5-9a6d-c193bb0217be 2025-06-23 14:39:40,094 - INFO - Deleting VM ctest-TestRoutersBasic-57199622-64578449 2025-06-23 14:39:40,179 - INFO - Deleting VM ctest-TestRoutersBasic-57199622-40438991 2025-06-23 14:39:40,267 - INFO - Deleting VN ctest-ext_vn-98603974 2025-06-23 14:39:40,362 - DEBUG - VN f191f410-59a6-4d21-b307-f86e0ac640ce still in use: Unable to complete operation on network f191f410-59a6-4d21-b307-f86e0ac640ce. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-0656635a-282f-4c65-abcd-8908013a2b94'] 2025-06-23 14:39:40,362 - WARNING - Deleting VN ctest-ext_vn-98603974 failed..Will retry 2025-06-23 14:39:42,462 - DEBUG - Response for deleting network () 2025-06-23 14:39:42,462 - INFO - Deleting VN ctest-vn-77662780 2025-06-23 14:39:42,569 - DEBUG - Response for deleting network () 2025-06-23 14:39:42,829 - DEBUG - No XMPP flaps were noticed during the test
2025-06-23 14:39:42,829 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:31]
2025-06-23 14:39:42,829 - INFO - -------------------------------------------------------------------------------- 2025-06-23 14:39:43,534 - INFO - Deleted project: ctest-TestRoutersBasic-57199622, ID : c948710e-6915-40d3-9050-9c93211d0940