2025-09-08 15:39:38,996 - INFO - Domain Default found not creating 2025-09-08 15:39:39,140 - INFO - Project ctest-TestRoutersBasic-16484547 not found, creating it 2025-09-08 15:39:39,570 - INFO - Created Project:ctest-TestRoutersBasic-16484547, ID : 58f28e13-912c-4867-915f-a71883e969f1 2025-09-08 15:39:40,941 - INFO - ================================================================================ 2025-09-08 15:39:40,941 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2025-09-08 15:39:40,941 - 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-09-08 15:39:41,199 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.25': '0'}} with 2025-09-08 15:39:41,199 - INFO - Initial checks done. Running the testcase now 2025-09-08 15:39:41,199 - INFO - 2025-09-08 15:39:41,875 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-16484547 2025-09-08 15:39:41,970 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-16484547 2025-09-08 15:39:42,282 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-16484547', 'default']} 2025-09-08 15:39:42,557 - DEBUG - Response for create_network : {'network': {'id': 'dadcabb7-1bab-453e-b74a-980d0bf5d277', 'name': 'ctest-vn-27686492', 'tenant_id': '58f28e13912c4867915fa71883e969f1', 'project_id': '58f28e13912c4867915fa71883e969f1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-16484547', 'ctest-vn-27686492'], 'port_security_enabled': True, 'description': ''}} 2025-09-08 15:39:42,758 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f129ee9d-b8ef-44b7-b0f3-8c4c20346821', 'name': '', 'tenant_id': '58f28e13912c4867915fa71883e969f1', 'network_id': 'dadcabb7-1bab-453e-b74a-980d0bf5d277', 'ip_version': 4, 'cidr': '140.181.15.64/26', 'allocation_pools': [{'start': '140.181.15.66', 'end': '140.181.15.126'}], 'gateway_ip': '140.181.15.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '140.181.15.66', 'tags': [], 'project_id': '58f28e13912c4867915fa71883e969f1'}} 2025-09-08 15:39:42,776 - INFO - Created VN ctest-vn-27686492 2025-09-08 15:39:42,826 - DEBUG - VN ctest-vn-27686492 UUID is dadcabb7-1bab-453e-b74a-980d0bf5d277 2025-09-08 15:39:43,159 - DEBUG - Response for create_network : {'network': {'id': '7925fe32-6b6b-4f5f-b650-8ae074f81a22', 'name': 'ctest-ext_vn-47167877', 'tenant_id': '58f28e13912c4867915fa71883e969f1', 'project_id': '58f28e13912c4867915fa71883e969f1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-16484547', 'ctest-ext_vn-47167877'], 'port_security_enabled': True, 'description': ''}} 2025-09-08 15:39:43,378 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e785128c-9ba8-4592-9ee6-a062bce3d1bd', 'name': '', 'tenant_id': '58f28e13912c4867915fa71883e969f1', 'network_id': '7925fe32-6b6b-4f5f-b650-8ae074f81a22', 'ip_version': 4, 'cidr': '160.42.167.64/26', 'allocation_pools': [{'start': '160.42.167.66', 'end': '160.42.167.126'}], 'gateway_ip': '160.42.167.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '160.42.167.66', 'tags': [], 'project_id': '58f28e13912c4867915fa71883e969f1'}} 2025-09-08 15:39:43,398 - INFO - Created VN ctest-ext_vn-47167877 2025-09-08 15:39:43,450 - DEBUG - VN ctest-ext_vn-47167877 UUID is 7925fe32-6b6b-4f5f-b650-8ae074f81a22 2025-09-08 15:39:43,647 - DEBUG - Services list from nova: [, , ] 2025-09-08 15:39:44,635 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-4053-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-4053-1) 2025-09-08 15:39:45,706 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-4053-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-4053-1) 2025-09-08 15:39:45,769 - INFO - Setting gateway for router e4506eac-e321-4fbf-b7da-dca4321db81b to network 7925fe32-6b6b-4f5f-b650-8ae074f81a22 2025-09-08 15:39:45,838 - INFO - Adding interface with subnet_id f129ee9d-b8ef-44b7-b0f3-8c4c20346821, port_id None to router e4506eac-e321-4fbf-b7da-dca4321db81b 2025-09-08 15:39:46,154 - INFO - Waiting for VM ctest-TestRoutersBasic-16484547-15960251 to be up.. 2025-09-08 15:39:46,331 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-09-08 15:39:51,402 - DEBUG - VM is in ACTIVE state now 2025-09-08 15:39:51,402 - INFO - VM name : ctest-TestRoutersBasic-16484547-15960251 2025-09-08 15:39:51,470 - DEBUG - VM ctest-TestRoutersBasic-16484547-15960251 ID is 3bc63c4f-59a3-4cd5-bd5a-f69546cd456d 2025-09-08 15:39:51,492 - DEBUG - VM ctest-TestRoutersBasic-16484547-15960251 launched on Node cn-jenkins-deploy-platform-ansible-os-4053-1 2025-09-08 15:39:51,575 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-machine/3bc63c4f-59a3-4cd5-bd5a-f69546cd456d 2025-09-08 15:39:51,880 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-machine/3bc63c4f-59a3-4cd5-bd5a-f69546cd456d 2025-09-08 15:39:51,909 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-machine-interface/e48adee4-f614-4c81-982f-ca914e0f6761 2025-09-08 15:39:55,161 - 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 1015ms') 2025-09-08 15:39:55,161 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-16484547-15960251 failed! 2025-09-08 15:39:55,214 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-16484547:ctest-vn-27686492 is 140.181.15.65 and allocation pool is NOT set 2025-09-08 15:39:57,270 - 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.15 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.418 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.418/1.784/3.151/1.366 ms') 2025-09-08 15:39:57,270 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-16484547-15960251 passed 2025-09-08 15:39:57,418 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-09-08 15:39:57,418 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-16484547-15960251, IP 140.181.15.67, Port 22 2025-09-08 15:39:57,569 - DEBUG - VM ctest-TestRoutersBasic-16484547-15960251 is ready for SSH connections 2025-09-08 15:39:57,569 - INFO - Waiting for VM ctest-TestRoutersBasic-16484547-27269491 to be up.. 2025-09-08 15:39:57,637 - DEBUG - VM is in ACTIVE state now 2025-09-08 15:39:57,637 - INFO - VM name : ctest-TestRoutersBasic-16484547-27269491 2025-09-08 15:39:57,701 - DEBUG - VM ctest-TestRoutersBasic-16484547-27269491 ID is e95ae6b7-4258-4344-ae3e-ff634b4511b3 2025-09-08 15:39:57,701 - DEBUG - VM ctest-TestRoutersBasic-16484547-27269491 launched on Node cn-jenkins-deploy-platform-ansible-os-4053-1 2025-09-08 15:39:57,767 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-machine/e95ae6b7-4258-4344-ae3e-ff634b4511b3 2025-09-08 15:39:57,776 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-machine-interface/fa91cdec-3ae6-4057-9073-3689d232528e 2025-09-08 15:39:59,003 - 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.96 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=1.11 ms\r\n\r\n--- 169.254.0.4 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1000ms\r\nrtt min/avg/max/mdev = 1.107/2.532/3.957/1.425 ms') 2025-09-08 15:39:59,003 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-16484547-27269491 passed 2025-09-08 15:39:59,158 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-09-08 15:39:59,158 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-16484547-27269491, IP 160.42.167.67, Port 22 2025-09-08 15:39:59,213 - 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-09-08 15:39:59,282 - DEBUG - VM ctest-TestRoutersBasic-16484547-27269491 is NOT ready for SSH connections, VM status: ACTIVE 2025-09-08 15:40:04,283 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-09-08 15:40:04,283 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-16484547-27269491, IP 160.42.167.67, Port 22 2025-09-08 15:40:04,441 - DEBUG - VM ctest-TestRoutersBasic-16484547-27269491 is ready for SSH connections 2025-09-08 15:40:04,441 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-09-08 15:40:04,441 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 160.42.167.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.22, gateway password: c0ntrail123 2025-09-08 15:40:04,441 - DEBUG - ping -s 56 -c 3 -W 1 160.42.167.67 2025-09-08 15:40:08,471 - DEBUG - PING 160.42.167.67 (160.42.167.67): 56 data bytes 64 bytes from 160.42.167.67: seq=0 ttl=62 time=6.550 ms 64 bytes from 160.42.167.67: seq=1 ttl=62 time=0.825 ms 64 bytes from 160.42.167.67: seq=2 ttl=62 time=0.825 ms --- 160.42.167.67 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.825/2.733/6.550 ms 2025-09-08 15:40:08,471 - INFO - Ping to IP 160.42.167.67 from VM ctest-TestRoutersBasic-16484547-15960251 passed 2025-09-08 15:40:08,471 - INFO - Deleting interface with subnet_id f129ee9d-b8ef-44b7-b0f3-8c4c20346821, port_id None from router e4506eac-e321-4fbf-b7da-dca4321db81b 2025-09-08 15:40:08,653 - INFO - Deleting VM ctest-TestRoutersBasic-16484547-27269491 2025-09-08 15:40:08,726 - INFO - Deleting VM ctest-TestRoutersBasic-16484547-15960251 2025-09-08 15:40:08,812 - INFO - Deleting VN ctest-ext_vn-47167877 2025-09-08 15:40:08,872 - DEBUG - VN 7925fe32-6b6b-4f5f-b650-8ae074f81a22 still in use: Unable to complete operation on network 7925fe32-6b6b-4f5f-b650-8ae074f81a22. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-959a5ac8-b843-4d58-bb36-7fa204136912'] 2025-09-08 15:40:08,872 - WARNING - Deleting VN ctest-ext_vn-47167877 failed..Will retry 2025-09-08 15:40:10,971 - DEBUG - Response for deleting network () 2025-09-08 15:40:10,971 - INFO - Deleting VN ctest-vn-27686492 2025-09-08 15:40:11,062 - DEBUG - Response for deleting network () 2025-09-08 15:40:11,318 - DEBUG - No XMPP flaps were noticed during the test 2025-09-08 15:40:11,318 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:31] 2025-09-08 15:40:11,319 - INFO - -------------------------------------------------------------------------------- 2025-09-08 15:40:11,977 - INFO - Deleted project: ctest-TestRoutersBasic-16484547, ID : 58f28e13-912c-4867-915f-a71883e969f1