2025-06-23 01:52:31,172 - INFO - Reading existing Domain with UUID e8d391b1-ca64-4945-8ae2-167d3ed268f0 2025-06-23 01:52:31,185 - INFO - Using existing domain ['admin_domain'](e8d391b1-ca64-4945-8ae2-167d3ed268f0) 2025-06-23 01:52:31,403 - INFO - Project ctest-TestRoutersBasic-37938803 not found, creating it 2025-06-23 01:52:31,981 - INFO - Created Project:ctest-TestRoutersBasic-37938803, ID : 7eab9708-d064-4853-954b-f436765dad41 2025-06-23 01:52:33,903 - INFO - ================================================================================ 2025-06-23 01:52:33,903 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2025-06-23 01:52:33,903 - 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-06-23 01:52:34,290 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.0.0.22': '0'}} with 2025-06-23 01:52:34,291 - INFO - Initial checks done. Running the testcase now 2025-06-23 01:52:34,291 - INFO - 2025-06-23 01:52:35,189 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-37938803 2025-06-23 01:52:35,289 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-37938803 2025-06-23 01:52:35,633 - DEBUG - Reading firewall policy {'fq_name': ['admin_domain', 'ctest-TestRoutersBasic-37938803', 'default']} 2025-06-23 01:52:36,192 - DEBUG - Response for create_network : {'network': {'id': '44da571c-4452-4e3b-a6c2-71605e2f13de', 'name': 'ctest-vn-94416429', 'tenant_id': '7eab9708d0644853954bf436765dad41', 'project_id': '7eab9708d0644853954bf436765dad41', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['admin_domain', 'ctest-TestRoutersBasic-37938803', 'ctest-vn-94416429'], 'port_security_enabled': True, 'description': '', 'created_at': None, 'updated_at': None}} 2025-06-23 01:52:36,419 - DEBUG - Response for create_subnet : {'subnet': {'id': '18ca4ddc-076f-4741-a893-2c4a7aefdab1', 'name': '', 'tenant_id': '7eab9708d0644853954bf436765dad41', 'network_id': '44da571c-4452-4e3b-a6c2-71605e2f13de', 'ip_version': 4, 'cidr': '34.240.227.192/26', 'allocation_pools': [{'start': '34.240.227.194', 'end': '34.240.227.254'}], 'gateway_ip': '34.240.227.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'created_at': '2025-06-23T01:52:36.297823', 'updated_at': '2025-06-23T01:52:36.297823', 'dns_server_address': '34.240.227.194', 'tags': [], 'project_id': '7eab9708d0644853954bf436765dad41'}} 2025-06-23 01:52:36,488 - INFO - Created VN ctest-vn-94416429 2025-06-23 01:52:36,545 - DEBUG - VN ctest-vn-94416429 UUID is 44da571c-4452-4e3b-a6c2-71605e2f13de 2025-06-23 01:52:37,108 - DEBUG - Response for create_network : {'network': {'id': 'a6bfba70-5e33-41d8-8d9f-848eb7b90c91', 'name': 'ctest-ext_vn-71980915', 'tenant_id': '7eab9708d0644853954bf436765dad41', 'project_id': '7eab9708d0644853954bf436765dad41', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['admin_domain', 'ctest-TestRoutersBasic-37938803', 'ctest-ext_vn-71980915'], 'port_security_enabled': True, 'description': '', 'created_at': None, 'updated_at': None}} 2025-06-23 01:52:37,346 - DEBUG - Response for create_subnet : {'subnet': {'id': '9c7ae199-4481-4c47-9d93-e64fa01cb889', 'name': '', 'tenant_id': '7eab9708d0644853954bf436765dad41', 'network_id': 'a6bfba70-5e33-41d8-8d9f-848eb7b90c91', 'ip_version': 4, 'cidr': '40.141.7.0/26', 'allocation_pools': [{'start': '40.141.7.2', 'end': '40.141.7.62'}], 'gateway_ip': '40.141.7.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'created_at': '2025-06-23T01:52:37.223639', 'updated_at': '2025-06-23T01:52:37.223639', 'dns_server_address': '40.141.7.2', 'tags': [], 'project_id': '7eab9708d0644853954bf436765dad41'}} 2025-06-23 01:52:37,415 - INFO - Created VN ctest-ext_vn-71980915 2025-06-23 01:52:37,469 - DEBUG - VN ctest-ext_vn-71980915 UUID is a6bfba70-5e33-41d8-8d9f-848eb7b90c91 2025-06-23 01:52:37,758 - DEBUG - Services list from nova: [, , ] 2025-06-23 01:52:38,927 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-juju-os-548-1), Zone: (nova:cn-jenkins-deploy-platform-juju-os-548-1) 2025-06-23 01:52:40,312 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-juju-os-548-1), Zone: (nova:cn-jenkins-deploy-platform-juju-os-548-1) 2025-06-23 01:52:40,466 - INFO - Setting gateway for router 726f26fd-41bb-4347-bb28-b97106231799 to network a6bfba70-5e33-41d8-8d9f-848eb7b90c91 2025-06-23 01:52:40,683 - INFO - Adding interface with subnet_id 18ca4ddc-076f-4741-a893-2c4a7aefdab1, port_id None to router 726f26fd-41bb-4347-bb28-b97106231799 2025-06-23 01:52:41,412 - INFO - Waiting for VM ctest-TestRoutersBasic-37938803-05150629 to be up.. 2025-06-23 01:52:41,611 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-06-23 01:52:46,761 - DEBUG - VM is in ACTIVE state now 2025-06-23 01:52:46,761 - INFO - VM name : ctest-TestRoutersBasic-37938803-05150629 2025-06-23 01:52:47,099 - DEBUG - VM ctest-TestRoutersBasic-37938803-05150629 ID is eee75b22-07e2-4b59-8d1b-334dfb5b207f 2025-06-23 01:52:47,124 - DEBUG - VM ctest-TestRoutersBasic-37938803-05150629 launched on Node cn-jenkins-deploy-platform-juju-os-548-1 2025-06-23 01:52:47,321 - DEBUG - Requesting: https://10.0.0.22:8082/virtual-machine/eee75b22-07e2-4b59-8d1b-334dfb5b207f 2025-06-23 01:52:47,724 - DEBUG - Requesting: https://10.0.0.22:8082/virtual-machine/eee75b22-07e2-4b59-8d1b-334dfb5b207f 2025-06-23 01:52:47,870 - DEBUG - Requesting: https://10.0.0.22:8082/virtual-machine-interface/78772c98-9e79-43a2-9f69-7d18e1fde6e3 2025-06-23 01:52:51,348 - 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-06-23 01:52:51,348 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-37938803-05150629 failed! 2025-06-23 01:52:51,413 - DEBUG - Gateway for vn admin_domain:ctest-TestRoutersBasic-37938803:ctest-vn-94416429 is 34.240.227.193 and allocation pool is NOT set 2025-06-23 01:52:53,512 - 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=5.12 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=2.23 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1000ms\r\nrtt min/avg/max/mdev = 2.229/3.673/5.117/1.444 ms') 2025-06-23 01:52:53,512 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-37938803-05150629 passed 2025-06-23 01:52:53,685 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-23 01:52:53,685 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-37938803-05150629, IP 34.240.227.195, Port 22 2025-06-23 01:52:53,782 - 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-06-23 01:52:53,962 - DEBUG - VM ctest-TestRoutersBasic-37938803-05150629 is NOT ready for SSH connections, VM status: ACTIVE 2025-06-23 01:52:58,963 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-23 01:52:58,963 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-37938803-05150629, IP 34.240.227.195, Port 22 2025-06-23 01:52:59,180 - DEBUG - VM ctest-TestRoutersBasic-37938803-05150629 is ready for SSH connections 2025-06-23 01:52:59,180 - INFO - Waiting for VM ctest-TestRoutersBasic-37938803-70209714 to be up.. 2025-06-23 01:52:59,322 - DEBUG - VM is in ACTIVE state now 2025-06-23 01:52:59,322 - INFO - VM name : ctest-TestRoutersBasic-37938803-70209714 2025-06-23 01:52:59,459 - DEBUG - VM ctest-TestRoutersBasic-37938803-70209714 ID is 94a77f8a-2345-45d9-933f-e78e4b833bf3 2025-06-23 01:52:59,459 - DEBUG - VM ctest-TestRoutersBasic-37938803-70209714 launched on Node cn-jenkins-deploy-platform-juju-os-548-1 2025-06-23 01:52:59,664 - DEBUG - Requesting: https://10.0.0.22:8082/virtual-machine/94a77f8a-2345-45d9-933f-e78e4b833bf3 2025-06-23 01:52:59,727 - DEBUG - Requesting: https://10.0.0.22:8082/virtual-machine-interface/7a846fb4-9554-4f75-a00c-39aa03e5355a 2025-06-23 01:53:01,184 - 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.56 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.443 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.443/2.003/3.563/1.560 ms') 2025-06-23 01:53:01,184 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-37938803-70209714 passed 2025-06-23 01:53:01,349 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-23 01:53:01,349 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-37938803-70209714, IP 40.141.7.3, Port 22 2025-06-23 01:53:01,579 - DEBUG - VM ctest-TestRoutersBasic-37938803-70209714 is ready for SSH connections 2025-06-23 01:53:01,579 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-23 01:53:01,580 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 40.141.7.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.22, gateway password: c0ntrail123 2025-06-23 01:53:01,580 - DEBUG - ping -s 56 -c 3 -W 1 40.141.7.3 2025-06-23 01:53:05,355 - DEBUG - PING 40.141.7.3 (40.141.7.3): 56 data bytes 64 bytes from 40.141.7.3: seq=0 ttl=62 time=5.631 ms 64 bytes from 40.141.7.3: seq=1 ttl=62 time=1.220 ms 64 bytes from 40.141.7.3: seq=2 ttl=62 time=1.327 ms --- 40.141.7.3 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.220/2.726/5.631 ms 2025-06-23 01:53:05,355 - INFO - Ping to IP 40.141.7.3 from VM ctest-TestRoutersBasic-37938803-05150629 passed 2025-06-23 01:53:05,356 - INFO - Deleting interface with subnet_id 18ca4ddc-076f-4741-a893-2c4a7aefdab1, port_id None from router 726f26fd-41bb-4347-bb28-b97106231799 2025-06-23 01:53:05,771 - INFO - Deleting VM ctest-TestRoutersBasic-37938803-70209714 2025-06-23 01:53:05,887 - INFO - Deleting VM ctest-TestRoutersBasic-37938803-05150629 2025-06-23 01:53:06,016 - INFO - Deleting VN ctest-ext_vn-71980915 2025-06-23 01:53:06,246 - DEBUG - VN a6bfba70-5e33-41d8-8d9f-848eb7b90c91 still in use: Unable to complete operation on network a6bfba70-5e33-41d8-8d9f-848eb7b90c91. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-2915dedf-6c59-4e9c-9679-cb54c3e39464'] 2025-06-23 01:53:06,246 - WARNING - Deleting VN ctest-ext_vn-71980915 failed..Will retry 2025-06-23 01:53:08,433 - DEBUG - Response for deleting network () 2025-06-23 01:53:08,433 - INFO - Deleting VN ctest-vn-94416429 2025-06-23 01:53:08,658 - DEBUG - Response for deleting network () 2025-06-23 01:53:09,062 - DEBUG - No XMPP flaps were noticed during the test
2025-06-23 01:53:09,062 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:36]
2025-06-23 01:53:09,062 - INFO - -------------------------------------------------------------------------------- 2025-06-23 01:53:09,880 - INFO - Deleted project: ctest-TestRoutersBasic-37938803, ID : 7eab9708-d064-4853-954b-f436765dad41