2024-09-18 05:36:20,807 - INFO - Domain Default found not creating 2024-09-18 05:36:20,959 - INFO - Project ctest-TestRoutersBasic-35474598 not found, creating it 2024-09-18 05:36:21,436 - INFO - Created Project:ctest-TestRoutersBasic-35474598, ID : 80bf44a1-5535-4627-b914-296c239f7e3e 2024-09-18 05:36:22,983 - INFO - ================================================================================ 2024-09-18 05:36:22,984 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2024-09-18 05:36:22,984 - 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-09-18 05:36:23,244 - DEBUG - Nothing to compare xmpp stats {'10.0.0.40': {'10.20.0.7': '0'}} with 2024-09-18 05:36:23,244 - INFO - Initial checks done. Running the testcase now 2024-09-18 05:36:23,244 - INFO - 2024-09-18 05:36:23,972 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-35474598 2024-09-18 05:36:24,073 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-35474598 2024-09-18 05:36:24,421 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-35474598', 'default']} 2024-09-18 05:36:24,723 - DEBUG - Response for create_network : {'network': {'id': 'fa6cb94b-26da-4a16-966a-6755c650e0f4', 'name': 'ctest-vn-80132591', 'tenant_id': '80bf44a155354627b914296c239f7e3e', 'project_id': '80bf44a155354627b914296c239f7e3e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-35474598', 'ctest-vn-80132591'], 'port_security_enabled': True, 'description': ''}} 2024-09-18 05:36:24,915 - DEBUG - Response for create_subnet : {'subnet': {'id': '194721bc-01e0-4875-a63e-30da3a576063', 'name': '', 'tenant_id': '80bf44a155354627b914296c239f7e3e', 'network_id': 'fa6cb94b-26da-4a16-966a-6755c650e0f4', 'ip_version': 4, 'cidr': '97.250.42.0/26', 'allocation_pools': [{'start': '97.250.42.2', 'end': '97.250.42.62'}], 'gateway_ip': '97.250.42.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '97.250.42.2', 'tags': [], 'project_id': '80bf44a155354627b914296c239f7e3e'}} 2024-09-18 05:36:24,941 - INFO - Created VN ctest-vn-80132591 2024-09-18 05:36:25,005 - DEBUG - VN ctest-vn-80132591 UUID is fa6cb94b-26da-4a16-966a-6755c650e0f4 2024-09-18 05:36:25,399 - DEBUG - Response for create_network : {'network': {'id': '1429810d-9add-4312-a197-cf6cd9201500', 'name': 'ctest-ext_vn-67126700', 'tenant_id': '80bf44a155354627b914296c239f7e3e', 'project_id': '80bf44a155354627b914296c239f7e3e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-35474598', 'ctest-ext_vn-67126700'], 'port_security_enabled': True, 'description': ''}} 2024-09-18 05:36:25,570 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd87d9474-eb39-48b3-acda-e4ccb4443cd7', 'name': '', 'tenant_id': '80bf44a155354627b914296c239f7e3e', 'network_id': '1429810d-9add-4312-a197-cf6cd9201500', 'ip_version': 4, 'cidr': '137.129.17.0/26', 'allocation_pools': [{'start': '137.129.17.2', 'end': '137.129.17.62'}], 'gateway_ip': '137.129.17.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '137.129.17.2', 'tags': [], 'project_id': '80bf44a155354627b914296c239f7e3e'}} 2024-09-18 05:36:25,588 - INFO - Created VN ctest-ext_vn-67126700 2024-09-18 05:36:25,645 - DEBUG - VN ctest-ext_vn-67126700 UUID is 1429810d-9add-4312-a197-cf6cd9201500 2024-09-18 05:36:25,813 - DEBUG - Services list from nova: [, , ] 2024-09-18 05:36:26,842 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1984-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1984-1) 2024-09-18 05:36:28,025 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1984-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1984-1) 2024-09-18 05:36:28,123 - INFO - Setting gateway for router 04a46222-57d6-42a1-a8d9-5a9547660a6a to network 1429810d-9add-4312-a197-cf6cd9201500 2024-09-18 05:36:28,213 - INFO - Adding interface with subnet_id 194721bc-01e0-4875-a63e-30da3a576063, port_id None to router 04a46222-57d6-42a1-a8d9-5a9547660a6a 2024-09-18 05:36:28,661 - INFO - Waiting for VM ctest-TestRoutersBasic-35474598-73953202 to be up.. 2024-09-18 05:36:28,814 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-09-18 05:36:33,888 - DEBUG - VM is in ACTIVE state now 2024-09-18 05:36:33,888 - INFO - VM name : ctest-TestRoutersBasic-35474598-73953202 2024-09-18 05:36:33,960 - DEBUG - VM ctest-TestRoutersBasic-35474598-73953202 ID is a53f2409-f7ba-4b5d-9a45-33b01b453793 2024-09-18 05:36:33,979 - DEBUG - VM ctest-TestRoutersBasic-35474598-73953202 launched on Node cn-jenkins-deploy-platform-ansible-os-1984-1 2024-09-18 05:36:34,054 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-machine/a53f2409-f7ba-4b5d-9a45-33b01b453793 2024-09-18 05:36:34,345 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-machine/a53f2409-f7ba-4b5d-9a45-33b01b453793 2024-09-18 05:36:34,379 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-machine-interface/44bfc979-1912-4030-a217-cd5e827ffcd8 2024-09-18 05:36:37,653 - 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 1019ms') 2024-09-18 05:36:37,653 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-35474598-73953202 failed! 2024-09-18 05:36:37,713 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-35474598:ctest-vn-80132591 is 97.250.42.1 and allocation pool is NOT set 2024-09-18 05:36:39,778 - 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=2.79 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.372 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1002ms\r\nrtt min/avg/max/mdev = 0.372/1.582/2.793/1.210 ms') 2024-09-18 05:36:39,778 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-35474598-73953202 passed 2024-09-18 05:36:39,933 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-18 05:36:39,933 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-35474598-73953202, IP 97.250.42.3, Port 22 2024-09-18 05:36:40,097 - DEBUG - VM ctest-TestRoutersBasic-35474598-73953202 is ready for SSH connections 2024-09-18 05:36:40,097 - INFO - Waiting for VM ctest-TestRoutersBasic-35474598-07890200 to be up.. 2024-09-18 05:36:40,175 - DEBUG - VM is in ACTIVE state now 2024-09-18 05:36:40,175 - INFO - VM name : ctest-TestRoutersBasic-35474598-07890200 2024-09-18 05:36:40,272 - DEBUG - VM ctest-TestRoutersBasic-35474598-07890200 ID is 7e3e42d7-b838-4466-9bdb-3fdfac2fc168 2024-09-18 05:36:40,272 - DEBUG - VM ctest-TestRoutersBasic-35474598-07890200 launched on Node cn-jenkins-deploy-platform-ansible-os-1984-1 2024-09-18 05:36:40,350 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-machine/7e3e42d7-b838-4466-9bdb-3fdfac2fc168 2024-09-18 05:36:40,363 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-machine-interface/1a8f70b4-e863-43b1-88ad-ec35b7645bd3 2024-09-18 05:36:41,615 - 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=2.40 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.393 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.393/1.394/2.395/1.001 ms') 2024-09-18 05:36:41,615 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-35474598-07890200 passed 2024-09-18 05:36:41,773 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-18 05:36:41,773 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-35474598-07890200, IP 137.129.17.3, Port 22 2024-09-18 05:36:41,828 - DEBUG - Error on ssh to cirros@169.254.0.4:22, result: /bin/bash: connect: Connection refused /bin/bash: line 1: /dev/tcp/169.254.0.4/22: Connection refused {'failed': True, 'command': '(echo > /dev/tcp/169.254.0.4/22)', 'real_command': '/bin/bash -l -c "(echo > /dev/tcp/169.254.0.4/22)"', 'return_code': 1, 'succeeded': False, 'stderr': ''} 2024-09-18 05:36:41,906 - DEBUG - VM ctest-TestRoutersBasic-35474598-07890200 is NOT ready for SSH connections, VM status: ACTIVE 2024-09-18 05:36:46,907 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-18 05:36:46,907 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-35474598-07890200, IP 137.129.17.3, Port 22 2024-09-18 05:36:47,060 - DEBUG - VM ctest-TestRoutersBasic-35474598-07890200 is ready for SSH connections 2024-09-18 05:36:47,061 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-18 05:36:47,061 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 137.129.17.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.40, gateway password: c0ntrail123 2024-09-18 05:36:47,061 - DEBUG - ping -s 56 -c 3 -W 1 137.129.17.3 2024-09-18 05:36:51,005 - DEBUG - PING 137.129.17.3 (137.129.17.3): 56 data bytes 64 bytes from 137.129.17.3: seq=0 ttl=62 time=5.814 ms 64 bytes from 137.129.17.3: seq=1 ttl=62 time=0.886 ms 64 bytes from 137.129.17.3: seq=2 ttl=62 time=1.042 ms --- 137.129.17.3 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.886/2.580/5.814 ms 2024-09-18 05:36:51,005 - INFO - Ping to IP 137.129.17.3 from VM ctest-TestRoutersBasic-35474598-73953202 passed 2024-09-18 05:36:51,005 - INFO - Deleting interface with subnet_id 194721bc-01e0-4875-a63e-30da3a576063, port_id None from router 04a46222-57d6-42a1-a8d9-5a9547660a6a 2024-09-18 05:36:51,217 - INFO - Deleting VM ctest-TestRoutersBasic-35474598-07890200 2024-09-18 05:36:51,280 - INFO - Deleting VM ctest-TestRoutersBasic-35474598-73953202 2024-09-18 05:36:51,361 - INFO - Deleting VN ctest-ext_vn-67126700 2024-09-18 05:36:51,429 - DEBUG - VN 1429810d-9add-4312-a197-cf6cd9201500 still in use: Unable to complete operation on network 1429810d-9add-4312-a197-cf6cd9201500. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-5eda94c3-268e-4b55-a35f-2b20c3ceeeea'] 2024-09-18 05:36:51,429 - WARNING - Deleting VN ctest-ext_vn-67126700 failed..Will retry 2024-09-18 05:36:53,543 - DEBUG - Response for deleting network () 2024-09-18 05:36:53,543 - INFO - Deleting VN ctest-vn-80132591 2024-09-18 05:36:53,663 - DEBUG - Response for deleting network () 2024-09-18 05:36:53,920 - DEBUG - No XMPP flaps were noticed during the test
2024-09-18 05:36:53,920 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:31]
2024-09-18 05:36:53,920 - INFO - -------------------------------------------------------------------------------- 2024-09-18 05:36:54,602 - INFO - Deleted project: ctest-TestRoutersBasic-35474598, ID : 80bf44a1-5535-4627-b914-296c239f7e3e