2024-09-05 19:19:33,722 - INFO - Domain Default found not creating 2024-09-05 19:19:34,190 - INFO - Project ctest-TestRoutersBasic-16245793 not found, creating it 2024-09-05 19:19:35,100 - INFO - Created Project:ctest-TestRoutersBasic-16245793, ID : cc291145-2e10-4f20-9b72-44f581720eac 2024-09-05 19:19:37,636 - INFO - ================================================================================ 2024-09-05 19:19:37,636 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2024-09-05 19:19:37,636 - 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 19:19:37,975 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.8': '0'}} with 2024-09-05 19:19:37,975 - INFO - Initial checks done. Running the testcase now 2024-09-05 19:19:37,976 - INFO - 2024-09-05 19:19:39,018 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-16245793 2024-09-05 19:19:39,130 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-16245793 2024-09-05 19:19:39,545 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-16245793', 'default']} 2024-09-05 19:19:40,031 - DEBUG - Response for create_network : {'network': {'id': '85729617-6d3e-4df4-a17b-301c56399fb8', 'name': 'ctest-vn-88565012', 'tenant_id': 'cc2911452e104f209b7244f581720eac', 'project_id': 'cc2911452e104f209b7244f581720eac', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-16245793', 'ctest-vn-88565012'], 'port_security_enabled': True, 'description': ''}} 2024-09-05 19:19:40,260 - DEBUG - Response for create_subnet : {'subnet': {'id': '91db1b48-cfb9-4504-a4be-bb6ee4dd8c8c', 'name': '', 'tenant_id': 'cc2911452e104f209b7244f581720eac', 'network_id': '85729617-6d3e-4df4-a17b-301c56399fb8', 'ip_version': 4, 'cidr': '74.208.173.128/26', 'allocation_pools': [{'start': '74.208.173.130', 'end': '74.208.173.190'}], 'gateway_ip': '74.208.173.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '74.208.173.130', 'tags': [], 'project_id': 'cc2911452e104f209b7244f581720eac'}} 2024-09-05 19:19:40,280 - INFO - Created VN ctest-vn-88565012 2024-09-05 19:19:40,333 - DEBUG - VN ctest-vn-88565012 UUID is 85729617-6d3e-4df4-a17b-301c56399fb8 2024-09-05 19:19:40,761 - DEBUG - Response for create_network : {'network': {'id': '3a6cec51-5469-43b5-9d58-ed08cbc17f24', 'name': 'ctest-ext_vn-48048577', 'tenant_id': 'cc2911452e104f209b7244f581720eac', 'project_id': 'cc2911452e104f209b7244f581720eac', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-16245793', 'ctest-ext_vn-48048577'], 'port_security_enabled': True, 'description': ''}} 2024-09-05 19:19:41,004 - DEBUG - Response for create_subnet : {'subnet': {'id': 'fb6778e3-2c7e-4536-b530-2a37f6bef4fa', 'name': '', 'tenant_id': 'cc2911452e104f209b7244f581720eac', 'network_id': '3a6cec51-5469-43b5-9d58-ed08cbc17f24', 'ip_version': 4, 'cidr': '100.174.212.0/26', 'allocation_pools': [{'start': '100.174.212.2', 'end': '100.174.212.62'}], 'gateway_ip': '100.174.212.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '100.174.212.2', 'tags': [], 'project_id': 'cc2911452e104f209b7244f581720eac'}} 2024-09-05 19:19:41,034 - INFO - Created VN ctest-ext_vn-48048577 2024-09-05 19:19:41,101 - DEBUG - VN ctest-ext_vn-48048577 UUID is 3a6cec51-5469-43b5-9d58-ed08cbc17f24 2024-09-05 19:19:41,387 - DEBUG - Services list from nova: [, , ] 2024-09-05 19:19:42,854 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1857-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1857-1) 2024-09-05 19:19:44,420 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1857-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1857-1) 2024-09-05 19:19:44,549 - INFO - Setting gateway for router c2fc4a99-bac9-4e14-9222-a738a4158fae to network 3a6cec51-5469-43b5-9d58-ed08cbc17f24 2024-09-05 19:19:44,634 - INFO - Adding interface with subnet_id 91db1b48-cfb9-4504-a4be-bb6ee4dd8c8c, port_id None to router c2fc4a99-bac9-4e14-9222-a738a4158fae 2024-09-05 19:19:45,012 - INFO - Waiting for VM ctest-TestRoutersBasic-16245793-81298607 to be up.. 2024-09-05 19:19:45,145 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-09-05 19:19:50,329 - DEBUG - VM is in ACTIVE state now 2024-09-05 19:19:50,329 - INFO - VM name : ctest-TestRoutersBasic-16245793-81298607 2024-09-05 19:19:50,493 - DEBUG - VM ctest-TestRoutersBasic-16245793-81298607 ID is 7bcf064f-47ce-4744-92f0-76125cac75eb 2024-09-05 19:19:50,514 - DEBUG - VM ctest-TestRoutersBasic-16245793-81298607 launched on Node cn-jenkins-deploy-platform-ansible-os-1857-1 2024-09-05 19:19:50,641 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-machine/7bcf064f-47ce-4744-92f0-76125cac75eb 2024-09-05 19:19:50,967 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-machine/7bcf064f-47ce-4744-92f0-76125cac75eb 2024-09-05 19:19:51,011 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-machine-interface/7b8d4aae-5a37-447a-831f-e20fef30ab14 2024-09-05 19:19:54,303 - 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 1013ms') 2024-09-05 19:19:54,303 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-16245793-81298607 failed! 2024-09-05 19:19:54,365 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-16245793:ctest-vn-88565012 is 74.208.173.129 and allocation pool is NOT set 2024-09-05 19:19:56,434 - 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=10.1 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=2.57 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.571/6.331/10.091/3.760 ms') 2024-09-05 19:19:56,434 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-16245793-81298607 passed 2024-09-05 19:19:56,605 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-05 19:19:56,605 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-16245793-81298607, IP 74.208.173.131, Port 22 2024-09-05 19:19:56,684 - DEBUG - Error on ssh to cirros@169.254.0.3:22, result: /bin/bash: connect: Connection refused /bin/bash: line 1: /dev/tcp/169.254.0.3/22: Connection refused {'failed': True, 'command': '(echo > /dev/tcp/169.254.0.3/22)', 'real_command': '/bin/bash -l -c "(echo > /dev/tcp/169.254.0.3/22)"', 'return_code': 1, 'succeeded': False, 'stderr': ''} 2024-09-05 19:19:56,931 - DEBUG - VM ctest-TestRoutersBasic-16245793-81298607 is NOT ready for SSH connections, VM status: ACTIVE 2024-09-05 19:20:01,931 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-05 19:20:01,932 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-16245793-81298607, IP 74.208.173.131, Port 22 2024-09-05 19:20:02,136 - DEBUG - VM ctest-TestRoutersBasic-16245793-81298607 is ready for SSH connections 2024-09-05 19:20:02,136 - INFO - Waiting for VM ctest-TestRoutersBasic-16245793-71980212 to be up.. 2024-09-05 19:20:02,363 - DEBUG - VM is in ACTIVE state now 2024-09-05 19:20:02,364 - INFO - VM name : ctest-TestRoutersBasic-16245793-71980212 2024-09-05 19:20:02,549 - DEBUG - VM ctest-TestRoutersBasic-16245793-71980212 ID is 5953abb9-d502-4969-b249-8fd87a738d60 2024-09-05 19:20:02,550 - DEBUG - VM ctest-TestRoutersBasic-16245793-71980212 launched on Node cn-jenkins-deploy-platform-ansible-os-1857-1 2024-09-05 19:20:02,666 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-machine/5953abb9-d502-4969-b249-8fd87a738d60 2024-09-05 19:20:02,679 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-machine-interface/a48fcfef-0907-4738-8855-05419420e03d 2024-09-05 19:20:03,942 - 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.34 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.485 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.485/3.412/6.340/2.927 ms') 2024-09-05 19:20:03,943 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-16245793-71980212 passed 2024-09-05 19:20:04,101 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-05 19:20:04,102 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-16245793-71980212, IP 100.174.212.3, Port 22 2024-09-05 19:20:04,306 - DEBUG - VM ctest-TestRoutersBasic-16245793-71980212 is ready for SSH connections 2024-09-05 19:20:04,306 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-05 19:20:04,306 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 100.174.212.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.22, gateway password: c0ntrail123 2024-09-05 19:20:04,307 - DEBUG - ping -s 56 -c 3 -W 1 100.174.212.3 2024-09-05 19:20:08,426 - DEBUG - PING 100.174.212.3 (100.174.212.3): 56 data bytes 64 bytes from 100.174.212.3: seq=0 ttl=62 time=8.546 ms 64 bytes from 100.174.212.3: seq=1 ttl=62 time=1.793 ms 64 bytes from 100.174.212.3: seq=2 ttl=62 time=2.388 ms --- 100.174.212.3 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.793/4.242/8.546 ms 2024-09-05 19:20:08,426 - INFO - Ping to IP 100.174.212.3 from VM ctest-TestRoutersBasic-16245793-81298607 passed 2024-09-05 19:20:08,427 - INFO - Deleting interface with subnet_id 91db1b48-cfb9-4504-a4be-bb6ee4dd8c8c, port_id None from router c2fc4a99-bac9-4e14-9222-a738a4158fae 2024-09-05 19:20:08,819 - INFO - Deleting VM ctest-TestRoutersBasic-16245793-71980212 2024-09-05 19:20:08,914 - INFO - Deleting VM ctest-TestRoutersBasic-16245793-81298607 2024-09-05 19:20:08,998 - INFO - Deleting VN ctest-ext_vn-48048577 2024-09-05 19:20:09,078 - DEBUG - VN 3a6cec51-5469-43b5-9d58-ed08cbc17f24 still in use: Unable to complete operation on network 3a6cec51-5469-43b5-9d58-ed08cbc17f24. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-4d5f050e-37d8-4513-a426-48d69813cecf'] 2024-09-05 19:20:09,078 - WARNING - Deleting VN ctest-ext_vn-48048577 failed..Will retry 2024-09-05 19:20:11,338 - DEBUG - Response for deleting network () 2024-09-05 19:20:11,338 - INFO - Deleting VN ctest-vn-88565012 2024-09-05 19:20:11,549 - DEBUG - Response for deleting network () 2024-09-05 19:20:11,863 - DEBUG - No XMPP flaps were noticed during the test 2024-09-05 19:20:11,864 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:34] 2024-09-05 19:20:11,864 - INFO - -------------------------------------------------------------------------------- 2024-09-05 19:20:12,792 - INFO - Deleted project: ctest-TestRoutersBasic-16245793, ID : cc291145-2e10-4f20-9b72-44f581720eac