2024-08-26 21:19:22,555 - INFO - Domain Default found not creating 2024-08-26 21:19:22,755 - INFO - Project ctest-TestRoutersBasic-75510337 not found, creating it 2024-08-26 21:19:23,248 - INFO - Created Project:ctest-TestRoutersBasic-75510337, ID : 32617380-dbf3-4d83-bd1b-84c131f24907 2024-08-26 21:19:25,175 - INFO - ================================================================================ 2024-08-26 21:19:25,175 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2024-08-26 21:19:25,175 - 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-08-26 21:19:25,437 - DEBUG - Nothing to compare xmpp stats {'10.0.0.42': {'10.20.0.8': '0'}} with 2024-08-26 21:19:25,437 - INFO - Initial checks done. Running the testcase now 2024-08-26 21:19:25,437 - INFO - 2024-08-26 21:19:26,177 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-75510337 2024-08-26 21:19:26,278 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-75510337 2024-08-26 21:19:26,634 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-75510337', 'default']} 2024-08-26 21:19:26,989 - DEBUG - Response for create_network : {'network': {'id': '2a003f6c-3cc0-4360-948e-24e58cd9c32f', 'name': 'ctest-vn-52699533', 'tenant_id': '32617380dbf34d83bd1b84c131f24907', 'project_id': '32617380dbf34d83bd1b84c131f24907', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-75510337', 'ctest-vn-52699533'], 'port_security_enabled': True, 'description': ''}} 2024-08-26 21:19:27,213 - DEBUG - Response for create_subnet : {'subnet': {'id': '83cb6e91-aece-4b1e-8b98-b879a3e6e296', 'name': '', 'tenant_id': '32617380dbf34d83bd1b84c131f24907', 'network_id': '2a003f6c-3cc0-4360-948e-24e58cd9c32f', 'ip_version': 4, 'cidr': '131.37.55.128/26', 'allocation_pools': [{'start': '131.37.55.130', 'end': '131.37.55.190'}], 'gateway_ip': '131.37.55.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '131.37.55.130', 'tags': [], 'project_id': '32617380dbf34d83bd1b84c131f24907'}} 2024-08-26 21:19:27,238 - INFO - Created VN ctest-vn-52699533 2024-08-26 21:19:27,294 - DEBUG - VN ctest-vn-52699533 UUID is 2a003f6c-3cc0-4360-948e-24e58cd9c32f 2024-08-26 21:19:27,662 - DEBUG - Response for create_network : {'network': {'id': '2b021e1f-15a8-4cbc-b8a0-860b24a4e99e', 'name': 'ctest-ext_vn-57410502', 'tenant_id': '32617380dbf34d83bd1b84c131f24907', 'project_id': '32617380dbf34d83bd1b84c131f24907', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-75510337', 'ctest-ext_vn-57410502'], 'port_security_enabled': True, 'description': ''}} 2024-08-26 21:19:27,866 - DEBUG - Response for create_subnet : {'subnet': {'id': 'dd4f02cf-25ba-4025-b516-96ce4a4e2210', 'name': '', 'tenant_id': '32617380dbf34d83bd1b84c131f24907', 'network_id': '2b021e1f-15a8-4cbc-b8a0-860b24a4e99e', 'ip_version': 4, 'cidr': '113.181.254.0/26', 'allocation_pools': [{'start': '113.181.254.2', 'end': '113.181.254.62'}], 'gateway_ip': '113.181.254.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '113.181.254.2', 'tags': [], 'project_id': '32617380dbf34d83bd1b84c131f24907'}} 2024-08-26 21:19:27,892 - INFO - Created VN ctest-ext_vn-57410502 2024-08-26 21:19:27,946 - DEBUG - VN ctest-ext_vn-57410502 UUID is 2b021e1f-15a8-4cbc-b8a0-860b24a4e99e 2024-08-26 21:19:28,130 - DEBUG - Services list from nova: [, , ] 2024-08-26 21:19:29,258 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1772-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1772-1) 2024-08-26 21:19:30,563 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1772-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1772-1) 2024-08-26 21:19:30,657 - INFO - Setting gateway for router e69e7621-451c-4a09-b9df-354ccf4874ce to network 2b021e1f-15a8-4cbc-b8a0-860b24a4e99e 2024-08-26 21:19:30,786 - INFO - Adding interface with subnet_id 83cb6e91-aece-4b1e-8b98-b879a3e6e296, port_id None to router e69e7621-451c-4a09-b9df-354ccf4874ce 2024-08-26 21:19:31,371 - INFO - Waiting for VM ctest-TestRoutersBasic-75510337-19210259 to be up.. 2024-08-26 21:19:31,605 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-08-26 21:19:36,700 - DEBUG - VM is in ACTIVE state now 2024-08-26 21:19:36,700 - INFO - VM name : ctest-TestRoutersBasic-75510337-19210259 2024-08-26 21:19:36,800 - DEBUG - VM ctest-TestRoutersBasic-75510337-19210259 ID is 8872a08e-566e-4897-858c-2a1fbf2f2cfb 2024-08-26 21:19:36,822 - DEBUG - VM ctest-TestRoutersBasic-75510337-19210259 launched on Node cn-jenkins-deploy-platform-ansible-os-1772-1 2024-08-26 21:19:36,926 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-machine/8872a08e-566e-4897-858c-2a1fbf2f2cfb 2024-08-26 21:19:37,236 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-machine/8872a08e-566e-4897-858c-2a1fbf2f2cfb 2024-08-26 21:19:37,275 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-machine-interface/e2d5ca29-5387-4195-bc1a-b0af1031ebfb 2024-08-26 21:19:40,563 - 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 1012ms') 2024-08-26 21:19:40,563 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-75510337-19210259 failed! 2024-08-26 21:19:40,626 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-75510337:ctest-vn-52699533 is 131.37.55.129 and allocation pool is NOT set 2024-08-26 21:19:42,697 - 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.97 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=2.82 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.821/2.896/2.971/0.075 ms') 2024-08-26 21:19:42,698 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-75510337-19210259 passed 2024-08-26 21:19:42,854 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-26 21:19:42,854 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-75510337-19210259, IP 131.37.55.131, Port 22 2024-08-26 21:19:42,920 - 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-08-26 21:19:43,011 - DEBUG - VM ctest-TestRoutersBasic-75510337-19210259 is NOT ready for SSH connections, VM status: ACTIVE 2024-08-26 21:19:48,012 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-26 21:19:48,012 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-75510337-19210259, IP 131.37.55.131, Port 22 2024-08-26 21:19:48,188 - DEBUG - VM ctest-TestRoutersBasic-75510337-19210259 is ready for SSH connections 2024-08-26 21:19:48,189 - INFO - Waiting for VM ctest-TestRoutersBasic-75510337-08047711 to be up.. 2024-08-26 21:19:48,404 - DEBUG - VM is in ACTIVE state now 2024-08-26 21:19:48,404 - INFO - VM name : ctest-TestRoutersBasic-75510337-08047711 2024-08-26 21:19:48,501 - DEBUG - VM ctest-TestRoutersBasic-75510337-08047711 ID is 14de1d3f-9c55-4851-98bc-8964dba21ad0 2024-08-26 21:19:48,502 - DEBUG - VM ctest-TestRoutersBasic-75510337-08047711 launched on Node cn-jenkins-deploy-platform-ansible-os-1772-1 2024-08-26 21:19:48,591 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-machine/14de1d3f-9c55-4851-98bc-8964dba21ad0 2024-08-26 21:19:48,601 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-machine-interface/ebe996bb-9444-4241-945d-a737ee616a42 2024-08-26 21:19:49,855 - 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=3.20 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.658 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.658/1.929/3.200/1.271 ms') 2024-08-26 21:19:49,855 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-75510337-08047711 passed 2024-08-26 21:19:50,010 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-26 21:19:50,010 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-75510337-08047711, IP 113.181.254.3, Port 22 2024-08-26 21:19:50,176 - DEBUG - VM ctest-TestRoutersBasic-75510337-08047711 is ready for SSH connections 2024-08-26 21:19:50,176 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-26 21:19:50,176 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 113.181.254.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.42, gateway password: c0ntrail123 2024-08-26 21:19:50,177 - DEBUG - ping -s 56 -c 3 -W 1 113.181.254.3 2024-08-26 21:19:54,041 - DEBUG - PING 113.181.254.3 (113.181.254.3): 56 data bytes 64 bytes from 113.181.254.3: seq=0 ttl=62 time=5.624 ms 64 bytes from 113.181.254.3: seq=1 ttl=62 time=1.063 ms 64 bytes from 113.181.254.3: seq=2 ttl=62 time=1.265 ms --- 113.181.254.3 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.063/2.650/5.624 ms 2024-08-26 21:19:54,041 - INFO - Ping to IP 113.181.254.3 from VM ctest-TestRoutersBasic-75510337-19210259 passed 2024-08-26 21:19:54,041 - INFO - Deleting interface with subnet_id 83cb6e91-aece-4b1e-8b98-b879a3e6e296, port_id None from router e69e7621-451c-4a09-b9df-354ccf4874ce 2024-08-26 21:19:54,281 - INFO - Deleting VM ctest-TestRoutersBasic-75510337-08047711 2024-08-26 21:19:54,366 - INFO - Deleting VM ctest-TestRoutersBasic-75510337-19210259 2024-08-26 21:19:54,457 - INFO - Deleting VN ctest-ext_vn-57410502 2024-08-26 21:19:54,538 - DEBUG - VN 2b021e1f-15a8-4cbc-b8a0-860b24a4e99e still in use: Unable to complete operation on network 2b021e1f-15a8-4cbc-b8a0-860b24a4e99e. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-638ae033-9cbd-41e7-a282-d71ac8157d10'] 2024-08-26 21:19:54,539 - WARNING - Deleting VN ctest-ext_vn-57410502 failed..Will retry 2024-08-26 21:19:56,688 - DEBUG - Response for deleting network () 2024-08-26 21:19:56,688 - INFO - Deleting VN ctest-vn-52699533 2024-08-26 21:19:56,837 - DEBUG - Response for deleting network () 2024-08-26 21:19:57,103 - DEBUG - No XMPP flaps were noticed during the test 2024-08-26 21:19:57,104 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:32] 2024-08-26 21:19:57,104 - INFO - -------------------------------------------------------------------------------- 2024-08-26 21:19:57,891 - INFO - Deleted project: ctest-TestRoutersBasic-75510337, ID : 32617380-dbf3-4d83-bd1b-84c131f24907