2024-09-05 02:31:40,029 - INFO - Domain Default found not creating 2024-09-05 02:31:40,190 - INFO - Project ctest-TestRoutersBasic-72765324 not found, creating it 2024-09-05 02:31:40,653 - INFO - Created Project:ctest-TestRoutersBasic-72765324, ID : c1132247-7ea3-477d-863f-116509fa0be8 2024-09-05 02:31:42,139 - INFO - ================================================================================ 2024-09-05 02:31:42,139 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2024-09-05 02:31:42,139 - 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 02:31:42,393 - DEBUG - Nothing to compare xmpp stats {'10.0.0.32': {'10.20.0.5': '0'}} with 2024-09-05 02:31:42,393 - INFO - Initial checks done. Running the testcase now 2024-09-05 02:31:42,393 - INFO - 2024-09-05 02:31:43,125 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-72765324 2024-09-05 02:31:43,219 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-72765324 2024-09-05 02:31:43,543 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-72765324', 'default']} 2024-09-05 02:31:43,825 - DEBUG - Response for create_network : {'network': {'id': '75653863-15f6-422d-8f9b-d6471035f3de', 'name': 'ctest-vn-73781809', 'tenant_id': 'c11322477ea3477d863f116509fa0be8', 'project_id': 'c11322477ea3477d863f116509fa0be8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-72765324', 'ctest-vn-73781809'], 'port_security_enabled': True, 'description': ''}} 2024-09-05 02:31:43,978 - DEBUG - Response for create_subnet : {'subnet': {'id': '294a60af-19e9-41e7-a91a-103a2cf20cc5', 'name': '', 'tenant_id': 'c11322477ea3477d863f116509fa0be8', 'network_id': '75653863-15f6-422d-8f9b-d6471035f3de', 'ip_version': 4, 'cidr': '201.163.231.128/26', 'allocation_pools': [{'start': '201.163.231.130', 'end': '201.163.231.190'}], 'gateway_ip': '201.163.231.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '201.163.231.130', 'tags': [], 'project_id': 'c11322477ea3477d863f116509fa0be8'}} 2024-09-05 02:31:43,998 - INFO - Created VN ctest-vn-73781809 2024-09-05 02:31:44,051 - DEBUG - VN ctest-vn-73781809 UUID is 75653863-15f6-422d-8f9b-d6471035f3de 2024-09-05 02:31:44,402 - DEBUG - Response for create_network : {'network': {'id': '14a12266-30f0-4b2c-bfff-3b90a3bd09b8', 'name': 'ctest-ext_vn-01455465', 'tenant_id': 'c11322477ea3477d863f116509fa0be8', 'project_id': 'c11322477ea3477d863f116509fa0be8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-72765324', 'ctest-ext_vn-01455465'], 'port_security_enabled': True, 'description': ''}} 2024-09-05 02:31:44,567 - DEBUG - Response for create_subnet : {'subnet': {'id': '65aae8c8-511e-44e1-995d-775bc564233b', 'name': '', 'tenant_id': 'c11322477ea3477d863f116509fa0be8', 'network_id': '14a12266-30f0-4b2c-bfff-3b90a3bd09b8', 'ip_version': 4, 'cidr': '181.185.149.128/26', 'allocation_pools': [{'start': '181.185.149.130', 'end': '181.185.149.190'}], 'gateway_ip': '181.185.149.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '181.185.149.130', 'tags': [], 'project_id': 'c11322477ea3477d863f116509fa0be8'}} 2024-09-05 02:31:44,586 - INFO - Created VN ctest-ext_vn-01455465 2024-09-05 02:31:44,635 - DEBUG - VN ctest-ext_vn-01455465 UUID is 14a12266-30f0-4b2c-bfff-3b90a3bd09b8 2024-09-05 02:31:44,791 - DEBUG - Services list from nova: [, , ] 2024-09-05 02:31:45,887 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1852-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1852-1) 2024-09-05 02:31:47,043 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1852-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1852-1) 2024-09-05 02:31:47,125 - INFO - Setting gateway for router dfa57f2e-2278-41b8-8fc3-0ccdefbf3d25 to network 14a12266-30f0-4b2c-bfff-3b90a3bd09b8 2024-09-05 02:31:47,193 - INFO - Adding interface with subnet_id 294a60af-19e9-41e7-a91a-103a2cf20cc5, port_id None to router dfa57f2e-2278-41b8-8fc3-0ccdefbf3d25 2024-09-05 02:31:47,652 - INFO - Waiting for VM ctest-TestRoutersBasic-72765324-12490239 to be up.. 2024-09-05 02:31:47,944 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-09-05 02:31:53,032 - DEBUG - VM is in ACTIVE state now 2024-09-05 02:31:53,032 - INFO - VM name : ctest-TestRoutersBasic-72765324-12490239 2024-09-05 02:31:53,104 - DEBUG - VM ctest-TestRoutersBasic-72765324-12490239 ID is 96c6fb36-5709-498d-8fc1-1c0a85a612a2 2024-09-05 02:31:53,121 - DEBUG - VM ctest-TestRoutersBasic-72765324-12490239 launched on Node cn-jenkins-deploy-platform-ansible-os-1852-1 2024-09-05 02:31:53,191 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-machine/96c6fb36-5709-498d-8fc1-1c0a85a612a2 2024-09-05 02:31:53,487 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-machine/96c6fb36-5709-498d-8fc1-1c0a85a612a2 2024-09-05 02:31:53,519 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-machine-interface/0649e226-2c3f-4f8b-844d-90499fef4cec 2024-09-05 02:31:56,781 - 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 1027ms') 2024-09-05 02:31:56,781 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-72765324-12490239 failed! 2024-09-05 02:31:56,835 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-72765324:ctest-vn-73781809 is 201.163.231.129 and allocation pool is NOT set 2024-09-05 02:31:58,894 - 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.84 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.434 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.434/1.639/2.844/1.205 ms') 2024-09-05 02:31:58,894 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-72765324-12490239 passed 2024-09-05 02:31:59,043 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-05 02:31:59,043 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-72765324-12490239, IP 201.163.231.131, Port 22 2024-09-05 02:31:59,195 - DEBUG - VM ctest-TestRoutersBasic-72765324-12490239 is ready for SSH connections 2024-09-05 02:31:59,195 - INFO - Waiting for VM ctest-TestRoutersBasic-72765324-69875241 to be up.. 2024-09-05 02:31:59,278 - DEBUG - VM is in ACTIVE state now 2024-09-05 02:31:59,278 - INFO - VM name : ctest-TestRoutersBasic-72765324-69875241 2024-09-05 02:31:59,350 - DEBUG - VM ctest-TestRoutersBasic-72765324-69875241 ID is 60a314d5-14b1-4b79-84ff-f9968f63194a 2024-09-05 02:31:59,351 - DEBUG - VM ctest-TestRoutersBasic-72765324-69875241 launched on Node cn-jenkins-deploy-platform-ansible-os-1852-1 2024-09-05 02:31:59,423 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-machine/60a314d5-14b1-4b79-84ff-f9968f63194a 2024-09-05 02:31:59,432 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-machine-interface/d14d0e0e-a6f3-4e13-847b-90982743f3a9 2024-09-05 02:32:00,671 - 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.55 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.421 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.421/1.485/2.549/1.064 ms') 2024-09-05 02:32:00,671 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-72765324-69875241 passed 2024-09-05 02:32:00,819 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-05 02:32:00,819 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-72765324-69875241, IP 181.185.149.131, Port 22 2024-09-05 02:32:00,975 - DEBUG - VM ctest-TestRoutersBasic-72765324-69875241 is ready for SSH connections 2024-09-05 02:32:00,975 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-05 02:32:00,975 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 181.185.149.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.32, gateway password: c0ntrail123 2024-09-05 02:32:00,975 - DEBUG - ping -s 56 -c 3 -W 1 181.185.149.131 2024-09-05 02:32:04,678 - DEBUG - PING 181.185.149.131 (181.185.149.131): 56 data bytes 64 bytes from 181.185.149.131: seq=0 ttl=62 time=7.302 ms 64 bytes from 181.185.149.131: seq=1 ttl=62 time=0.782 ms 64 bytes from 181.185.149.131: seq=2 ttl=62 time=0.815 ms --- 181.185.149.131 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.782/2.966/7.302 ms 2024-09-05 02:32:04,678 - INFO - Ping to IP 181.185.149.131 from VM ctest-TestRoutersBasic-72765324-12490239 passed 2024-09-05 02:32:04,678 - INFO - Deleting interface with subnet_id 294a60af-19e9-41e7-a91a-103a2cf20cc5, port_id None from router dfa57f2e-2278-41b8-8fc3-0ccdefbf3d25 2024-09-05 02:32:04,861 - INFO - Deleting VM ctest-TestRoutersBasic-72765324-69875241 2024-09-05 02:32:04,924 - INFO - Deleting VM ctest-TestRoutersBasic-72765324-12490239 2024-09-05 02:32:04,999 - INFO - Deleting VN ctest-ext_vn-01455465 2024-09-05 02:32:05,070 - DEBUG - VN 14a12266-30f0-4b2c-bfff-3b90a3bd09b8 still in use: Unable to complete operation on network 14a12266-30f0-4b2c-bfff-3b90a3bd09b8. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-058d6800-539f-4a34-a865-be29cb907d46'] 2024-09-05 02:32:05,070 - WARNING - Deleting VN ctest-ext_vn-01455465 failed..Will retry 2024-09-05 02:32:07,172 - DEBUG - Response for deleting network () 2024-09-05 02:32:07,172 - INFO - Deleting VN ctest-vn-73781809 2024-09-05 02:32:07,270 - DEBUG - Response for deleting network () 2024-09-05 02:32:07,520 - DEBUG - No XMPP flaps were noticed during the test 2024-09-05 02:32:07,520 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:25] 2024-09-05 02:32:07,520 - INFO - -------------------------------------------------------------------------------- 2024-09-05 02:32:08,179 - INFO - Deleted project: ctest-TestRoutersBasic-72765324, ID : c1132247-7ea3-477d-863f-116509fa0be8