2025-10-22 16:15:44,938 - INFO - Reading existing Domain with UUID 46535b60-2514-4548-ad8b-3c79fd57b8eb 2025-10-22 16:15:44,950 - INFO - Using existing domain ['admin_domain'](46535b60-2514-4548-ad8b-3c79fd57b8eb) 2025-10-22 16:15:45,184 - INFO - Project ctest-TestRoutersBasic-62117368 not found, creating it 2025-10-22 16:15:45,756 - INFO - Created Project:ctest-TestRoutersBasic-62117368, ID : 5d1cd193-3488-44ad-875d-59cb990a0ede 2025-10-22 16:15:47,852 - INFO - ================================================================================ 2025-10-22 16:15:47,852 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2025-10-22 16:15:47,853 - 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 16:15:48,270 - DEBUG - Nothing to compare xmpp stats {'10.0.0.242': {'10.0.0.242': '0'}} with 2025-10-22 16:15:48,270 - INFO - Initial checks done. Running the testcase now 2025-10-22 16:15:48,270 - INFO - 2025-10-22 16:15:49,085 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-62117368 2025-10-22 16:15:49,185 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-62117368 2025-10-22 16:15:49,529 - DEBUG - Reading firewall policy {'fq_name': ['admin_domain', 'ctest-TestRoutersBasic-62117368', 'default']} 2025-10-22 16:15:50,071 - DEBUG - Response for create_network : {'network': {'id': '875dd04a-6710-4579-8ee1-4b8674a887ab', 'name': 'ctest-vn-40781126', 'tenant_id': '5d1cd193348844ad875d59cb990a0ede', 'project_id': '5d1cd193348844ad875d59cb990a0ede', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['admin_domain', 'ctest-TestRoutersBasic-62117368', 'ctest-vn-40781126'], 'port_security_enabled': True, 'description': '', 'created_at': None, 'updated_at': None}} 2025-10-22 16:15:50,290 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c4228112-ed09-4d4c-b18e-d7da92e0c1cb', 'name': '', 'tenant_id': '5d1cd193348844ad875d59cb990a0ede', 'network_id': '875dd04a-6710-4579-8ee1-4b8674a887ab', 'ip_version': 4, 'cidr': '66.93.41.0/26', 'allocation_pools': [{'start': '66.93.41.2', 'end': '66.93.41.62'}], 'gateway_ip': '66.93.41.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'created_at': '2025-10-22T16:15:50.188487', 'updated_at': '2025-10-22T16:15:50.188487', 'dns_server_address': '66.93.41.2', 'tags': [], 'project_id': '5d1cd193348844ad875d59cb990a0ede'}} 2025-10-22 16:15:50,351 - INFO - Created VN ctest-vn-40781126 2025-10-22 16:15:50,405 - DEBUG - VN ctest-vn-40781126 UUID is 875dd04a-6710-4579-8ee1-4b8674a887ab 2025-10-22 16:15:50,925 - DEBUG - Response for create_network : {'network': {'id': '39530cb7-9625-4cce-af64-dfa2863ecd1a', 'name': 'ctest-ext_vn-33340498', 'tenant_id': '5d1cd193348844ad875d59cb990a0ede', 'project_id': '5d1cd193348844ad875d59cb990a0ede', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['admin_domain', 'ctest-TestRoutersBasic-62117368', 'ctest-ext_vn-33340498'], 'port_security_enabled': True, 'description': '', 'created_at': None, 'updated_at': None}} 2025-10-22 16:15:51,177 - DEBUG - Response for create_subnet : {'subnet': {'id': 'afaf466a-0083-4513-9f10-adeba54a2043', 'name': '', 'tenant_id': '5d1cd193348844ad875d59cb990a0ede', 'network_id': '39530cb7-9625-4cce-af64-dfa2863ecd1a', 'ip_version': 4, 'cidr': '205.29.63.192/26', 'allocation_pools': [{'start': '205.29.63.194', 'end': '205.29.63.254'}], 'gateway_ip': '205.29.63.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'created_at': '2025-10-22T16:15:51.071443', 'updated_at': '2025-10-22T16:15:51.071443', 'dns_server_address': '205.29.63.194', 'tags': [], 'project_id': '5d1cd193348844ad875d59cb990a0ede'}} 2025-10-22 16:15:51,239 - INFO - Created VN ctest-ext_vn-33340498 2025-10-22 16:15:51,297 - DEBUG - VN ctest-ext_vn-33340498 UUID is 39530cb7-9625-4cce-af64-dfa2863ecd1a 2025-10-22 16:15:51,715 - DEBUG - Services list from nova: [, , ] 2025-10-22 16:15:53,240 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-juju-os-602-1), Zone: (nova:cn-jenkins-deploy-platform-juju-os-602-1) 2025-10-22 16:15:54,601 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-juju-os-602-1), Zone: (nova:cn-jenkins-deploy-platform-juju-os-602-1) 2025-10-22 16:15:54,771 - INFO - Setting gateway for router f48b9b5a-ac68-447e-bfd5-b801c75dda20 to network 39530cb7-9625-4cce-af64-dfa2863ecd1a 2025-10-22 16:15:54,930 - INFO - Adding interface with subnet_id c4228112-ed09-4d4c-b18e-d7da92e0c1cb, port_id None to router f48b9b5a-ac68-447e-bfd5-b801c75dda20 2025-10-22 16:15:55,607 - INFO - Waiting for VM ctest-TestRoutersBasic-62117368-82126008 to be up.. 2025-10-22 16:15:55,748 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-10-22 16:16:00,894 - DEBUG - VM is in ACTIVE state now 2025-10-22 16:16:00,895 - INFO - VM name : ctest-TestRoutersBasic-62117368-82126008 2025-10-22 16:16:01,047 - DEBUG - VM ctest-TestRoutersBasic-62117368-82126008 ID is a286bf5a-35e7-4147-b50e-8fa79c6a4596 2025-10-22 16:16:01,081 - DEBUG - VM ctest-TestRoutersBasic-62117368-82126008 launched on Node cn-jenkins-deploy-platform-juju-os-602-1 2025-10-22 16:16:01,240 - DEBUG - Requesting: https://10.0.0.242:8082/virtual-machine/a286bf5a-35e7-4147-b50e-8fa79c6a4596 2025-10-22 16:16:01,602 - DEBUG - Requesting: https://10.0.0.242:8082/virtual-machine/a286bf5a-35e7-4147-b50e-8fa79c6a4596 2025-10-22 16:16:01,693 - DEBUG - Requesting: https://10.0.0.242:8082/virtual-machine-interface/e753a355-28e0-4e1c-8a02-a68b849165bc 2025-10-22 16:16:05,184 - 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 1008ms') 2025-10-22 16:16:05,184 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-62117368-82126008 failed! 2025-10-22 16:16:05,241 - DEBUG - Gateway for vn admin_domain:ctest-TestRoutersBasic-62117368:ctest-vn-40781126 is 66.93.41.1 and allocation pool is NOT set 2025-10-22 16:16:07,337 - 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.30 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.705 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 = 0.705/4.000/7.296/3.295 ms') 2025-10-22 16:16:07,338 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-62117368-82126008 passed 2025-10-22 16:16:07,493 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-22 16:16:07,493 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-62117368-82126008, IP 66.93.41.3, Port 22 2025-10-22 16:16:07,579 - 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-10-22 16:16:07,772 - DEBUG - VM ctest-TestRoutersBasic-62117368-82126008 is NOT ready for SSH connections, VM status: ACTIVE 2025-10-22 16:16:12,772 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-22 16:16:12,773 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-62117368-82126008, IP 66.93.41.3, Port 22 2025-10-22 16:16:12,991 - DEBUG - VM ctest-TestRoutersBasic-62117368-82126008 is ready for SSH connections 2025-10-22 16:16:12,991 - INFO - Waiting for VM ctest-TestRoutersBasic-62117368-06204526 to be up.. 2025-10-22 16:16:13,122 - DEBUG - VM is in ACTIVE state now 2025-10-22 16:16:13,122 - INFO - VM name : ctest-TestRoutersBasic-62117368-06204526 2025-10-22 16:16:13,256 - DEBUG - VM ctest-TestRoutersBasic-62117368-06204526 ID is e5c29d43-87a9-4a37-9f34-14fbbaf6815a 2025-10-22 16:16:13,256 - DEBUG - VM ctest-TestRoutersBasic-62117368-06204526 launched on Node cn-jenkins-deploy-platform-juju-os-602-1 2025-10-22 16:16:13,386 - DEBUG - Requesting: https://10.0.0.242:8082/virtual-machine/e5c29d43-87a9-4a37-9f34-14fbbaf6815a 2025-10-22 16:16:13,445 - DEBUG - Requesting: https://10.0.0.242:8082/virtual-machine-interface/cb2d870b-00e6-47d7-bef8-14c7bcefe84e 2025-10-22 16:16:14,902 - 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.14 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.391 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.391/1.764/3.138/1.373 ms') 2025-10-22 16:16:14,902 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-62117368-06204526 passed 2025-10-22 16:16:15,057 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-22 16:16:15,057 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-62117368-06204526, IP 205.29.63.195, Port 22 2025-10-22 16:16:15,267 - DEBUG - VM ctest-TestRoutersBasic-62117368-06204526 is ready for SSH connections 2025-10-22 16:16:15,267 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-22 16:16:15,267 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 205.29.63.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.242, gateway password: c0ntrail123 2025-10-22 16:16:15,267 - DEBUG - ping -s 56 -c 3 -W 1 205.29.63.195 2025-10-22 16:16:18,958 - DEBUG - PING 205.29.63.195 (205.29.63.195): 56 data bytes 64 bytes from 205.29.63.195: seq=0 ttl=62 time=7.848 ms 64 bytes from 205.29.63.195: seq=1 ttl=62 time=0.969 ms 64 bytes from 205.29.63.195: seq=2 ttl=62 time=0.806 ms --- 205.29.63.195 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.806/3.207/7.848 ms 2025-10-22 16:16:18,958 - INFO - Ping to IP 205.29.63.195 from VM ctest-TestRoutersBasic-62117368-82126008 passed 2025-10-22 16:16:18,958 - INFO - Deleting interface with subnet_id c4228112-ed09-4d4c-b18e-d7da92e0c1cb, port_id None from router f48b9b5a-ac68-447e-bfd5-b801c75dda20 2025-10-22 16:16:19,316 - INFO - Deleting VM ctest-TestRoutersBasic-62117368-06204526 2025-10-22 16:16:19,415 - INFO - Deleting VM ctest-TestRoutersBasic-62117368-82126008 2025-10-22 16:16:19,568 - INFO - Deleting VN ctest-ext_vn-33340498 2025-10-22 16:16:19,753 - DEBUG - VN 39530cb7-9625-4cce-af64-dfa2863ecd1a still in use: Unable to complete operation on network 39530cb7-9625-4cce-af64-dfa2863ecd1a. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-378b161d-d5aa-49be-a10b-a7701cc96913'] 2025-10-22 16:16:19,753 - WARNING - Deleting VN ctest-ext_vn-33340498 failed..Will retry 2025-10-22 16:16:21,906 - DEBUG - Response for deleting network () 2025-10-22 16:16:21,906 - INFO - Deleting VN ctest-vn-40781126 2025-10-22 16:16:22,088 - DEBUG - Response for deleting network () 2025-10-22 16:16:22,482 - DEBUG - No XMPP flaps were noticed during the test
2025-10-22 16:16:22,482 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:35]
2025-10-22 16:16:22,482 - INFO - -------------------------------------------------------------------------------- 2025-10-22 16:16:23,229 - INFO - Deleted project: ctest-TestRoutersBasic-62117368, ID : 5d1cd193-3488-44ad-875d-59cb990a0ede