2025-10-30 15:27:05,596 - INFO - Domain Default found not creating 2025-10-30 15:27:05,812 - INFO - Project ctest-TestRoutersBasic-21526199 not found, creating it 2025-10-30 15:27:06,373 - INFO - Created Project:ctest-TestRoutersBasic-21526199, ID : dcb937e1-3a52-4181-9147-2e5876b654d9 2025-10-30 15:27:08,839 - INFO - ================================================================================ 2025-10-30 15:27:08,839 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2025-10-30 15:27:08,839 - 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-10-30 15:27:09,146 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.254': '0'}} with 2025-10-30 15:27:09,146 - INFO - Initial checks done. Running the testcase now 2025-10-30 15:27:09,146 - INFO - 2025-10-30 15:27:09,921 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-21526199 2025-10-30 15:27:10,022 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-21526199 2025-10-30 15:27:10,370 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-21526199', 'default']} 2025-10-30 15:27:10,719 - DEBUG - Response for create_network : {'network': {'id': '80e67ee1-2990-449f-b185-d2150bfaf249', 'name': 'ctest-vn-94203426', 'tenant_id': 'dcb937e13a52418191472e5876b654d9', 'project_id': 'dcb937e13a52418191472e5876b654d9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-21526199', 'ctest-vn-94203426'], 'port_security_enabled': True, 'description': ''}} 2025-10-30 15:27:10,901 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e8e006e8-0530-4533-88f1-1fc7f3e40b97', 'name': '', 'tenant_id': 'dcb937e13a52418191472e5876b654d9', 'network_id': '80e67ee1-2990-449f-b185-d2150bfaf249', 'ip_version': 4, 'cidr': '152.174.166.64/26', 'allocation_pools': [{'start': '152.174.166.66', 'end': '152.174.166.126'}], 'gateway_ip': '152.174.166.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '152.174.166.66', 'tags': [], 'project_id': 'dcb937e13a52418191472e5876b654d9'}} 2025-10-30 15:27:10,922 - INFO - Created VN ctest-vn-94203426 2025-10-30 15:27:10,975 - DEBUG - VN ctest-vn-94203426 UUID is 80e67ee1-2990-449f-b185-d2150bfaf249 2025-10-30 15:27:11,400 - DEBUG - Response for create_network : {'network': {'id': '31ea56a8-fe51-4240-a08d-41f0bc53420a', 'name': 'ctest-ext_vn-93305819', 'tenant_id': 'dcb937e13a52418191472e5876b654d9', 'project_id': 'dcb937e13a52418191472e5876b654d9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-21526199', 'ctest-ext_vn-93305819'], 'port_security_enabled': True, 'description': ''}} 2025-10-30 15:27:11,573 - DEBUG - Response for create_subnet : {'subnet': {'id': '9975f1e1-bd7b-46e4-9886-e7cb55a58134', 'name': '', 'tenant_id': 'dcb937e13a52418191472e5876b654d9', 'network_id': '31ea56a8-fe51-4240-a08d-41f0bc53420a', 'ip_version': 4, 'cidr': '145.126.3.0/26', 'allocation_pools': [{'start': '145.126.3.2', 'end': '145.126.3.62'}], 'gateway_ip': '145.126.3.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '145.126.3.2', 'tags': [], 'project_id': 'dcb937e13a52418191472e5876b654d9'}} 2025-10-30 15:27:11,595 - INFO - Created VN ctest-ext_vn-93305819 2025-10-30 15:27:11,650 - DEBUG - VN ctest-ext_vn-93305819 UUID is 31ea56a8-fe51-4240-a08d-41f0bc53420a 2025-10-30 15:27:11,886 - DEBUG - Services list from nova: [, , ] 2025-10-30 15:27:13,193 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-4547-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-4547-1) 2025-10-30 15:27:14,511 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-4547-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-4547-1) 2025-10-30 15:27:14,599 - INFO - Setting gateway for router 8c13cd8b-3a71-4ca7-9865-211167784c82 to network 31ea56a8-fe51-4240-a08d-41f0bc53420a 2025-10-30 15:27:14,684 - INFO - Adding interface with subnet_id e8e006e8-0530-4533-88f1-1fc7f3e40b97, port_id None to router 8c13cd8b-3a71-4ca7-9865-211167784c82 2025-10-30 15:27:15,103 - INFO - Waiting for VM ctest-TestRoutersBasic-21526199-44246210 to be up.. 2025-10-30 15:27:15,265 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-10-30 15:27:20,419 - DEBUG - VM is in ACTIVE state now 2025-10-30 15:27:20,419 - INFO - VM name : ctest-TestRoutersBasic-21526199-44246210 2025-10-30 15:27:20,551 - DEBUG - VM ctest-TestRoutersBasic-21526199-44246210 ID is a92b8f74-85bf-4dfe-83c5-cd726dd5054c 2025-10-30 15:27:20,584 - DEBUG - VM ctest-TestRoutersBasic-21526199-44246210 launched on Node cn-jenkins-deploy-platform-ansible-os-4547-1 2025-10-30 15:27:20,690 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine/a92b8f74-85bf-4dfe-83c5-cd726dd5054c 2025-10-30 15:27:20,991 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine/a92b8f74-85bf-4dfe-83c5-cd726dd5054c 2025-10-30 15:27:21,027 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine-interface/f926da3a-a414-4906-a18c-eed01f79a77f 2025-10-30 15:27:24,319 - 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 1030ms') 2025-10-30 15:27:24,319 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-21526199-44246210 failed! 2025-10-30 15:27:24,383 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-21526199:ctest-vn-94203426 is 152.174.166.65 and allocation pool is NOT set 2025-10-30 15:27:26,462 - 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=4.70 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=1.28 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 = 1.283/2.993/4.703/1.710 ms') 2025-10-30 15:27:26,462 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-21526199-44246210 passed 2025-10-30 15:27:26,626 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-30 15:27:26,626 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-21526199-44246210, IP 152.174.166.67, Port 22 2025-10-30 15:27:26,805 - DEBUG - VM ctest-TestRoutersBasic-21526199-44246210 is ready for SSH connections 2025-10-30 15:27:26,806 - INFO - Waiting for VM ctest-TestRoutersBasic-21526199-70577574 to be up.. 2025-10-30 15:27:26,973 - DEBUG - VM is in ACTIVE state now 2025-10-30 15:27:26,973 - INFO - VM name : ctest-TestRoutersBasic-21526199-70577574 2025-10-30 15:27:27,119 - DEBUG - VM ctest-TestRoutersBasic-21526199-70577574 ID is 99d44214-3fea-40f3-97eb-a21cdb19a00e 2025-10-30 15:27:27,119 - DEBUG - VM ctest-TestRoutersBasic-21526199-70577574 launched on Node cn-jenkins-deploy-platform-ansible-os-4547-1 2025-10-30 15:27:27,227 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine/99d44214-3fea-40f3-97eb-a21cdb19a00e 2025-10-30 15:27:27,239 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine-interface/05d48012-f21a-4019-8bdd-4708938faf18 2025-10-30 15:27:28,508 - 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=13.9 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.750 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.750/7.326/13.902/6.576 ms') 2025-10-30 15:27:28,508 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-21526199-70577574 passed 2025-10-30 15:27:28,666 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-30 15:27:28,666 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-21526199-70577574, IP 145.126.3.3, Port 22 2025-10-30 15:27:28,733 - 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-10-30 15:27:28,845 - DEBUG - VM ctest-TestRoutersBasic-21526199-70577574 is NOT ready for SSH connections, VM status: ACTIVE 2025-10-30 15:27:33,846 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-30 15:27:33,846 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-21526199-70577574, IP 145.126.3.3, Port 22 2025-10-30 15:27:34,022 - DEBUG - VM ctest-TestRoutersBasic-21526199-70577574 is ready for SSH connections 2025-10-30 15:27:34,022 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-30 15:27:34,022 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 145.126.3.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.254, gateway password: c0ntrail123 2025-10-30 15:27:34,023 - DEBUG - ping -s 56 -c 3 -W 1 145.126.3.3 2025-10-30 15:27:38,019 - DEBUG - PING 145.126.3.3 (145.126.3.3): 56 data bytes 64 bytes from 145.126.3.3: seq=0 ttl=62 time=9.830 ms 64 bytes from 145.126.3.3: seq=1 ttl=62 time=1.368 ms 64 bytes from 145.126.3.3: seq=2 ttl=62 time=2.249 ms --- 145.126.3.3 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.368/4.482/9.830 ms 2025-10-30 15:27:38,019 - INFO - Ping to IP 145.126.3.3 from VM ctest-TestRoutersBasic-21526199-44246210 passed 2025-10-30 15:27:38,019 - INFO - Deleting interface with subnet_id e8e006e8-0530-4533-88f1-1fc7f3e40b97, port_id None from router 8c13cd8b-3a71-4ca7-9865-211167784c82 2025-10-30 15:27:38,247 - INFO - Deleting VM ctest-TestRoutersBasic-21526199-70577574 2025-10-30 15:27:38,333 - INFO - Deleting VM ctest-TestRoutersBasic-21526199-44246210 2025-10-30 15:27:38,434 - INFO - Deleting VN ctest-ext_vn-93305819 2025-10-30 15:27:38,501 - DEBUG - VN 31ea56a8-fe51-4240-a08d-41f0bc53420a still in use: Unable to complete operation on network 31ea56a8-fe51-4240-a08d-41f0bc53420a. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-713c2367-30b3-4f3c-8f7b-dd10a1668fcb'] 2025-10-30 15:27:38,501 - WARNING - Deleting VN ctest-ext_vn-93305819 failed..Will retry 2025-10-30 15:27:40,671 - DEBUG - Response for deleting network () 2025-10-30 15:27:40,671 - INFO - Deleting VN ctest-vn-94203426 2025-10-30 15:27:40,788 - DEBUG - Response for deleting network () 2025-10-30 15:27:41,064 - DEBUG - No XMPP flaps were noticed during the test
2025-10-30 15:27:41,064 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:33]
2025-10-30 15:27:41,064 - INFO - -------------------------------------------------------------------------------- 2025-10-30 15:27:41,836 - INFO - Deleted project: ctest-TestRoutersBasic-21526199, ID : dcb937e1-3a52-4181-9147-2e5876b654d9