2025-11-20 14:33:55,184 - INFO - Domain Default found not creating 2025-11-20 14:33:55,757 - INFO - Project ctest-TestRoutersBasic-92781593 not found, creating it 2025-11-20 14:33:56,259 - INFO - Created Project:ctest-TestRoutersBasic-92781593, ID : 115fda49-4f5b-4df5-bb20-4cb6bf6e054c 2025-11-20 14:33:57,772 - INFO - ================================================================================ 2025-11-20 14:33:57,772 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2025-11-20 14:33:57,772 - 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-11-20 14:33:58,024 - DEBUG - Nothing to compare xmpp stats {'10.0.0.136': {'10.20.0.218': '0'}} with 2025-11-20 14:33:58,024 - INFO - Initial checks done. Running the testcase now 2025-11-20 14:33:58,024 - INFO - 2025-11-20 14:33:58,730 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-92781593 2025-11-20 14:33:58,827 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-92781593 2025-11-20 14:33:59,147 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-92781593', 'default']} 2025-11-20 14:33:59,432 - DEBUG - Response for create_network : {'network': {'id': '98d636ae-07d1-4ae9-83e3-9998f4f70806', 'name': 'ctest-vn-38445687', 'tenant_id': '115fda494f5b4df5bb204cb6bf6e054c', 'project_id': '115fda494f5b4df5bb204cb6bf6e054c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-92781593', 'ctest-vn-38445687'], 'port_security_enabled': True, 'description': ''}} 2025-11-20 14:33:59,647 - DEBUG - Response for create_subnet : {'subnet': {'id': '8fcf728b-da8e-4758-8636-92f526fdd9ed', 'name': '', 'tenant_id': '115fda494f5b4df5bb204cb6bf6e054c', 'network_id': '98d636ae-07d1-4ae9-83e3-9998f4f70806', 'ip_version': 4, 'cidr': '21.28.227.0/26', 'allocation_pools': [{'start': '21.28.227.2', 'end': '21.28.227.62'}], 'gateway_ip': '21.28.227.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '21.28.227.2', 'tags': [], 'project_id': '115fda494f5b4df5bb204cb6bf6e054c'}} 2025-11-20 14:33:59,666 - INFO - Created VN ctest-vn-38445687 2025-11-20 14:33:59,719 - DEBUG - VN ctest-vn-38445687 UUID is 98d636ae-07d1-4ae9-83e3-9998f4f70806 2025-11-20 14:34:00,035 - DEBUG - Response for create_network : {'network': {'id': '2891453e-9f97-4d0b-bcb1-50fc5eeb2043', 'name': 'ctest-ext_vn-14249786', 'tenant_id': '115fda494f5b4df5bb204cb6bf6e054c', 'project_id': '115fda494f5b4df5bb204cb6bf6e054c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-92781593', 'ctest-ext_vn-14249786'], 'port_security_enabled': True, 'description': ''}} 2025-11-20 14:34:00,187 - DEBUG - Response for create_subnet : {'subnet': {'id': '1d4d0bcf-67f8-4370-88fd-418b3696efb0', 'name': '', 'tenant_id': '115fda494f5b4df5bb204cb6bf6e054c', 'network_id': '2891453e-9f97-4d0b-bcb1-50fc5eeb2043', 'ip_version': 4, 'cidr': '53.239.250.128/26', 'allocation_pools': [{'start': '53.239.250.130', 'end': '53.239.250.190'}], 'gateway_ip': '53.239.250.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '53.239.250.130', 'tags': [], 'project_id': '115fda494f5b4df5bb204cb6bf6e054c'}} 2025-11-20 14:34:00,207 - INFO - Created VN ctest-ext_vn-14249786 2025-11-20 14:34:00,263 - DEBUG - VN ctest-ext_vn-14249786 UUID is 2891453e-9f97-4d0b-bcb1-50fc5eeb2043 2025-11-20 14:34:00,452 - DEBUG - Services list from nova: [, , ] 2025-11-20 14:34:01,546 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-4777-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-4777-1) 2025-11-20 14:34:02,766 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-4777-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-4777-1) 2025-11-20 14:34:02,836 - INFO - Setting gateway for router c16dcab7-92d9-442d-8701-d9532fd5c70a to network 2891453e-9f97-4d0b-bcb1-50fc5eeb2043 2025-11-20 14:34:02,917 - INFO - Adding interface with subnet_id 8fcf728b-da8e-4758-8636-92f526fdd9ed, port_id None to router c16dcab7-92d9-442d-8701-d9532fd5c70a 2025-11-20 14:34:03,323 - INFO - Waiting for VM ctest-TestRoutersBasic-92781593-58764222 to be up.. 2025-11-20 14:34:03,521 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-11-20 14:34:08,609 - DEBUG - VM is in ACTIVE state now 2025-11-20 14:34:08,610 - INFO - VM name : ctest-TestRoutersBasic-92781593-58764222 2025-11-20 14:34:08,693 - DEBUG - VM ctest-TestRoutersBasic-92781593-58764222 ID is ef77438b-76b3-45d4-8f4c-e2a22fab9d49 2025-11-20 14:34:08,714 - DEBUG - VM ctest-TestRoutersBasic-92781593-58764222 launched on Node cn-jenkins-deploy-platform-ansible-os-4777-1 2025-11-20 14:34:08,793 - DEBUG - Requesting: http://10.0.0.136:8082/virtual-machine/ef77438b-76b3-45d4-8f4c-e2a22fab9d49 2025-11-20 14:34:09,085 - DEBUG - Requesting: http://10.0.0.136:8082/virtual-machine/ef77438b-76b3-45d4-8f4c-e2a22fab9d49 2025-11-20 14:34:09,122 - DEBUG - Requesting: http://10.0.0.136:8082/virtual-machine-interface/7b44ce88-ce6e-4596-83eb-28929cb3cd93 2025-11-20 14:34:12,374 - 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 1011ms') 2025-11-20 14:34:12,374 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-92781593-58764222 failed! 2025-11-20 14:34:12,427 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-92781593:ctest-vn-38445687 is 21.28.227.1 and allocation pool is NOT set 2025-11-20 14:34:14,495 - 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.27 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.445 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1000ms\r\nrtt min/avg/max/mdev = 0.445/3.357/6.270/2.912 ms') 2025-11-20 14:34:14,495 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-92781593-58764222 passed 2025-11-20 14:34:14,607 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-11-20 14:34:14,607 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-92781593-58764222, IP 21.28.227.3, Port 22 2025-11-20 14:34:14,773 - DEBUG - VM ctest-TestRoutersBasic-92781593-58764222 is ready for SSH connections 2025-11-20 14:34:14,773 - INFO - Waiting for VM ctest-TestRoutersBasic-92781593-47945345 to be up.. 2025-11-20 14:34:14,852 - DEBUG - VM is in ACTIVE state now 2025-11-20 14:34:14,852 - INFO - VM name : ctest-TestRoutersBasic-92781593-47945345 2025-11-20 14:34:14,935 - DEBUG - VM ctest-TestRoutersBasic-92781593-47945345 ID is 352139d7-f48e-43a4-ad4d-fa5b82a4d500 2025-11-20 14:34:14,935 - DEBUG - VM ctest-TestRoutersBasic-92781593-47945345 launched on Node cn-jenkins-deploy-platform-ansible-os-4777-1 2025-11-20 14:34:15,023 - DEBUG - Requesting: http://10.0.0.136:8082/virtual-machine/352139d7-f48e-43a4-ad4d-fa5b82a4d500 2025-11-20 14:34:15,033 - DEBUG - Requesting: http://10.0.0.136:8082/virtual-machine-interface/24cec9fd-d429-4c8a-af70-f132a0637d1d 2025-11-20 14:34:16,273 - 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=2.72 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=2.94 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 = 2.724/2.831/2.939/0.107 ms') 2025-11-20 14:34:16,273 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-92781593-47945345 passed 2025-11-20 14:34:16,427 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-11-20 14:34:16,427 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-92781593-47945345, IP 53.239.250.131, Port 22 2025-11-20 14:34:16,482 - 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-11-20 14:34:16,561 - DEBUG - VM ctest-TestRoutersBasic-92781593-47945345 is NOT ready for SSH connections, VM status: ACTIVE 2025-11-20 14:34:21,562 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-11-20 14:34:21,562 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-92781593-47945345, IP 53.239.250.131, Port 22 2025-11-20 14:34:21,719 - DEBUG - VM ctest-TestRoutersBasic-92781593-47945345 is ready for SSH connections 2025-11-20 14:34:21,719 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-11-20 14:34:21,719 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 53.239.250.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.136, gateway password: c0ntrail123 2025-11-20 14:34:21,719 - DEBUG - ping -s 56 -c 3 -W 1 53.239.250.131 2025-11-20 14:34:25,423 - DEBUG - PING 53.239.250.131 (53.239.250.131): 56 data bytes 64 bytes from 53.239.250.131: seq=0 ttl=62 time=4.534 ms 64 bytes from 53.239.250.131: seq=1 ttl=62 time=1.014 ms 64 bytes from 53.239.250.131: seq=2 ttl=62 time=0.996 ms --- 53.239.250.131 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.996/2.181/4.534 ms 2025-11-20 14:34:25,423 - INFO - Ping to IP 53.239.250.131 from VM ctest-TestRoutersBasic-92781593-58764222 passed 2025-11-20 14:34:25,423 - INFO - Deleting interface with subnet_id 8fcf728b-da8e-4758-8636-92f526fdd9ed, port_id None from router c16dcab7-92d9-442d-8701-d9532fd5c70a 2025-11-20 14:34:25,633 - INFO - Deleting VM ctest-TestRoutersBasic-92781593-47945345 2025-11-20 14:34:25,733 - INFO - Deleting VM ctest-TestRoutersBasic-92781593-58764222 2025-11-20 14:34:25,830 - INFO - Deleting VN ctest-ext_vn-14249786 2025-11-20 14:34:25,900 - DEBUG - VN 2891453e-9f97-4d0b-bcb1-50fc5eeb2043 still in use: Unable to complete operation on network 2891453e-9f97-4d0b-bcb1-50fc5eeb2043. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-e898c77d-73cd-431e-998d-f1a22854b8dc'] 2025-11-20 14:34:25,900 - WARNING - Deleting VN ctest-ext_vn-14249786 failed..Will retry 2025-11-20 14:34:28,002 - DEBUG - Response for deleting network () 2025-11-20 14:34:28,002 - INFO - Deleting VN ctest-vn-38445687 2025-11-20 14:34:28,102 - DEBUG - Response for deleting network () 2025-11-20 14:34:28,361 - DEBUG - No XMPP flaps were noticed during the test
2025-11-20 14:34:28,361 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:31]
2025-11-20 14:34:28,361 - INFO - -------------------------------------------------------------------------------- 2025-11-20 14:34:29,060 - INFO - Deleted project: ctest-TestRoutersBasic-92781593, ID : 115fda49-4f5b-4df5-bb20-4cb6bf6e054c