2025-04-16 11:07:08,085 - INFO - Reading existing Domain with UUID b01b56ed-3042-44ba-b42d-383118ee132c 2025-04-16 11:07:08,101 - INFO - Using existing domain ['admin_domain'](b01b56ed-3042-44ba-b42d-383118ee132c) 2025-04-16 11:07:08,340 - INFO - Project ctest-TestRoutersBasic-53795296 not found, creating it 2025-04-16 11:07:08,929 - INFO - Created Project:ctest-TestRoutersBasic-53795296, ID : af26b113-125a-4e58-80a4-f99cbe70a90f 2025-04-16 11:07:10,820 - INFO - ================================================================================ 2025-04-16 11:07:10,820 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2025-04-16 11:07:10,820 - 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-04-16 11:07:11,223 - DEBUG - Nothing to compare xmpp stats {'10.0.0.19': {'10.0.0.19': '0'}} with 2025-04-16 11:07:11,223 - INFO - Initial checks done. Running the testcase now 2025-04-16 11:07:11,223 - INFO - 2025-04-16 11:07:12,064 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-53795296 2025-04-16 11:07:12,177 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-53795296 2025-04-16 11:07:12,528 - DEBUG - Reading firewall policy {'fq_name': ['admin_domain', 'ctest-TestRoutersBasic-53795296', 'default']} 2025-04-16 11:07:13,138 - DEBUG - Response for create_network : {'network': {'id': 'f1980274-7332-4178-8ec7-15c8c4172400', 'name': 'ctest-vn-35800745', 'tenant_id': 'af26b113125a4e5880a4f99cbe70a90f', 'project_id': 'af26b113125a4e5880a4f99cbe70a90f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['admin_domain', 'ctest-TestRoutersBasic-53795296', 'ctest-vn-35800745'], 'port_security_enabled': True, 'description': '', 'created_at': None, 'updated_at': None}} 2025-04-16 11:07:13,430 - DEBUG - Response for create_subnet : {'subnet': {'id': '6cf66b36-99c1-4d1f-be66-eb7b5b698885', 'name': '', 'tenant_id': 'af26b113125a4e5880a4f99cbe70a90f', 'network_id': 'f1980274-7332-4178-8ec7-15c8c4172400', 'ip_version': 4, 'cidr': '74.45.80.0/26', 'allocation_pools': [{'start': '74.45.80.2', 'end': '74.45.80.62'}], 'gateway_ip': '74.45.80.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'created_at': '2025-04-16T11:07:13.311782', 'updated_at': '2025-04-16T11:07:13.311782', 'dns_server_address': '74.45.80.2', 'tags': [], 'project_id': 'af26b113125a4e5880a4f99cbe70a90f'}} 2025-04-16 11:07:13,500 - INFO - Created VN ctest-vn-35800745 2025-04-16 11:07:13,557 - DEBUG - VN ctest-vn-35800745 UUID is f1980274-7332-4178-8ec7-15c8c4172400 2025-04-16 11:07:14,154 - DEBUG - Response for create_network : {'network': {'id': '62b4a0c5-ef93-44c9-92d0-73bc0e740a6b', 'name': 'ctest-ext_vn-60203561', 'tenant_id': 'af26b113125a4e5880a4f99cbe70a90f', 'project_id': 'af26b113125a4e5880a4f99cbe70a90f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['admin_domain', 'ctest-TestRoutersBasic-53795296', 'ctest-ext_vn-60203561'], 'port_security_enabled': True, 'description': '', 'created_at': None, 'updated_at': None}} 2025-04-16 11:07:14,430 - DEBUG - Response for create_subnet : {'subnet': {'id': '0e9afde1-25a9-475a-938f-01d5c704e867', 'name': '', 'tenant_id': 'af26b113125a4e5880a4f99cbe70a90f', 'network_id': '62b4a0c5-ef93-44c9-92d0-73bc0e740a6b', 'ip_version': 4, 'cidr': '204.114.40.0/26', 'allocation_pools': [{'start': '204.114.40.2', 'end': '204.114.40.62'}], 'gateway_ip': '204.114.40.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'created_at': '2025-04-16T11:07:14.318052', 'updated_at': '2025-04-16T11:07:14.318052', 'dns_server_address': '204.114.40.2', 'tags': [], 'project_id': 'af26b113125a4e5880a4f99cbe70a90f'}} 2025-04-16 11:07:14,499 - INFO - Created VN ctest-ext_vn-60203561 2025-04-16 11:07:14,556 - DEBUG - VN ctest-ext_vn-60203561 UUID is 62b4a0c5-ef93-44c9-92d0-73bc0e740a6b 2025-04-16 11:07:14,870 - DEBUG - Services list from nova: [, , ] 2025-04-16 11:07:16,102 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-juju-os-514-1), Zone: (nova:cn-jenkins-deploy-platform-juju-os-514-1) 2025-04-16 11:07:17,686 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-juju-os-514-1), Zone: (nova:cn-jenkins-deploy-platform-juju-os-514-1) 2025-04-16 11:07:17,849 - INFO - Setting gateway for router e8afa613-a3f5-48e8-b863-6620c3fd81e9 to network 62b4a0c5-ef93-44c9-92d0-73bc0e740a6b 2025-04-16 11:07:18,038 - INFO - Adding interface with subnet_id 6cf66b36-99c1-4d1f-be66-eb7b5b698885, port_id None to router e8afa613-a3f5-48e8-b863-6620c3fd81e9 2025-04-16 11:07:18,800 - INFO - Waiting for VM ctest-TestRoutersBasic-53795296-35634680 to be up.. 2025-04-16 11:07:18,988 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-04-16 11:07:24,148 - DEBUG - VM is in ACTIVE state now 2025-04-16 11:07:24,148 - INFO - VM name : ctest-TestRoutersBasic-53795296-35634680 2025-04-16 11:07:24,311 - DEBUG - VM ctest-TestRoutersBasic-53795296-35634680 ID is a57ddf41-3d64-4893-8160-2582979c5df5 2025-04-16 11:07:24,342 - DEBUG - VM ctest-TestRoutersBasic-53795296-35634680 launched on Node cn-jenkins-deploy-platform-juju-os-514-1 2025-04-16 11:07:24,507 - DEBUG - Requesting: https://10.0.0.19:8082/virtual-machine/a57ddf41-3d64-4893-8160-2582979c5df5 2025-04-16 11:07:24,853 - DEBUG - Requesting: https://10.0.0.19:8082/virtual-machine/a57ddf41-3d64-4893-8160-2582979c5df5 2025-04-16 11:07:24,950 - DEBUG - Requesting: https://10.0.0.19:8082/virtual-machine-interface/9203c78d-11f2-432a-9e85-89429861d541 2025-04-16 11:07:28,446 - 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 1019ms') 2025-04-16 11:07:28,446 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-53795296-35634680 failed! 2025-04-16 11:07:28,509 - DEBUG - Gateway for vn admin_domain:ctest-TestRoutersBasic-53795296:ctest-vn-35800745 is 74.45.80.1 and allocation pool is NOT set 2025-04-16 11:07:30,599 - 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=3.98 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=1.03 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.029/2.502/3.975/1.473 ms') 2025-04-16 11:07:30,599 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-53795296-35634680 passed 2025-04-16 11:07:30,768 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-16 11:07:30,769 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-53795296-35634680, IP 74.45.80.3, Port 22 2025-04-16 11:07:30,985 - DEBUG - VM ctest-TestRoutersBasic-53795296-35634680 is ready for SSH connections 2025-04-16 11:07:30,985 - INFO - Waiting for VM ctest-TestRoutersBasic-53795296-46902016 to be up.. 2025-04-16 11:07:31,170 - DEBUG - VM is in ACTIVE state now 2025-04-16 11:07:31,170 - INFO - VM name : ctest-TestRoutersBasic-53795296-46902016 2025-04-16 11:07:31,338 - DEBUG - VM ctest-TestRoutersBasic-53795296-46902016 ID is e7615655-ba92-4138-a370-f9c95e633e77 2025-04-16 11:07:31,338 - DEBUG - VM ctest-TestRoutersBasic-53795296-46902016 launched on Node cn-jenkins-deploy-platform-juju-os-514-1 2025-04-16 11:07:31,510 - DEBUG - Requesting: https://10.0.0.19:8082/virtual-machine/e7615655-ba92-4138-a370-f9c95e633e77 2025-04-16 11:07:31,574 - DEBUG - Requesting: https://10.0.0.19:8082/virtual-machine-interface/be3e2750-a9e2-4b86-8a6e-8dceb66d4c2d 2025-04-16 11:07:33,035 - 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=6.09 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=3.10 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 = 3.103/4.596/6.089/1.493 ms') 2025-04-16 11:07:33,035 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-53795296-46902016 passed 2025-04-16 11:07:33,197 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-16 11:07:33,197 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-53795296-46902016, IP 204.114.40.3, Port 22 2025-04-16 11:07:33,284 - 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-04-16 11:07:33,436 - DEBUG - VM ctest-TestRoutersBasic-53795296-46902016 is NOT ready for SSH connections, VM status: ACTIVE 2025-04-16 11:07:38,437 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-16 11:07:38,437 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-53795296-46902016, IP 204.114.40.3, Port 22 2025-04-16 11:07:38,650 - DEBUG - VM ctest-TestRoutersBasic-53795296-46902016 is ready for SSH connections 2025-04-16 11:07:38,650 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-16 11:07:38,650 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 204.114.40.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.19, gateway password: c0ntrail123 2025-04-16 11:07:38,651 - DEBUG - ping -s 56 -c 3 -W 1 204.114.40.3 2025-04-16 11:07:42,350 - DEBUG - PING 204.114.40.3 (204.114.40.3): 56 data bytes 64 bytes from 204.114.40.3: seq=0 ttl=62 time=6.612 ms 64 bytes from 204.114.40.3: seq=1 ttl=62 time=1.366 ms 64 bytes from 204.114.40.3: seq=2 ttl=62 time=1.261 ms --- 204.114.40.3 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.261/3.079/6.612 ms 2025-04-16 11:07:42,350 - INFO - Ping to IP 204.114.40.3 from VM ctest-TestRoutersBasic-53795296-35634680 passed 2025-04-16 11:07:42,351 - INFO - Deleting interface with subnet_id 6cf66b36-99c1-4d1f-be66-eb7b5b698885, port_id None from router e8afa613-a3f5-48e8-b863-6620c3fd81e9 2025-04-16 11:07:42,818 - INFO - Deleting VM ctest-TestRoutersBasic-53795296-46902016 2025-04-16 11:07:42,927 - INFO - Deleting VM ctest-TestRoutersBasic-53795296-35634680 2025-04-16 11:07:43,060 - INFO - Deleting VN ctest-ext_vn-60203561 2025-04-16 11:07:43,352 - DEBUG - VN 62b4a0c5-ef93-44c9-92d0-73bc0e740a6b still in use: Unable to complete operation on network 62b4a0c5-ef93-44c9-92d0-73bc0e740a6b. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-f8bcd33f-7f92-4abb-b6a7-e998dce55480'] 2025-04-16 11:07:43,352 - WARNING - Deleting VN ctest-ext_vn-60203561 failed..Will retry 2025-04-16 11:07:45,858 - DEBUG - Response for deleting network () 2025-04-16 11:07:45,858 - INFO - Deleting VN ctest-vn-35800745 2025-04-16 11:07:46,385 - DEBUG - Response for deleting network () 2025-04-16 11:07:46,786 - DEBUG - No XMPP flaps were noticed during the test
2025-04-16 11:07:46,787 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:36]
2025-04-16 11:07:46,787 - INFO - -------------------------------------------------------------------------------- 2025-04-16 11:07:47,632 - INFO - Deleted project: ctest-TestRoutersBasic-53795296, ID : af26b113-125a-4e58-80a4-f99cbe70a90f