2025-06-16 20:52:20,708 - INFO - Domain Default found not creating 2025-06-16 20:52:20,863 - INFO - Project ctest-TestRoutersBasic-30269999 not found, creating it 2025-06-16 20:52:21,357 - INFO - Created Project:ctest-TestRoutersBasic-30269999, ID : d057a0cb-cbb9-403a-bdad-0b59475e3d73 2025-06-16 20:52:22,966 - INFO - ================================================================================ 2025-06-16 20:52:22,966 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2025-06-16 20:52:22,966 - 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-16 20:52:23,225 - DEBUG - Nothing to compare xmpp stats {'10.0.0.57': {'10.20.0.17': '0'}} with 2025-06-16 20:52:23,225 - INFO - Initial checks done. Running the testcase now 2025-06-16 20:52:23,225 - INFO - 2025-06-16 20:52:24,057 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-30269999 2025-06-16 20:52:24,163 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-30269999 2025-06-16 20:52:24,506 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-30269999', 'default']} 2025-06-16 20:52:24,830 - DEBUG - Response for create_network : {'network': {'id': '5c09e1f3-ad7e-4be0-be68-d28ac800490e', 'name': 'ctest-vn-88852069', 'tenant_id': 'd057a0cbcbb9403abdad0b59475e3d73', 'project_id': 'd057a0cbcbb9403abdad0b59475e3d73', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-30269999', 'ctest-vn-88852069'], 'port_security_enabled': True, 'description': ''}} 2025-06-16 20:52:25,078 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b5d6a8ed-725d-4835-9f33-ca0a8a8f6fa2', 'name': '', 'tenant_id': 'd057a0cbcbb9403abdad0b59475e3d73', 'network_id': '5c09e1f3-ad7e-4be0-be68-d28ac800490e', 'ip_version': 4, 'cidr': '208.193.172.0/26', 'allocation_pools': [{'start': '208.193.172.2', 'end': '208.193.172.62'}], 'gateway_ip': '208.193.172.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '208.193.172.2', 'tags': [], 'project_id': 'd057a0cbcbb9403abdad0b59475e3d73'}} 2025-06-16 20:52:25,102 - INFO - Created VN ctest-vn-88852069 2025-06-16 20:52:25,159 - DEBUG - VN ctest-vn-88852069 UUID is 5c09e1f3-ad7e-4be0-be68-d28ac800490e 2025-06-16 20:52:25,534 - DEBUG - Response for create_network : {'network': {'id': '48ddf030-b050-40bc-9645-a63272608736', 'name': 'ctest-ext_vn-01804999', 'tenant_id': 'd057a0cbcbb9403abdad0b59475e3d73', 'project_id': 'd057a0cbcbb9403abdad0b59475e3d73', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-30269999', 'ctest-ext_vn-01804999'], 'port_security_enabled': True, 'description': ''}} 2025-06-16 20:52:25,764 - DEBUG - Response for create_subnet : {'subnet': {'id': 'aa9af398-d4e0-47f7-95e5-00d32e7cc26f', 'name': '', 'tenant_id': 'd057a0cbcbb9403abdad0b59475e3d73', 'network_id': '48ddf030-b050-40bc-9645-a63272608736', 'ip_version': 4, 'cidr': '214.74.250.64/26', 'allocation_pools': [{'start': '214.74.250.66', 'end': '214.74.250.126'}], 'gateway_ip': '214.74.250.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '214.74.250.66', 'tags': [], 'project_id': 'd057a0cbcbb9403abdad0b59475e3d73'}} 2025-06-16 20:52:25,786 - INFO - Created VN ctest-ext_vn-01804999 2025-06-16 20:52:25,839 - DEBUG - VN ctest-ext_vn-01804999 UUID is 48ddf030-b050-40bc-9645-a63272608736 2025-06-16 20:52:26,019 - DEBUG - Services list from nova: [, , ] 2025-06-16 20:52:27,163 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3457-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3457-1) 2025-06-16 20:52:28,461 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3457-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3457-1) 2025-06-16 20:52:28,545 - INFO - Setting gateway for router 600ae739-9720-41d1-bc2f-3eb7e818b662 to network 48ddf030-b050-40bc-9645-a63272608736 2025-06-16 20:52:28,613 - INFO - Adding interface with subnet_id b5d6a8ed-725d-4835-9f33-ca0a8a8f6fa2, port_id None to router 600ae739-9720-41d1-bc2f-3eb7e818b662 2025-06-16 20:52:29,089 - INFO - Waiting for VM ctest-TestRoutersBasic-30269999-56295331 to be up.. 2025-06-16 20:52:29,266 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-06-16 20:52:34,354 - DEBUG - VM is in ACTIVE state now 2025-06-16 20:52:34,354 - INFO - VM name : ctest-TestRoutersBasic-30269999-56295331 2025-06-16 20:52:34,443 - DEBUG - VM ctest-TestRoutersBasic-30269999-56295331 ID is 509dba8a-2f14-46c9-bfda-834e1b87f66e 2025-06-16 20:52:34,463 - DEBUG - VM ctest-TestRoutersBasic-30269999-56295331 launched on Node cn-jenkins-deploy-platform-ansible-os-3457-1 2025-06-16 20:52:34,571 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-machine/509dba8a-2f14-46c9-bfda-834e1b87f66e 2025-06-16 20:52:34,907 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-machine/509dba8a-2f14-46c9-bfda-834e1b87f66e 2025-06-16 20:52:34,968 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-machine-interface/ac10d539-f366-4dd7-aaf5-f6e289760726 2025-06-16 20:52:38,251 - 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 1029ms') 2025-06-16 20:52:38,251 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-30269999-56295331 failed! 2025-06-16 20:52:38,307 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-30269999:ctest-vn-88852069 is 208.193.172.1 and allocation pool is NOT set 2025-06-16 20:52:40,375 - 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.36 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=2.19 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 = 2.187/2.771/3.356/0.584 ms') 2025-06-16 20:52:40,375 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-30269999-56295331 passed 2025-06-16 20:52:40,531 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-16 20:52:40,531 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-30269999-56295331, IP 208.193.172.3, Port 22 2025-06-16 20:52:40,601 - 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-16 20:52:40,701 - DEBUG - VM ctest-TestRoutersBasic-30269999-56295331 is NOT ready for SSH connections, VM status: ACTIVE 2025-06-16 20:52:45,701 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-16 20:52:45,701 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-30269999-56295331, IP 208.193.172.3, Port 22 2025-06-16 20:52:45,859 - DEBUG - VM ctest-TestRoutersBasic-30269999-56295331 is ready for SSH connections 2025-06-16 20:52:45,859 - INFO - Waiting for VM ctest-TestRoutersBasic-30269999-60140717 to be up.. 2025-06-16 20:52:45,953 - DEBUG - VM is in ACTIVE state now 2025-06-16 20:52:45,953 - INFO - VM name : ctest-TestRoutersBasic-30269999-60140717 2025-06-16 20:52:46,047 - DEBUG - VM ctest-TestRoutersBasic-30269999-60140717 ID is cc513bec-e0ee-40e6-a9d2-e12593c019cb 2025-06-16 20:52:46,047 - DEBUG - VM ctest-TestRoutersBasic-30269999-60140717 launched on Node cn-jenkins-deploy-platform-ansible-os-3457-1 2025-06-16 20:52:46,127 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-machine/cc513bec-e0ee-40e6-a9d2-e12593c019cb 2025-06-16 20:52:46,138 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-machine-interface/18e21e1b-5fdb-4d61-96ee-fc406e83c171 2025-06-16 20:52:47,381 - 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.74 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 1002ms\r\nrtt min/avg/max/mdev = 0.501/2.118/3.736/1.617 ms') 2025-06-16 20:52:47,381 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-30269999-60140717 passed 2025-06-16 20:52:47,539 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-16 20:52:47,539 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-30269999-60140717, IP 214.74.250.67, Port 22 2025-06-16 20:52:47,694 - DEBUG - VM ctest-TestRoutersBasic-30269999-60140717 is ready for SSH connections 2025-06-16 20:52:47,694 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-16 20:52:47,694 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 214.74.250.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.57, gateway password: c0ntrail123 2025-06-16 20:52:47,695 - DEBUG - ping -s 56 -c 3 -W 1 214.74.250.67 2025-06-16 20:52:51,426 - DEBUG - PING 214.74.250.67 (214.74.250.67): 56 data bytes 64 bytes from 214.74.250.67: seq=0 ttl=62 time=5.249 ms 64 bytes from 214.74.250.67: seq=1 ttl=62 time=1.219 ms 64 bytes from 214.74.250.67: seq=2 ttl=62 time=1.151 ms --- 214.74.250.67 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.151/2.539/5.249 ms 2025-06-16 20:52:51,427 - INFO - Ping to IP 214.74.250.67 from VM ctest-TestRoutersBasic-30269999-56295331 passed 2025-06-16 20:52:51,427 - INFO - Deleting interface with subnet_id b5d6a8ed-725d-4835-9f33-ca0a8a8f6fa2, port_id None from router 600ae739-9720-41d1-bc2f-3eb7e818b662 2025-06-16 20:52:51,657 - INFO - Deleting VM ctest-TestRoutersBasic-30269999-60140717 2025-06-16 20:52:51,744 - INFO - Deleting VM ctest-TestRoutersBasic-30269999-56295331 2025-06-16 20:52:51,841 - INFO - Deleting VN ctest-ext_vn-01804999 2025-06-16 20:52:51,936 - DEBUG - VN 48ddf030-b050-40bc-9645-a63272608736 still in use: Unable to complete operation on network 48ddf030-b050-40bc-9645-a63272608736. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-4108f6ca-77e2-421d-ae1b-f33efe781b29'] 2025-06-16 20:52:51,936 - WARNING - Deleting VN ctest-ext_vn-01804999 failed..Will retry 2025-06-16 20:52:54,075 - DEBUG - Response for deleting network () 2025-06-16 20:52:54,075 - INFO - Deleting VN ctest-vn-88852069 2025-06-16 20:52:54,227 - DEBUG - Response for deleting network () 2025-06-16 20:52:54,490 - DEBUG - No XMPP flaps were noticed during the test 2025-06-16 20:52:54,490 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:32] 2025-06-16 20:52:54,490 - INFO - -------------------------------------------------------------------------------- 2025-06-16 20:52:55,272 - INFO - Deleted project: ctest-TestRoutersBasic-30269999, ID : d057a0cb-cbb9-403a-bdad-0b59475e3d73