2024-08-20 16:28:05,991 - INFO - Domain Default found not creating 2024-08-20 16:28:06,147 - INFO - Project ctest-TestRoutersBasic-80423410 not found, creating it 2024-08-20 16:28:06,614 - INFO - Created Project:ctest-TestRoutersBasic-80423410, ID : e678a6f2-5bce-4c25-bf3c-64eeb8d86a6f 2024-08-20 16:28:08,159 - INFO - ================================================================================ 2024-08-20 16:28:08,159 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2024-08-20 16:28:08,159 - 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-20 16:28:08,418 - DEBUG - Nothing to compare xmpp stats {'10.0.0.30': {'10.20.0.21': '0'}} with 2024-08-20 16:28:08,418 - INFO - Initial checks done. Running the testcase now 2024-08-20 16:28:08,419 - INFO - 2024-08-20 16:28:09,145 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-80423410 2024-08-20 16:28:09,240 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-80423410 2024-08-20 16:28:09,564 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-80423410', 'default']} 2024-08-20 16:28:09,858 - DEBUG - Response for create_network : {'network': {'id': '4436d3bb-1092-427d-acda-ae38c0806d15', 'name': 'ctest-vn-69837482', 'tenant_id': 'e678a6f25bce4c25bf3c64eeb8d86a6f', 'project_id': 'e678a6f25bce4c25bf3c64eeb8d86a6f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-80423410', 'ctest-vn-69837482'], 'port_security_enabled': True, 'description': ''}} 2024-08-20 16:28:10,044 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a36b21c1-5b85-45b5-8bc5-a2095c3e9b51', 'name': '', 'tenant_id': 'e678a6f25bce4c25bf3c64eeb8d86a6f', 'network_id': '4436d3bb-1092-427d-acda-ae38c0806d15', 'ip_version': 4, 'cidr': '219.23.13.192/26', 'allocation_pools': [{'start': '219.23.13.194', 'end': '219.23.13.254'}], 'gateway_ip': '219.23.13.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '219.23.13.194', 'tags': [], 'project_id': 'e678a6f25bce4c25bf3c64eeb8d86a6f'}} 2024-08-20 16:28:10,063 - INFO - Created VN ctest-vn-69837482 2024-08-20 16:28:10,112 - DEBUG - VN ctest-vn-69837482 UUID is 4436d3bb-1092-427d-acda-ae38c0806d15 2024-08-20 16:28:10,424 - DEBUG - Response for create_network : {'network': {'id': 'aba51a95-aa1b-4d68-858b-c255ff8dbce9', 'name': 'ctest-ext_vn-89309165', 'tenant_id': 'e678a6f25bce4c25bf3c64eeb8d86a6f', 'project_id': 'e678a6f25bce4c25bf3c64eeb8d86a6f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-80423410', 'ctest-ext_vn-89309165'], 'port_security_enabled': True, 'description': ''}} 2024-08-20 16:28:10,649 - DEBUG - Response for create_subnet : {'subnet': {'id': '93f834f4-80fb-413c-bb7f-2227653e5fc7', 'name': '', 'tenant_id': 'e678a6f25bce4c25bf3c64eeb8d86a6f', 'network_id': 'aba51a95-aa1b-4d68-858b-c255ff8dbce9', 'ip_version': 4, 'cidr': '188.227.10.64/26', 'allocation_pools': [{'start': '188.227.10.66', 'end': '188.227.10.126'}], 'gateway_ip': '188.227.10.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '188.227.10.66', 'tags': [], 'project_id': 'e678a6f25bce4c25bf3c64eeb8d86a6f'}} 2024-08-20 16:28:10,671 - INFO - Created VN ctest-ext_vn-89309165 2024-08-20 16:28:10,724 - DEBUG - VN ctest-ext_vn-89309165 UUID is aba51a95-aa1b-4d68-858b-c255ff8dbce9 2024-08-20 16:28:10,906 - DEBUG - Services list from nova: [, , ] 2024-08-20 16:28:11,930 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1677-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1677-1) 2024-08-20 16:28:13,333 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1677-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1677-1) 2024-08-20 16:28:13,395 - INFO - Setting gateway for router 77478ff6-9bf4-4829-8dac-5a53add6562e to network aba51a95-aa1b-4d68-858b-c255ff8dbce9 2024-08-20 16:28:13,455 - INFO - Adding interface with subnet_id a36b21c1-5b85-45b5-8bc5-a2095c3e9b51, port_id None to router 77478ff6-9bf4-4829-8dac-5a53add6562e 2024-08-20 16:28:13,750 - INFO - Waiting for VM ctest-TestRoutersBasic-80423410-62533326 to be up.. 2024-08-20 16:28:13,892 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-08-20 16:28:18,971 - DEBUG - VM is in ACTIVE state now 2024-08-20 16:28:18,971 - INFO - VM name : ctest-TestRoutersBasic-80423410-62533326 2024-08-20 16:28:19,050 - DEBUG - VM ctest-TestRoutersBasic-80423410-62533326 ID is bf6542bb-f890-4820-98cd-c15797bb3bcb 2024-08-20 16:28:19,069 - DEBUG - VM ctest-TestRoutersBasic-80423410-62533326 launched on Node cn-jenkins-deploy-platform-ansible-os-1677-1 2024-08-20 16:28:19,142 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-machine/bf6542bb-f890-4820-98cd-c15797bb3bcb 2024-08-20 16:28:19,434 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-machine/bf6542bb-f890-4820-98cd-c15797bb3bcb 2024-08-20 16:28:19,466 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-machine-interface/8aabe020-f69d-4851-8feb-89af6d9913a8 2024-08-20 16:28:22,718 - 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 1016ms') 2024-08-20 16:28:22,718 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-80423410-62533326 failed! 2024-08-20 16:28:22,776 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-80423410:ctest-vn-69837482 is 219.23.13.193 and allocation pool is NOT set 2024-08-20 16:28:24,832 - 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.63 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.468 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.468/1.549/2.630/1.081 ms') 2024-08-20 16:28:24,832 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-80423410-62533326 passed 2024-08-20 16:28:24,980 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-20 16:28:24,980 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-80423410-62533326, IP 219.23.13.195, Port 22 2024-08-20 16:28:25,132 - DEBUG - VM ctest-TestRoutersBasic-80423410-62533326 is ready for SSH connections 2024-08-20 16:28:25,132 - INFO - Waiting for VM ctest-TestRoutersBasic-80423410-72362571 to be up.. 2024-08-20 16:28:25,209 - DEBUG - VM is in ACTIVE state now 2024-08-20 16:28:25,209 - INFO - VM name : ctest-TestRoutersBasic-80423410-72362571 2024-08-20 16:28:25,285 - DEBUG - VM ctest-TestRoutersBasic-80423410-72362571 ID is 26353bf8-7682-4960-872a-02b484749a31 2024-08-20 16:28:25,285 - DEBUG - VM ctest-TestRoutersBasic-80423410-72362571 launched on Node cn-jenkins-deploy-platform-ansible-os-1677-1 2024-08-20 16:28:25,361 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-machine/26353bf8-7682-4960-872a-02b484749a31 2024-08-20 16:28:25,371 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-machine-interface/39317984-163c-4d20-98ce-c3bfc457b954 2024-08-20 16:28:26,628 - 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.13 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=1.68 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 = 1.676/2.901/4.127/1.225 ms') 2024-08-20 16:28:26,628 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-80423410-72362571 passed 2024-08-20 16:28:26,780 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-20 16:28:26,781 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-80423410-72362571, IP 188.227.10.67, Port 22 2024-08-20 16:28:26,940 - DEBUG - VM ctest-TestRoutersBasic-80423410-72362571 is ready for SSH connections 2024-08-20 16:28:26,940 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-20 16:28:26,940 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 188.227.10.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.30, gateway password: c0ntrail123 2024-08-20 16:28:26,940 - DEBUG - ping -s 56 -c 3 -W 1 188.227.10.67 2024-08-20 16:28:30,612 - DEBUG - PING 188.227.10.67 (188.227.10.67): 56 data bytes 64 bytes from 188.227.10.67: seq=0 ttl=62 time=5.552 ms 64 bytes from 188.227.10.67: seq=1 ttl=62 time=1.764 ms 64 bytes from 188.227.10.67: seq=2 ttl=62 time=1.018 ms --- 188.227.10.67 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.018/2.778/5.552 ms 2024-08-20 16:28:30,612 - INFO - Ping to IP 188.227.10.67 from VM ctest-TestRoutersBasic-80423410-62533326 passed 2024-08-20 16:28:30,613 - INFO - Deleting interface with subnet_id a36b21c1-5b85-45b5-8bc5-a2095c3e9b51, port_id None from router 77478ff6-9bf4-4829-8dac-5a53add6562e 2024-08-20 16:28:30,818 - INFO - Deleting VM ctest-TestRoutersBasic-80423410-72362571 2024-08-20 16:28:30,885 - INFO - Deleting VM ctest-TestRoutersBasic-80423410-62533326 2024-08-20 16:28:30,956 - INFO - Deleting VN ctest-ext_vn-89309165 2024-08-20 16:28:31,022 - DEBUG - VN aba51a95-aa1b-4d68-858b-c255ff8dbce9 still in use: Unable to complete operation on network aba51a95-aa1b-4d68-858b-c255ff8dbce9. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-20dd1cc5-87fd-4750-9e7e-583de2499c37'] 2024-08-20 16:28:31,022 - WARNING - Deleting VN ctest-ext_vn-89309165 failed..Will retry 2024-08-20 16:28:33,131 - DEBUG - Response for deleting network () 2024-08-20 16:28:33,131 - INFO - Deleting VN ctest-vn-69837482 2024-08-20 16:28:33,238 - DEBUG - Response for deleting network () 2024-08-20 16:28:33,502 - DEBUG - No XMPP flaps were noticed during the test 2024-08-20 16:28:33,502 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:25] 2024-08-20 16:28:33,502 - INFO - -------------------------------------------------------------------------------- 2024-08-20 16:28:34,186 - INFO - Deleted project: ctest-TestRoutersBasic-80423410, ID : e678a6f2-5bce-4c25-bf3c-64eeb8d86a6f