2025-07-12 07:35:24,428 - INFO - Domain Default found not creating 2025-07-12 07:35:24,591 - INFO - Project ctest-TestRoutersBasic-82662335 not found, creating it 2025-07-12 07:35:25,069 - INFO - Created Project:ctest-TestRoutersBasic-82662335, ID : f08a9fb5-1311-4f8e-a127-0bce35ff4a2c 2025-07-12 07:35:26,647 - INFO - ================================================================================ 2025-07-12 07:35:26,647 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2025-07-12 07:35:26,647 - 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-07-12 07:35:26,907 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.14': '0'}} with 2025-07-12 07:35:26,907 - INFO - Initial checks done. Running the testcase now 2025-07-12 07:35:26,907 - INFO - 2025-07-12 07:35:27,756 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-82662335 2025-07-12 07:35:27,852 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-82662335 2025-07-12 07:35:28,196 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-82662335', 'default']} 2025-07-12 07:35:28,504 - DEBUG - Response for create_network : {'network': {'id': '2a34d916-e622-42f6-a206-6b9cd2ac6e37', 'name': 'ctest-vn-31233950', 'tenant_id': 'f08a9fb513114f8ea1270bce35ff4a2c', 'project_id': 'f08a9fb513114f8ea1270bce35ff4a2c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-82662335', 'ctest-vn-31233950'], 'port_security_enabled': True, 'description': ''}} 2025-07-12 07:35:28,712 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e26f0e05-a4a9-47c3-a8e3-ce5de57c6fb6', 'name': '', 'tenant_id': 'f08a9fb513114f8ea1270bce35ff4a2c', 'network_id': '2a34d916-e622-42f6-a206-6b9cd2ac6e37', 'ip_version': 4, 'cidr': '109.2.92.128/26', 'allocation_pools': [{'start': '109.2.92.130', 'end': '109.2.92.190'}], 'gateway_ip': '109.2.92.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '109.2.92.130', 'tags': [], 'project_id': 'f08a9fb513114f8ea1270bce35ff4a2c'}} 2025-07-12 07:35:28,732 - INFO - Created VN ctest-vn-31233950 2025-07-12 07:35:28,788 - DEBUG - VN ctest-vn-31233950 UUID is 2a34d916-e622-42f6-a206-6b9cd2ac6e37 2025-07-12 07:35:29,127 - DEBUG - Response for create_network : {'network': {'id': 'ee260f34-04ee-413b-84d8-b826a5a25e48', 'name': 'ctest-ext_vn-65454516', 'tenant_id': 'f08a9fb513114f8ea1270bce35ff4a2c', 'project_id': 'f08a9fb513114f8ea1270bce35ff4a2c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-82662335', 'ctest-ext_vn-65454516'], 'port_security_enabled': True, 'description': ''}} 2025-07-12 07:35:29,311 - DEBUG - Response for create_subnet : {'subnet': {'id': 'dbdee4b9-4bf7-4c60-b921-b80c2f95deca', 'name': '', 'tenant_id': 'f08a9fb513114f8ea1270bce35ff4a2c', 'network_id': 'ee260f34-04ee-413b-84d8-b826a5a25e48', 'ip_version': 4, 'cidr': '107.61.131.64/26', 'allocation_pools': [{'start': '107.61.131.66', 'end': '107.61.131.126'}], 'gateway_ip': '107.61.131.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '107.61.131.66', 'tags': [], 'project_id': 'f08a9fb513114f8ea1270bce35ff4a2c'}} 2025-07-12 07:35:29,330 - INFO - Created VN ctest-ext_vn-65454516 2025-07-12 07:35:29,384 - DEBUG - VN ctest-ext_vn-65454516 UUID is ee260f34-04ee-413b-84d8-b826a5a25e48 2025-07-12 07:35:29,566 - DEBUG - Services list from nova: [, , ] 2025-07-12 07:35:30,681 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3630-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3630-1) 2025-07-12 07:35:31,945 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3630-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3630-1) 2025-07-12 07:35:32,029 - INFO - Setting gateway for router a6d80a66-138d-4810-9970-3c280482eadc to network ee260f34-04ee-413b-84d8-b826a5a25e48 2025-07-12 07:35:32,102 - INFO - Adding interface with subnet_id e26f0e05-a4a9-47c3-a8e3-ce5de57c6fb6, port_id None to router a6d80a66-138d-4810-9970-3c280482eadc 2025-07-12 07:35:32,502 - INFO - Waiting for VM ctest-TestRoutersBasic-82662335-04101234 to be up.. 2025-07-12 07:35:32,713 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-07-12 07:35:37,800 - DEBUG - VM is in ACTIVE state now 2025-07-12 07:35:37,801 - INFO - VM name : ctest-TestRoutersBasic-82662335-04101234 2025-07-12 07:35:37,884 - DEBUG - VM ctest-TestRoutersBasic-82662335-04101234 ID is 220be08a-1729-47fd-bdd1-9e116b81de4b 2025-07-12 07:35:37,905 - DEBUG - VM ctest-TestRoutersBasic-82662335-04101234 launched on Node cn-jenkins-deploy-platform-ansible-os-3630-1 2025-07-12 07:35:37,987 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine/220be08a-1729-47fd-bdd1-9e116b81de4b 2025-07-12 07:35:38,333 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine/220be08a-1729-47fd-bdd1-9e116b81de4b 2025-07-12 07:35:38,371 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine-interface/833b4529-bb3c-4ecf-b2be-c2710dac96b0 2025-07-12 07:35:41,647 - 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 1018ms') 2025-07-12 07:35:41,647 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-82662335-04101234 failed! 2025-07-12 07:35:41,704 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-82662335:ctest-vn-31233950 is 109.2.92.129 and allocation pool is NOT set 2025-07-12 07:35:43,764 - 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.11 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=1.93 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.927/3.520/5.113/1.593 ms') 2025-07-12 07:35:43,765 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-82662335-04101234 passed 2025-07-12 07:35:43,924 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-07-12 07:35:43,924 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-82662335-04101234, IP 109.2.92.131, Port 22 2025-07-12 07:35:43,990 - 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-07-12 07:35:44,079 - DEBUG - VM ctest-TestRoutersBasic-82662335-04101234 is NOT ready for SSH connections, VM status: ACTIVE 2025-07-12 07:35:49,080 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-07-12 07:35:49,080 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-82662335-04101234, IP 109.2.92.131, Port 22 2025-07-12 07:35:49,239 - DEBUG - VM ctest-TestRoutersBasic-82662335-04101234 is ready for SSH connections 2025-07-12 07:35:49,240 - INFO - Waiting for VM ctest-TestRoutersBasic-82662335-16330700 to be up.. 2025-07-12 07:35:49,317 - DEBUG - VM is in ACTIVE state now 2025-07-12 07:35:49,317 - INFO - VM name : ctest-TestRoutersBasic-82662335-16330700 2025-07-12 07:35:49,408 - DEBUG - VM ctest-TestRoutersBasic-82662335-16330700 ID is 998c94a9-c8ed-4d0d-9a89-581f0fb4f6e0 2025-07-12 07:35:49,408 - DEBUG - VM ctest-TestRoutersBasic-82662335-16330700 launched on Node cn-jenkins-deploy-platform-ansible-os-3630-1 2025-07-12 07:35:49,489 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine/998c94a9-c8ed-4d0d-9a89-581f0fb4f6e0 2025-07-12 07:35:49,499 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine-interface/b9b2f47a-d912-4e88-a7d6-8d1260cc6da4 2025-07-12 07:35:50,741 - 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.65 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.399 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.399/2.022/3.646/1.623 ms') 2025-07-12 07:35:50,741 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-82662335-16330700 passed 2025-07-12 07:35:50,896 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-07-12 07:35:50,896 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-82662335-16330700, IP 107.61.131.67, Port 22 2025-07-12 07:35:51,052 - DEBUG - VM ctest-TestRoutersBasic-82662335-16330700 is ready for SSH connections 2025-07-12 07:35:51,052 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-07-12 07:35:51,052 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 107.61.131.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.50, gateway password: c0ntrail123 2025-07-12 07:35:51,052 - DEBUG - ping -s 56 -c 3 -W 1 107.61.131.67 2025-07-12 07:35:55,176 - DEBUG - PING 107.61.131.67 (107.61.131.67): 56 data bytes 64 bytes from 107.61.131.67: seq=0 ttl=62 time=7.314 ms 64 bytes from 107.61.131.67: seq=1 ttl=62 time=0.892 ms 64 bytes from 107.61.131.67: seq=2 ttl=62 time=0.929 ms --- 107.61.131.67 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.892/3.045/7.314 ms 2025-07-12 07:35:55,176 - INFO - Ping to IP 107.61.131.67 from VM ctest-TestRoutersBasic-82662335-04101234 passed 2025-07-12 07:35:55,176 - INFO - Deleting interface with subnet_id e26f0e05-a4a9-47c3-a8e3-ce5de57c6fb6, port_id None from router a6d80a66-138d-4810-9970-3c280482eadc 2025-07-12 07:35:55,383 - INFO - Deleting VM ctest-TestRoutersBasic-82662335-16330700 2025-07-12 07:35:55,463 - INFO - Deleting VM ctest-TestRoutersBasic-82662335-04101234 2025-07-12 07:35:55,567 - INFO - Deleting VN ctest-ext_vn-65454516 2025-07-12 07:35:55,664 - DEBUG - VN ee260f34-04ee-413b-84d8-b826a5a25e48 still in use: Unable to complete operation on network ee260f34-04ee-413b-84d8-b826a5a25e48. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-b5779aa4-1ec5-4e8d-9338-d3c98414981b'] 2025-07-12 07:35:55,664 - WARNING - Deleting VN ctest-ext_vn-65454516 failed..Will retry 2025-07-12 07:35:57,780 - DEBUG - Response for deleting network () 2025-07-12 07:35:57,780 - INFO - Deleting VN ctest-vn-31233950 2025-07-12 07:35:57,905 - DEBUG - Response for deleting network () 2025-07-12 07:35:58,163 - DEBUG - No XMPP flaps were noticed during the test 2025-07-12 07:35:58,163 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:32] 2025-07-12 07:35:58,163 - INFO - -------------------------------------------------------------------------------- 2025-07-12 07:35:58,923 - INFO - Deleted project: ctest-TestRoutersBasic-82662335, ID : f08a9fb5-1311-4f8e-a127-0bce35ff4a2c