2025-04-21 02:14:25,347 - INFO - Domain Default found not creating 2025-04-21 02:14:25,499 - INFO - Project ctest-TestRoutersBasic-00901966 not found, creating it 2025-04-21 02:14:26,001 - INFO - Created Project:ctest-TestRoutersBasic-00901966, ID : cf725693-c2e4-487a-aef3-12ba18e3838f 2025-04-21 02:14:27,539 - INFO - ================================================================================ 2025-04-21 02:14:27,540 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2025-04-21 02:14:27,540 - 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-04-21 02:14:27,800 - DEBUG - Nothing to compare xmpp stats {'10.0.0.19': {'10.20.0.254': '0'}} with 2025-04-21 02:14:27,801 - INFO - Initial checks done. Running the testcase now 2025-04-21 02:14:27,801 - INFO - 2025-04-21 02:14:28,536 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-00901966 2025-04-21 02:14:28,639 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-00901966 2025-04-21 02:14:28,975 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-00901966', 'default']} 2025-04-21 02:14:29,289 - DEBUG - Response for create_network : {'network': {'id': 'bbb82dda-47ed-4873-903e-5a94e33bfed9', 'name': 'ctest-vn-52447679', 'tenant_id': 'cf725693c2e4487aaef312ba18e3838f', 'project_id': 'cf725693c2e4487aaef312ba18e3838f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-00901966', 'ctest-vn-52447679'], 'port_security_enabled': True, 'description': ''}} 2025-04-21 02:14:29,511 - DEBUG - Response for create_subnet : {'subnet': {'id': '35cd5f67-e90f-497e-b254-9322c56f1df5', 'name': '', 'tenant_id': 'cf725693c2e4487aaef312ba18e3838f', 'network_id': 'bbb82dda-47ed-4873-903e-5a94e33bfed9', 'ip_version': 4, 'cidr': '156.130.226.128/26', 'allocation_pools': [{'start': '156.130.226.130', 'end': '156.130.226.190'}], 'gateway_ip': '156.130.226.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '156.130.226.130', 'tags': [], 'project_id': 'cf725693c2e4487aaef312ba18e3838f'}} 2025-04-21 02:14:29,533 - INFO - Created VN ctest-vn-52447679 2025-04-21 02:14:29,587 - DEBUG - VN ctest-vn-52447679 UUID is bbb82dda-47ed-4873-903e-5a94e33bfed9 2025-04-21 02:14:30,065 - DEBUG - Response for create_network : {'network': {'id': 'af9129a4-1da0-4bb7-9042-2d82bdf5f30c', 'name': 'ctest-ext_vn-56916775', 'tenant_id': 'cf725693c2e4487aaef312ba18e3838f', 'project_id': 'cf725693c2e4487aaef312ba18e3838f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-00901966', 'ctest-ext_vn-56916775'], 'port_security_enabled': True, 'description': ''}} 2025-04-21 02:14:30,269 - DEBUG - Response for create_subnet : {'subnet': {'id': '2a223251-961b-40f3-a3ea-f6f16ccccf1e', 'name': '', 'tenant_id': 'cf725693c2e4487aaef312ba18e3838f', 'network_id': 'af9129a4-1da0-4bb7-9042-2d82bdf5f30c', 'ip_version': 4, 'cidr': '174.118.16.0/26', 'allocation_pools': [{'start': '174.118.16.2', 'end': '174.118.16.62'}], 'gateway_ip': '174.118.16.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '174.118.16.2', 'tags': [], 'project_id': 'cf725693c2e4487aaef312ba18e3838f'}} 2025-04-21 02:14:30,292 - INFO - Created VN ctest-ext_vn-56916775 2025-04-21 02:14:30,347 - DEBUG - VN ctest-ext_vn-56916775 UUID is af9129a4-1da0-4bb7-9042-2d82bdf5f30c 2025-04-21 02:14:30,524 - DEBUG - Services list from nova: [, , ] 2025-04-21 02:14:31,568 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3145-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3145-1) 2025-04-21 02:14:32,839 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3145-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3145-1) 2025-04-21 02:14:32,915 - INFO - Setting gateway for router d92a855e-e184-4ab1-bbca-c54b2fe9e461 to network af9129a4-1da0-4bb7-9042-2d82bdf5f30c 2025-04-21 02:14:33,031 - INFO - Adding interface with subnet_id 35cd5f67-e90f-497e-b254-9322c56f1df5, port_id None to router d92a855e-e184-4ab1-bbca-c54b2fe9e461 2025-04-21 02:14:33,479 - INFO - Waiting for VM ctest-TestRoutersBasic-00901966-73190567 to be up.. 2025-04-21 02:14:33,694 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-04-21 02:14:38,789 - DEBUG - VM is in ACTIVE state now 2025-04-21 02:14:38,789 - INFO - VM name : ctest-TestRoutersBasic-00901966-73190567 2025-04-21 02:14:38,872 - DEBUG - VM ctest-TestRoutersBasic-00901966-73190567 ID is 8daf9213-3b74-4252-ab92-956842d07f53 2025-04-21 02:14:38,897 - DEBUG - VM ctest-TestRoutersBasic-00901966-73190567 launched on Node cn-jenkins-deploy-platform-ansible-os-3145-1 2025-04-21 02:14:38,988 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-machine/8daf9213-3b74-4252-ab92-956842d07f53 2025-04-21 02:14:39,300 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-machine/8daf9213-3b74-4252-ab92-956842d07f53 2025-04-21 02:14:39,337 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-machine-interface/ba469530-0484-4965-b6cf-d42f16abc765 2025-04-21 02:14:42,617 - 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 1023ms') 2025-04-21 02:14:42,617 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-00901966-73190567 failed! 2025-04-21 02:14:42,675 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-00901966:ctest-vn-52447679 is 156.130.226.129 and allocation pool is NOT set 2025-04-21 02:14:44,747 - 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.76 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.638 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.638/2.198/3.759/1.560 ms') 2025-04-21 02:14:44,747 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-00901966-73190567 passed 2025-04-21 02:14:44,863 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-21 02:14:44,863 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-00901966-73190567, IP 156.130.226.131, Port 22 2025-04-21 02:14:44,929 - 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-04-21 02:14:45,014 - DEBUG - VM ctest-TestRoutersBasic-00901966-73190567 is NOT ready for SSH connections, VM status: ACTIVE 2025-04-21 02:14:50,015 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-21 02:14:50,015 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-00901966-73190567, IP 156.130.226.131, Port 22 2025-04-21 02:14:50,171 - DEBUG - VM ctest-TestRoutersBasic-00901966-73190567 is ready for SSH connections 2025-04-21 02:14:50,171 - INFO - Waiting for VM ctest-TestRoutersBasic-00901966-05211773 to be up.. 2025-04-21 02:14:50,255 - DEBUG - VM is in ACTIVE state now 2025-04-21 02:14:50,255 - INFO - VM name : ctest-TestRoutersBasic-00901966-05211773 2025-04-21 02:14:50,332 - DEBUG - VM ctest-TestRoutersBasic-00901966-05211773 ID is 3e83fa2f-39fa-47c7-b849-b592715a7fce 2025-04-21 02:14:50,332 - DEBUG - VM ctest-TestRoutersBasic-00901966-05211773 launched on Node cn-jenkins-deploy-platform-ansible-os-3145-1 2025-04-21 02:14:50,412 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-machine/3e83fa2f-39fa-47c7-b849-b592715a7fce 2025-04-21 02:14:50,421 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-machine-interface/a08c762a-0e84-4482-825d-d30cad659396 2025-04-21 02:14:51,674 - 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=5.10 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.351 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.351/2.724/5.097/2.373 ms') 2025-04-21 02:14:51,675 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-00901966-05211773 passed 2025-04-21 02:14:51,828 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-21 02:14:51,828 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-00901966-05211773, IP 174.118.16.3, Port 22 2025-04-21 02:14:51,982 - DEBUG - VM ctest-TestRoutersBasic-00901966-05211773 is ready for SSH connections 2025-04-21 02:14:51,983 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-21 02:14:51,983 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 174.118.16.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.19, gateway password: c0ntrail123 2025-04-21 02:14:51,983 - DEBUG - ping -s 56 -c 3 -W 1 174.118.16.3 2025-04-21 02:14:55,988 - DEBUG - PING 174.118.16.3 (174.118.16.3): 56 data bytes 64 bytes from 174.118.16.3: seq=0 ttl=62 time=5.390 ms 64 bytes from 174.118.16.3: seq=1 ttl=62 time=1.191 ms 64 bytes from 174.118.16.3: seq=2 ttl=62 time=1.203 ms --- 174.118.16.3 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.191/2.594/5.390 ms 2025-04-21 02:14:55,988 - INFO - Ping to IP 174.118.16.3 from VM ctest-TestRoutersBasic-00901966-73190567 passed 2025-04-21 02:14:55,989 - INFO - Deleting interface with subnet_id 35cd5f67-e90f-497e-b254-9322c56f1df5, port_id None from router d92a855e-e184-4ab1-bbca-c54b2fe9e461 2025-04-21 02:14:56,214 - INFO - Deleting VM ctest-TestRoutersBasic-00901966-05211773 2025-04-21 02:14:56,292 - INFO - Deleting VM ctest-TestRoutersBasic-00901966-73190567 2025-04-21 02:14:56,389 - INFO - Deleting VN ctest-ext_vn-56916775 2025-04-21 02:14:56,469 - DEBUG - VN af9129a4-1da0-4bb7-9042-2d82bdf5f30c still in use: Unable to complete operation on network af9129a4-1da0-4bb7-9042-2d82bdf5f30c. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-851c7009-0787-4909-8922-9e608510840b'] 2025-04-21 02:14:56,469 - WARNING - Deleting VN ctest-ext_vn-56916775 failed..Will retry 2025-04-21 02:14:58,601 - DEBUG - Response for deleting network () 2025-04-21 02:14:58,601 - INFO - Deleting VN ctest-vn-52447679 2025-04-21 02:14:58,731 - DEBUG - Response for deleting network () 2025-04-21 02:14:59,000 - DEBUG - No XMPP flaps were noticed during the test
2025-04-21 02:14:59,000 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:32]
2025-04-21 02:14:59,000 - INFO - -------------------------------------------------------------------------------- 2025-04-21 02:14:59,710 - INFO - Deleted project: ctest-TestRoutersBasic-00901966, ID : cf725693-c2e4-487a-aef3-12ba18e3838f