2024-10-28 13:24:02,113 - INFO - Domain Default found not creating 2024-10-28 13:24:02,346 - INFO - Project ctest-TestRoutersBasic-81492528 not found, creating it 2024-10-28 13:24:02,901 - INFO - Created Project:ctest-TestRoutersBasic-81492528, ID : 11a8f6ae-6e5d-47f9-adf5-aaea02a7f7b2 2024-10-28 13:24:04,691 - INFO - ================================================================================ 2024-10-28 13:24:04,691 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2024-10-28 13:24:04,692 - 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-28 13:24:04,953 - DEBUG - Nothing to compare xmpp stats {'10.0.0.52': {'10.20.0.8': '0'}} with 2024-10-28 13:24:04,953 - INFO - Initial checks done. Running the testcase now 2024-10-28 13:24:04,953 - INFO - 2024-10-28 13:24:05,720 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-81492528 2024-10-28 13:24:05,818 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-81492528 2024-10-28 13:24:06,178 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-81492528', 'default']} 2024-10-28 13:24:06,522 - DEBUG - Response for create_network : {'network': {'id': 'b997e1d2-5cfd-4e6e-8927-f2fa350175c3', 'name': 'ctest-vn-49598929', 'tenant_id': '11a8f6ae6e5d47f9adf5aaea02a7f7b2', 'project_id': '11a8f6ae6e5d47f9adf5aaea02a7f7b2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-81492528', 'ctest-vn-49598929'], 'port_security_enabled': True, 'description': ''}} 2024-10-28 13:24:06,708 - DEBUG - Response for create_subnet : {'subnet': {'id': '97e9083b-5b21-4769-8b6f-51ee5126ae35', 'name': '', 'tenant_id': '11a8f6ae6e5d47f9adf5aaea02a7f7b2', 'network_id': 'b997e1d2-5cfd-4e6e-8927-f2fa350175c3', 'ip_version': 4, 'cidr': '88.72.206.64/26', 'allocation_pools': [{'start': '88.72.206.66', 'end': '88.72.206.126'}], 'gateway_ip': '88.72.206.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '88.72.206.66', 'tags': [], 'project_id': '11a8f6ae6e5d47f9adf5aaea02a7f7b2'}} 2024-10-28 13:24:06,731 - INFO - Created VN ctest-vn-49598929 2024-10-28 13:24:06,790 - DEBUG - VN ctest-vn-49598929 UUID is b997e1d2-5cfd-4e6e-8927-f2fa350175c3 2024-10-28 13:24:07,161 - DEBUG - Response for create_network : {'network': {'id': 'a9131572-01e9-4b64-b96b-b69eb2f4af35', 'name': 'ctest-ext_vn-13045297', 'tenant_id': '11a8f6ae6e5d47f9adf5aaea02a7f7b2', 'project_id': '11a8f6ae6e5d47f9adf5aaea02a7f7b2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-81492528', 'ctest-ext_vn-13045297'], 'port_security_enabled': True, 'description': ''}} 2024-10-28 13:24:07,366 - DEBUG - Response for create_subnet : {'subnet': {'id': '989749ca-6cb1-4ed2-91c4-6a275d88eae4', 'name': '', 'tenant_id': '11a8f6ae6e5d47f9adf5aaea02a7f7b2', 'network_id': 'a9131572-01e9-4b64-b96b-b69eb2f4af35', 'ip_version': 4, 'cidr': '86.151.15.0/26', 'allocation_pools': [{'start': '86.151.15.2', 'end': '86.151.15.62'}], 'gateway_ip': '86.151.15.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '86.151.15.2', 'tags': [], 'project_id': '11a8f6ae6e5d47f9adf5aaea02a7f7b2'}} 2024-10-28 13:24:07,390 - INFO - Created VN ctest-ext_vn-13045297 2024-10-28 13:24:07,450 - DEBUG - VN ctest-ext_vn-13045297 UUID is a9131572-01e9-4b64-b96b-b69eb2f4af35 2024-10-28 13:24:07,667 - DEBUG - Services list from nova: [, , ] 2024-10-28 13:24:08,767 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2160-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2160-1) 2024-10-28 13:24:10,024 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2160-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2160-1) 2024-10-28 13:24:10,122 - INFO - Setting gateway for router 835d91ea-0f33-4df6-81e5-3fb9e1c9ed14 to network a9131572-01e9-4b64-b96b-b69eb2f4af35 2024-10-28 13:24:10,197 - INFO - Adding interface with subnet_id 97e9083b-5b21-4769-8b6f-51ee5126ae35, port_id None to router 835d91ea-0f33-4df6-81e5-3fb9e1c9ed14 2024-10-28 13:24:10,706 - INFO - Waiting for VM ctest-TestRoutersBasic-81492528-67515957 to be up.. 2024-10-28 13:24:10,945 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-10-28 13:24:16,039 - DEBUG - VM is in ACTIVE state now 2024-10-28 13:24:16,040 - INFO - VM name : ctest-TestRoutersBasic-81492528-67515957 2024-10-28 13:24:16,134 - DEBUG - VM ctest-TestRoutersBasic-81492528-67515957 ID is 4cb04ff7-2a16-4a78-9832-dfe1d7727dff 2024-10-28 13:24:16,154 - DEBUG - VM ctest-TestRoutersBasic-81492528-67515957 launched on Node cn-jenkins-deploy-platform-ansible-os-2160-1 2024-10-28 13:24:16,242 - DEBUG - Requesting: http://10.0.0.52:8082/virtual-machine/4cb04ff7-2a16-4a78-9832-dfe1d7727dff 2024-10-28 13:24:16,545 - DEBUG - Requesting: http://10.0.0.52:8082/virtual-machine/4cb04ff7-2a16-4a78-9832-dfe1d7727dff 2024-10-28 13:24:16,582 - DEBUG - Requesting: http://10.0.0.52:8082/virtual-machine-interface/c4dd0e6e-0133-4676-8e7a-fc5e4b6ae7c1 2024-10-28 13:24:19,876 - 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 1034ms') 2024-10-28 13:24:19,876 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-81492528-67515957 failed! 2024-10-28 13:24:19,942 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-81492528:ctest-vn-49598929 is 88.72.206.65 and allocation pool is NOT set 2024-10-28 13:24:22,005 - 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.31 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.462 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.462/1.885/3.308/1.423 ms') 2024-10-28 13:24:22,006 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-81492528-67515957 passed 2024-10-28 13:24:22,166 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-28 13:24:22,166 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-81492528-67515957, IP 88.72.206.67, Port 22 2024-10-28 13:24:22,336 - DEBUG - VM ctest-TestRoutersBasic-81492528-67515957 is ready for SSH connections 2024-10-28 13:24:22,336 - INFO - Waiting for VM ctest-TestRoutersBasic-81492528-54594541 to be up.. 2024-10-28 13:24:22,439 - DEBUG - VM is in ACTIVE state now 2024-10-28 13:24:22,440 - INFO - VM name : ctest-TestRoutersBasic-81492528-54594541 2024-10-28 13:24:22,550 - DEBUG - VM ctest-TestRoutersBasic-81492528-54594541 ID is 15b06831-e0e6-48af-aca6-ea0e909f7de8 2024-10-28 13:24:22,550 - DEBUG - VM ctest-TestRoutersBasic-81492528-54594541 launched on Node cn-jenkins-deploy-platform-ansible-os-2160-1 2024-10-28 13:24:22,642 - DEBUG - Requesting: http://10.0.0.52:8082/virtual-machine/15b06831-e0e6-48af-aca6-ea0e909f7de8 2024-10-28 13:24:22,653 - DEBUG - Requesting: http://10.0.0.52:8082/virtual-machine-interface/febd4c7b-c6c3-4d50-8631-8621e937acc1 2024-10-28 13:24:23,922 - 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=3.35 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.428 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.428/1.887/3.347/1.459 ms') 2024-10-28 13:24:23,923 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-81492528-54594541 passed 2024-10-28 13:24:24,082 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-28 13:24:24,082 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-81492528-54594541, IP 86.151.15.3, Port 22 2024-10-28 13:24:24,258 - DEBUG - VM ctest-TestRoutersBasic-81492528-54594541 is ready for SSH connections 2024-10-28 13:24:24,258 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-28 13:24:24,258 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 86.151.15.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.52, gateway password: c0ntrail123 2024-10-28 13:24:24,259 - DEBUG - ping -s 56 -c 3 -W 1 86.151.15.3 2024-10-28 13:24:27,971 - DEBUG - PING 86.151.15.3 (86.151.15.3): 56 data bytes 64 bytes from 86.151.15.3: seq=0 ttl=62 time=5.691 ms 64 bytes from 86.151.15.3: seq=1 ttl=62 time=0.922 ms 64 bytes from 86.151.15.3: seq=2 ttl=62 time=1.207 ms --- 86.151.15.3 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.922/2.606/5.691 ms 2024-10-28 13:24:27,971 - INFO - Ping to IP 86.151.15.3 from VM ctest-TestRoutersBasic-81492528-67515957 passed 2024-10-28 13:24:27,971 - INFO - Deleting interface with subnet_id 97e9083b-5b21-4769-8b6f-51ee5126ae35, port_id None from router 835d91ea-0f33-4df6-81e5-3fb9e1c9ed14 2024-10-28 13:24:28,275 - INFO - Deleting VM ctest-TestRoutersBasic-81492528-54594541 2024-10-28 13:24:28,360 - INFO - Deleting VM ctest-TestRoutersBasic-81492528-67515957 2024-10-28 13:24:28,455 - INFO - Deleting VN ctest-ext_vn-13045297 2024-10-28 13:24:28,542 - DEBUG - VN a9131572-01e9-4b64-b96b-b69eb2f4af35 still in use: Unable to complete operation on network a9131572-01e9-4b64-b96b-b69eb2f4af35. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-87a23068-f469-4246-8db2-b1b9dac6fa13'] 2024-10-28 13:24:28,543 - WARNING - Deleting VN ctest-ext_vn-13045297 failed..Will retry 2024-10-28 13:24:30,684 - DEBUG - Response for deleting network () 2024-10-28 13:24:30,684 - INFO - Deleting VN ctest-vn-49598929 2024-10-28 13:24:30,833 - DEBUG - Response for deleting network () 2024-10-28 13:24:31,099 - DEBUG - No XMPP flaps were noticed during the test 2024-10-28 13:24:31,099 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:27] 2024-10-28 13:24:31,100 - INFO - -------------------------------------------------------------------------------- 2024-10-28 13:24:31,854 - INFO - Deleted project: ctest-TestRoutersBasic-81492528, ID : 11a8f6ae-6e5d-47f9-adf5-aaea02a7f7b2