2025-01-09 02:38:28,676 - INFO - Domain Default found not creating 2025-01-09 02:38:28,810 - INFO - Project ctest-TestRoutersBasic-22832771 not found, creating it 2025-01-09 02:38:29,256 - INFO - Created Project:ctest-TestRoutersBasic-22832771, ID : 3ada17f0-dabd-4a21-abe9-9c3b172bb5e6 2025-01-09 02:38:30,696 - INFO - ================================================================================ 2025-01-09 02:38:30,696 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2025-01-09 02:38:30,696 - 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-09 02:38:30,953 - DEBUG - Nothing to compare xmpp stats {'10.0.0.40': {'10.20.0.20': '0'}} with 2025-01-09 02:38:30,954 - INFO - Initial checks done. Running the testcase now 2025-01-09 02:38:30,954 - INFO - 2025-01-09 02:38:31,638 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-22832771 2025-01-09 02:38:31,732 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-22832771 2025-01-09 02:38:32,063 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-22832771', 'default']} 2025-01-09 02:38:32,333 - DEBUG - Response for create_network : {'network': {'id': '2443e09b-0f5d-4b03-92b6-221235785f03', 'name': 'ctest-vn-94522438', 'tenant_id': '3ada17f0dabd4a21abe99c3b172bb5e6', 'project_id': '3ada17f0dabd4a21abe99c3b172bb5e6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-22832771', 'ctest-vn-94522438'], 'port_security_enabled': True, 'description': ''}} 2025-01-09 02:38:32,487 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b6bbfe47-691f-485b-bc86-198de605d00e', 'name': '', 'tenant_id': '3ada17f0dabd4a21abe99c3b172bb5e6', 'network_id': '2443e09b-0f5d-4b03-92b6-221235785f03', 'ip_version': 4, 'cidr': '14.12.117.64/26', 'allocation_pools': [{'start': '14.12.117.66', 'end': '14.12.117.126'}], 'gateway_ip': '14.12.117.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '14.12.117.66', 'tags': [], 'project_id': '3ada17f0dabd4a21abe99c3b172bb5e6'}} 2025-01-09 02:38:32,504 - INFO - Created VN ctest-vn-94522438 2025-01-09 02:38:32,556 - DEBUG - VN ctest-vn-94522438 UUID is 2443e09b-0f5d-4b03-92b6-221235785f03 2025-01-09 02:38:32,862 - DEBUG - Response for create_network : {'network': {'id': '80485b29-ad44-4c34-8d50-1b120d87eaf0', 'name': 'ctest-ext_vn-39825212', 'tenant_id': '3ada17f0dabd4a21abe99c3b172bb5e6', 'project_id': '3ada17f0dabd4a21abe99c3b172bb5e6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-22832771', 'ctest-ext_vn-39825212'], 'port_security_enabled': True, 'description': ''}} 2025-01-09 02:38:33,111 - DEBUG - Response for create_subnet : {'subnet': {'id': '951660b1-ed3a-48cb-b8e9-02665e2b34ec', 'name': '', 'tenant_id': '3ada17f0dabd4a21abe99c3b172bb5e6', 'network_id': '80485b29-ad44-4c34-8d50-1b120d87eaf0', 'ip_version': 4, 'cidr': '46.96.125.128/26', 'allocation_pools': [{'start': '46.96.125.130', 'end': '46.96.125.190'}], 'gateway_ip': '46.96.125.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '46.96.125.130', 'tags': [], 'project_id': '3ada17f0dabd4a21abe99c3b172bb5e6'}} 2025-01-09 02:38:33,132 - INFO - Created VN ctest-ext_vn-39825212 2025-01-09 02:38:33,183 - DEBUG - VN ctest-ext_vn-39825212 UUID is 80485b29-ad44-4c34-8d50-1b120d87eaf0 2025-01-09 02:38:33,402 - DEBUG - Services list from nova: [, , ] 2025-01-09 02:38:34,379 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2574-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2574-1) 2025-01-09 02:38:35,452 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2574-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2574-1) 2025-01-09 02:38:35,514 - INFO - Setting gateway for router 4ed7dc11-d2a1-4acd-aeda-76298b689175 to network 80485b29-ad44-4c34-8d50-1b120d87eaf0 2025-01-09 02:38:35,565 - INFO - Adding interface with subnet_id b6bbfe47-691f-485b-bc86-198de605d00e, port_id None to router 4ed7dc11-d2a1-4acd-aeda-76298b689175 2025-01-09 02:38:35,864 - INFO - Waiting for VM ctest-TestRoutersBasic-22832771-71379886 to be up.. 2025-01-09 02:38:35,981 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-01-09 02:38:41,055 - DEBUG - VM is in ACTIVE state now 2025-01-09 02:38:41,055 - INFO - VM name : ctest-TestRoutersBasic-22832771-71379886 2025-01-09 02:38:41,141 - DEBUG - VM ctest-TestRoutersBasic-22832771-71379886 ID is 968adc5e-8c82-4cfe-bcd3-43b3f262d215 2025-01-09 02:38:41,163 - DEBUG - VM ctest-TestRoutersBasic-22832771-71379886 launched on Node cn-jenkins-deploy-platform-ansible-os-2574-1 2025-01-09 02:38:41,253 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-machine/968adc5e-8c82-4cfe-bcd3-43b3f262d215 2025-01-09 02:38:41,554 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-machine/968adc5e-8c82-4cfe-bcd3-43b3f262d215 2025-01-09 02:38:41,583 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-machine-interface/66bd1008-2b47-4200-84a7-d1faa7a34278 2025-01-09 02:38:44,833 - 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 1020ms') 2025-01-09 02:38:44,834 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-22832771-71379886 failed! 2025-01-09 02:38:44,891 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-22832771:ctest-vn-94522438 is 14.12.117.65 and allocation pool is NOT set 2025-01-09 02:38:46,947 - 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.40 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.376 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.376/1.888/3.400/1.512 ms') 2025-01-09 02:38:46,948 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-22832771-71379886 passed 2025-01-09 02:38:47,099 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-09 02:38:47,100 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-22832771-71379886, IP 14.12.117.67, Port 22 2025-01-09 02:38:47,255 - DEBUG - VM ctest-TestRoutersBasic-22832771-71379886 is ready for SSH connections 2025-01-09 02:38:47,255 - INFO - Waiting for VM ctest-TestRoutersBasic-22832771-72393774 to be up.. 2025-01-09 02:38:47,326 - DEBUG - VM is in ACTIVE state now 2025-01-09 02:38:47,327 - INFO - VM name : ctest-TestRoutersBasic-22832771-72393774 2025-01-09 02:38:47,517 - DEBUG - VM ctest-TestRoutersBasic-22832771-72393774 ID is 7bfac570-494c-41af-bf4e-b400b175d45d 2025-01-09 02:38:47,517 - DEBUG - VM ctest-TestRoutersBasic-22832771-72393774 launched on Node cn-jenkins-deploy-platform-ansible-os-2574-1 2025-01-09 02:38:47,591 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-machine/7bfac570-494c-41af-bf4e-b400b175d45d 2025-01-09 02:38:47,599 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-machine-interface/7fe6c92a-a205-4f78-b809-603b0b3bbee2 2025-01-09 02:38:48,836 - 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.72 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.416 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.416/1.566/2.716/1.150 ms') 2025-01-09 02:38:48,836 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-22832771-72393774 passed 2025-01-09 02:38:48,983 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-09 02:38:48,984 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-22832771-72393774, IP 46.96.125.131, Port 22 2025-01-09 02:38:49,135 - DEBUG - VM ctest-TestRoutersBasic-22832771-72393774 is ready for SSH connections 2025-01-09 02:38:49,135 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-09 02:38:49,136 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 46.96.125.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.40, gateway password: c0ntrail123 2025-01-09 02:38:49,136 - DEBUG - ping -s 56 -c 3 -W 1 46.96.125.131 2025-01-09 02:38:52,805 - DEBUG - PING 46.96.125.131 (46.96.125.131): 56 data bytes 64 bytes from 46.96.125.131: seq=0 ttl=62 time=6.222 ms 64 bytes from 46.96.125.131: seq=1 ttl=62 time=0.925 ms 64 bytes from 46.96.125.131: seq=2 ttl=62 time=0.912 ms --- 46.96.125.131 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.912/2.686/6.222 ms 2025-01-09 02:38:52,805 - INFO - Ping to IP 46.96.125.131 from VM ctest-TestRoutersBasic-22832771-71379886 passed 2025-01-09 02:38:52,805 - INFO - Deleting interface with subnet_id b6bbfe47-691f-485b-bc86-198de605d00e, port_id None from router 4ed7dc11-d2a1-4acd-aeda-76298b689175 2025-01-09 02:38:52,975 - INFO - Deleting VM ctest-TestRoutersBasic-22832771-72393774 2025-01-09 02:38:53,049 - INFO - Deleting VM ctest-TestRoutersBasic-22832771-71379886 2025-01-09 02:38:53,117 - INFO - Deleting VN ctest-ext_vn-39825212 2025-01-09 02:38:53,186 - DEBUG - VN 80485b29-ad44-4c34-8d50-1b120d87eaf0 still in use: Unable to complete operation on network 80485b29-ad44-4c34-8d50-1b120d87eaf0. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-85194b07-fd6f-4c50-a687-f963fd64496f'] 2025-01-09 02:38:53,186 - WARNING - Deleting VN ctest-ext_vn-39825212 failed..Will retry 2025-01-09 02:38:55,279 - DEBUG - Response for deleting network () 2025-01-09 02:38:55,279 - INFO - Deleting VN ctest-vn-94522438 2025-01-09 02:38:55,365 - DEBUG - Response for deleting network () 2025-01-09 02:38:55,621 - DEBUG - No XMPP flaps were noticed during the test
2025-01-09 02:38:55,621 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:25]
2025-01-09 02:38:55,621 - INFO - -------------------------------------------------------------------------------- 2025-01-09 02:38:56,275 - INFO - Deleted project: ctest-TestRoutersBasic-22832771, ID : 3ada17f0-dabd-4a21-abe9-9c3b172bb5e6