2024-09-17 22:46:08,190 - INFO - Domain Default found not creating 2024-09-17 22:46:08,360 - INFO - Project ctest-TestRoutersBasic-16826808 not found, creating it 2024-09-17 22:46:08,830 - INFO - Created Project:ctest-TestRoutersBasic-16826808, ID : fa095188-3f62-4c7b-af64-4995c37d3339 2024-09-17 22:46:10,532 - INFO - ================================================================================ 2024-09-17 22:46:10,532 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2024-09-17 22:46:10,532 - 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-17 22:46:10,790 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.6': '0'}} with 2024-09-17 22:46:10,790 - INFO - Initial checks done. Running the testcase now 2024-09-17 22:46:10,790 - INFO - 2024-09-17 22:46:11,565 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-16826808 2024-09-17 22:46:11,667 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-16826808 2024-09-17 22:46:12,011 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-16826808', 'default']} 2024-09-17 22:46:12,373 - DEBUG - Response for create_network : {'network': {'id': '35348d48-3dfc-4b05-b0f1-9892f60eb1fa', 'name': 'ctest-vn-85301324', 'tenant_id': 'fa0951883f624c7baf644995c37d3339', 'project_id': 'fa0951883f624c7baf644995c37d3339', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-16826808', 'ctest-vn-85301324'], 'port_security_enabled': True, 'description': ''}} 2024-09-17 22:46:12,590 - DEBUG - Response for create_subnet : {'subnet': {'id': '8e80388e-5cea-4368-a10a-5949db4a3153', 'name': '', 'tenant_id': 'fa0951883f624c7baf644995c37d3339', 'network_id': '35348d48-3dfc-4b05-b0f1-9892f60eb1fa', 'ip_version': 4, 'cidr': '96.135.68.0/26', 'allocation_pools': [{'start': '96.135.68.2', 'end': '96.135.68.62'}], 'gateway_ip': '96.135.68.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '96.135.68.2', 'tags': [], 'project_id': 'fa0951883f624c7baf644995c37d3339'}} 2024-09-17 22:46:12,615 - INFO - Created VN ctest-vn-85301324 2024-09-17 22:46:12,679 - DEBUG - VN ctest-vn-85301324 UUID is 35348d48-3dfc-4b05-b0f1-9892f60eb1fa 2024-09-17 22:46:13,067 - DEBUG - Response for create_network : {'network': {'id': 'a40286a7-865b-422e-9f59-6af79e9c2cbc', 'name': 'ctest-ext_vn-60311967', 'tenant_id': 'fa0951883f624c7baf644995c37d3339', 'project_id': 'fa0951883f624c7baf644995c37d3339', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-16826808', 'ctest-ext_vn-60311967'], 'port_security_enabled': True, 'description': ''}} 2024-09-17 22:46:13,285 - DEBUG - Response for create_subnet : {'subnet': {'id': '8dc139e0-5281-4d69-a39f-ac26ff6c4f94', 'name': '', 'tenant_id': 'fa0951883f624c7baf644995c37d3339', 'network_id': 'a40286a7-865b-422e-9f59-6af79e9c2cbc', 'ip_version': 4, 'cidr': '93.34.128.192/26', 'allocation_pools': [{'start': '93.34.128.194', 'end': '93.34.128.254'}], 'gateway_ip': '93.34.128.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '93.34.128.194', 'tags': [], 'project_id': 'fa0951883f624c7baf644995c37d3339'}} 2024-09-17 22:46:13,307 - INFO - Created VN ctest-ext_vn-60311967 2024-09-17 22:46:13,363 - DEBUG - VN ctest-ext_vn-60311967 UUID is a40286a7-865b-422e-9f59-6af79e9c2cbc 2024-09-17 22:46:13,555 - DEBUG - Services list from nova: [, , ] 2024-09-17 22:46:14,634 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1975-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1975-1) 2024-09-17 22:46:15,985 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1975-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1975-1) 2024-09-17 22:46:16,077 - INFO - Setting gateway for router 963b8c45-cc5a-4bd9-94c0-daeecdbe092c to network a40286a7-865b-422e-9f59-6af79e9c2cbc 2024-09-17 22:46:16,155 - INFO - Adding interface with subnet_id 8e80388e-5cea-4368-a10a-5949db4a3153, port_id None to router 963b8c45-cc5a-4bd9-94c0-daeecdbe092c 2024-09-17 22:46:16,637 - INFO - Waiting for VM ctest-TestRoutersBasic-16826808-55515072 to be up.. 2024-09-17 22:46:16,966 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-09-17 22:46:22,074 - DEBUG - VM is in ACTIVE state now 2024-09-17 22:46:22,075 - INFO - VM name : ctest-TestRoutersBasic-16826808-55515072 2024-09-17 22:46:22,183 - DEBUG - VM ctest-TestRoutersBasic-16826808-55515072 ID is bf35e042-a8aa-407c-8186-c99fefb4c3ea 2024-09-17 22:46:22,209 - DEBUG - VM ctest-TestRoutersBasic-16826808-55515072 launched on Node cn-jenkins-deploy-platform-ansible-os-1975-1 2024-09-17 22:46:22,332 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-machine/bf35e042-a8aa-407c-8186-c99fefb4c3ea 2024-09-17 22:46:22,635 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-machine/bf35e042-a8aa-407c-8186-c99fefb4c3ea 2024-09-17 22:46:22,678 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-machine-interface/d5f825b3-e05c-4e08-90da-7b773a2a010e 2024-09-17 22:46:25,983 - 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 1029ms') 2024-09-17 22:46:25,983 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-16826808-55515072 failed! 2024-09-17 22:46:26,047 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-16826808:ctest-vn-85301324 is 96.135.68.1 and allocation pool is NOT set 2024-09-17 22:46:28,112 - 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=4.24 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=2.08 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.079/3.161/4.243/1.082 ms') 2024-09-17 22:46:28,112 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-16826808-55515072 passed 2024-09-17 22:46:28,271 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-17 22:46:28,271 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-16826808-55515072, IP 96.135.68.3, Port 22 2024-09-17 22:46:28,426 - DEBUG - VM ctest-TestRoutersBasic-16826808-55515072 is ready for SSH connections 2024-09-17 22:46:28,427 - INFO - Waiting for VM ctest-TestRoutersBasic-16826808-87778892 to be up.. 2024-09-17 22:46:28,522 - DEBUG - VM is in ACTIVE state now 2024-09-17 22:46:28,522 - INFO - VM name : ctest-TestRoutersBasic-16826808-87778892 2024-09-17 22:46:28,613 - DEBUG - VM ctest-TestRoutersBasic-16826808-87778892 ID is d90dfdf2-1a86-40b0-928d-72dad549a3de 2024-09-17 22:46:28,614 - DEBUG - VM ctest-TestRoutersBasic-16826808-87778892 launched on Node cn-jenkins-deploy-platform-ansible-os-1975-1 2024-09-17 22:46:28,719 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-machine/d90dfdf2-1a86-40b0-928d-72dad549a3de 2024-09-17 22:46:28,731 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-machine-interface/8ec6b84a-092c-435f-b2c9-ef2eeb52f49e 2024-09-17 22:46:30,007 - 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=6.08 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=1.18 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 = 1.182/3.632/6.082/2.450 ms') 2024-09-17 22:46:30,007 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-16826808-87778892 passed 2024-09-17 22:46:30,168 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-17 22:46:30,168 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-16826808-87778892, IP 93.34.128.195, Port 22 2024-09-17 22:46:30,338 - DEBUG - VM ctest-TestRoutersBasic-16826808-87778892 is ready for SSH connections 2024-09-17 22:46:30,339 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-17 22:46:30,339 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 93.34.128.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.33, gateway password: c0ntrail123 2024-09-17 22:46:30,339 - DEBUG - ping -s 56 -c 3 -W 1 93.34.128.195 2024-09-17 22:46:34,090 - DEBUG - PING 93.34.128.195 (93.34.128.195): 56 data bytes 64 bytes from 93.34.128.195: seq=0 ttl=62 time=5.892 ms 64 bytes from 93.34.128.195: seq=1 ttl=62 time=1.053 ms 64 bytes from 93.34.128.195: seq=2 ttl=62 time=0.949 ms --- 93.34.128.195 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.949/2.631/5.892 ms 2024-09-17 22:46:34,091 - INFO - Ping to IP 93.34.128.195 from VM ctest-TestRoutersBasic-16826808-55515072 passed 2024-09-17 22:46:34,091 - INFO - Deleting interface with subnet_id 8e80388e-5cea-4368-a10a-5949db4a3153, port_id None from router 963b8c45-cc5a-4bd9-94c0-daeecdbe092c 2024-09-17 22:46:34,324 - INFO - Deleting VM ctest-TestRoutersBasic-16826808-87778892 2024-09-17 22:46:34,416 - INFO - Deleting VM ctest-TestRoutersBasic-16826808-55515072 2024-09-17 22:46:34,514 - INFO - Deleting VN ctest-ext_vn-60311967 2024-09-17 22:46:34,617 - DEBUG - VN a40286a7-865b-422e-9f59-6af79e9c2cbc still in use: Unable to complete operation on network a40286a7-865b-422e-9f59-6af79e9c2cbc. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-20dc6381-f8c6-4625-a443-91d5f461235f'] 2024-09-17 22:46:34,617 - WARNING - Deleting VN ctest-ext_vn-60311967 failed..Will retry 2024-09-17 22:46:36,746 - DEBUG - Response for deleting network () 2024-09-17 22:46:36,746 - INFO - Deleting VN ctest-vn-85301324 2024-09-17 22:46:36,866 - DEBUG - Response for deleting network () 2024-09-17 22:46:37,123 - DEBUG - No XMPP flaps were noticed during the test 2024-09-17 22:46:37,123 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:27] 2024-09-17 22:46:37,123 - INFO - -------------------------------------------------------------------------------- 2024-09-17 22:46:37,863 - INFO - Deleted project: ctest-TestRoutersBasic-16826808, ID : fa095188-3f62-4c7b-af64-4995c37d3339