2024-11-08 13:58:59,714 - INFO - Domain Default found not creating 2024-11-08 13:58:59,910 - INFO - Project ctest-TestRoutersBasic-13365557 not found, creating it 2024-11-08 13:59:00,441 - INFO - Created Project:ctest-TestRoutersBasic-13365557, ID : 1d74c0de-5a05-4972-80fa-0542d1da22ee 2024-11-08 13:59:01,988 - INFO - ================================================================================ 2024-11-08 13:59:01,988 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2024-11-08 13:59:01,988 - 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-08 13:59:02,256 - DEBUG - Nothing to compare xmpp stats {'10.0.0.52': {'10.20.0.13': '0'}} with 2024-11-08 13:59:02,257 - INFO - Initial checks done. Running the testcase now 2024-11-08 13:59:02,257 - INFO - 2024-11-08 13:59:02,999 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-13365557 2024-11-08 13:59:03,101 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-13365557 2024-11-08 13:59:03,448 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-13365557', 'default']} 2024-11-08 13:59:03,792 - DEBUG - Response for create_network : {'network': {'id': '6542351a-1c4b-49f4-a589-ce49b29bab14', 'name': 'ctest-vn-23690825', 'tenant_id': '1d74c0de5a05497280fa0542d1da22ee', 'project_id': '1d74c0de5a05497280fa0542d1da22ee', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-13365557', 'ctest-vn-23690825'], 'port_security_enabled': True, 'description': ''}} 2024-11-08 13:59:03,954 - DEBUG - Response for create_subnet : {'subnet': {'id': 'dfd1a2cd-3ad6-4489-bc52-1df56f6345d5', 'name': '', 'tenant_id': '1d74c0de5a05497280fa0542d1da22ee', 'network_id': '6542351a-1c4b-49f4-a589-ce49b29bab14', 'ip_version': 4, 'cidr': '221.127.13.0/26', 'allocation_pools': [{'start': '221.127.13.2', 'end': '221.127.13.62'}], 'gateway_ip': '221.127.13.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '221.127.13.2', 'tags': [], 'project_id': '1d74c0de5a05497280fa0542d1da22ee'}} 2024-11-08 13:59:03,973 - INFO - Created VN ctest-vn-23690825 2024-11-08 13:59:04,029 - DEBUG - VN ctest-vn-23690825 UUID is 6542351a-1c4b-49f4-a589-ce49b29bab14 2024-11-08 13:59:04,403 - DEBUG - Response for create_network : {'network': {'id': '6f18c164-0af5-4b94-adc8-2a7dfd996394', 'name': 'ctest-ext_vn-66700392', 'tenant_id': '1d74c0de5a05497280fa0542d1da22ee', 'project_id': '1d74c0de5a05497280fa0542d1da22ee', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-13365557', 'ctest-ext_vn-66700392'], 'port_security_enabled': True, 'description': ''}} 2024-11-08 13:59:04,642 - DEBUG - Response for create_subnet : {'subnet': {'id': '67bacf19-240f-476c-b3aa-2f8d641f3e8a', 'name': '', 'tenant_id': '1d74c0de5a05497280fa0542d1da22ee', 'network_id': '6f18c164-0af5-4b94-adc8-2a7dfd996394', 'ip_version': 4, 'cidr': '122.228.136.0/26', 'allocation_pools': [{'start': '122.228.136.2', 'end': '122.228.136.62'}], 'gateway_ip': '122.228.136.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '122.228.136.2', 'tags': [], 'project_id': '1d74c0de5a05497280fa0542d1da22ee'}} 2024-11-08 13:59:04,662 - INFO - Created VN ctest-ext_vn-66700392 2024-11-08 13:59:04,721 - DEBUG - VN ctest-ext_vn-66700392 UUID is 6f18c164-0af5-4b94-adc8-2a7dfd996394 2024-11-08 13:59:04,917 - DEBUG - Services list from nova: [, , ] 2024-11-08 13:59:05,998 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2227-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2227-1) 2024-11-08 13:59:07,235 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2227-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2227-1) 2024-11-08 13:59:07,320 - INFO - Setting gateway for router a447970c-4c49-4b67-9d1f-215d83857489 to network 6f18c164-0af5-4b94-adc8-2a7dfd996394 2024-11-08 13:59:07,391 - INFO - Adding interface with subnet_id dfd1a2cd-3ad6-4489-bc52-1df56f6345d5, port_id None to router a447970c-4c49-4b67-9d1f-215d83857489 2024-11-08 13:59:07,746 - INFO - Waiting for VM ctest-TestRoutersBasic-13365557-20846155 to be up.. 2024-11-08 13:59:07,987 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-11-08 13:59:13,072 - DEBUG - VM is in ACTIVE state now 2024-11-08 13:59:13,072 - INFO - VM name : ctest-TestRoutersBasic-13365557-20846155 2024-11-08 13:59:13,183 - DEBUG - VM ctest-TestRoutersBasic-13365557-20846155 ID is 67f4dee0-f189-47c2-a721-d5011b261edb 2024-11-08 13:59:13,204 - DEBUG - VM ctest-TestRoutersBasic-13365557-20846155 launched on Node cn-jenkins-deploy-platform-ansible-os-2227-1 2024-11-08 13:59:13,312 - DEBUG - Requesting: http://10.0.0.52:8082/virtual-machine/67f4dee0-f189-47c2-a721-d5011b261edb 2024-11-08 13:59:13,621 - DEBUG - Requesting: http://10.0.0.52:8082/virtual-machine/67f4dee0-f189-47c2-a721-d5011b261edb 2024-11-08 13:59:13,667 - DEBUG - Requesting: http://10.0.0.52:8082/virtual-machine-interface/605bcd0c-3a2c-4894-bfab-223e35a3cf97 2024-11-08 13:59:16,961 - 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 1031ms') 2024-11-08 13:59:16,961 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-13365557-20846155 failed! 2024-11-08 13:59:17,023 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-13365557:ctest-vn-23690825 is 221.127.13.1 and allocation pool is NOT set 2024-11-08 13:59:19,085 - 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.47 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.505 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.505/1.989/3.473/1.484 ms') 2024-11-08 13:59:19,085 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-13365557-20846155 passed 2024-11-08 13:59:19,265 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-08 13:59:19,265 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-13365557-20846155, IP 221.127.13.3, Port 22 2024-11-08 13:59:19,431 - DEBUG - VM ctest-TestRoutersBasic-13365557-20846155 is ready for SSH connections 2024-11-08 13:59:19,431 - INFO - Waiting for VM ctest-TestRoutersBasic-13365557-13909059 to be up.. 2024-11-08 13:59:19,532 - DEBUG - VM is in ACTIVE state now 2024-11-08 13:59:19,532 - INFO - VM name : ctest-TestRoutersBasic-13365557-13909059 2024-11-08 13:59:19,616 - DEBUG - VM ctest-TestRoutersBasic-13365557-13909059 ID is 53c86aac-3d07-46b7-b2cb-f428aae058c8 2024-11-08 13:59:19,616 - DEBUG - VM ctest-TestRoutersBasic-13365557-13909059 launched on Node cn-jenkins-deploy-platform-ansible-os-2227-1 2024-11-08 13:59:19,697 - DEBUG - Requesting: http://10.0.0.52:8082/virtual-machine/53c86aac-3d07-46b7-b2cb-f428aae058c8 2024-11-08 13:59:19,709 - DEBUG - Requesting: http://10.0.0.52:8082/virtual-machine-interface/a4746c81-1756-418b-883d-9d2af909aeb8 2024-11-08 13:59:20,979 - 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.82 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.498 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.498/1.658/2.818/1.160 ms') 2024-11-08 13:59:20,979 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-13365557-13909059 passed 2024-11-08 13:59:21,145 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-08 13:59:21,145 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-13365557-13909059, IP 122.228.136.3, Port 22 2024-11-08 13:59:21,311 - DEBUG - VM ctest-TestRoutersBasic-13365557-13909059 is ready for SSH connections 2024-11-08 13:59:21,311 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-08 13:59:21,311 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 122.228.136.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.52, gateway password: c0ntrail123 2024-11-08 13:59:21,311 - DEBUG - ping -s 56 -c 3 -W 1 122.228.136.3 2024-11-08 13:59:25,011 - DEBUG - PING 122.228.136.3 (122.228.136.3): 56 data bytes 64 bytes from 122.228.136.3: seq=0 ttl=62 time=7.301 ms 64 bytes from 122.228.136.3: seq=1 ttl=62 time=0.907 ms 64 bytes from 122.228.136.3: seq=2 ttl=62 time=1.183 ms --- 122.228.136.3 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.907/3.130/7.301 ms 2024-11-08 13:59:25,011 - INFO - Ping to IP 122.228.136.3 from VM ctest-TestRoutersBasic-13365557-20846155 passed 2024-11-08 13:59:25,012 - INFO - Deleting interface with subnet_id dfd1a2cd-3ad6-4489-bc52-1df56f6345d5, port_id None from router a447970c-4c49-4b67-9d1f-215d83857489 2024-11-08 13:59:25,236 - INFO - Deleting VM ctest-TestRoutersBasic-13365557-13909059 2024-11-08 13:59:25,313 - INFO - Deleting VM ctest-TestRoutersBasic-13365557-20846155 2024-11-08 13:59:25,385 - INFO - Deleting VN ctest-ext_vn-66700392 2024-11-08 13:59:25,484 - DEBUG - VN 6f18c164-0af5-4b94-adc8-2a7dfd996394 still in use: Unable to complete operation on network 6f18c164-0af5-4b94-adc8-2a7dfd996394. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-7be5e517-aea2-45c7-8e10-05fde13796ce'] 2024-11-08 13:59:25,485 - WARNING - Deleting VN ctest-ext_vn-66700392 failed..Will retry 2024-11-08 13:59:27,613 - DEBUG - Response for deleting network () 2024-11-08 13:59:27,613 - INFO - Deleting VN ctest-vn-23690825 2024-11-08 13:59:27,737 - DEBUG - Response for deleting network () 2024-11-08 13:59:28,001 - DEBUG - No XMPP flaps were noticed during the test 2024-11-08 13:59:28,001 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:27] 2024-11-08 13:59:28,001 - INFO - -------------------------------------------------------------------------------- 2024-11-08 13:59:28,727 - INFO - Deleted project: ctest-TestRoutersBasic-13365557, ID : 1d74c0de-5a05-4972-80fa-0542d1da22ee