2025-03-20 02:20:41,873 - INFO - Domain Default found not creating 2025-03-20 02:20:42,002 - INFO - Project ctest-TestRoutersBasic-70216446 not found, creating it 2025-03-20 02:20:42,458 - INFO - Created Project:ctest-TestRoutersBasic-70216446, ID : f2d2f32e-24b7-4fc1-99a1-36010e911aa1 2025-03-20 02:20:44,146 - INFO - ================================================================================ 2025-03-20 02:20:44,146 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2025-03-20 02:20:44,146 - 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-03-20 02:20:44,394 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.30': '0'}} with 2025-03-20 02:20:44,394 - INFO - Initial checks done. Running the testcase now 2025-03-20 02:20:44,394 - INFO - 2025-03-20 02:20:45,095 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-70216446 2025-03-20 02:20:45,193 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-70216446 2025-03-20 02:20:45,517 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-70216446', 'default']} 2025-03-20 02:20:45,818 - DEBUG - Response for create_network : {'network': {'id': '330d38de-7e46-48e4-a10c-68d2afe1be90', 'name': 'ctest-vn-25143207', 'tenant_id': 'f2d2f32e24b74fc199a136010e911aa1', 'project_id': 'f2d2f32e24b74fc199a136010e911aa1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-70216446', 'ctest-vn-25143207'], 'port_security_enabled': True, 'description': ''}} 2025-03-20 02:20:46,134 - DEBUG - Response for create_subnet : {'subnet': {'id': '8b25f115-162b-4ebc-a255-a8fc916821c0', 'name': '', 'tenant_id': 'f2d2f32e24b74fc199a136010e911aa1', 'network_id': '330d38de-7e46-48e4-a10c-68d2afe1be90', 'ip_version': 4, 'cidr': '210.198.76.64/26', 'allocation_pools': [{'start': '210.198.76.66', 'end': '210.198.76.126'}], 'gateway_ip': '210.198.76.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '210.198.76.66', 'tags': [], 'project_id': 'f2d2f32e24b74fc199a136010e911aa1'}} 2025-03-20 02:20:46,153 - INFO - Created VN ctest-vn-25143207 2025-03-20 02:20:46,205 - DEBUG - VN ctest-vn-25143207 UUID is 330d38de-7e46-48e4-a10c-68d2afe1be90 2025-03-20 02:20:46,556 - DEBUG - Response for create_network : {'network': {'id': '2a837f98-f3c3-47d4-b0d5-fd34d23f41de', 'name': 'ctest-ext_vn-63758868', 'tenant_id': 'f2d2f32e24b74fc199a136010e911aa1', 'project_id': 'f2d2f32e24b74fc199a136010e911aa1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-70216446', 'ctest-ext_vn-63758868'], 'port_security_enabled': True, 'description': ''}} 2025-03-20 02:20:46,740 - DEBUG - Response for create_subnet : {'subnet': {'id': '10d5408c-3044-47a7-8cb0-1e5ec53c8daa', 'name': '', 'tenant_id': 'f2d2f32e24b74fc199a136010e911aa1', 'network_id': '2a837f98-f3c3-47d4-b0d5-fd34d23f41de', 'ip_version': 4, 'cidr': '113.12.216.64/26', 'allocation_pools': [{'start': '113.12.216.66', 'end': '113.12.216.126'}], 'gateway_ip': '113.12.216.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '113.12.216.66', 'tags': [], 'project_id': 'f2d2f32e24b74fc199a136010e911aa1'}} 2025-03-20 02:20:46,759 - INFO - Created VN ctest-ext_vn-63758868 2025-03-20 02:20:46,809 - DEBUG - VN ctest-ext_vn-63758868 UUID is 2a837f98-f3c3-47d4-b0d5-fd34d23f41de 2025-03-20 02:20:47,003 - DEBUG - Services list from nova: [, , ] 2025-03-20 02:20:47,952 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2926-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2926-1) 2025-03-20 02:20:49,023 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2926-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2926-1) 2025-03-20 02:20:49,085 - INFO - Setting gateway for router f21941c2-8b9c-4015-b35b-e4f0a254ed65 to network 2a837f98-f3c3-47d4-b0d5-fd34d23f41de 2025-03-20 02:20:49,143 - INFO - Adding interface with subnet_id 8b25f115-162b-4ebc-a255-a8fc916821c0, port_id None to router f21941c2-8b9c-4015-b35b-e4f0a254ed65 2025-03-20 02:20:49,545 - INFO - Waiting for VM ctest-TestRoutersBasic-70216446-89998910 to be up.. 2025-03-20 02:20:49,758 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-03-20 02:20:54,834 - DEBUG - VM is in ACTIVE state now 2025-03-20 02:20:54,834 - INFO - VM name : ctest-TestRoutersBasic-70216446-89998910 2025-03-20 02:20:54,914 - DEBUG - VM ctest-TestRoutersBasic-70216446-89998910 ID is 44e5362a-f581-40c4-9787-5aeb9e685dfc 2025-03-20 02:20:54,935 - DEBUG - VM ctest-TestRoutersBasic-70216446-89998910 launched on Node cn-jenkins-deploy-platform-ansible-os-2926-1 2025-03-20 02:20:55,014 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-machine/44e5362a-f581-40c4-9787-5aeb9e685dfc 2025-03-20 02:20:55,303 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-machine/44e5362a-f581-40c4-9787-5aeb9e685dfc 2025-03-20 02:20:55,336 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-machine-interface/c3899964-a647-48ff-9f98-e11d90762540 2025-03-20 02:20:58,603 - 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 1036ms') 2025-03-20 02:20:58,603 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-70216446-89998910 failed! 2025-03-20 02:20:58,657 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-70216446:ctest-vn-25143207 is 210.198.76.65 and allocation pool is NOT set 2025-03-20 02:21:00,719 - 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.60 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.512 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.512/1.555/2.599/1.043 ms') 2025-03-20 02:21:00,719 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-70216446-89998910 passed 2025-03-20 02:21:00,873 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-20 02:21:00,873 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-70216446-89998910, IP 210.198.76.67, Port 22 2025-03-20 02:21:01,028 - DEBUG - VM ctest-TestRoutersBasic-70216446-89998910 is ready for SSH connections 2025-03-20 02:21:01,028 - INFO - Waiting for VM ctest-TestRoutersBasic-70216446-37771396 to be up.. 2025-03-20 02:21:01,105 - DEBUG - VM is in ACTIVE state now 2025-03-20 02:21:01,105 - INFO - VM name : ctest-TestRoutersBasic-70216446-37771396 2025-03-20 02:21:01,172 - DEBUG - VM ctest-TestRoutersBasic-70216446-37771396 ID is 65516949-d0fa-4f97-9e21-2b7cf6b1b639 2025-03-20 02:21:01,172 - DEBUG - VM ctest-TestRoutersBasic-70216446-37771396 launched on Node cn-jenkins-deploy-platform-ansible-os-2926-1 2025-03-20 02:21:01,238 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-machine/65516949-d0fa-4f97-9e21-2b7cf6b1b639 2025-03-20 02:21:01,245 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-machine-interface/a979df8c-f8cb-44c5-bd89-ba814fed9d76 2025-03-20 02:21:02,473 - 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.73 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.286 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.286/1.506/2.727/1.220 ms') 2025-03-20 02:21:02,473 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-70216446-37771396 passed 2025-03-20 02:21:02,625 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-20 02:21:02,625 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-70216446-37771396, IP 113.12.216.67, Port 22 2025-03-20 02:21:02,780 - DEBUG - VM ctest-TestRoutersBasic-70216446-37771396 is ready for SSH connections 2025-03-20 02:21:02,780 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-20 02:21:02,780 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 113.12.216.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.33, gateway password: c0ntrail123 2025-03-20 02:21:02,780 - DEBUG - ping -s 56 -c 3 -W 1 113.12.216.67 2025-03-20 02:21:06,428 - DEBUG - PING 113.12.216.67 (113.12.216.67): 56 data bytes 64 bytes from 113.12.216.67: seq=0 ttl=62 time=5.623 ms 64 bytes from 113.12.216.67: seq=1 ttl=62 time=1.022 ms 64 bytes from 113.12.216.67: seq=2 ttl=62 time=0.753 ms --- 113.12.216.67 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.753/2.466/5.623 ms 2025-03-20 02:21:06,429 - INFO - Ping to IP 113.12.216.67 from VM ctest-TestRoutersBasic-70216446-89998910 passed 2025-03-20 02:21:06,429 - INFO - Deleting interface with subnet_id 8b25f115-162b-4ebc-a255-a8fc916821c0, port_id None from router f21941c2-8b9c-4015-b35b-e4f0a254ed65 2025-03-20 02:21:06,620 - INFO - Deleting VM ctest-TestRoutersBasic-70216446-37771396 2025-03-20 02:21:06,684 - INFO - Deleting VM ctest-TestRoutersBasic-70216446-89998910 2025-03-20 02:21:06,751 - INFO - Deleting VN ctest-ext_vn-63758868 2025-03-20 02:21:06,807 - DEBUG - VN 2a837f98-f3c3-47d4-b0d5-fd34d23f41de still in use: Unable to complete operation on network 2a837f98-f3c3-47d4-b0d5-fd34d23f41de. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-c347a981-9d5f-460b-9b0d-b30b05e3085f'] 2025-03-20 02:21:06,807 - WARNING - Deleting VN ctest-ext_vn-63758868 failed..Will retry 2025-03-20 02:21:08,901 - DEBUG - Response for deleting network () 2025-03-20 02:21:08,901 - INFO - Deleting VN ctest-vn-25143207 2025-03-20 02:21:08,988 - DEBUG - Response for deleting network () 2025-03-20 02:21:09,242 - DEBUG - No XMPP flaps were noticed during the test 2025-03-20 02:21:09,242 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:25] 2025-03-20 02:21:09,242 - INFO - -------------------------------------------------------------------------------- 2025-03-20 02:21:09,894 - INFO - Deleted project: ctest-TestRoutersBasic-70216446, ID : f2d2f32e-24b7-4fc1-99a1-36010e911aa1