2025-10-22 21:52:32,090 - INFO - Domain Default found not creating 2025-10-22 21:52:32,231 - INFO - Project ctest-TestRoutersBasic-40026964 not found, creating it 2025-10-22 21:52:32,671 - INFO - Created Project:ctest-TestRoutersBasic-40026964, ID : 0a0d5924-77f3-43a9-8b81-c884de6881fa 2025-10-22 21:52:34,219 - INFO - ================================================================================ 2025-10-22 21:52:34,219 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2025-10-22 21:52:34,219 - 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-22 21:52:34,475 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.254': '0'}} with 2025-10-22 21:52:34,475 - INFO - Initial checks done. Running the testcase now 2025-10-22 21:52:34,475 - INFO - 2025-10-22 21:52:35,255 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-40026964 2025-10-22 21:52:35,350 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-40026964 2025-10-22 21:52:35,669 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-40026964', 'default']} 2025-10-22 21:52:35,987 - DEBUG - Response for create_network : {'network': {'id': '54556b69-e57c-472c-9547-3d38340b43d8', 'name': 'ctest-vn-51862723', 'tenant_id': '0a0d592477f343a98b81c884de6881fa', 'project_id': '0a0d592477f343a98b81c884de6881fa', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-40026964', 'ctest-vn-51862723'], 'port_security_enabled': True, 'description': ''}} 2025-10-22 21:52:36,196 - DEBUG - Response for create_subnet : {'subnet': {'id': '847f9249-226b-407f-b33c-6b2e4e71d54f', 'name': '', 'tenant_id': '0a0d592477f343a98b81c884de6881fa', 'network_id': '54556b69-e57c-472c-9547-3d38340b43d8', 'ip_version': 4, 'cidr': '157.235.77.128/26', 'allocation_pools': [{'start': '157.235.77.130', 'end': '157.235.77.190'}], 'gateway_ip': '157.235.77.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '157.235.77.130', 'tags': [], 'project_id': '0a0d592477f343a98b81c884de6881fa'}} 2025-10-22 21:52:36,215 - INFO - Created VN ctest-vn-51862723 2025-10-22 21:52:36,266 - DEBUG - VN ctest-vn-51862723 UUID is 54556b69-e57c-472c-9547-3d38340b43d8 2025-10-22 21:52:36,583 - DEBUG - Response for create_network : {'network': {'id': '76cc64e9-b93c-4cb3-8c83-9af68d63df2b', 'name': 'ctest-ext_vn-49778556', 'tenant_id': '0a0d592477f343a98b81c884de6881fa', 'project_id': '0a0d592477f343a98b81c884de6881fa', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-40026964', 'ctest-ext_vn-49778556'], 'port_security_enabled': True, 'description': ''}} 2025-10-22 21:52:36,781 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a162bc1e-d9fd-4c48-bd83-50f167ae2a26', 'name': '', 'tenant_id': '0a0d592477f343a98b81c884de6881fa', 'network_id': '76cc64e9-b93c-4cb3-8c83-9af68d63df2b', 'ip_version': 4, 'cidr': '2.52.50.64/26', 'allocation_pools': [{'start': '2.52.50.66', 'end': '2.52.50.126'}], 'gateway_ip': '2.52.50.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2.52.50.66', 'tags': [], 'project_id': '0a0d592477f343a98b81c884de6881fa'}} 2025-10-22 21:52:36,799 - INFO - Created VN ctest-ext_vn-49778556 2025-10-22 21:52:36,850 - DEBUG - VN ctest-ext_vn-49778556 UUID is 76cc64e9-b93c-4cb3-8c83-9af68d63df2b 2025-10-22 21:52:37,016 - DEBUG - Services list from nova: [, , ] 2025-10-22 21:52:38,143 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-4443-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-4443-1) 2025-10-22 21:52:39,376 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-4443-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-4443-1) 2025-10-22 21:52:39,445 - INFO - Setting gateway for router b1b3d0a4-17f5-4133-84af-7939ac2c8a43 to network 76cc64e9-b93c-4cb3-8c83-9af68d63df2b 2025-10-22 21:52:39,524 - INFO - Adding interface with subnet_id 847f9249-226b-407f-b33c-6b2e4e71d54f, port_id None to router b1b3d0a4-17f5-4133-84af-7939ac2c8a43 2025-10-22 21:52:39,855 - INFO - Waiting for VM ctest-TestRoutersBasic-40026964-49970248 to be up.. 2025-10-22 21:52:40,010 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-10-22 21:52:45,091 - DEBUG - VM is in ACTIVE state now 2025-10-22 21:52:45,091 - INFO - VM name : ctest-TestRoutersBasic-40026964-49970248 2025-10-22 21:52:45,168 - DEBUG - VM ctest-TestRoutersBasic-40026964-49970248 ID is 9afc5158-ca50-4464-ba8e-e13b2e114750 2025-10-22 21:52:45,189 - DEBUG - VM ctest-TestRoutersBasic-40026964-49970248 launched on Node cn-jenkins-deploy-platform-ansible-os-4443-1 2025-10-22 21:52:45,262 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-machine/9afc5158-ca50-4464-ba8e-e13b2e114750 2025-10-22 21:52:45,597 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-machine/9afc5158-ca50-4464-ba8e-e13b2e114750 2025-10-22 21:52:45,628 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-machine-interface/8d5649fd-3c73-4842-8331-4cb7d430e735 2025-10-22 21:52:48,880 - 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 1014ms') 2025-10-22 21:52:48,880 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-40026964-49970248 failed! 2025-10-22 21:52:48,934 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-40026964:ctest-vn-51862723 is 157.235.77.129 and allocation pool is NOT set 2025-10-22 21:52:50,993 - 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.39 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=1.13 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 = 1.129/2.758/4.387/1.629 ms') 2025-10-22 21:52:50,993 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-40026964-49970248 passed 2025-10-22 21:52:51,150 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-22 21:52:51,150 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-40026964-49970248, IP 157.235.77.131, Port 22 2025-10-22 21:52:51,315 - DEBUG - VM ctest-TestRoutersBasic-40026964-49970248 is ready for SSH connections 2025-10-22 21:52:51,315 - INFO - Waiting for VM ctest-TestRoutersBasic-40026964-02614925 to be up.. 2025-10-22 21:52:51,397 - DEBUG - VM is in ACTIVE state now 2025-10-22 21:52:51,397 - INFO - VM name : ctest-TestRoutersBasic-40026964-02614925 2025-10-22 21:52:51,471 - DEBUG - VM ctest-TestRoutersBasic-40026964-02614925 ID is 43877c48-6361-4015-83ba-3ccb1d945ace 2025-10-22 21:52:51,472 - DEBUG - VM ctest-TestRoutersBasic-40026964-02614925 launched on Node cn-jenkins-deploy-platform-ansible-os-4443-1 2025-10-22 21:52:51,544 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-machine/43877c48-6361-4015-83ba-3ccb1d945ace 2025-10-22 21:52:51,553 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-machine-interface/ba1372ff-4d2b-47c6-8634-a6bdbd8f929d 2025-10-22 21:52:52,795 - 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=3.13 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=1.09 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 = 1.086/2.109/3.133/1.023 ms') 2025-10-22 21:52:52,795 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-40026964-02614925 passed 2025-10-22 21:52:52,958 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-22 21:52:52,958 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-40026964-02614925, IP 2.52.50.67, Port 22 2025-10-22 21:52:53,114 - DEBUG - VM ctest-TestRoutersBasic-40026964-02614925 is ready for SSH connections 2025-10-22 21:52:53,114 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-22 21:52:53,114 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 2.52.50.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.22, gateway password: c0ntrail123 2025-10-22 21:52:53,114 - DEBUG - ping -s 56 -c 3 -W 1 2.52.50.67 2025-10-22 21:52:56,862 - DEBUG - PING 2.52.50.67 (2.52.50.67): 56 data bytes 64 bytes from 2.52.50.67: seq=0 ttl=62 time=7.804 ms 64 bytes from 2.52.50.67: seq=1 ttl=62 time=1.135 ms 64 bytes from 2.52.50.67: seq=2 ttl=62 time=0.930 ms --- 2.52.50.67 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.930/3.289/7.804 ms 2025-10-22 21:52:56,862 - INFO - Ping to IP 2.52.50.67 from VM ctest-TestRoutersBasic-40026964-49970248 passed 2025-10-22 21:52:56,862 - INFO - Deleting interface with subnet_id 847f9249-226b-407f-b33c-6b2e4e71d54f, port_id None from router b1b3d0a4-17f5-4133-84af-7939ac2c8a43 2025-10-22 21:52:57,047 - INFO - Deleting VM ctest-TestRoutersBasic-40026964-02614925 2025-10-22 21:52:57,126 - INFO - Deleting VM ctest-TestRoutersBasic-40026964-49970248 2025-10-22 21:52:57,202 - INFO - Deleting VN ctest-ext_vn-49778556 2025-10-22 21:52:57,266 - DEBUG - VN 76cc64e9-b93c-4cb3-8c83-9af68d63df2b still in use: Unable to complete operation on network 76cc64e9-b93c-4cb3-8c83-9af68d63df2b. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-c21388bd-14c4-4cb3-ab2d-f491ae35753c'] 2025-10-22 21:52:57,266 - WARNING - Deleting VN ctest-ext_vn-49778556 failed..Will retry 2025-10-22 21:52:59,367 - DEBUG - Response for deleting network () 2025-10-22 21:52:59,367 - INFO - Deleting VN ctest-vn-51862723 2025-10-22 21:52:59,476 - DEBUG - Response for deleting network () 2025-10-22 21:52:59,740 - DEBUG - No XMPP flaps were noticed during the test 2025-10-22 21:52:59,740 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:25] 2025-10-22 21:52:59,740 - INFO - -------------------------------------------------------------------------------- 2025-10-22 21:53:00,453 - INFO - Deleted project: ctest-TestRoutersBasic-40026964, ID : 0a0d5924-77f3-43a9-8b81-c884de6881fa