2024-09-13 14:02:45,612 - INFO - Domain Default found not creating 2024-09-13 14:02:45,783 - INFO - Project ctest-TestRoutersBasic-93339539 not found, creating it 2024-09-13 14:02:46,291 - INFO - Created Project:ctest-TestRoutersBasic-93339539, ID : 5fa6fc1b-a2ff-4d30-bc23-5db9a8a32fc5 2024-09-13 14:02:47,896 - INFO - ================================================================================ 2024-09-13 14:02:47,897 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2024-09-13 14:02:47,897 - 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-13 14:02:48,161 - DEBUG - Nothing to compare xmpp stats {'10.0.0.30': {'10.20.0.29': '0'}} with 2024-09-13 14:02:48,161 - INFO - Initial checks done. Running the testcase now 2024-09-13 14:02:48,161 - INFO - 2024-09-13 14:02:48,900 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-93339539 2024-09-13 14:02:48,999 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-93339539 2024-09-13 14:02:49,350 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-93339539', 'default']} 2024-09-13 14:02:49,688 - DEBUG - Response for create_network : {'network': {'id': '1e246155-a789-4848-922a-f8efee1cc213', 'name': 'ctest-vn-43634079', 'tenant_id': '5fa6fc1ba2ff4d30bc235db9a8a32fc5', 'project_id': '5fa6fc1ba2ff4d30bc235db9a8a32fc5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-93339539', 'ctest-vn-43634079'], 'port_security_enabled': True, 'description': ''}} 2024-09-13 14:02:49,888 - DEBUG - Response for create_subnet : {'subnet': {'id': '59af17bd-a354-4be2-b8c1-60f07edf0af6', 'name': '', 'tenant_id': '5fa6fc1ba2ff4d30bc235db9a8a32fc5', 'network_id': '1e246155-a789-4848-922a-f8efee1cc213', 'ip_version': 4, 'cidr': '72.110.124.0/26', 'allocation_pools': [{'start': '72.110.124.2', 'end': '72.110.124.62'}], 'gateway_ip': '72.110.124.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '72.110.124.2', 'tags': [], 'project_id': '5fa6fc1ba2ff4d30bc235db9a8a32fc5'}} 2024-09-13 14:02:49,907 - INFO - Created VN ctest-vn-43634079 2024-09-13 14:02:49,963 - DEBUG - VN ctest-vn-43634079 UUID is 1e246155-a789-4848-922a-f8efee1cc213 2024-09-13 14:02:50,317 - DEBUG - Response for create_network : {'network': {'id': '480fb5f0-bfa0-43b0-a3df-2134430a0a4a', 'name': 'ctest-ext_vn-21051050', 'tenant_id': '5fa6fc1ba2ff4d30bc235db9a8a32fc5', 'project_id': '5fa6fc1ba2ff4d30bc235db9a8a32fc5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-93339539', 'ctest-ext_vn-21051050'], 'port_security_enabled': True, 'description': ''}} 2024-09-13 14:02:50,522 - DEBUG - Response for create_subnet : {'subnet': {'id': '2393a6c7-8e36-4e35-bf78-4c1f588a5b78', 'name': '', 'tenant_id': '5fa6fc1ba2ff4d30bc235db9a8a32fc5', 'network_id': '480fb5f0-bfa0-43b0-a3df-2134430a0a4a', 'ip_version': 4, 'cidr': '123.146.187.64/26', 'allocation_pools': [{'start': '123.146.187.66', 'end': '123.146.187.126'}], 'gateway_ip': '123.146.187.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '123.146.187.66', 'tags': [], 'project_id': '5fa6fc1ba2ff4d30bc235db9a8a32fc5'}} 2024-09-13 14:02:50,542 - INFO - Created VN ctest-ext_vn-21051050 2024-09-13 14:02:50,599 - DEBUG - VN ctest-ext_vn-21051050 UUID is 480fb5f0-bfa0-43b0-a3df-2134430a0a4a 2024-09-13 14:02:50,779 - DEBUG - Services list from nova: [, , ] 2024-09-13 14:02:51,832 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1921-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1921-1) 2024-09-13 14:02:53,065 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1921-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1921-1) 2024-09-13 14:02:53,175 - INFO - Setting gateway for router b18bab1e-09a8-43fe-9eda-cd94c970be00 to network 480fb5f0-bfa0-43b0-a3df-2134430a0a4a 2024-09-13 14:02:53,254 - INFO - Adding interface with subnet_id 59af17bd-a354-4be2-b8c1-60f07edf0af6, port_id None to router b18bab1e-09a8-43fe-9eda-cd94c970be00 2024-09-13 14:02:53,677 - INFO - Waiting for VM ctest-TestRoutersBasic-93339539-67742247 to be up.. 2024-09-13 14:02:53,894 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-09-13 14:02:58,988 - DEBUG - VM is in ACTIVE state now 2024-09-13 14:02:58,988 - INFO - VM name : ctest-TestRoutersBasic-93339539-67742247 2024-09-13 14:02:59,087 - DEBUG - VM ctest-TestRoutersBasic-93339539-67742247 ID is f1e94867-ac8c-4eee-82fe-4a40f8ccba69 2024-09-13 14:02:59,110 - DEBUG - VM ctest-TestRoutersBasic-93339539-67742247 launched on Node cn-jenkins-deploy-platform-ansible-os-1921-1 2024-09-13 14:02:59,209 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-machine/f1e94867-ac8c-4eee-82fe-4a40f8ccba69 2024-09-13 14:02:59,528 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-machine/f1e94867-ac8c-4eee-82fe-4a40f8ccba69 2024-09-13 14:02:59,565 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-machine-interface/d5275712-8d6b-49ea-a1df-82bc9f953271 2024-09-13 14:03:02,832 - 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 1010ms') 2024-09-13 14:03:02,832 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-93339539-67742247 failed! 2024-09-13 14:03:02,891 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-93339539:ctest-vn-43634079 is 72.110.124.1 and allocation pool is NOT set 2024-09-13 14:03:04,954 - 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.61 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.894 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.894/2.253/3.612/1.359 ms') 2024-09-13 14:03:04,954 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-93339539-67742247 passed 2024-09-13 14:03:05,131 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-13 14:03:05,131 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-93339539-67742247, IP 72.110.124.3, Port 22 2024-09-13 14:03:05,297 - DEBUG - VM ctest-TestRoutersBasic-93339539-67742247 is ready for SSH connections 2024-09-13 14:03:05,297 - INFO - Waiting for VM ctest-TestRoutersBasic-93339539-07241838 to be up.. 2024-09-13 14:03:05,392 - DEBUG - VM is in ACTIVE state now 2024-09-13 14:03:05,392 - INFO - VM name : ctest-TestRoutersBasic-93339539-07241838 2024-09-13 14:03:05,473 - DEBUG - VM ctest-TestRoutersBasic-93339539-07241838 ID is b80244ce-1c4c-4035-961b-30f328b14dc9 2024-09-13 14:03:05,473 - DEBUG - VM ctest-TestRoutersBasic-93339539-07241838 launched on Node cn-jenkins-deploy-platform-ansible-os-1921-1 2024-09-13 14:03:05,556 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-machine/b80244ce-1c4c-4035-961b-30f328b14dc9 2024-09-13 14:03:05,566 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-machine-interface/4eb9e021-1e53-4325-bc27-9f5938b9716a 2024-09-13 14:03:06,831 - 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.67 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.362 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.362/1.518/2.674/1.156 ms') 2024-09-13 14:03:06,831 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-93339539-07241838 passed 2024-09-13 14:03:06,987 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-13 14:03:06,987 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-93339539-07241838, IP 123.146.187.67, Port 22 2024-09-13 14:03:07,143 - DEBUG - VM ctest-TestRoutersBasic-93339539-07241838 is ready for SSH connections 2024-09-13 14:03:07,143 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-13 14:03:07,143 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 123.146.187.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.30, gateway password: c0ntrail123 2024-09-13 14:03:07,143 - DEBUG - ping -s 56 -c 3 -W 1 123.146.187.67 2024-09-13 14:03:10,835 - DEBUG - PING 123.146.187.67 (123.146.187.67): 56 data bytes 64 bytes from 123.146.187.67: seq=0 ttl=62 time=6.925 ms 64 bytes from 123.146.187.67: seq=1 ttl=62 time=0.758 ms 64 bytes from 123.146.187.67: seq=2 ttl=62 time=0.819 ms --- 123.146.187.67 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.758/2.834/6.925 ms 2024-09-13 14:03:10,835 - INFO - Ping to IP 123.146.187.67 from VM ctest-TestRoutersBasic-93339539-67742247 passed 2024-09-13 14:03:10,835 - INFO - Deleting interface with subnet_id 59af17bd-a354-4be2-b8c1-60f07edf0af6, port_id None from router b18bab1e-09a8-43fe-9eda-cd94c970be00 2024-09-13 14:03:11,060 - INFO - Deleting VM ctest-TestRoutersBasic-93339539-07241838 2024-09-13 14:03:11,130 - INFO - Deleting VM ctest-TestRoutersBasic-93339539-67742247 2024-09-13 14:03:11,202 - INFO - Deleting VN ctest-ext_vn-21051050 2024-09-13 14:03:11,283 - DEBUG - VN 480fb5f0-bfa0-43b0-a3df-2134430a0a4a still in use: Unable to complete operation on network 480fb5f0-bfa0-43b0-a3df-2134430a0a4a. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-3d50cf16-24e5-4f52-bb96-31116c61b46f'] 2024-09-13 14:03:11,283 - WARNING - Deleting VN ctest-ext_vn-21051050 failed..Will retry 2024-09-13 14:03:13,437 - DEBUG - Response for deleting network () 2024-09-13 14:03:13,438 - INFO - Deleting VN ctest-vn-43634079 2024-09-13 14:03:13,562 - DEBUG - Response for deleting network () 2024-09-13 14:03:13,829 - DEBUG - No XMPP flaps were noticed during the test 2024-09-13 14:03:13,829 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:26] 2024-09-13 14:03:13,829 - INFO - -------------------------------------------------------------------------------- 2024-09-13 14:03:14,566 - INFO - Deleted project: ctest-TestRoutersBasic-93339539, ID : 5fa6fc1b-a2ff-4d30-bc23-5db9a8a32fc5