2025-07-21 02:29:55,532 - INFO - Domain Default found not creating 2025-07-21 02:29:56,029 - INFO - Project ctest-TestRoutersBasic-85658655 not found, creating it 2025-07-21 02:29:56,846 - INFO - Created Project:ctest-TestRoutersBasic-85658655, ID : 15798382-94aa-41e1-b816-997b52e5df38 2025-07-21 02:29:58,828 - INFO - ================================================================================ 2025-07-21 02:29:58,829 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2025-07-21 02:29:58,830 - 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-07-21 02:29:59,160 - DEBUG - Nothing to compare xmpp stats {'10.0.0.73': {'10.20.0.201': '0'}} with 2025-07-21 02:29:59,160 - INFO - Initial checks done. Running the testcase now 2025-07-21 02:29:59,160 - INFO - 2025-07-21 02:30:00,121 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-85658655 2025-07-21 02:30:00,233 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-85658655 2025-07-21 02:30:00,625 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-85658655', 'default']} 2025-07-21 02:30:01,169 - DEBUG - Response for create_network : {'network': {'id': '12580260-e713-4209-80d5-306ba62fc71a', 'name': 'ctest-vn-10795359', 'tenant_id': '1579838294aa41e1b816997b52e5df38', 'project_id': '1579838294aa41e1b816997b52e5df38', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-85658655', 'ctest-vn-10795359'], 'port_security_enabled': True, 'description': ''}} 2025-07-21 02:30:01,439 - DEBUG - Response for create_subnet : {'subnet': {'id': '01e16cab-52f7-4fd4-b3ed-b518804528be', 'name': '', 'tenant_id': '1579838294aa41e1b816997b52e5df38', 'network_id': '12580260-e713-4209-80d5-306ba62fc71a', 'ip_version': 4, 'cidr': '157.111.59.128/26', 'allocation_pools': [{'start': '157.111.59.130', 'end': '157.111.59.190'}], 'gateway_ip': '157.111.59.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '157.111.59.130', 'tags': [], 'project_id': '1579838294aa41e1b816997b52e5df38'}} 2025-07-21 02:30:01,472 - INFO - Created VN ctest-vn-10795359 2025-07-21 02:30:01,533 - DEBUG - VN ctest-vn-10795359 UUID is 12580260-e713-4209-80d5-306ba62fc71a 2025-07-21 02:30:02,097 - DEBUG - Response for create_network : {'network': {'id': 'e674c521-24d8-4826-9a64-4a8a61027d30', 'name': 'ctest-ext_vn-85461280', 'tenant_id': '1579838294aa41e1b816997b52e5df38', 'project_id': '1579838294aa41e1b816997b52e5df38', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-85658655', 'ctest-ext_vn-85461280'], 'port_security_enabled': True, 'description': ''}} 2025-07-21 02:30:02,311 - DEBUG - Response for create_subnet : {'subnet': {'id': '3448faad-bc63-46d4-bec1-822c854677c6', 'name': '', 'tenant_id': '1579838294aa41e1b816997b52e5df38', 'network_id': 'e674c521-24d8-4826-9a64-4a8a61027d30', 'ip_version': 4, 'cidr': '219.16.156.192/26', 'allocation_pools': [{'start': '219.16.156.194', 'end': '219.16.156.254'}], 'gateway_ip': '219.16.156.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '219.16.156.194', 'tags': [], 'project_id': '1579838294aa41e1b816997b52e5df38'}} 2025-07-21 02:30:02,329 - INFO - Created VN ctest-ext_vn-85461280 2025-07-21 02:30:02,381 - DEBUG - VN ctest-ext_vn-85461280 UUID is e674c521-24d8-4826-9a64-4a8a61027d30 2025-07-21 02:30:02,586 - DEBUG - Services list from nova: [, , ] 2025-07-21 02:30:03,955 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3674-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3674-1) 2025-07-21 02:30:05,339 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3674-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3674-1) 2025-07-21 02:30:05,429 - INFO - Setting gateway for router fde430b1-6e79-4e33-8d8d-742a7d572698 to network e674c521-24d8-4826-9a64-4a8a61027d30 2025-07-21 02:30:05,507 - INFO - Adding interface with subnet_id 01e16cab-52f7-4fd4-b3ed-b518804528be, port_id None to router fde430b1-6e79-4e33-8d8d-742a7d572698 2025-07-21 02:30:05,812 - INFO - Waiting for VM ctest-TestRoutersBasic-85658655-27777692 to be up.. 2025-07-21 02:30:05,932 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-07-21 02:30:11,119 - DEBUG - VM is in ACTIVE state now 2025-07-21 02:30:11,120 - INFO - VM name : ctest-TestRoutersBasic-85658655-27777692 2025-07-21 02:30:11,286 - DEBUG - VM ctest-TestRoutersBasic-85658655-27777692 ID is f501b036-b9a4-4309-aad6-7ccf96fc341f 2025-07-21 02:30:11,312 - DEBUG - VM ctest-TestRoutersBasic-85658655-27777692 launched on Node cn-jenkins-deploy-platform-ansible-os-3674-1 2025-07-21 02:30:11,411 - DEBUG - Requesting: http://10.0.0.73:8082/virtual-machine/f501b036-b9a4-4309-aad6-7ccf96fc341f 2025-07-21 02:30:11,769 - DEBUG - Requesting: http://10.0.0.73:8082/virtual-machine/f501b036-b9a4-4309-aad6-7ccf96fc341f 2025-07-21 02:30:11,821 - DEBUG - Requesting: http://10.0.0.73:8082/virtual-machine-interface/fb22745d-8c54-4c7c-9368-ca0d2fe4dc29 2025-07-21 02:30:15,120 - 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 1024ms') 2025-07-21 02:30:15,121 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-85658655-27777692 failed! 2025-07-21 02:30:15,197 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-85658655:ctest-vn-10795359 is 157.111.59.129 and allocation pool is NOT set 2025-07-21 02:30:17,279 - 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=7.57 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=3.16 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1002ms\r\nrtt min/avg/max/mdev = 3.160/5.365/7.571/2.205 ms') 2025-07-21 02:30:17,279 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-85658655-27777692 passed 2025-07-21 02:30:17,457 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-07-21 02:30:17,457 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-85658655-27777692, IP 157.111.59.131, Port 22 2025-07-21 02:30:17,538 - 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-07-21 02:30:17,675 - DEBUG - VM ctest-TestRoutersBasic-85658655-27777692 is NOT ready for SSH connections, VM status: ACTIVE 2025-07-21 02:30:22,677 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-07-21 02:30:22,677 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-85658655-27777692, IP 157.111.59.131, Port 22 2025-07-21 02:30:22,855 - DEBUG - VM ctest-TestRoutersBasic-85658655-27777692 is ready for SSH connections 2025-07-21 02:30:22,856 - INFO - Waiting for VM ctest-TestRoutersBasic-85658655-49895063 to be up.. 2025-07-21 02:30:23,000 - DEBUG - VM is in ACTIVE state now 2025-07-21 02:30:23,000 - INFO - VM name : ctest-TestRoutersBasic-85658655-49895063 2025-07-21 02:30:23,175 - DEBUG - VM ctest-TestRoutersBasic-85658655-49895063 ID is 43f6278d-71a6-4e5c-8fdf-7841168831c5 2025-07-21 02:30:23,176 - DEBUG - VM ctest-TestRoutersBasic-85658655-49895063 launched on Node cn-jenkins-deploy-platform-ansible-os-3674-1 2025-07-21 02:30:23,350 - DEBUG - Requesting: http://10.0.0.73:8082/virtual-machine/43f6278d-71a6-4e5c-8fdf-7841168831c5 2025-07-21 02:30:23,376 - DEBUG - Requesting: http://10.0.0.73:8082/virtual-machine-interface/3ed653b5-1b22-4035-a815-6b051ccfa309 2025-07-21 02:30:24,723 - 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=10.1 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.795 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.795/5.438/10.081/4.643 ms') 2025-07-21 02:30:24,723 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-85658655-49895063 passed 2025-07-21 02:30:24,925 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-07-21 02:30:24,926 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-85658655-49895063, IP 219.16.156.195, Port 22 2025-07-21 02:30:25,120 - DEBUG - VM ctest-TestRoutersBasic-85658655-49895063 is ready for SSH connections 2025-07-21 02:30:25,120 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-07-21 02:30:25,120 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 219.16.156.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.73, gateway password: c0ntrail123 2025-07-21 02:30:25,121 - DEBUG - ping -s 56 -c 3 -W 1 219.16.156.195 2025-07-21 02:30:29,107 - DEBUG - PING 219.16.156.195 (219.16.156.195): 56 data bytes 64 bytes from 219.16.156.195: seq=0 ttl=62 time=9.201 ms 64 bytes from 219.16.156.195: seq=1 ttl=62 time=2.250 ms 64 bytes from 219.16.156.195: seq=2 ttl=62 time=1.737 ms --- 219.16.156.195 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.737/4.396/9.201 ms 2025-07-21 02:30:29,108 - INFO - Ping to IP 219.16.156.195 from VM ctest-TestRoutersBasic-85658655-27777692 passed 2025-07-21 02:30:29,108 - INFO - Deleting interface with subnet_id 01e16cab-52f7-4fd4-b3ed-b518804528be, port_id None from router fde430b1-6e79-4e33-8d8d-742a7d572698 2025-07-21 02:30:29,440 - INFO - Deleting VM ctest-TestRoutersBasic-85658655-49895063 2025-07-21 02:30:29,524 - INFO - Deleting VM ctest-TestRoutersBasic-85658655-27777692 2025-07-21 02:30:29,615 - INFO - Deleting VN ctest-ext_vn-85461280 2025-07-21 02:30:29,695 - DEBUG - VN e674c521-24d8-4826-9a64-4a8a61027d30 still in use: Unable to complete operation on network e674c521-24d8-4826-9a64-4a8a61027d30. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-9851f4f4-a8c0-44db-bd32-750085f2d341'] 2025-07-21 02:30:29,695 - WARNING - Deleting VN ctest-ext_vn-85461280 failed..Will retry 2025-07-21 02:30:31,875 - DEBUG - Response for deleting network () 2025-07-21 02:30:31,875 - INFO - Deleting VN ctest-vn-10795359 2025-07-21 02:30:32,053 - DEBUG - Response for deleting network () 2025-07-21 02:30:32,329 - DEBUG - No XMPP flaps were noticed during the test
2025-07-21 02:30:32,329 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:34]
2025-07-21 02:30:32,329 - INFO - -------------------------------------------------------------------------------- 2025-07-21 02:30:33,217 - INFO - Deleted project: ctest-TestRoutersBasic-85658655, ID : 15798382-94aa-41e1-b816-997b52e5df38