2025-01-13 17:23:46,376 - INFO - Domain Default found not creating 2025-01-13 17:23:46,556 - INFO - Project ctest-TestRoutersBasic-94020465 not found, creating it 2025-01-13 17:23:47,084 - INFO - Created Project:ctest-TestRoutersBasic-94020465, ID : e0298257-5a3d-401e-9a75-d17a141be174 2025-01-13 17:23:49,289 - INFO - ================================================================================ 2025-01-13 17:23:49,289 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2025-01-13 17:23:49,289 - 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 2025-01-13 17:23:49,547 - DEBUG - Nothing to compare xmpp stats {'10.0.0.12': {'10.20.0.7': '0'}} with 2025-01-13 17:23:49,547 - INFO - Initial checks done. Running the testcase now 2025-01-13 17:23:49,547 - INFO - 2025-01-13 17:23:50,278 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-94020465 2025-01-13 17:23:50,381 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-94020465 2025-01-13 17:23:50,721 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-94020465', 'default']} 2025-01-13 17:23:51,078 - DEBUG - Response for create_network : {'network': {'id': 'd21455c2-3269-4247-a940-114a2e1ac12e', 'name': 'ctest-vn-68347222', 'tenant_id': 'e02982575a3d401e9a75d17a141be174', 'project_id': 'e02982575a3d401e9a75d17a141be174', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-94020465', 'ctest-vn-68347222'], 'port_security_enabled': True, 'description': ''}} 2025-01-13 17:23:51,254 - DEBUG - Response for create_subnet : {'subnet': {'id': '52a805b1-a836-492f-9fde-1802baf3a43a', 'name': '', 'tenant_id': 'e02982575a3d401e9a75d17a141be174', 'network_id': 'd21455c2-3269-4247-a940-114a2e1ac12e', 'ip_version': 4, 'cidr': '139.5.97.128/26', 'allocation_pools': [{'start': '139.5.97.130', 'end': '139.5.97.190'}], 'gateway_ip': '139.5.97.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '139.5.97.130', 'tags': [], 'project_id': 'e02982575a3d401e9a75d17a141be174'}} 2025-01-13 17:23:51,275 - INFO - Created VN ctest-vn-68347222 2025-01-13 17:23:51,341 - DEBUG - VN ctest-vn-68347222 UUID is d21455c2-3269-4247-a940-114a2e1ac12e 2025-01-13 17:23:51,701 - DEBUG - Response for create_network : {'network': {'id': '2877891b-a083-46a7-9635-aeccf7f36857', 'name': 'ctest-ext_vn-51898436', 'tenant_id': 'e02982575a3d401e9a75d17a141be174', 'project_id': 'e02982575a3d401e9a75d17a141be174', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-94020465', 'ctest-ext_vn-51898436'], 'port_security_enabled': True, 'description': ''}} 2025-01-13 17:23:51,915 - DEBUG - Response for create_subnet : {'subnet': {'id': 'dde2e192-dfea-4129-9729-e14cb2f8e74d', 'name': '', 'tenant_id': 'e02982575a3d401e9a75d17a141be174', 'network_id': '2877891b-a083-46a7-9635-aeccf7f36857', 'ip_version': 4, 'cidr': '60.21.139.0/26', 'allocation_pools': [{'start': '60.21.139.2', 'end': '60.21.139.62'}], 'gateway_ip': '60.21.139.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '60.21.139.2', 'tags': [], 'project_id': 'e02982575a3d401e9a75d17a141be174'}} 2025-01-13 17:23:51,935 - INFO - Created VN ctest-ext_vn-51898436 2025-01-13 17:23:51,989 - DEBUG - VN ctest-ext_vn-51898436 UUID is 2877891b-a083-46a7-9635-aeccf7f36857 2025-01-13 17:23:52,185 - DEBUG - Services list from nova: [, , ] 2025-01-13 17:23:53,283 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2614-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2614-1) 2025-01-13 17:23:54,529 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2614-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2614-1) 2025-01-13 17:23:54,656 - INFO - Setting gateway for router a3437da1-d37f-48bd-8330-274d71d68ae5 to network 2877891b-a083-46a7-9635-aeccf7f36857 2025-01-13 17:23:54,722 - INFO - Adding interface with subnet_id 52a805b1-a836-492f-9fde-1802baf3a43a, port_id None to router a3437da1-d37f-48bd-8330-274d71d68ae5 2025-01-13 17:23:55,153 - INFO - Waiting for VM ctest-TestRoutersBasic-94020465-53394914 to be up.. 2025-01-13 17:23:55,391 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-01-13 17:24:00,482 - DEBUG - VM is in ACTIVE state now 2025-01-13 17:24:00,482 - INFO - VM name : ctest-TestRoutersBasic-94020465-53394914 2025-01-13 17:24:00,576 - DEBUG - VM ctest-TestRoutersBasic-94020465-53394914 ID is 38de8e71-2621-494c-bebd-f7d6d874f586 2025-01-13 17:24:00,597 - DEBUG - VM ctest-TestRoutersBasic-94020465-53394914 launched on Node cn-jenkins-deploy-platform-ansible-os-2614-1 2025-01-13 17:24:00,684 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-machine/38de8e71-2621-494c-bebd-f7d6d874f586 2025-01-13 17:24:01,001 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-machine/38de8e71-2621-494c-bebd-f7d6d874f586 2025-01-13 17:24:01,045 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-machine-interface/1798f384-c3d0-4f26-a2bd-726317afcf95 2025-01-13 17:24:04,323 - 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') 2025-01-13 17:24:04,323 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-94020465-53394914 failed! 2025-01-13 17:24:04,385 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-94020465:ctest-vn-68347222 is 139.5.97.129 and allocation pool is NOT set 2025-01-13 17:24:06,449 - 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.37 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=2.50 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 = 2.503/3.936/5.370/1.433 ms') 2025-01-13 17:24:06,449 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-94020465-53394914 passed 2025-01-13 17:24:06,617 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-13 17:24:06,617 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-94020465-53394914, IP 139.5.97.131, Port 22 2025-01-13 17:24:06,773 - DEBUG - VM ctest-TestRoutersBasic-94020465-53394914 is ready for SSH connections 2025-01-13 17:24:06,773 - INFO - Waiting for VM ctest-TestRoutersBasic-94020465-14565021 to be up.. 2025-01-13 17:24:06,875 - DEBUG - VM is in ACTIVE state now 2025-01-13 17:24:06,875 - INFO - VM name : ctest-TestRoutersBasic-94020465-14565021 2025-01-13 17:24:06,964 - DEBUG - VM ctest-TestRoutersBasic-94020465-14565021 ID is d0892958-8ba7-4022-b231-824ecd64aa4c 2025-01-13 17:24:06,964 - DEBUG - VM ctest-TestRoutersBasic-94020465-14565021 launched on Node cn-jenkins-deploy-platform-ansible-os-2614-1 2025-01-13 17:24:07,062 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-machine/d0892958-8ba7-4022-b231-824ecd64aa4c 2025-01-13 17:24:07,072 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-machine-interface/0688fef8-f431-48c2-8e51-8fb8139798b9 2025-01-13 17:24:08,323 - 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.76 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.446 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 = 0.446/1.604/2.763/1.158 ms') 2025-01-13 17:24:08,324 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-94020465-14565021 passed 2025-01-13 17:24:08,481 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-13 17:24:08,481 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-94020465-14565021, IP 60.21.139.3, Port 22 2025-01-13 17:24:08,650 - DEBUG - VM ctest-TestRoutersBasic-94020465-14565021 is ready for SSH connections 2025-01-13 17:24:08,651 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-13 17:24:08,651 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 60.21.139.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.12, gateway password: c0ntrail123 2025-01-13 17:24:08,651 - DEBUG - ping -s 56 -c 3 -W 1 60.21.139.3 2025-01-13 17:24:12,401 - DEBUG - PING 60.21.139.3 (60.21.139.3): 56 data bytes 64 bytes from 60.21.139.3: seq=0 ttl=62 time=7.959 ms 64 bytes from 60.21.139.3: seq=1 ttl=62 time=1.187 ms 64 bytes from 60.21.139.3: seq=2 ttl=62 time=0.893 ms --- 60.21.139.3 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.893/3.346/7.959 ms 2025-01-13 17:24:12,402 - INFO - Ping to IP 60.21.139.3 from VM ctest-TestRoutersBasic-94020465-53394914 passed 2025-01-13 17:24:12,402 - INFO - Deleting interface with subnet_id 52a805b1-a836-492f-9fde-1802baf3a43a, port_id None from router a3437da1-d37f-48bd-8330-274d71d68ae5 2025-01-13 17:24:12,636 - INFO - Deleting VM ctest-TestRoutersBasic-94020465-14565021 2025-01-13 17:24:12,725 - INFO - Deleting VM ctest-TestRoutersBasic-94020465-53394914 2025-01-13 17:24:12,830 - INFO - Deleting VN ctest-ext_vn-51898436 2025-01-13 17:24:12,918 - DEBUG - VN 2877891b-a083-46a7-9635-aeccf7f36857 still in use: Unable to complete operation on network 2877891b-a083-46a7-9635-aeccf7f36857. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-00eb5a7c-d917-4390-bc8e-8461803819f0'] 2025-01-13 17:24:12,918 - WARNING - Deleting VN ctest-ext_vn-51898436 failed..Will retry 2025-01-13 17:24:15,071 - DEBUG - Response for deleting network () 2025-01-13 17:24:15,071 - INFO - Deleting VN ctest-vn-68347222 2025-01-13 17:24:15,214 - DEBUG - Response for deleting network () 2025-01-13 17:24:15,498 - DEBUG - No XMPP flaps were noticed during the test 2025-01-13 17:24:15,498 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:26] 2025-01-13 17:24:15,499 - INFO - -------------------------------------------------------------------------------- 2025-01-13 17:24:16,226 - INFO - Deleted project: ctest-TestRoutersBasic-94020465, ID : e0298257-5a3d-401e-9a75-d17a141be174