2024-08-29 21:01:44,418 - INFO - Domain Default found not creating 2024-08-29 21:01:44,770 - INFO - Project ctest-TestRoutersBasic-80127508 not found, creating it 2024-08-29 21:01:45,496 - INFO - Created Project:ctest-TestRoutersBasic-80127508, ID : 98390f67-c9dd-4bbe-ada5-a1845e484aca 2024-08-29 21:01:48,103 - INFO - ================================================================================ 2024-08-29 21:01:48,103 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2024-08-29 21:01:48,103 - 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-29 21:01:48,447 - DEBUG - Nothing to compare xmpp stats {'10.0.0.52': {'10.20.0.10': '0'}} with 2024-08-29 21:01:48,447 - INFO - Initial checks done. Running the testcase now 2024-08-29 21:01:48,448 - INFO - 2024-08-29 21:01:49,402 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-80127508 2024-08-29 21:01:49,527 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-80127508 2024-08-29 21:01:49,912 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-80127508', 'default']} 2024-08-29 21:01:50,454 - DEBUG - Response for create_network : {'network': {'id': '0466a43f-4bbc-41fe-9f5e-2abee073c981', 'name': 'ctest-vn-46422540', 'tenant_id': '98390f67c9dd4bbeada5a1845e484aca', 'project_id': '98390f67c9dd4bbeada5a1845e484aca', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-80127508', 'ctest-vn-46422540'], 'port_security_enabled': True, 'description': ''}} 2024-08-29 21:01:50,718 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f867ad9c-51bb-4e4e-b343-37ce38af858c', 'name': '', 'tenant_id': '98390f67c9dd4bbeada5a1845e484aca', 'network_id': '0466a43f-4bbc-41fe-9f5e-2abee073c981', 'ip_version': 4, 'cidr': '55.16.211.64/26', 'allocation_pools': [{'start': '55.16.211.66', 'end': '55.16.211.126'}], 'gateway_ip': '55.16.211.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '55.16.211.66', 'tags': [], 'project_id': '98390f67c9dd4bbeada5a1845e484aca'}} 2024-08-29 21:01:50,749 - INFO - Created VN ctest-vn-46422540 2024-08-29 21:01:50,808 - DEBUG - VN ctest-vn-46422540 UUID is 0466a43f-4bbc-41fe-9f5e-2abee073c981 2024-08-29 21:01:51,373 - DEBUG - Response for create_network : {'network': {'id': '629e42be-7f9d-402a-af30-24d981c5046c', 'name': 'ctest-ext_vn-36917314', 'tenant_id': '98390f67c9dd4bbeada5a1845e484aca', 'project_id': '98390f67c9dd4bbeada5a1845e484aca', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-80127508', 'ctest-ext_vn-36917314'], 'port_security_enabled': True, 'description': ''}} 2024-08-29 21:01:51,577 - DEBUG - Response for create_subnet : {'subnet': {'id': '8f56f4c7-1682-469c-9fdb-adb0ff9b9fd1', 'name': '', 'tenant_id': '98390f67c9dd4bbeada5a1845e484aca', 'network_id': '629e42be-7f9d-402a-af30-24d981c5046c', 'ip_version': 4, 'cidr': '101.35.161.0/26', 'allocation_pools': [{'start': '101.35.161.2', 'end': '101.35.161.62'}], 'gateway_ip': '101.35.161.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '101.35.161.2', 'tags': [], 'project_id': '98390f67c9dd4bbeada5a1845e484aca'}} 2024-08-29 21:01:51,613 - INFO - Created VN ctest-ext_vn-36917314 2024-08-29 21:01:51,676 - DEBUG - VN ctest-ext_vn-36917314 UUID is 629e42be-7f9d-402a-af30-24d981c5046c 2024-08-29 21:01:52,044 - DEBUG - Services list from nova: [, , ] 2024-08-29 21:01:53,686 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1818-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1818-1) 2024-08-29 21:01:55,169 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1818-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1818-1) 2024-08-29 21:01:55,256 - INFO - Setting gateway for router b940af1b-d37d-467b-8545-e2dae46e9cd1 to network 629e42be-7f9d-402a-af30-24d981c5046c 2024-08-29 21:01:55,347 - INFO - Adding interface with subnet_id f867ad9c-51bb-4e4e-b343-37ce38af858c, port_id None to router b940af1b-d37d-467b-8545-e2dae46e9cd1 2024-08-29 21:01:55,787 - INFO - Waiting for VM ctest-TestRoutersBasic-80127508-44169790 to be up.. 2024-08-29 21:01:55,970 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-08-29 21:02:01,161 - DEBUG - VM is in ACTIVE state now 2024-08-29 21:02:01,161 - INFO - VM name : ctest-TestRoutersBasic-80127508-44169790 2024-08-29 21:02:01,365 - DEBUG - VM ctest-TestRoutersBasic-80127508-44169790 ID is 10235bb5-5250-4ad8-a193-99f307daffc4 2024-08-29 21:02:01,413 - DEBUG - VM ctest-TestRoutersBasic-80127508-44169790 launched on Node cn-jenkins-deploy-platform-ansible-os-1818-1 2024-08-29 21:02:01,551 - DEBUG - Requesting: http://10.0.0.52:8082/virtual-machine/10235bb5-5250-4ad8-a193-99f307daffc4 2024-08-29 21:02:01,880 - DEBUG - Requesting: http://10.0.0.52:8082/virtual-machine/10235bb5-5250-4ad8-a193-99f307daffc4 2024-08-29 21:02:01,923 - DEBUG - Requesting: http://10.0.0.52:8082/virtual-machine-interface/dfec59e9-ff08-44b7-a06c-e75b6f06e947 2024-08-29 21:02:05,198 - 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 1000ms') 2024-08-29 21:02:05,198 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-80127508-44169790 failed! 2024-08-29 21:02:05,268 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-80127508:ctest-vn-46422540 is 55.16.211.65 and allocation pool is NOT set 2024-08-29 21:02:07,343 - 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=8.14 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=2.81 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.812/5.475/8.138/2.663 ms') 2024-08-29 21:02:07,343 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-80127508-44169790 passed 2024-08-29 21:02:07,516 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-29 21:02:07,516 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-80127508-44169790, IP 55.16.211.67, Port 22 2024-08-29 21:02:07,576 - 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-29 21:02:07,689 - DEBUG - VM ctest-TestRoutersBasic-80127508-44169790 is NOT ready for SSH connections, VM status: ACTIVE 2024-08-29 21:02:12,690 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-29 21:02:12,690 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-80127508-44169790, IP 55.16.211.67, Port 22 2024-08-29 21:02:12,888 - DEBUG - VM ctest-TestRoutersBasic-80127508-44169790 is ready for SSH connections 2024-08-29 21:02:12,889 - INFO - Waiting for VM ctest-TestRoutersBasic-80127508-40144623 to be up.. 2024-08-29 21:02:13,074 - DEBUG - VM is in ACTIVE state now 2024-08-29 21:02:13,074 - INFO - VM name : ctest-TestRoutersBasic-80127508-40144623 2024-08-29 21:02:13,207 - DEBUG - VM ctest-TestRoutersBasic-80127508-40144623 ID is dbde4e75-5365-408e-9f49-d5d4b2cb5065 2024-08-29 21:02:13,208 - DEBUG - VM ctest-TestRoutersBasic-80127508-40144623 launched on Node cn-jenkins-deploy-platform-ansible-os-1818-1 2024-08-29 21:02:13,381 - DEBUG - Requesting: http://10.0.0.52:8082/virtual-machine/dbde4e75-5365-408e-9f49-d5d4b2cb5065 2024-08-29 21:02:13,406 - DEBUG - Requesting: http://10.0.0.52:8082/virtual-machine-interface/ff51e2de-a493-4a1d-a55b-a514bb558844 2024-08-29 21:02:14,734 - 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=9.64 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.420 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.420/5.031/9.642/4.611 ms') 2024-08-29 21:02:14,734 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-80127508-40144623 passed 2024-08-29 21:02:14,920 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-29 21:02:14,920 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-80127508-40144623, IP 101.35.161.3, Port 22 2024-08-29 21:02:15,131 - DEBUG - VM ctest-TestRoutersBasic-80127508-40144623 is ready for SSH connections 2024-08-29 21:02:15,132 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-29 21:02:15,133 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 101.35.161.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.52, gateway password: c0ntrail123 2024-08-29 21:02:15,134 - DEBUG - ping -s 56 -c 3 -W 1 101.35.161.3 2024-08-29 21:02:19,133 - DEBUG - PING 101.35.161.3 (101.35.161.3): 56 data bytes 64 bytes from 101.35.161.3: seq=0 ttl=62 time=9.435 ms 64 bytes from 101.35.161.3: seq=1 ttl=62 time=1.902 ms 64 bytes from 101.35.161.3: seq=2 ttl=62 time=1.703 ms --- 101.35.161.3 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.703/4.346/9.435 ms 2024-08-29 21:02:19,133 - INFO - Ping to IP 101.35.161.3 from VM ctest-TestRoutersBasic-80127508-44169790 passed 2024-08-29 21:02:19,133 - INFO - Deleting interface with subnet_id f867ad9c-51bb-4e4e-b343-37ce38af858c, port_id None from router b940af1b-d37d-467b-8545-e2dae46e9cd1 2024-08-29 21:02:19,498 - INFO - Deleting VM ctest-TestRoutersBasic-80127508-40144623 2024-08-29 21:02:19,578 - INFO - Deleting VM ctest-TestRoutersBasic-80127508-44169790 2024-08-29 21:02:19,669 - INFO - Deleting VN ctest-ext_vn-36917314 2024-08-29 21:02:19,775 - DEBUG - VN 629e42be-7f9d-402a-af30-24d981c5046c still in use: Unable to complete operation on network 629e42be-7f9d-402a-af30-24d981c5046c. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-72def61f-f1c0-444c-af5c-4bdc3d3a8843'] 2024-08-29 21:02:19,775 - WARNING - Deleting VN ctest-ext_vn-36917314 failed..Will retry 2024-08-29 21:02:22,037 - DEBUG - Response for deleting network () 2024-08-29 21:02:22,038 - INFO - Deleting VN ctest-vn-46422540 2024-08-29 21:02:22,249 - DEBUG - Response for deleting network () 2024-08-29 21:02:22,583 - DEBUG - No XMPP flaps were noticed during the test 2024-08-29 21:02:22,583 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:34] 2024-08-29 21:02:22,584 - INFO - -------------------------------------------------------------------------------- 2024-08-29 21:02:23,497 - INFO - Deleted project: ctest-TestRoutersBasic-80127508, ID : 98390f67-c9dd-4bbe-ada5-a1845e484aca