2024-11-07 16:48:09,976 - INFO - Domain Default found not creating 2024-11-07 16:48:10,179 - INFO - Project ctest-TestRoutersBasic-90136596 not found, creating it 2024-11-07 16:48:10,697 - INFO - Created Project:ctest-TestRoutersBasic-90136596, ID : 5043912f-0af9-41de-86ba-57b77d9282f6 2024-11-07 16:48:12,363 - INFO - ================================================================================ 2024-11-07 16:48:12,363 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2024-11-07 16:48:12,363 - 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 2024-11-07 16:48:12,626 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.5': '0'}} with 2024-11-07 16:48:12,627 - INFO - Initial checks done. Running the testcase now 2024-11-07 16:48:12,627 - INFO - 2024-11-07 16:48:13,465 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-90136596 2024-11-07 16:48:13,576 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-90136596 2024-11-07 16:48:13,928 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-90136596', 'default']} 2024-11-07 16:48:14,270 - DEBUG - Response for create_network : {'network': {'id': 'aa9079d0-6f6f-4249-b6ed-1ce219e72a08', 'name': 'ctest-vn-88480582', 'tenant_id': '5043912f0af941de86ba57b77d9282f6', 'project_id': '5043912f0af941de86ba57b77d9282f6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-90136596', 'ctest-vn-88480582'], 'port_security_enabled': True, 'description': ''}} 2024-11-07 16:48:14,481 - DEBUG - Response for create_subnet : {'subnet': {'id': '48d84b53-b412-45b2-a2bd-16abffabb8a2', 'name': '', 'tenant_id': '5043912f0af941de86ba57b77d9282f6', 'network_id': 'aa9079d0-6f6f-4249-b6ed-1ce219e72a08', 'ip_version': 4, 'cidr': '195.26.115.0/26', 'allocation_pools': [{'start': '195.26.115.2', 'end': '195.26.115.62'}], 'gateway_ip': '195.26.115.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '195.26.115.2', 'tags': [], 'project_id': '5043912f0af941de86ba57b77d9282f6'}} 2024-11-07 16:48:14,506 - INFO - Created VN ctest-vn-88480582 2024-11-07 16:48:14,572 - DEBUG - VN ctest-vn-88480582 UUID is aa9079d0-6f6f-4249-b6ed-1ce219e72a08 2024-11-07 16:48:14,959 - DEBUG - Response for create_network : {'network': {'id': '5cfb2f7a-10ff-4a6c-b1a9-2caa85c7ed8b', 'name': 'ctest-ext_vn-91380249', 'tenant_id': '5043912f0af941de86ba57b77d9282f6', 'project_id': '5043912f0af941de86ba57b77d9282f6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-90136596', 'ctest-ext_vn-91380249'], 'port_security_enabled': True, 'description': ''}} 2024-11-07 16:48:15,209 - DEBUG - Response for create_subnet : {'subnet': {'id': '8da3c2bb-8ab8-4b11-beb7-ddf8d4764205', 'name': '', 'tenant_id': '5043912f0af941de86ba57b77d9282f6', 'network_id': '5cfb2f7a-10ff-4a6c-b1a9-2caa85c7ed8b', 'ip_version': 4, 'cidr': '200.37.124.192/26', 'allocation_pools': [{'start': '200.37.124.194', 'end': '200.37.124.254'}], 'gateway_ip': '200.37.124.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '200.37.124.194', 'tags': [], 'project_id': '5043912f0af941de86ba57b77d9282f6'}} 2024-11-07 16:48:15,230 - INFO - Created VN ctest-ext_vn-91380249 2024-11-07 16:48:15,288 - DEBUG - VN ctest-ext_vn-91380249 UUID is 5cfb2f7a-10ff-4a6c-b1a9-2caa85c7ed8b 2024-11-07 16:48:15,477 - DEBUG - Services list from nova: [, , ] 2024-11-07 16:48:16,889 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2220-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2220-1) 2024-11-07 16:48:18,252 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2220-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2220-1) 2024-11-07 16:48:18,338 - INFO - Setting gateway for router cc11b72c-b450-4013-a1a2-1644edce2e1b to network 5cfb2f7a-10ff-4a6c-b1a9-2caa85c7ed8b 2024-11-07 16:48:18,403 - INFO - Adding interface with subnet_id 48d84b53-b412-45b2-a2bd-16abffabb8a2, port_id None to router cc11b72c-b450-4013-a1a2-1644edce2e1b 2024-11-07 16:48:18,982 - INFO - Waiting for VM ctest-TestRoutersBasic-90136596-93952966 to be up.. 2024-11-07 16:48:19,176 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-11-07 16:48:24,305 - DEBUG - VM is in ACTIVE state now 2024-11-07 16:48:24,305 - INFO - VM name : ctest-TestRoutersBasic-90136596-93952966 2024-11-07 16:48:24,434 - DEBUG - VM ctest-TestRoutersBasic-90136596-93952966 ID is 9d34121c-b8ba-4193-a6d7-79be3c74c04f 2024-11-07 16:48:24,461 - DEBUG - VM ctest-TestRoutersBasic-90136596-93952966 launched on Node cn-jenkins-deploy-platform-ansible-os-2220-1 2024-11-07 16:48:24,557 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine/9d34121c-b8ba-4193-a6d7-79be3c74c04f 2024-11-07 16:48:24,950 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine/9d34121c-b8ba-4193-a6d7-79be3c74c04f 2024-11-07 16:48:25,000 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine-interface/3b355fef-a293-436a-bafc-4936da582851 2024-11-07 16:48:28,297 - 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') 2024-11-07 16:48:28,297 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-90136596-93952966 failed! 2024-11-07 16:48:28,364 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-90136596:ctest-vn-88480582 is 195.26.115.1 and allocation pool is NOT set 2024-11-07 16:48:30,432 - 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=4.61 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=3.86 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 = 3.864/4.239/4.614/0.375 ms') 2024-11-07 16:48:30,434 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-90136596-93952966 passed 2024-11-07 16:48:30,608 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-07 16:48:30,608 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-90136596-93952966, IP 195.26.115.3, Port 22 2024-11-07 16:48:30,674 - 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': ''} 2024-11-07 16:48:30,771 - DEBUG - VM ctest-TestRoutersBasic-90136596-93952966 is NOT ready for SSH connections, VM status: ACTIVE 2024-11-07 16:48:35,772 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-07 16:48:35,773 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-90136596-93952966, IP 195.26.115.3, Port 22 2024-11-07 16:48:35,928 - DEBUG - VM ctest-TestRoutersBasic-90136596-93952966 is ready for SSH connections 2024-11-07 16:48:35,928 - INFO - Waiting for VM ctest-TestRoutersBasic-90136596-41707234 to be up.. 2024-11-07 16:48:36,011 - DEBUG - VM is in ACTIVE state now 2024-11-07 16:48:36,011 - INFO - VM name : ctest-TestRoutersBasic-90136596-41707234 2024-11-07 16:48:36,088 - DEBUG - VM ctest-TestRoutersBasic-90136596-41707234 ID is 05f7eb85-ed30-4884-940c-786037648aab 2024-11-07 16:48:36,088 - DEBUG - VM ctest-TestRoutersBasic-90136596-41707234 launched on Node cn-jenkins-deploy-platform-ansible-os-2220-1 2024-11-07 16:48:36,167 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine/05f7eb85-ed30-4884-940c-786037648aab 2024-11-07 16:48:36,178 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine-interface/d2951fff-5909-418b-b169-8d92ded4b95a 2024-11-07 16:48:37,428 - 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.06 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.416 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.416/1.740/3.064/1.324 ms') 2024-11-07 16:48:37,429 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-90136596-41707234 passed 2024-11-07 16:48:37,588 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-07 16:48:37,588 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-90136596-41707234, IP 200.37.124.195, Port 22 2024-11-07 16:48:37,754 - DEBUG - VM ctest-TestRoutersBasic-90136596-41707234 is ready for SSH connections 2024-11-07 16:48:37,754 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-07 16:48:37,754 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 200.37.124.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.38, gateway password: c0ntrail123 2024-11-07 16:48:37,754 - DEBUG - ping -s 56 -c 3 -W 1 200.37.124.195 2024-11-07 16:48:41,504 - DEBUG - PING 200.37.124.195 (200.37.124.195): 56 data bytes 64 bytes from 200.37.124.195: seq=0 ttl=62 time=4.787 ms 64 bytes from 200.37.124.195: seq=1 ttl=62 time=0.901 ms 64 bytes from 200.37.124.195: seq=2 ttl=62 time=0.934 ms --- 200.37.124.195 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.901/2.207/4.787 ms 2024-11-07 16:48:41,504 - INFO - Ping to IP 200.37.124.195 from VM ctest-TestRoutersBasic-90136596-93952966 passed 2024-11-07 16:48:41,504 - INFO - Deleting interface with subnet_id 48d84b53-b412-45b2-a2bd-16abffabb8a2, port_id None from router cc11b72c-b450-4013-a1a2-1644edce2e1b 2024-11-07 16:48:41,737 - INFO - Deleting VM ctest-TestRoutersBasic-90136596-41707234 2024-11-07 16:48:41,809 - INFO - Deleting VM ctest-TestRoutersBasic-90136596-93952966 2024-11-07 16:48:41,900 - INFO - Deleting VN ctest-ext_vn-91380249 2024-11-07 16:48:41,973 - DEBUG - VN 5cfb2f7a-10ff-4a6c-b1a9-2caa85c7ed8b still in use: Unable to complete operation on network 5cfb2f7a-10ff-4a6c-b1a9-2caa85c7ed8b. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-a461f2c6-6fac-4507-938e-5034f7ad5e08'] 2024-11-07 16:48:41,973 - WARNING - Deleting VN ctest-ext_vn-91380249 failed..Will retry 2024-11-07 16:48:44,092 - DEBUG - Response for deleting network () 2024-11-07 16:48:44,092 - INFO - Deleting VN ctest-vn-88480582 2024-11-07 16:48:44,207 - DEBUG - Response for deleting network () 2024-11-07 16:48:44,462 - DEBUG - No XMPP flaps were noticed during the test
2024-11-07 16:48:44,462 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:32]
2024-11-07 16:48:44,462 - INFO - -------------------------------------------------------------------------------- 2024-11-07 16:48:45,187 - INFO - Deleted project: ctest-TestRoutersBasic-90136596, ID : 5043912f-0af9-41de-86ba-57b77d9282f6