2025-12-03 20:00:50,896 - INFO - Domain Default found not creating 2025-12-03 20:00:51,118 - INFO - Project ctest-TestRoutersBasic-24709297 not found, creating it 2025-12-03 20:00:51,633 - INFO - Created Project:ctest-TestRoutersBasic-24709297, ID : bcc40222-5c63-4217-9c42-10fdf1b1b582 2025-12-03 20:00:53,703 - INFO - ================================================================================ 2025-12-03 20:00:53,704 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2025-12-03 20:00:53,704 - 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-12-03 20:00:54,019 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.254': '0'}} with 2025-12-03 20:00:54,019 - INFO - Initial checks done. Running the testcase now 2025-12-03 20:00:54,019 - INFO - 2025-12-03 20:00:54,914 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-24709297 2025-12-03 20:00:55,033 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-24709297 2025-12-03 20:00:55,448 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-24709297', 'default']} 2025-12-03 20:00:55,874 - DEBUG - Response for create_network : {'network': {'id': '52bf00a7-d8af-4c9a-b6d5-452a36c274d4', 'name': 'ctest-vn-40205329', 'tenant_id': 'bcc402225c6342179c4210fdf1b1b582', 'project_id': 'bcc402225c6342179c4210fdf1b1b582', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-24709297', 'ctest-vn-40205329'], 'port_security_enabled': True, 'description': ''}} 2025-12-03 20:00:56,132 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd7b0c0c1-7fe2-4968-836b-82fc870930f1', 'name': '', 'tenant_id': 'bcc402225c6342179c4210fdf1b1b582', 'network_id': '52bf00a7-d8af-4c9a-b6d5-452a36c274d4', 'ip_version': 4, 'cidr': '116.29.86.64/26', 'allocation_pools': [{'start': '116.29.86.66', 'end': '116.29.86.126'}], 'gateway_ip': '116.29.86.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '116.29.86.66', 'tags': [], 'project_id': 'bcc402225c6342179c4210fdf1b1b582'}} 2025-12-03 20:00:56,160 - INFO - Created VN ctest-vn-40205329 2025-12-03 20:00:56,224 - DEBUG - VN ctest-vn-40205329 UUID is 52bf00a7-d8af-4c9a-b6d5-452a36c274d4 2025-12-03 20:00:56,722 - DEBUG - Response for create_network : {'network': {'id': '2a951464-47ae-46e8-91a8-acc6ba2b3e14', 'name': 'ctest-ext_vn-18045652', 'tenant_id': 'bcc402225c6342179c4210fdf1b1b582', 'project_id': 'bcc402225c6342179c4210fdf1b1b582', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-24709297', 'ctest-ext_vn-18045652'], 'port_security_enabled': True, 'description': ''}} 2025-12-03 20:00:56,979 - DEBUG - Response for create_subnet : {'subnet': {'id': 'aa3fa6d3-bf17-4035-811d-40e5c2dbc2c6', 'name': '', 'tenant_id': 'bcc402225c6342179c4210fdf1b1b582', 'network_id': '2a951464-47ae-46e8-91a8-acc6ba2b3e14', 'ip_version': 4, 'cidr': '135.13.145.192/26', 'allocation_pools': [{'start': '135.13.145.194', 'end': '135.13.145.254'}], 'gateway_ip': '135.13.145.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '135.13.145.194', 'tags': [], 'project_id': 'bcc402225c6342179c4210fdf1b1b582'}} 2025-12-03 20:00:57,005 - INFO - Created VN ctest-ext_vn-18045652 2025-12-03 20:00:57,064 - DEBUG - VN ctest-ext_vn-18045652 UUID is 2a951464-47ae-46e8-91a8-acc6ba2b3e14 2025-12-03 20:00:57,384 - DEBUG - Services list from nova: [, , ] 2025-12-03 20:00:58,914 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-4835-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-4835-1) 2025-12-03 20:01:00,309 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-4835-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-4835-1) 2025-12-03 20:01:00,383 - INFO - Setting gateway for router 31e54f5d-ab1c-49b1-94f4-734e2351b2f2 to network 2a951464-47ae-46e8-91a8-acc6ba2b3e14 2025-12-03 20:01:00,447 - INFO - Adding interface with subnet_id d7b0c0c1-7fe2-4968-836b-82fc870930f1, port_id None to router 31e54f5d-ab1c-49b1-94f4-734e2351b2f2 2025-12-03 20:01:00,769 - INFO - Waiting for VM ctest-TestRoutersBasic-24709297-10841729 to be up.. 2025-12-03 20:01:00,875 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-12-03 20:01:06,013 - DEBUG - VM is in ACTIVE state now 2025-12-03 20:01:06,013 - INFO - VM name : ctest-TestRoutersBasic-24709297-10841729 2025-12-03 20:01:06,118 - DEBUG - VM ctest-TestRoutersBasic-24709297-10841729 ID is 25176e57-4642-43e0-8046-51abfaccb551 2025-12-03 20:01:06,149 - DEBUG - VM ctest-TestRoutersBasic-24709297-10841729 launched on Node cn-jenkins-deploy-platform-ansible-os-4835-1 2025-12-03 20:01:06,273 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine/25176e57-4642-43e0-8046-51abfaccb551 2025-12-03 20:01:06,587 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine/25176e57-4642-43e0-8046-51abfaccb551 2025-12-03 20:01:06,647 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine-interface/85b0bfb6-0834-4501-8967-5a8fa9ec56eb 2025-12-03 20:01:09,915 - 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 1007ms') 2025-12-03 20:01:09,915 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-24709297-10841729 failed! 2025-12-03 20:01:09,968 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-24709297:ctest-vn-40205329 is 116.29.86.65 and allocation pool is NOT set 2025-12-03 20:01:12,038 - 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.34 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=2.97 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.974/4.158/5.343/1.184 ms') 2025-12-03 20:01:12,038 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-24709297-10841729 passed 2025-12-03 20:01:12,208 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-12-03 20:01:12,208 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-24709297-10841729, IP 116.29.86.67, Port 22 2025-12-03 20:01:12,284 - 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-12-03 20:01:12,389 - DEBUG - VM ctest-TestRoutersBasic-24709297-10841729 is NOT ready for SSH connections, VM status: ACTIVE 2025-12-03 20:01:17,390 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-12-03 20:01:17,390 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-24709297-10841729, IP 116.29.86.67, Port 22 2025-12-03 20:01:17,581 - DEBUG - VM ctest-TestRoutersBasic-24709297-10841729 is ready for SSH connections 2025-12-03 20:01:17,582 - INFO - Waiting for VM ctest-TestRoutersBasic-24709297-51534660 to be up.. 2025-12-03 20:01:17,711 - DEBUG - VM is in ACTIVE state now 2025-12-03 20:01:17,711 - INFO - VM name : ctest-TestRoutersBasic-24709297-51534660 2025-12-03 20:01:17,836 - DEBUG - VM ctest-TestRoutersBasic-24709297-51534660 ID is d22ee4b4-ba3d-4db3-b26e-5d0d16f5ce4a 2025-12-03 20:01:17,837 - DEBUG - VM ctest-TestRoutersBasic-24709297-51534660 launched on Node cn-jenkins-deploy-platform-ansible-os-4835-1 2025-12-03 20:01:17,943 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine/d22ee4b4-ba3d-4db3-b26e-5d0d16f5ce4a 2025-12-03 20:01:17,956 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine-interface/7fc3fa94-4487-43ae-b5fa-e7eadc2e5bbc 2025-12-03 20:01:19,226 - 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.08 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=2.78 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 = 2.779/4.431/6.084/1.652 ms') 2025-12-03 20:01:19,227 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-24709297-51534660 passed 2025-12-03 20:01:19,408 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-12-03 20:01:19,409 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-24709297-51534660, IP 135.13.145.195, Port 22 2025-12-03 20:01:19,609 - DEBUG - VM ctest-TestRoutersBasic-24709297-51534660 is ready for SSH connections 2025-12-03 20:01:19,609 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-12-03 20:01:19,609 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 135.13.145.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.38, gateway password: c0ntrail123 2025-12-03 20:01:19,609 - DEBUG - ping -s 56 -c 3 -W 1 135.13.145.195 2025-12-03 20:01:23,662 - DEBUG - PING 135.13.145.195 (135.13.145.195): 56 data bytes 64 bytes from 135.13.145.195: seq=0 ttl=62 time=10.223 ms 64 bytes from 135.13.145.195: seq=1 ttl=62 time=2.740 ms 64 bytes from 135.13.145.195: seq=2 ttl=62 time=2.280 ms --- 135.13.145.195 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 2.280/5.081/10.223 ms 2025-12-03 20:01:23,662 - INFO - Ping to IP 135.13.145.195 from VM ctest-TestRoutersBasic-24709297-10841729 passed 2025-12-03 20:01:23,662 - INFO - Deleting interface with subnet_id d7b0c0c1-7fe2-4968-836b-82fc870930f1, port_id None from router 31e54f5d-ab1c-49b1-94f4-734e2351b2f2 2025-12-03 20:01:23,958 - INFO - Deleting VM ctest-TestRoutersBasic-24709297-51534660 2025-12-03 20:01:24,051 - INFO - Deleting VM ctest-TestRoutersBasic-24709297-10841729 2025-12-03 20:01:24,144 - INFO - Deleting VN ctest-ext_vn-18045652 2025-12-03 20:01:24,254 - DEBUG - VN 2a951464-47ae-46e8-91a8-acc6ba2b3e14 still in use: Unable to complete operation on network 2a951464-47ae-46e8-91a8-acc6ba2b3e14. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-04fc4835-940c-4630-91af-be86ff50490f'] 2025-12-03 20:01:24,254 - WARNING - Deleting VN ctest-ext_vn-18045652 failed..Will retry 2025-12-03 20:01:26,476 - DEBUG - Response for deleting network () 2025-12-03 20:01:26,476 - INFO - Deleting VN ctest-vn-40205329 2025-12-03 20:01:26,611 - DEBUG - Response for deleting network () 2025-12-03 20:01:26,923 - DEBUG - No XMPP flaps were noticed during the test
2025-12-03 20:01:26,924 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:33]
2025-12-03 20:01:26,924 - INFO - -------------------------------------------------------------------------------- 2025-12-03 20:01:27,813 - INFO - Deleted project: ctest-TestRoutersBasic-24709297, ID : bcc40222-5c63-4217-9c42-10fdf1b1b582