2024-10-21 02:27:40,677 - INFO - Domain Default found not creating 2024-10-21 02:27:40,876 - INFO - Project ctest-TestRoutersBasic-52525291 not found, creating it 2024-10-21 02:27:41,370 - INFO - Created Project:ctest-TestRoutersBasic-52525291, ID : 6ebfa7b2-9e3b-4ef4-8f8b-bed3d1c2f0be 2024-10-21 02:27:43,146 - INFO - ================================================================================ 2024-10-21 02:27:43,147 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2024-10-21 02:27:43,147 - 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-10-21 02:27:43,403 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.21': '0'}} with 2024-10-21 02:27:43,403 - INFO - Initial checks done. Running the testcase now 2024-10-21 02:27:43,403 - INFO - 2024-10-21 02:27:44,232 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-52525291 2024-10-21 02:27:44,332 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-52525291 2024-10-21 02:27:44,659 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-52525291', 'default']} 2024-10-21 02:27:45,212 - DEBUG - Response for create_network : {'network': {'id': 'ad28d4b1-79e0-40b0-b7cb-92dea65ce147', 'name': 'ctest-vn-07944393', 'tenant_id': '6ebfa7b29e3b4ef48f8bbed3d1c2f0be', 'project_id': '6ebfa7b29e3b4ef48f8bbed3d1c2f0be', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-52525291', 'ctest-vn-07944393'], 'port_security_enabled': True, 'description': ''}} 2024-10-21 02:27:45,462 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd0026f12-b3f7-4d4e-8fdf-b32d56dac05b', 'name': '', 'tenant_id': '6ebfa7b29e3b4ef48f8bbed3d1c2f0be', 'network_id': 'ad28d4b1-79e0-40b0-b7cb-92dea65ce147', 'ip_version': 4, 'cidr': '148.104.232.64/26', 'allocation_pools': [{'start': '148.104.232.66', 'end': '148.104.232.126'}], 'gateway_ip': '148.104.232.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '148.104.232.66', 'tags': [], 'project_id': '6ebfa7b29e3b4ef48f8bbed3d1c2f0be'}} 2024-10-21 02:27:45,485 - INFO - Created VN ctest-vn-07944393 2024-10-21 02:27:45,535 - DEBUG - VN ctest-vn-07944393 UUID is ad28d4b1-79e0-40b0-b7cb-92dea65ce147 2024-10-21 02:27:45,902 - DEBUG - Response for create_network : {'network': {'id': '69daedf8-71dc-4770-ab90-daa33531b963', 'name': 'ctest-ext_vn-18705933', 'tenant_id': '6ebfa7b29e3b4ef48f8bbed3d1c2f0be', 'project_id': '6ebfa7b29e3b4ef48f8bbed3d1c2f0be', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-52525291', 'ctest-ext_vn-18705933'], 'port_security_enabled': True, 'description': ''}} 2024-10-21 02:27:46,148 - DEBUG - Response for create_subnet : {'subnet': {'id': 'edcb76cc-3740-4332-926c-c144271e7254', 'name': '', 'tenant_id': '6ebfa7b29e3b4ef48f8bbed3d1c2f0be', 'network_id': '69daedf8-71dc-4770-ab90-daa33531b963', 'ip_version': 4, 'cidr': '184.134.82.128/26', 'allocation_pools': [{'start': '184.134.82.130', 'end': '184.134.82.190'}], 'gateway_ip': '184.134.82.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '184.134.82.130', 'tags': [], 'project_id': '6ebfa7b29e3b4ef48f8bbed3d1c2f0be'}} 2024-10-21 02:27:46,172 - INFO - Created VN ctest-ext_vn-18705933 2024-10-21 02:27:46,228 - DEBUG - VN ctest-ext_vn-18705933 UUID is 69daedf8-71dc-4770-ab90-daa33531b963 2024-10-21 02:27:46,427 - DEBUG - Services list from nova: [, , ] 2024-10-21 02:27:47,642 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2122-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2122-1) 2024-10-21 02:27:48,990 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2122-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2122-1) 2024-10-21 02:27:49,097 - INFO - Setting gateway for router 2a783a7d-cc53-4fe1-b155-80c8dea5f776 to network 69daedf8-71dc-4770-ab90-daa33531b963 2024-10-21 02:27:49,179 - INFO - Adding interface with subnet_id d0026f12-b3f7-4d4e-8fdf-b32d56dac05b, port_id None to router 2a783a7d-cc53-4fe1-b155-80c8dea5f776 2024-10-21 02:27:49,631 - INFO - Waiting for VM ctest-TestRoutersBasic-52525291-18560579 to be up.. 2024-10-21 02:27:49,856 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-10-21 02:27:54,944 - DEBUG - VM is in ACTIVE state now 2024-10-21 02:27:54,945 - INFO - VM name : ctest-TestRoutersBasic-52525291-18560579 2024-10-21 02:27:55,042 - DEBUG - VM ctest-TestRoutersBasic-52525291-18560579 ID is cb4c78a2-b556-4ad4-a126-17caf94014f4 2024-10-21 02:27:55,063 - DEBUG - VM ctest-TestRoutersBasic-52525291-18560579 launched on Node cn-jenkins-deploy-platform-ansible-os-2122-1 2024-10-21 02:27:55,151 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine/cb4c78a2-b556-4ad4-a126-17caf94014f4 2024-10-21 02:27:55,496 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine/cb4c78a2-b556-4ad4-a126-17caf94014f4 2024-10-21 02:27:55,538 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine-interface/94af90e0-d3e6-4f6b-9c94-047b8d461f56 2024-10-21 02:27:58,806 - 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 1018ms') 2024-10-21 02:27:58,806 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-52525291-18560579 failed! 2024-10-21 02:27:58,859 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-52525291:ctest-vn-07944393 is 148.104.232.65 and allocation pool is NOT set 2024-10-21 02:28:00,926 - 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.91 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.738 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.738/1.822/2.906/1.084 ms') 2024-10-21 02:28:00,926 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-52525291-18560579 passed 2024-10-21 02:28:01,076 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-21 02:28:01,076 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-52525291-18560579, IP 148.104.232.67, Port 22 2024-10-21 02:28:01,246 - DEBUG - VM ctest-TestRoutersBasic-52525291-18560579 is ready for SSH connections 2024-10-21 02:28:01,246 - INFO - Waiting for VM ctest-TestRoutersBasic-52525291-92352623 to be up.. 2024-10-21 02:28:01,340 - DEBUG - VM is in ACTIVE state now 2024-10-21 02:28:01,340 - INFO - VM name : ctest-TestRoutersBasic-52525291-92352623 2024-10-21 02:28:01,433 - DEBUG - VM ctest-TestRoutersBasic-52525291-92352623 ID is ef35886a-7412-404b-a37e-82e812e351f9 2024-10-21 02:28:01,433 - DEBUG - VM ctest-TestRoutersBasic-52525291-92352623 launched on Node cn-jenkins-deploy-platform-ansible-os-2122-1 2024-10-21 02:28:01,529 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine/ef35886a-7412-404b-a37e-82e812e351f9 2024-10-21 02:28:01,540 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine-interface/0fbc607b-a438-465d-a1cf-aa94a0754586 2024-10-21 02:28:02,789 - 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.07 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.905 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.905/2.487/4.069/1.582 ms') 2024-10-21 02:28:02,789 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-52525291-92352623 passed 2024-10-21 02:28:02,940 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-21 02:28:02,940 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-52525291-92352623, IP 184.134.82.131, Port 22 2024-10-21 02:28:03,100 - DEBUG - VM ctest-TestRoutersBasic-52525291-92352623 is ready for SSH connections 2024-10-21 02:28:03,100 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-21 02:28:03,100 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 184.134.82.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.38, gateway password: c0ntrail123 2024-10-21 02:28:03,100 - DEBUG - ping -s 56 -c 3 -W 1 184.134.82.131 2024-10-21 02:28:07,033 - DEBUG - PING 184.134.82.131 (184.134.82.131): 56 data bytes 64 bytes from 184.134.82.131: seq=0 ttl=62 time=5.843 ms 64 bytes from 184.134.82.131: seq=1 ttl=62 time=0.912 ms 64 bytes from 184.134.82.131: seq=2 ttl=62 time=1.025 ms --- 184.134.82.131 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.912/2.593/5.843 ms 2024-10-21 02:28:07,033 - INFO - Ping to IP 184.134.82.131 from VM ctest-TestRoutersBasic-52525291-18560579 passed 2024-10-21 02:28:07,033 - INFO - Deleting interface with subnet_id d0026f12-b3f7-4d4e-8fdf-b32d56dac05b, port_id None from router 2a783a7d-cc53-4fe1-b155-80c8dea5f776 2024-10-21 02:28:07,260 - INFO - Deleting VM ctest-TestRoutersBasic-52525291-92352623 2024-10-21 02:28:07,336 - INFO - Deleting VM ctest-TestRoutersBasic-52525291-18560579 2024-10-21 02:28:07,420 - INFO - Deleting VN ctest-ext_vn-18705933 2024-10-21 02:28:07,528 - DEBUG - VN 69daedf8-71dc-4770-ab90-daa33531b963 still in use: Unable to complete operation on network 69daedf8-71dc-4770-ab90-daa33531b963. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-f9248c69-16bd-4918-8f35-da04e850cdf6'] 2024-10-21 02:28:07,528 - WARNING - Deleting VN ctest-ext_vn-18705933 failed..Will retry 2024-10-21 02:28:09,660 - DEBUG - Response for deleting network () 2024-10-21 02:28:09,660 - INFO - Deleting VN ctest-vn-07944393 2024-10-21 02:28:09,787 - DEBUG - Response for deleting network () 2024-10-21 02:28:10,046 - DEBUG - No XMPP flaps were noticed during the test
2024-10-21 02:28:10,046 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:27]
2024-10-21 02:28:10,046 - INFO - -------------------------------------------------------------------------------- 2024-10-21 02:28:10,783 - INFO - Deleted project: ctest-TestRoutersBasic-52525291, ID : 6ebfa7b2-9e3b-4ef4-8f8b-bed3d1c2f0be