2025-10-21 16:24:25,986 - INFO - Domain Default found not creating 2025-10-21 16:24:26,115 - INFO - Project ctest-TestRoutersBasic-52408044 not found, creating it 2025-10-21 16:24:26,561 - INFO - Created Project:ctest-TestRoutersBasic-52408044, ID : 237b2e48-e6ad-4898-b0e9-ee450ef0c8b9 2025-10-21 16:24:27,893 - INFO - ================================================================================ 2025-10-21 16:24:27,893 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2025-10-21 16:24:27,893 - 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-21 16:24:28,164 - DEBUG - Nothing to compare xmpp stats {'10.0.0.242': {'10.20.0.254': '0'}} with 2025-10-21 16:24:28,164 - INFO - Initial checks done. Running the testcase now 2025-10-21 16:24:28,164 - INFO - 2025-10-21 16:24:28,832 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-52408044 2025-10-21 16:24:28,927 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-52408044 2025-10-21 16:24:29,239 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-52408044', 'default']} 2025-10-21 16:24:29,520 - DEBUG - Response for create_network : {'network': {'id': 'fa0d5e74-9c6b-4a71-8a67-f238ed485e07', 'name': 'ctest-vn-02395121', 'tenant_id': '237b2e48e6ad4898b0e9ee450ef0c8b9', 'project_id': '237b2e48e6ad4898b0e9ee450ef0c8b9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-52408044', 'ctest-vn-02395121'], 'port_security_enabled': True, 'description': ''}} 2025-10-21 16:24:29,712 - DEBUG - Response for create_subnet : {'subnet': {'id': 'dc87bb56-bc4b-4063-aa6a-1e271c7493b3', 'name': '', 'tenant_id': '237b2e48e6ad4898b0e9ee450ef0c8b9', 'network_id': 'fa0d5e74-9c6b-4a71-8a67-f238ed485e07', 'ip_version': 4, 'cidr': '87.19.218.0/26', 'allocation_pools': [{'start': '87.19.218.2', 'end': '87.19.218.62'}], 'gateway_ip': '87.19.218.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '87.19.218.2', 'tags': [], 'project_id': '237b2e48e6ad4898b0e9ee450ef0c8b9'}} 2025-10-21 16:24:29,726 - INFO - Created VN ctest-vn-02395121 2025-10-21 16:24:29,775 - DEBUG - VN ctest-vn-02395121 UUID is fa0d5e74-9c6b-4a71-8a67-f238ed485e07 2025-10-21 16:24:30,093 - DEBUG - Response for create_network : {'network': {'id': 'd53f805f-9b0d-42c0-9c13-5a8b78cc011a', 'name': 'ctest-ext_vn-89570285', 'tenant_id': '237b2e48e6ad4898b0e9ee450ef0c8b9', 'project_id': '237b2e48e6ad4898b0e9ee450ef0c8b9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-52408044', 'ctest-ext_vn-89570285'], 'port_security_enabled': True, 'description': ''}} 2025-10-21 16:24:30,268 - DEBUG - Response for create_subnet : {'subnet': {'id': '01df23fd-6c33-4ef5-8b6a-e206d3d74741', 'name': '', 'tenant_id': '237b2e48e6ad4898b0e9ee450ef0c8b9', 'network_id': 'd53f805f-9b0d-42c0-9c13-5a8b78cc011a', 'ip_version': 4, 'cidr': '106.143.208.192/26', 'allocation_pools': [{'start': '106.143.208.194', 'end': '106.143.208.254'}], 'gateway_ip': '106.143.208.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '106.143.208.194', 'tags': [], 'project_id': '237b2e48e6ad4898b0e9ee450ef0c8b9'}} 2025-10-21 16:24:30,283 - INFO - Created VN ctest-ext_vn-89570285 2025-10-21 16:24:30,335 - DEBUG - VN ctest-ext_vn-89570285 UUID is d53f805f-9b0d-42c0-9c13-5a8b78cc011a 2025-10-21 16:24:30,529 - DEBUG - Services list from nova: [, , ] 2025-10-21 16:24:31,491 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-4398-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-4398-1) 2025-10-21 16:24:32,621 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-4398-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-4398-1) 2025-10-21 16:24:32,802 - INFO - Setting gateway for router 9e4f7822-12f8-4d9b-bbbc-7cf3c7f691f9 to network d53f805f-9b0d-42c0-9c13-5a8b78cc011a 2025-10-21 16:24:32,890 - INFO - Adding interface with subnet_id dc87bb56-bc4b-4063-aa6a-1e271c7493b3, port_id None to router 9e4f7822-12f8-4d9b-bbbc-7cf3c7f691f9 2025-10-21 16:24:33,397 - INFO - Waiting for VM ctest-TestRoutersBasic-52408044-02460647 to be up.. 2025-10-21 16:24:33,544 - DEBUG - VM is in ACTIVE state now 2025-10-21 16:24:33,544 - INFO - VM name : ctest-TestRoutersBasic-52408044-02460647 2025-10-21 16:24:33,669 - DEBUG - VM ctest-TestRoutersBasic-52408044-02460647 ID is db683348-343b-4140-aff8-945d62a9e9fb 2025-10-21 16:24:33,693 - DEBUG - VM ctest-TestRoutersBasic-52408044-02460647 launched on Node cn-jenkins-deploy-platform-ansible-os-4398-1 2025-10-21 16:24:33,784 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-machine/db683348-343b-4140-aff8-945d62a9e9fb 2025-10-21 16:24:34,107 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-machine/db683348-343b-4140-aff8-945d62a9e9fb 2025-10-21 16:24:34,150 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-machine-interface/55a52a5b-a00a-40e9-ad2b-cd91d9c265c3 2025-10-21 16:24:37,399 - 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 1001ms') 2025-10-21 16:24:37,399 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-52408044-02460647 failed! 2025-10-21 16:24:37,459 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-52408044:ctest-vn-02395121 is 87.19.218.1 and allocation pool is NOT set 2025-10-21 16:24:41,529 - 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 1004ms') 2025-10-21 16:24:41,529 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-52408044-02460647 failed! 2025-10-21 16:24:41,583 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-52408044:ctest-vn-02395121 is 87.19.218.1 and allocation pool is NOT set 2025-10-21 16:24:43,645 - 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.17 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=2.09 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.094/3.129/4.165/1.035 ms') 2025-10-21 16:24:43,646 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-52408044-02460647 passed 2025-10-21 16:24:43,799 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-21 16:24:43,799 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-52408044-02460647, IP 87.19.218.3, Port 22 2025-10-21 16:24:43,954 - DEBUG - VM ctest-TestRoutersBasic-52408044-02460647 is ready for SSH connections 2025-10-21 16:24:43,954 - INFO - Waiting for VM ctest-TestRoutersBasic-52408044-05957304 to be up.. 2025-10-21 16:24:44,031 - DEBUG - VM is in ACTIVE state now 2025-10-21 16:24:44,032 - INFO - VM name : ctest-TestRoutersBasic-52408044-05957304 2025-10-21 16:24:44,099 - DEBUG - VM ctest-TestRoutersBasic-52408044-05957304 ID is 893da4c1-6bb7-4f3f-a93c-46d45cbde803 2025-10-21 16:24:44,099 - DEBUG - VM ctest-TestRoutersBasic-52408044-05957304 launched on Node cn-jenkins-deploy-platform-ansible-os-4398-1 2025-10-21 16:24:44,166 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-machine/893da4c1-6bb7-4f3f-a93c-46d45cbde803 2025-10-21 16:24:44,173 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-machine-interface/7125267f-b27d-4a45-97f2-b60f644b3b7e 2025-10-21 16:24:45,411 - 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=5.84 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.387 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.387/3.115/5.843/2.728 ms') 2025-10-21 16:24:45,411 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-52408044-05957304 passed 2025-10-21 16:24:45,567 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-21 16:24:45,567 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-52408044-05957304, IP 106.143.208.195, Port 22 2025-10-21 16:24:45,718 - DEBUG - VM ctest-TestRoutersBasic-52408044-05957304 is ready for SSH connections 2025-10-21 16:24:45,718 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-21 16:24:45,718 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 106.143.208.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.242, gateway password: c0ntrail123 2025-10-21 16:24:45,718 - DEBUG - ping -s 56 -c 3 -W 1 106.143.208.195 2025-10-21 16:24:49,695 - DEBUG - PING 106.143.208.195 (106.143.208.195): 56 data bytes 64 bytes from 106.143.208.195: seq=0 ttl=62 time=7.360 ms 64 bytes from 106.143.208.195: seq=1 ttl=62 time=0.779 ms 64 bytes from 106.143.208.195: seq=2 ttl=62 time=0.847 ms --- 106.143.208.195 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.779/2.995/7.360 ms 2025-10-21 16:24:49,695 - INFO - Ping to IP 106.143.208.195 from VM ctest-TestRoutersBasic-52408044-02460647 passed 2025-10-21 16:24:49,695 - INFO - Deleting interface with subnet_id dc87bb56-bc4b-4063-aa6a-1e271c7493b3, port_id None from router 9e4f7822-12f8-4d9b-bbbc-7cf3c7f691f9 2025-10-21 16:24:49,851 - INFO - Deleting VM ctest-TestRoutersBasic-52408044-05957304 2025-10-21 16:24:49,911 - INFO - Deleting VM ctest-TestRoutersBasic-52408044-02460647 2025-10-21 16:24:49,990 - INFO - Deleting VN ctest-ext_vn-89570285 2025-10-21 16:24:50,045 - DEBUG - VN d53f805f-9b0d-42c0-9c13-5a8b78cc011a still in use: Unable to complete operation on network d53f805f-9b0d-42c0-9c13-5a8b78cc011a. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-c177fd6d-afbe-43e9-9e2d-ac37b71d5ecd'] 2025-10-21 16:24:50,045 - WARNING - Deleting VN ctest-ext_vn-89570285 failed..Will retry 2025-10-21 16:24:52,142 - DEBUG - Response for deleting network () 2025-10-21 16:24:52,142 - INFO - Deleting VN ctest-vn-02395121 2025-10-21 16:24:52,228 - DEBUG - Response for deleting network () 2025-10-21 16:24:52,483 - DEBUG - No XMPP flaps were noticed during the test 2025-10-21 16:24:52,483 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:25] 2025-10-21 16:24:52,483 - INFO - -------------------------------------------------------------------------------- 2025-10-21 16:24:53,126 - INFO - Deleted project: ctest-TestRoutersBasic-52408044, ID : 237b2e48-e6ad-4898-b0e9-ee450ef0c8b9