2024-11-03 20:12:55,344 - INFO - Domain Default found not creating 2024-11-03 20:12:55,528 - INFO - Project ctest-TestRoutersBasic-65507713 not found, creating it 2024-11-03 20:12:56,002 - INFO - Created Project:ctest-TestRoutersBasic-65507713, ID : fd427f70-1c4c-41f2-bfaa-c7068c92d078 2024-11-03 20:12:57,796 - INFO - ================================================================================ 2024-11-03 20:12:57,796 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2024-11-03 20:12:57,796 - 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-03 20:12:58,064 - DEBUG - Nothing to compare xmpp stats {'10.0.0.34': {'10.20.0.5': '0'}} with 2024-11-03 20:12:58,064 - INFO - Initial checks done. Running the testcase now 2024-11-03 20:12:58,065 - INFO - 2024-11-03 20:12:58,898 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-65507713 2024-11-03 20:12:58,998 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-65507713 2024-11-03 20:12:59,354 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-65507713', 'default']} 2024-11-03 20:12:59,711 - DEBUG - Response for create_network : {'network': {'id': 'b16f80e1-b442-454e-94c3-3482a5d86348', 'name': 'ctest-vn-80986956', 'tenant_id': 'fd427f701c4c41f2bfaac7068c92d078', 'project_id': 'fd427f701c4c41f2bfaac7068c92d078', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-65507713', 'ctest-vn-80986956'], 'port_security_enabled': True, 'description': ''}} 2024-11-03 20:12:59,930 - DEBUG - Response for create_subnet : {'subnet': {'id': '237ab55b-5018-46c9-939a-bb240196a9f8', 'name': '', 'tenant_id': 'fd427f701c4c41f2bfaac7068c92d078', 'network_id': 'b16f80e1-b442-454e-94c3-3482a5d86348', 'ip_version': 4, 'cidr': '71.87.134.192/26', 'allocation_pools': [{'start': '71.87.134.194', 'end': '71.87.134.254'}], 'gateway_ip': '71.87.134.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '71.87.134.194', 'tags': [], 'project_id': 'fd427f701c4c41f2bfaac7068c92d078'}} 2024-11-03 20:12:59,951 - INFO - Created VN ctest-vn-80986956 2024-11-03 20:13:00,010 - DEBUG - VN ctest-vn-80986956 UUID is b16f80e1-b442-454e-94c3-3482a5d86348 2024-11-03 20:13:00,423 - DEBUG - Response for create_network : {'network': {'id': 'd44957bf-adbe-4329-a72f-1f82ba47ca8b', 'name': 'ctest-ext_vn-14002584', 'tenant_id': 'fd427f701c4c41f2bfaac7068c92d078', 'project_id': 'fd427f701c4c41f2bfaac7068c92d078', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-65507713', 'ctest-ext_vn-14002584'], 'port_security_enabled': True, 'description': ''}} 2024-11-03 20:13:00,633 - DEBUG - Response for create_subnet : {'subnet': {'id': '9b3d6ccd-063e-4a73-b276-4a2537a6b591', 'name': '', 'tenant_id': 'fd427f701c4c41f2bfaac7068c92d078', 'network_id': 'd44957bf-adbe-4329-a72f-1f82ba47ca8b', 'ip_version': 4, 'cidr': '120.118.167.192/26', 'allocation_pools': [{'start': '120.118.167.194', 'end': '120.118.167.254'}], 'gateway_ip': '120.118.167.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '120.118.167.194', 'tags': [], 'project_id': 'fd427f701c4c41f2bfaac7068c92d078'}} 2024-11-03 20:13:00,658 - INFO - Created VN ctest-ext_vn-14002584 2024-11-03 20:13:00,718 - DEBUG - VN ctest-ext_vn-14002584 UUID is d44957bf-adbe-4329-a72f-1f82ba47ca8b 2024-11-03 20:13:00,910 - DEBUG - Services list from nova: [, , ] 2024-11-03 20:13:02,078 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2189-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2189-1) 2024-11-03 20:13:03,428 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2189-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2189-1) 2024-11-03 20:13:03,540 - INFO - Setting gateway for router bbe5d83d-5f29-422b-b8e2-898efebc9eb8 to network d44957bf-adbe-4329-a72f-1f82ba47ca8b 2024-11-03 20:13:03,655 - INFO - Adding interface with subnet_id 237ab55b-5018-46c9-939a-bb240196a9f8, port_id None to router bbe5d83d-5f29-422b-b8e2-898efebc9eb8 2024-11-03 20:13:04,064 - INFO - Waiting for VM ctest-TestRoutersBasic-65507713-77073165 to be up.. 2024-11-03 20:13:04,239 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-11-03 20:13:09,360 - DEBUG - VM is in ACTIVE state now 2024-11-03 20:13:09,361 - INFO - VM name : ctest-TestRoutersBasic-65507713-77073165 2024-11-03 20:13:09,466 - DEBUG - VM ctest-TestRoutersBasic-65507713-77073165 ID is c665c9f8-6bac-471c-a206-560e2f17ab47 2024-11-03 20:13:09,491 - DEBUG - VM ctest-TestRoutersBasic-65507713-77073165 launched on Node cn-jenkins-deploy-platform-ansible-os-2189-1 2024-11-03 20:13:09,586 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-machine/c665c9f8-6bac-471c-a206-560e2f17ab47 2024-11-03 20:13:10,033 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-machine/c665c9f8-6bac-471c-a206-560e2f17ab47 2024-11-03 20:13:10,084 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-machine-interface/0aa3ad96-af67-4290-8cd9-6622896707b2 2024-11-03 20:13:13,387 - 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 1030ms') 2024-11-03 20:13:13,387 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-65507713-77073165 failed! 2024-11-03 20:13:13,454 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-65507713:ctest-vn-80986956 is 71.87.134.193 and allocation pool is NOT set 2024-11-03 20:13:15,518 - 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=5.86 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=1.23 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 = 1.232/3.545/5.859/2.313 ms') 2024-11-03 20:13:15,518 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-65507713-77073165 passed 2024-11-03 20:13:15,725 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-03 20:13:15,726 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-65507713-77073165, IP 71.87.134.195, Port 22 2024-11-03 20:13:15,910 - DEBUG - VM ctest-TestRoutersBasic-65507713-77073165 is ready for SSH connections 2024-11-03 20:13:15,910 - INFO - Waiting for VM ctest-TestRoutersBasic-65507713-52203501 to be up.. 2024-11-03 20:13:16,101 - DEBUG - VM is in ACTIVE state now 2024-11-03 20:13:16,102 - INFO - VM name : ctest-TestRoutersBasic-65507713-52203501 2024-11-03 20:13:16,239 - DEBUG - VM ctest-TestRoutersBasic-65507713-52203501 ID is c9858474-37ce-412f-9401-4cc9767dc954 2024-11-03 20:13:16,240 - DEBUG - VM ctest-TestRoutersBasic-65507713-52203501 launched on Node cn-jenkins-deploy-platform-ansible-os-2189-1 2024-11-03 20:13:16,383 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-machine/c9858474-37ce-412f-9401-4cc9767dc954 2024-11-03 20:13:16,396 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-machine-interface/afea6a98-bb2a-4242-a983-c55d22465c3e 2024-11-03 20:13:17,722 - 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.39 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=1.05 ms\r\n\r\n--- 169.254.0.4 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1002ms\r\nrtt min/avg/max/mdev = 1.049/2.717/4.386/1.668 ms') 2024-11-03 20:13:17,722 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-65507713-52203501 passed 2024-11-03 20:13:17,874 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-03 20:13:17,874 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-65507713-52203501, IP 120.118.167.195, Port 22 2024-11-03 20:13:18,034 - DEBUG - VM ctest-TestRoutersBasic-65507713-52203501 is ready for SSH connections 2024-11-03 20:13:18,034 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-03 20:13:18,034 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 120.118.167.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.34, gateway password: c0ntrail123 2024-11-03 20:13:18,034 - DEBUG - ping -s 56 -c 3 -W 1 120.118.167.195 2024-11-03 20:13:21,793 - DEBUG - PING 120.118.167.195 (120.118.167.195): 56 data bytes 64 bytes from 120.118.167.195: seq=0 ttl=62 time=7.745 ms 64 bytes from 120.118.167.195: seq=1 ttl=62 time=1.002 ms 64 bytes from 120.118.167.195: seq=2 ttl=62 time=1.077 ms --- 120.118.167.195 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.002/3.274/7.745 ms 2024-11-03 20:13:21,794 - INFO - Ping to IP 120.118.167.195 from VM ctest-TestRoutersBasic-65507713-77073165 passed 2024-11-03 20:13:21,794 - INFO - Deleting interface with subnet_id 237ab55b-5018-46c9-939a-bb240196a9f8, port_id None from router bbe5d83d-5f29-422b-b8e2-898efebc9eb8 2024-11-03 20:13:22,055 - INFO - Deleting VM ctest-TestRoutersBasic-65507713-52203501 2024-11-03 20:13:22,145 - INFO - Deleting VM ctest-TestRoutersBasic-65507713-77073165 2024-11-03 20:13:22,255 - INFO - Deleting VN ctest-ext_vn-14002584 2024-11-03 20:13:22,368 - DEBUG - VN d44957bf-adbe-4329-a72f-1f82ba47ca8b still in use: Unable to complete operation on network d44957bf-adbe-4329-a72f-1f82ba47ca8b. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-0a7b8e3f-e904-4d6c-b49b-65d24cdb5e7f'] 2024-11-03 20:13:22,368 - WARNING - Deleting VN ctest-ext_vn-14002584 failed..Will retry 2024-11-03 20:13:24,535 - DEBUG - Response for deleting network () 2024-11-03 20:13:24,535 - INFO - Deleting VN ctest-vn-80986956 2024-11-03 20:13:24,677 - DEBUG - Response for deleting network () 2024-11-03 20:13:24,936 - DEBUG - No XMPP flaps were noticed during the test
2024-11-03 20:13:24,936 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:27]
2024-11-03 20:13:24,937 - INFO - -------------------------------------------------------------------------------- 2024-11-03 20:13:25,801 - INFO - Deleted project: ctest-TestRoutersBasic-65507713, ID : fd427f70-1c4c-41f2-bfaa-c7068c92d078