2025-08-19 13:16:01,476 - INFO - Domain Default found not creating 2025-08-19 13:16:01,609 - INFO - Project ctest-TestRoutersBasic-35505212 not found, creating it 2025-08-19 13:16:02,080 - INFO - Created Project:ctest-TestRoutersBasic-35505212, ID : b542b963-d0a8-4cdf-9d81-c975b78567e2 2025-08-19 13:16:03,599 - INFO - ================================================================================ 2025-08-19 13:16:03,599 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2025-08-19 13:16:03,599 - 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-08-19 13:16:03,859 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with 2025-08-19 13:16:03,860 - INFO - Initial checks done. Running the testcase now 2025-08-19 13:16:03,860 - INFO - 2025-08-19 13:16:04,629 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-35505212 2025-08-19 13:16:04,725 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-35505212 2025-08-19 13:16:05,057 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-35505212', 'default']} 2025-08-19 13:16:05,337 - DEBUG - Response for create_network : {'network': {'id': 'f39f18d6-6f0c-43b4-baac-e3bdbba07444', 'name': 'ctest-vn-56445786', 'tenant_id': 'b542b963d0a84cdf9d81c975b78567e2', 'project_id': 'b542b963d0a84cdf9d81c975b78567e2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-35505212', 'ctest-vn-56445786'], 'port_security_enabled': True, 'description': ''}} 2025-08-19 13:16:05,565 - DEBUG - Response for create_subnet : {'subnet': {'id': '24b183b9-77bf-4025-bf4d-b78ddd3ac8d1', 'name': '', 'tenant_id': 'b542b963d0a84cdf9d81c975b78567e2', 'network_id': 'f39f18d6-6f0c-43b4-baac-e3bdbba07444', 'ip_version': 4, 'cidr': '18.26.222.64/26', 'allocation_pools': [{'start': '18.26.222.66', 'end': '18.26.222.126'}], 'gateway_ip': '18.26.222.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '18.26.222.66', 'tags': [], 'project_id': 'b542b963d0a84cdf9d81c975b78567e2'}} 2025-08-19 13:16:05,582 - INFO - Created VN ctest-vn-56445786 2025-08-19 13:16:05,637 - DEBUG - VN ctest-vn-56445786 UUID is f39f18d6-6f0c-43b4-baac-e3bdbba07444 2025-08-19 13:16:05,995 - DEBUG - Response for create_network : {'network': {'id': '16efb941-7323-433a-8191-7db8a1fea6b3', 'name': 'ctest-ext_vn-03092532', 'tenant_id': 'b542b963d0a84cdf9d81c975b78567e2', 'project_id': 'b542b963d0a84cdf9d81c975b78567e2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-35505212', 'ctest-ext_vn-03092532'], 'port_security_enabled': True, 'description': ''}} 2025-08-19 13:16:06,146 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ccc3556a-f702-4e4c-88a8-5c69fdfcc920', 'name': '', 'tenant_id': 'b542b963d0a84cdf9d81c975b78567e2', 'network_id': '16efb941-7323-433a-8191-7db8a1fea6b3', 'ip_version': 4, 'cidr': '96.187.193.0/26', 'allocation_pools': [{'start': '96.187.193.2', 'end': '96.187.193.62'}], 'gateway_ip': '96.187.193.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '96.187.193.2', 'tags': [], 'project_id': 'b542b963d0a84cdf9d81c975b78567e2'}} 2025-08-19 13:16:06,163 - INFO - Created VN ctest-ext_vn-03092532 2025-08-19 13:16:06,213 - DEBUG - VN ctest-ext_vn-03092532 UUID is 16efb941-7323-433a-8191-7db8a1fea6b3 2025-08-19 13:16:06,414 - DEBUG - Services list from nova: [, , ] 2025-08-19 13:16:07,478 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3884-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3884-1) 2025-08-19 13:16:08,658 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3884-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3884-1) 2025-08-19 13:16:08,729 - INFO - Setting gateway for router 1cb8079e-96e1-4856-bf05-084efb0177bc to network 16efb941-7323-433a-8191-7db8a1fea6b3 2025-08-19 13:16:08,797 - INFO - Adding interface with subnet_id 24b183b9-77bf-4025-bf4d-b78ddd3ac8d1, port_id None to router 1cb8079e-96e1-4856-bf05-084efb0177bc 2025-08-19 13:16:09,118 - INFO - Waiting for VM ctest-TestRoutersBasic-35505212-24088453 to be up.. 2025-08-19 13:16:09,251 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-08-19 13:16:14,322 - DEBUG - VM is in ACTIVE state now 2025-08-19 13:16:14,322 - INFO - VM name : ctest-TestRoutersBasic-35505212-24088453 2025-08-19 13:16:14,391 - DEBUG - VM ctest-TestRoutersBasic-35505212-24088453 ID is 0103a782-6b9d-4987-ae79-a87137e55021 2025-08-19 13:16:14,409 - DEBUG - VM ctest-TestRoutersBasic-35505212-24088453 launched on Node cn-jenkins-deploy-platform-ansible-os-3884-1 2025-08-19 13:16:14,478 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine/0103a782-6b9d-4987-ae79-a87137e55021 2025-08-19 13:16:14,809 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine/0103a782-6b9d-4987-ae79-a87137e55021 2025-08-19 13:16:14,843 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine-interface/ba351696-bb38-4376-ab07-07cc02c274f0 2025-08-19 13:16:18,096 - 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 1007ms') 2025-08-19 13:16:18,096 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-35505212-24088453 failed! 2025-08-19 13:16:18,157 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-35505212:ctest-vn-56445786 is 18.26.222.65 and allocation pool is NOT set 2025-08-19 13:16:20,215 - 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.32 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=2.80 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.804/3.060/3.316/0.256 ms') 2025-08-19 13:16:20,216 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-35505212-24088453 passed 2025-08-19 13:16:20,373 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-19 13:16:20,373 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-35505212-24088453, IP 18.26.222.67, Port 22 2025-08-19 13:16:20,433 - 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-08-19 13:16:20,506 - DEBUG - VM ctest-TestRoutersBasic-35505212-24088453 is NOT ready for SSH connections, VM status: ACTIVE 2025-08-19 13:16:25,506 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-19 13:16:25,506 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-35505212-24088453, IP 18.26.222.67, Port 22 2025-08-19 13:16:25,668 - DEBUG - VM ctest-TestRoutersBasic-35505212-24088453 is ready for SSH connections 2025-08-19 13:16:25,668 - INFO - Waiting for VM ctest-TestRoutersBasic-35505212-23711991 to be up.. 2025-08-19 13:16:25,738 - DEBUG - VM is in ACTIVE state now 2025-08-19 13:16:25,738 - INFO - VM name : ctest-TestRoutersBasic-35505212-23711991 2025-08-19 13:16:25,808 - DEBUG - VM ctest-TestRoutersBasic-35505212-23711991 ID is 5475be5e-4d7c-40c5-b699-f2c5693f7dc3 2025-08-19 13:16:25,809 - DEBUG - VM ctest-TestRoutersBasic-35505212-23711991 launched on Node cn-jenkins-deploy-platform-ansible-os-3884-1 2025-08-19 13:16:25,890 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine/5475be5e-4d7c-40c5-b699-f2c5693f7dc3 2025-08-19 13:16:25,899 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine-interface/7187534d-d05f-4347-a89c-fc7d2f7bcdc2 2025-08-19 13:16:27,141 - 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.88 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.365 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.365/1.622/2.880/1.257 ms') 2025-08-19 13:16:27,141 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-35505212-23711991 passed 2025-08-19 13:16:27,289 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-19 13:16:27,289 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-35505212-23711991, IP 96.187.193.3, Port 22 2025-08-19 13:16:27,445 - DEBUG - VM ctest-TestRoutersBasic-35505212-23711991 is ready for SSH connections 2025-08-19 13:16:27,445 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-19 13:16:27,445 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 96.187.193.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.254, gateway password: c0ntrail123 2025-08-19 13:16:27,445 - DEBUG - ping -s 56 -c 3 -W 1 96.187.193.3 2025-08-19 13:16:31,150 - DEBUG - PING 96.187.193.3 (96.187.193.3): 56 data bytes 64 bytes from 96.187.193.3: seq=0 ttl=62 time=6.193 ms 64 bytes from 96.187.193.3: seq=1 ttl=62 time=0.897 ms 64 bytes from 96.187.193.3: seq=2 ttl=62 time=1.063 ms --- 96.187.193.3 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.897/2.717/6.193 ms 2025-08-19 13:16:31,150 - INFO - Ping to IP 96.187.193.3 from VM ctest-TestRoutersBasic-35505212-24088453 passed 2025-08-19 13:16:31,150 - INFO - Deleting interface with subnet_id 24b183b9-77bf-4025-bf4d-b78ddd3ac8d1, port_id None from router 1cb8079e-96e1-4856-bf05-084efb0177bc 2025-08-19 13:16:31,359 - INFO - Deleting VM ctest-TestRoutersBasic-35505212-23711991 2025-08-19 13:16:31,456 - INFO - Deleting VM ctest-TestRoutersBasic-35505212-24088453 2025-08-19 13:16:31,540 - INFO - Deleting VN ctest-ext_vn-03092532 2025-08-19 13:16:31,616 - DEBUG - VN 16efb941-7323-433a-8191-7db8a1fea6b3 still in use: Unable to complete operation on network 16efb941-7323-433a-8191-7db8a1fea6b3. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-0d99187e-c727-474e-ae7a-b53bbf6a7d9c'] 2025-08-19 13:16:31,616 - WARNING - Deleting VN ctest-ext_vn-03092532 failed..Will retry 2025-08-19 13:16:33,721 - DEBUG - Response for deleting network () 2025-08-19 13:16:33,722 - INFO - Deleting VN ctest-vn-56445786 2025-08-19 13:16:33,829 - DEBUG - Response for deleting network () 2025-08-19 13:16:34,087 - DEBUG - No XMPP flaps were noticed during the test
2025-08-19 13:16:34,087 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:31]
2025-08-19 13:16:34,087 - INFO - -------------------------------------------------------------------------------- 2025-08-19 13:16:34,801 - INFO - Deleted project: ctest-TestRoutersBasic-35505212, ID : b542b963-d0a8-4cdf-9d81-c975b78567e2