2025-06-25 07:40:36,936 - INFO - Domain Default found not creating 2025-06-25 07:40:37,112 - INFO - Project ctest-TestRoutersBasic-03943672 not found, creating it 2025-06-25 07:40:37,645 - INFO - Created Project:ctest-TestRoutersBasic-03943672, ID : 0f6a48c6-1fbb-4830-a595-86d943f8615a 2025-06-25 07:40:39,274 - INFO - ================================================================================ 2025-06-25 07:40:39,275 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2025-06-25 07:40:39,275 - 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-25 07:40:39,536 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.14': '0'}} with 2025-06-25 07:40:39,537 - INFO - Initial checks done. Running the testcase now 2025-06-25 07:40:39,537 - INFO - 2025-06-25 07:40:40,350 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-03943672 2025-06-25 07:40:40,456 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-03943672 2025-06-25 07:40:40,808 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-03943672', 'default']} 2025-06-25 07:40:41,142 - DEBUG - Response for create_network : {'network': {'id': 'dd7ec120-5bc1-4467-89d6-aad6ebf83ca9', 'name': 'ctest-vn-64511549', 'tenant_id': '0f6a48c61fbb4830a59586d943f8615a', 'project_id': '0f6a48c61fbb4830a59586d943f8615a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-03943672', 'ctest-vn-64511549'], 'port_security_enabled': True, 'description': ''}} 2025-06-25 07:40:41,345 - DEBUG - Response for create_subnet : {'subnet': {'id': '9f70d38a-975e-45ba-bc0a-ad777fa25b6f', 'name': '', 'tenant_id': '0f6a48c61fbb4830a59586d943f8615a', 'network_id': 'dd7ec120-5bc1-4467-89d6-aad6ebf83ca9', 'ip_version': 4, 'cidr': '24.133.49.0/26', 'allocation_pools': [{'start': '24.133.49.2', 'end': '24.133.49.62'}], 'gateway_ip': '24.133.49.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '24.133.49.2', 'tags': [], 'project_id': '0f6a48c61fbb4830a59586d943f8615a'}} 2025-06-25 07:40:41,367 - INFO - Created VN ctest-vn-64511549 2025-06-25 07:40:41,420 - DEBUG - VN ctest-vn-64511549 UUID is dd7ec120-5bc1-4467-89d6-aad6ebf83ca9 2025-06-25 07:40:41,811 - DEBUG - Response for create_network : {'network': {'id': '1cfce82e-6f62-4c37-9856-1e58eb165d9a', 'name': 'ctest-ext_vn-01084546', 'tenant_id': '0f6a48c61fbb4830a59586d943f8615a', 'project_id': '0f6a48c61fbb4830a59586d943f8615a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-03943672', 'ctest-ext_vn-01084546'], 'port_security_enabled': True, 'description': ''}} 2025-06-25 07:40:42,000 - DEBUG - Response for create_subnet : {'subnet': {'id': '65b40cae-62e8-4c07-a5cd-eb504570bede', 'name': '', 'tenant_id': '0f6a48c61fbb4830a59586d943f8615a', 'network_id': '1cfce82e-6f62-4c37-9856-1e58eb165d9a', 'ip_version': 4, 'cidr': '140.202.160.128/26', 'allocation_pools': [{'start': '140.202.160.130', 'end': '140.202.160.190'}], 'gateway_ip': '140.202.160.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '140.202.160.130', 'tags': [], 'project_id': '0f6a48c61fbb4830a59586d943f8615a'}} 2025-06-25 07:40:42,024 - INFO - Created VN ctest-ext_vn-01084546 2025-06-25 07:40:42,080 - DEBUG - VN ctest-ext_vn-01084546 UUID is 1cfce82e-6f62-4c37-9856-1e58eb165d9a 2025-06-25 07:40:42,282 - DEBUG - Services list from nova: [, , ] 2025-06-25 07:40:43,513 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3545-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3545-1) 2025-06-25 07:40:44,914 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3545-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3545-1) 2025-06-25 07:40:45,040 - INFO - Setting gateway for router 05db8301-e4f5-47ec-96c7-a708cee1b511 to network 1cfce82e-6f62-4c37-9856-1e58eb165d9a 2025-06-25 07:40:45,122 - INFO - Adding interface with subnet_id 9f70d38a-975e-45ba-bc0a-ad777fa25b6f, port_id None to router 05db8301-e4f5-47ec-96c7-a708cee1b511 2025-06-25 07:40:45,657 - INFO - Waiting for VM ctest-TestRoutersBasic-03943672-54572716 to be up.. 2025-06-25 07:40:45,929 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-06-25 07:40:51,036 - DEBUG - VM is in ACTIVE state now 2025-06-25 07:40:51,036 - INFO - VM name : ctest-TestRoutersBasic-03943672-54572716 2025-06-25 07:40:51,139 - DEBUG - VM ctest-TestRoutersBasic-03943672-54572716 ID is 929a4a1b-fc64-4cf6-a2f5-c44cfe88eca1 2025-06-25 07:40:51,161 - DEBUG - VM ctest-TestRoutersBasic-03943672-54572716 launched on Node cn-jenkins-deploy-platform-ansible-os-3545-1 2025-06-25 07:40:51,257 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine/929a4a1b-fc64-4cf6-a2f5-c44cfe88eca1 2025-06-25 07:40:51,602 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine/929a4a1b-fc64-4cf6-a2f5-c44cfe88eca1 2025-06-25 07:40:51,638 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine-interface/c01c1d0e-1a8a-472c-9674-da0374662837 2025-06-25 07:40:54,930 - 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 1014ms') 2025-06-25 07:40:54,931 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-03943672-54572716 failed! 2025-06-25 07:40:54,988 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-03943672:ctest-vn-64511549 is 24.133.49.1 and allocation pool is NOT set 2025-06-25 07:40:57,053 - 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=6.48 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=2.45 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 = 2.452/4.464/6.476/2.012 ms') 2025-06-25 07:40:57,053 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-03943672-54572716 passed 2025-06-25 07:40:57,209 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-25 07:40:57,209 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-03943672-54572716, IP 24.133.49.3, Port 22 2025-06-25 07:40:57,275 - 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-25 07:40:57,382 - DEBUG - VM ctest-TestRoutersBasic-03943672-54572716 is NOT ready for SSH connections, VM status: ACTIVE 2025-06-25 07:41:02,383 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-25 07:41:02,383 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-03943672-54572716, IP 24.133.49.3, Port 22 2025-06-25 07:41:02,550 - DEBUG - VM ctest-TestRoutersBasic-03943672-54572716 is ready for SSH connections 2025-06-25 07:41:02,551 - INFO - Waiting for VM ctest-TestRoutersBasic-03943672-73124643 to be up.. 2025-06-25 07:41:02,638 - DEBUG - VM is in ACTIVE state now 2025-06-25 07:41:02,639 - INFO - VM name : ctest-TestRoutersBasic-03943672-73124643 2025-06-25 07:41:02,726 - DEBUG - VM ctest-TestRoutersBasic-03943672-73124643 ID is d799f16e-c4e0-4f6e-adc0-ae0dcac28c8f 2025-06-25 07:41:02,726 - DEBUG - VM ctest-TestRoutersBasic-03943672-73124643 launched on Node cn-jenkins-deploy-platform-ansible-os-3545-1 2025-06-25 07:41:02,818 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine/d799f16e-c4e0-4f6e-adc0-ae0dcac28c8f 2025-06-25 07:41:02,830 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine-interface/d32cd350-f0ed-4270-8c12-d7daf0514f23 2025-06-25 07:41:04,084 - 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.08 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.550 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.550/1.817/3.084/1.267 ms') 2025-06-25 07:41:04,084 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-03943672-73124643 passed 2025-06-25 07:41:04,260 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-25 07:41:04,261 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-03943672-73124643, IP 140.202.160.131, Port 22 2025-06-25 07:41:04,416 - DEBUG - VM ctest-TestRoutersBasic-03943672-73124643 is ready for SSH connections 2025-06-25 07:41:04,416 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-25 07:41:04,416 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 140.202.160.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.38, gateway password: c0ntrail123 2025-06-25 07:41:04,416 - DEBUG - ping -s 56 -c 3 -W 1 140.202.160.131 2025-06-25 07:41:08,181 - DEBUG - PING 140.202.160.131 (140.202.160.131): 56 data bytes 64 bytes from 140.202.160.131: seq=0 ttl=62 time=6.401 ms 64 bytes from 140.202.160.131: seq=1 ttl=62 time=1.118 ms 64 bytes from 140.202.160.131: seq=2 ttl=62 time=1.486 ms --- 140.202.160.131 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.118/3.001/6.401 ms 2025-06-25 07:41:08,182 - INFO - Ping to IP 140.202.160.131 from VM ctest-TestRoutersBasic-03943672-54572716 passed 2025-06-25 07:41:08,182 - INFO - Deleting interface with subnet_id 9f70d38a-975e-45ba-bc0a-ad777fa25b6f, port_id None from router 05db8301-e4f5-47ec-96c7-a708cee1b511 2025-06-25 07:41:08,416 - INFO - Deleting VM ctest-TestRoutersBasic-03943672-73124643 2025-06-25 07:41:08,496 - INFO - Deleting VM ctest-TestRoutersBasic-03943672-54572716 2025-06-25 07:41:08,590 - INFO - Deleting VN ctest-ext_vn-01084546 2025-06-25 07:41:08,671 - DEBUG - VN 1cfce82e-6f62-4c37-9856-1e58eb165d9a still in use: Unable to complete operation on network 1cfce82e-6f62-4c37-9856-1e58eb165d9a. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-bcc21277-baf5-4b0a-ba51-35320092f47e'] 2025-06-25 07:41:08,671 - WARNING - Deleting VN ctest-ext_vn-01084546 failed..Will retry 2025-06-25 07:41:10,797 - DEBUG - Response for deleting network () 2025-06-25 07:41:10,798 - INFO - Deleting VN ctest-vn-64511549 2025-06-25 07:41:10,932 - DEBUG - Response for deleting network () 2025-06-25 07:41:11,207 - DEBUG - No XMPP flaps were noticed during the test 2025-06-25 07:41:11,207 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:32] 2025-06-25 07:41:11,207 - INFO - -------------------------------------------------------------------------------- 2025-06-25 07:41:11,967 - INFO - Deleted project: ctest-TestRoutersBasic-03943672, ID : 0f6a48c6-1fbb-4830-a595-86d943f8615a