2024-08-29 17:08:31,366 - INFO - Domain Default found not creating 2024-08-29 17:08:31,560 - INFO - Project ctest-TestRoutersBasic-23819404 not found, creating it 2024-08-29 17:08:32,082 - INFO - Created Project:ctest-TestRoutersBasic-23819404, ID : 8d4ba6b0-f790-4966-97c5-5743374208b7 2024-08-29 17:08:33,835 - INFO - ================================================================================ 2024-08-29 17:08:33,835 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2024-08-29 17:08:33,835 - 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-08-29 17:08:34,104 - DEBUG - Nothing to compare xmpp stats {'10.0.0.29': {'10.20.0.39': '0'}} with 2024-08-29 17:08:34,105 - INFO - Initial checks done. Running the testcase now 2024-08-29 17:08:34,105 - INFO - 2024-08-29 17:08:35,183 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-23819404 2024-08-29 17:08:35,279 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-23819404 2024-08-29 17:08:35,623 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-23819404', 'default']} 2024-08-29 17:08:35,956 - DEBUG - Response for create_network : {'network': {'id': '0596f3fe-cc23-444c-84d4-243556981d3e', 'name': 'ctest-vn-77413298', 'tenant_id': '8d4ba6b0f790496697c55743374208b7', 'project_id': '8d4ba6b0f790496697c55743374208b7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-23819404', 'ctest-vn-77413298'], 'port_security_enabled': True, 'description': ''}} 2024-08-29 17:08:36,130 - DEBUG - Response for create_subnet : {'subnet': {'id': '0d5b691a-1901-402c-b938-d0ff2fab81fc', 'name': '', 'tenant_id': '8d4ba6b0f790496697c55743374208b7', 'network_id': '0596f3fe-cc23-444c-84d4-243556981d3e', 'ip_version': 4, 'cidr': '56.149.12.0/26', 'allocation_pools': [{'start': '56.149.12.2', 'end': '56.149.12.62'}], 'gateway_ip': '56.149.12.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '56.149.12.2', 'tags': [], 'project_id': '8d4ba6b0f790496697c55743374208b7'}} 2024-08-29 17:08:36,152 - INFO - Created VN ctest-vn-77413298 2024-08-29 17:08:36,203 - DEBUG - VN ctest-vn-77413298 UUID is 0596f3fe-cc23-444c-84d4-243556981d3e 2024-08-29 17:08:36,626 - DEBUG - Response for create_network : {'network': {'id': 'ff8ba4e0-7c31-4a49-9b7e-74bfbdef5658', 'name': 'ctest-ext_vn-85726703', 'tenant_id': '8d4ba6b0f790496697c55743374208b7', 'project_id': '8d4ba6b0f790496697c55743374208b7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-23819404', 'ctest-ext_vn-85726703'], 'port_security_enabled': True, 'description': ''}} 2024-08-29 17:08:36,854 - DEBUG - Response for create_subnet : {'subnet': {'id': '17f67bfd-28cf-4f7e-947a-36fac3d874d2', 'name': '', 'tenant_id': '8d4ba6b0f790496697c55743374208b7', 'network_id': 'ff8ba4e0-7c31-4a49-9b7e-74bfbdef5658', 'ip_version': 4, 'cidr': '109.126.86.64/26', 'allocation_pools': [{'start': '109.126.86.66', 'end': '109.126.86.126'}], 'gateway_ip': '109.126.86.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '109.126.86.66', 'tags': [], 'project_id': '8d4ba6b0f790496697c55743374208b7'}} 2024-08-29 17:08:36,876 - INFO - Created VN ctest-ext_vn-85726703 2024-08-29 17:08:36,933 - DEBUG - VN ctest-ext_vn-85726703 UUID is ff8ba4e0-7c31-4a49-9b7e-74bfbdef5658 2024-08-29 17:08:37,141 - DEBUG - Services list from nova: [, , ] 2024-08-29 17:08:38,323 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1812-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1812-1) 2024-08-29 17:08:39,635 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1812-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1812-1) 2024-08-29 17:08:39,721 - INFO - Setting gateway for router a160559a-7d68-4627-b7a9-653d63778da4 to network ff8ba4e0-7c31-4a49-9b7e-74bfbdef5658 2024-08-29 17:08:39,798 - INFO - Adding interface with subnet_id 0d5b691a-1901-402c-b938-d0ff2fab81fc, port_id None to router a160559a-7d68-4627-b7a9-653d63778da4 2024-08-29 17:08:40,516 - INFO - Waiting for VM ctest-TestRoutersBasic-23819404-70293359 to be up.. 2024-08-29 17:08:40,749 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-08-29 17:08:45,828 - DEBUG - VM is in ACTIVE state now 2024-08-29 17:08:45,828 - INFO - VM name : ctest-TestRoutersBasic-23819404-70293359 2024-08-29 17:08:45,911 - DEBUG - VM ctest-TestRoutersBasic-23819404-70293359 ID is 9381d702-69a4-41b8-9454-acb6fcae5c55 2024-08-29 17:08:45,929 - DEBUG - VM ctest-TestRoutersBasic-23819404-70293359 launched on Node cn-jenkins-deploy-platform-ansible-os-1812-1 2024-08-29 17:08:46,017 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-machine/9381d702-69a4-41b8-9454-acb6fcae5c55 2024-08-29 17:08:46,377 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-machine/9381d702-69a4-41b8-9454-acb6fcae5c55 2024-08-29 17:08:46,415 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-machine-interface/675c9239-2c66-43e2-985d-b4b84df8a8ea 2024-08-29 17:08:49,708 - 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 1034ms') 2024-08-29 17:08:49,708 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-23819404-70293359 failed! 2024-08-29 17:08:49,759 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-23819404:ctest-vn-77413298 is 56.149.12.1 and allocation pool is NOT set 2024-08-29 17:08:51,817 - 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.12 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.768 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1000ms\r\nrtt min/avg/max/mdev = 0.768/2.443/4.119/1.675 ms') 2024-08-29 17:08:51,817 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-23819404-70293359 passed 2024-08-29 17:08:51,971 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-29 17:08:51,971 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-23819404-70293359, IP 56.149.12.3, Port 22 2024-08-29 17:08:52,126 - DEBUG - VM ctest-TestRoutersBasic-23819404-70293359 is ready for SSH connections 2024-08-29 17:08:52,127 - INFO - Waiting for VM ctest-TestRoutersBasic-23819404-30437836 to be up.. 2024-08-29 17:08:52,237 - DEBUG - VM is in ACTIVE state now 2024-08-29 17:08:52,237 - INFO - VM name : ctest-TestRoutersBasic-23819404-30437836 2024-08-29 17:08:52,318 - DEBUG - VM ctest-TestRoutersBasic-23819404-30437836 ID is 2933982f-b258-4c96-9461-5a7c3c5f7e80 2024-08-29 17:08:52,318 - DEBUG - VM ctest-TestRoutersBasic-23819404-30437836 launched on Node cn-jenkins-deploy-platform-ansible-os-1812-1 2024-08-29 17:08:52,434 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-machine/2933982f-b258-4c96-9461-5a7c3c5f7e80 2024-08-29 17:08:52,444 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-machine-interface/d09b4ac8-9373-4bc0-9977-c1c70f37ee53 2024-08-29 17:08:53,684 - 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=4.11 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.457 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.457/2.282/4.108/1.825 ms') 2024-08-29 17:08:53,685 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-23819404-30437836 passed 2024-08-29 17:08:53,835 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-29 17:08:53,835 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-23819404-30437836, IP 109.126.86.67, Port 22 2024-08-29 17:08:54,001 - DEBUG - VM ctest-TestRoutersBasic-23819404-30437836 is ready for SSH connections 2024-08-29 17:08:54,001 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-29 17:08:54,001 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 109.126.86.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.29, gateway password: c0ntrail123 2024-08-29 17:08:54,002 - DEBUG - ping -s 56 -c 3 -W 1 109.126.86.67 2024-08-29 17:08:57,802 - DEBUG - PING 109.126.86.67 (109.126.86.67): 56 data bytes 64 bytes from 109.126.86.67: seq=0 ttl=62 time=5.269 ms 64 bytes from 109.126.86.67: seq=1 ttl=62 time=1.017 ms 64 bytes from 109.126.86.67: seq=2 ttl=62 time=0.770 ms --- 109.126.86.67 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.770/2.352/5.269 ms 2024-08-29 17:08:57,802 - INFO - Ping to IP 109.126.86.67 from VM ctest-TestRoutersBasic-23819404-70293359 passed 2024-08-29 17:08:57,802 - INFO - Deleting interface with subnet_id 0d5b691a-1901-402c-b938-d0ff2fab81fc, port_id None from router a160559a-7d68-4627-b7a9-653d63778da4 2024-08-29 17:08:58,035 - INFO - Deleting VM ctest-TestRoutersBasic-23819404-30437836 2024-08-29 17:08:58,107 - INFO - Deleting VM ctest-TestRoutersBasic-23819404-70293359 2024-08-29 17:08:58,206 - INFO - Deleting VN ctest-ext_vn-85726703 2024-08-29 17:08:58,305 - DEBUG - VN ff8ba4e0-7c31-4a49-9b7e-74bfbdef5658 still in use: Unable to complete operation on network ff8ba4e0-7c31-4a49-9b7e-74bfbdef5658. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-9edc6fa1-7c82-498e-9d7f-defdcdf241da'] 2024-08-29 17:08:58,305 - WARNING - Deleting VN ctest-ext_vn-85726703 failed..Will retry 2024-08-29 17:09:00,416 - DEBUG - Response for deleting network () 2024-08-29 17:09:00,416 - INFO - Deleting VN ctest-vn-77413298 2024-08-29 17:09:00,522 - DEBUG - Response for deleting network () 2024-08-29 17:09:00,783 - DEBUG - No XMPP flaps were noticed during the test 2024-08-29 17:09:00,783 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:27] 2024-08-29 17:09:00,783 - INFO - -------------------------------------------------------------------------------- 2024-08-29 17:09:01,528 - INFO - Deleted project: ctest-TestRoutersBasic-23819404, ID : 8d4ba6b0-f790-4966-97c5-5743374208b7