2024-09-05 14:07:25,191 - INFO - Domain Default found not creating 2024-09-05 14:07:25,383 - INFO - Project ctest-TestRoutersBasic-43366639 not found, creating it 2024-09-05 14:07:25,877 - INFO - Created Project:ctest-TestRoutersBasic-43366639, ID : 1b8b6af2-2d51-4f80-a99d-40bc10590b9a 2024-09-05 14:07:27,460 - INFO - ================================================================================ 2024-09-05 14:07:27,460 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2024-09-05 14:07:27,460 - 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-09-05 14:07:27,715 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.18': '0'}} with 2024-09-05 14:07:27,715 - INFO - Initial checks done. Running the testcase now 2024-09-05 14:07:27,715 - INFO - 2024-09-05 14:07:28,431 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-43366639 2024-09-05 14:07:28,528 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-43366639 2024-09-05 14:07:28,852 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-43366639', 'default']} 2024-09-05 14:07:29,168 - DEBUG - Response for create_network : {'network': {'id': 'c6f02ecb-4700-454c-90a8-67ef8e5d69bb', 'name': 'ctest-vn-62020194', 'tenant_id': '1b8b6af22d514f80a99d40bc10590b9a', 'project_id': '1b8b6af22d514f80a99d40bc10590b9a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-43366639', 'ctest-vn-62020194'], 'port_security_enabled': True, 'description': ''}} 2024-09-05 14:07:29,377 - DEBUG - Response for create_subnet : {'subnet': {'id': '83143667-ec63-4603-b6c4-ce6d0ff18623', 'name': '', 'tenant_id': '1b8b6af22d514f80a99d40bc10590b9a', 'network_id': 'c6f02ecb-4700-454c-90a8-67ef8e5d69bb', 'ip_version': 4, 'cidr': '6.31.21.192/26', 'allocation_pools': [{'start': '6.31.21.194', 'end': '6.31.21.254'}], 'gateway_ip': '6.31.21.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '6.31.21.194', 'tags': [], 'project_id': '1b8b6af22d514f80a99d40bc10590b9a'}} 2024-09-05 14:07:29,398 - INFO - Created VN ctest-vn-62020194 2024-09-05 14:07:29,448 - DEBUG - VN ctest-vn-62020194 UUID is c6f02ecb-4700-454c-90a8-67ef8e5d69bb 2024-09-05 14:07:29,807 - DEBUG - Response for create_network : {'network': {'id': '842cd6f7-1ec1-479e-a74d-4aa5f3876776', 'name': 'ctest-ext_vn-86186647', 'tenant_id': '1b8b6af22d514f80a99d40bc10590b9a', 'project_id': '1b8b6af22d514f80a99d40bc10590b9a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-43366639', 'ctest-ext_vn-86186647'], 'port_security_enabled': True, 'description': ''}} 2024-09-05 14:07:30,019 - DEBUG - Response for create_subnet : {'subnet': {'id': '99de4967-602f-445c-ac27-f922e72285d1', 'name': '', 'tenant_id': '1b8b6af22d514f80a99d40bc10590b9a', 'network_id': '842cd6f7-1ec1-479e-a74d-4aa5f3876776', 'ip_version': 4, 'cidr': '184.17.92.64/26', 'allocation_pools': [{'start': '184.17.92.66', 'end': '184.17.92.126'}], 'gateway_ip': '184.17.92.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '184.17.92.66', 'tags': [], 'project_id': '1b8b6af22d514f80a99d40bc10590b9a'}} 2024-09-05 14:07:30,043 - INFO - Created VN ctest-ext_vn-86186647 2024-09-05 14:07:30,096 - DEBUG - VN ctest-ext_vn-86186647 UUID is 842cd6f7-1ec1-479e-a74d-4aa5f3876776 2024-09-05 14:07:30,262 - DEBUG - Services list from nova: [, , ] 2024-09-05 14:07:31,315 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1855-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1855-1) 2024-09-05 14:07:32,464 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1855-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1855-1) 2024-09-05 14:07:32,559 - INFO - Setting gateway for router 98a84a84-8903-4fa5-b694-b163f0e3bab4 to network 842cd6f7-1ec1-479e-a74d-4aa5f3876776 2024-09-05 14:07:32,640 - INFO - Adding interface with subnet_id 83143667-ec63-4603-b6c4-ce6d0ff18623, port_id None to router 98a84a84-8903-4fa5-b694-b163f0e3bab4 2024-09-05 14:07:33,022 - INFO - Waiting for VM ctest-TestRoutersBasic-43366639-20663673 to be up.. 2024-09-05 14:07:33,259 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-09-05 14:07:38,343 - DEBUG - VM is in ACTIVE state now 2024-09-05 14:07:38,344 - INFO - VM name : ctest-TestRoutersBasic-43366639-20663673 2024-09-05 14:07:38,424 - DEBUG - VM ctest-TestRoutersBasic-43366639-20663673 ID is 31b6ed77-a67e-43c4-9b80-5853f0f4dd0d 2024-09-05 14:07:38,443 - DEBUG - VM ctest-TestRoutersBasic-43366639-20663673 launched on Node cn-jenkins-deploy-platform-ansible-os-1855-1 2024-09-05 14:07:38,526 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-machine/31b6ed77-a67e-43c4-9b80-5853f0f4dd0d 2024-09-05 14:07:38,824 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-machine/31b6ed77-a67e-43c4-9b80-5853f0f4dd0d 2024-09-05 14:07:38,860 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-machine-interface/d47345e6-9cb0-4cdb-8f3b-9c7eca2cd9e6 2024-09-05 14:07:42,116 - 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 1009ms') 2024-09-05 14:07:42,116 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-43366639-20663673 failed! 2024-09-05 14:07:42,172 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-43366639:ctest-vn-62020194 is 6.31.21.193 and allocation pool is NOT set 2024-09-05 14:07:44,229 - 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.87 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.420 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.420/1.644/2.869/1.224 ms') 2024-09-05 14:07:44,229 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-43366639-20663673 passed 2024-09-05 14:07:44,384 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-05 14:07:44,384 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-43366639-20663673, IP 6.31.21.195, Port 22 2024-09-05 14:07:44,553 - DEBUG - VM ctest-TestRoutersBasic-43366639-20663673 is ready for SSH connections 2024-09-05 14:07:44,554 - INFO - Waiting for VM ctest-TestRoutersBasic-43366639-01884205 to be up.. 2024-09-05 14:07:44,647 - DEBUG - VM is in ACTIVE state now 2024-09-05 14:07:44,647 - INFO - VM name : ctest-TestRoutersBasic-43366639-01884205 2024-09-05 14:07:44,737 - DEBUG - VM ctest-TestRoutersBasic-43366639-01884205 ID is 8b585a20-acbf-4786-8c47-625aebc893bc 2024-09-05 14:07:44,737 - DEBUG - VM ctest-TestRoutersBasic-43366639-01884205 launched on Node cn-jenkins-deploy-platform-ansible-os-1855-1 2024-09-05 14:07:44,843 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-machine/8b585a20-acbf-4786-8c47-625aebc893bc 2024-09-05 14:07:44,858 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-machine-interface/f6b561b4-669c-4084-ab3f-b2e0be68b883 2024-09-05 14:07:46,097 - 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.98 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.384 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.384/1.683/2.982/1.299 ms') 2024-09-05 14:07:46,098 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-43366639-01884205 passed 2024-09-05 14:07:46,248 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-05 14:07:46,248 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-43366639-01884205, IP 184.17.92.67, Port 22 2024-09-05 14:07:46,407 - DEBUG - VM ctest-TestRoutersBasic-43366639-01884205 is ready for SSH connections 2024-09-05 14:07:46,407 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-05 14:07:46,407 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 184.17.92.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.33, gateway password: c0ntrail123 2024-09-05 14:07:46,407 - DEBUG - ping -s 56 -c 3 -W 1 184.17.92.67 2024-09-05 14:07:50,401 - DEBUG - PING 184.17.92.67 (184.17.92.67): 56 data bytes 64 bytes from 184.17.92.67: seq=0 ttl=62 time=5.756 ms 64 bytes from 184.17.92.67: seq=1 ttl=62 time=0.809 ms 64 bytes from 184.17.92.67: seq=2 ttl=62 time=0.931 ms --- 184.17.92.67 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.809/2.498/5.756 ms 2024-09-05 14:07:50,401 - INFO - Ping to IP 184.17.92.67 from VM ctest-TestRoutersBasic-43366639-20663673 passed 2024-09-05 14:07:50,402 - INFO - Deleting interface with subnet_id 83143667-ec63-4603-b6c4-ce6d0ff18623, port_id None from router 98a84a84-8903-4fa5-b694-b163f0e3bab4 2024-09-05 14:07:50,605 - INFO - Deleting VM ctest-TestRoutersBasic-43366639-01884205 2024-09-05 14:07:50,672 - INFO - Deleting VM ctest-TestRoutersBasic-43366639-20663673 2024-09-05 14:07:50,750 - INFO - Deleting VN ctest-ext_vn-86186647 2024-09-05 14:07:50,814 - DEBUG - VN 842cd6f7-1ec1-479e-a74d-4aa5f3876776 still in use: Unable to complete operation on network 842cd6f7-1ec1-479e-a74d-4aa5f3876776. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-ef58a02d-dbdb-420a-b131-489136590129'] 2024-09-05 14:07:50,814 - WARNING - Deleting VN ctest-ext_vn-86186647 failed..Will retry 2024-09-05 14:07:52,932 - DEBUG - Response for deleting network () 2024-09-05 14:07:52,932 - INFO - Deleting VN ctest-vn-62020194 2024-09-05 14:07:53,040 - DEBUG - Response for deleting network () 2024-09-05 14:07:53,298 - DEBUG - No XMPP flaps were noticed during the test 2024-09-05 14:07:53,298 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:26] 2024-09-05 14:07:53,298 - INFO - -------------------------------------------------------------------------------- 2024-09-05 14:07:53,966 - INFO - Deleted project: ctest-TestRoutersBasic-43366639, ID : 1b8b6af2-2d51-4f80-a99d-40bc10590b9a