2024-12-23 11:38:22,576 - INFO - Domain Default found not creating 2024-12-23 11:38:22,734 - INFO - Project ctest-TestRoutersBasic-24275750 not found, creating it 2024-12-23 11:38:23,228 - INFO - Created Project:ctest-TestRoutersBasic-24275750, ID : 872a5a54-11d5-4d0f-af9e-6942645eb6b7 2024-12-23 11:38:24,912 - INFO - ================================================================================ 2024-12-23 11:38:24,912 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2024-12-23 11:38:24,912 - 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-12-23 11:38:25,172 - DEBUG - Nothing to compare xmpp stats {'10.0.0.44': {'10.20.0.5': '0'}} with 2024-12-23 11:38:25,172 - INFO - Initial checks done. Running the testcase now 2024-12-23 11:38:25,172 - INFO - 2024-12-23 11:38:25,975 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-24275750 2024-12-23 11:38:26,077 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-24275750 2024-12-23 11:38:26,413 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-24275750', 'default']} 2024-12-23 11:38:26,756 - DEBUG - Response for create_network : {'network': {'id': '60fccc40-a8a2-4d50-be16-b2c56a10cee6', 'name': 'ctest-vn-48588683', 'tenant_id': '872a5a5411d54d0faf9e6942645eb6b7', 'project_id': '872a5a5411d54d0faf9e6942645eb6b7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-24275750', 'ctest-vn-48588683'], 'port_security_enabled': True, 'description': ''}} 2024-12-23 11:38:26,915 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd5a8f223-6ad4-443d-ae37-8eef9834f33b', 'name': '', 'tenant_id': '872a5a5411d54d0faf9e6942645eb6b7', 'network_id': '60fccc40-a8a2-4d50-be16-b2c56a10cee6', 'ip_version': 4, 'cidr': '123.144.28.0/26', 'allocation_pools': [{'start': '123.144.28.2', 'end': '123.144.28.62'}], 'gateway_ip': '123.144.28.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '123.144.28.2', 'tags': [], 'project_id': '872a5a5411d54d0faf9e6942645eb6b7'}} 2024-12-23 11:38:26,934 - INFO - Created VN ctest-vn-48588683 2024-12-23 11:38:26,988 - DEBUG - VN ctest-vn-48588683 UUID is 60fccc40-a8a2-4d50-be16-b2c56a10cee6 2024-12-23 11:38:27,322 - DEBUG - Response for create_network : {'network': {'id': '51422aa3-f13c-4bc1-8771-866e2e7facfe', 'name': 'ctest-ext_vn-23900401', 'tenant_id': '872a5a5411d54d0faf9e6942645eb6b7', 'project_id': '872a5a5411d54d0faf9e6942645eb6b7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-24275750', 'ctest-ext_vn-23900401'], 'port_security_enabled': True, 'description': ''}} 2024-12-23 11:38:27,556 - DEBUG - Response for create_subnet : {'subnet': {'id': 'de10cd7e-ffd6-40a8-9e21-414acc4a8274', 'name': '', 'tenant_id': '872a5a5411d54d0faf9e6942645eb6b7', 'network_id': '51422aa3-f13c-4bc1-8771-866e2e7facfe', 'ip_version': 4, 'cidr': '201.194.241.0/26', 'allocation_pools': [{'start': '201.194.241.2', 'end': '201.194.241.62'}], 'gateway_ip': '201.194.241.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '201.194.241.2', 'tags': [], 'project_id': '872a5a5411d54d0faf9e6942645eb6b7'}} 2024-12-23 11:38:27,576 - INFO - Created VN ctest-ext_vn-23900401 2024-12-23 11:38:27,628 - DEBUG - VN ctest-ext_vn-23900401 UUID is 51422aa3-f13c-4bc1-8771-866e2e7facfe 2024-12-23 11:38:27,800 - DEBUG - Services list from nova: [, , ] 2024-12-23 11:38:28,923 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2490-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2490-1) 2024-12-23 11:38:30,195 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2490-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2490-1) 2024-12-23 11:38:30,296 - INFO - Setting gateway for router b62b6e7f-8098-4c82-8dfc-63f54e56b92a to network 51422aa3-f13c-4bc1-8771-866e2e7facfe 2024-12-23 11:38:30,367 - INFO - Adding interface with subnet_id d5a8f223-6ad4-443d-ae37-8eef9834f33b, port_id None to router b62b6e7f-8098-4c82-8dfc-63f54e56b92a 2024-12-23 11:38:30,766 - INFO - Waiting for VM ctest-TestRoutersBasic-24275750-02557316 to be up.. 2024-12-23 11:38:30,932 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-12-23 11:38:36,022 - DEBUG - VM is in ACTIVE state now 2024-12-23 11:38:36,022 - INFO - VM name : ctest-TestRoutersBasic-24275750-02557316 2024-12-23 11:38:36,118 - DEBUG - VM ctest-TestRoutersBasic-24275750-02557316 ID is dc72774b-f4f8-4901-a176-e10b573d4646 2024-12-23 11:38:36,138 - DEBUG - VM ctest-TestRoutersBasic-24275750-02557316 launched on Node cn-jenkins-deploy-platform-ansible-os-2490-1 2024-12-23 11:38:36,223 - DEBUG - Requesting: http://10.0.0.44:8082/virtual-machine/dc72774b-f4f8-4901-a176-e10b573d4646 2024-12-23 11:38:36,575 - DEBUG - Requesting: http://10.0.0.44:8082/virtual-machine/dc72774b-f4f8-4901-a176-e10b573d4646 2024-12-23 11:38:36,609 - DEBUG - Requesting: http://10.0.0.44:8082/virtual-machine-interface/8f45ba83-c07d-4a2b-b323-fe50dc7d4550 2024-12-23 11:38:39,874 - 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 1001ms') 2024-12-23 11:38:39,874 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-24275750-02557316 failed! 2024-12-23 11:38:39,937 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-24275750:ctest-vn-48588683 is 123.144.28.1 and allocation pool is NOT set 2024-12-23 11:38:42,003 - 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.27 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=2.52 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.518/2.892/3.266/0.374 ms') 2024-12-23 11:38:42,003 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-24275750-02557316 passed 2024-12-23 11:38:42,164 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-12-23 11:38:42,165 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-24275750-02557316, IP 123.144.28.3, Port 22 2024-12-23 11:38:42,231 - 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-12-23 11:38:42,326 - DEBUG - VM ctest-TestRoutersBasic-24275750-02557316 is NOT ready for SSH connections, VM status: ACTIVE 2024-12-23 11:38:47,327 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-12-23 11:38:47,327 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-24275750-02557316, IP 123.144.28.3, Port 22 2024-12-23 11:38:47,495 - DEBUG - VM ctest-TestRoutersBasic-24275750-02557316 is ready for SSH connections 2024-12-23 11:38:47,495 - INFO - Waiting for VM ctest-TestRoutersBasic-24275750-97296025 to be up.. 2024-12-23 11:38:47,587 - DEBUG - VM is in ACTIVE state now 2024-12-23 11:38:47,587 - INFO - VM name : ctest-TestRoutersBasic-24275750-97296025 2024-12-23 11:38:47,681 - DEBUG - VM ctest-TestRoutersBasic-24275750-97296025 ID is eb00631b-272c-4451-8afb-1025dc5458e6 2024-12-23 11:38:47,681 - DEBUG - VM ctest-TestRoutersBasic-24275750-97296025 launched on Node cn-jenkins-deploy-platform-ansible-os-2490-1 2024-12-23 11:38:47,771 - DEBUG - Requesting: http://10.0.0.44:8082/virtual-machine/eb00631b-272c-4451-8afb-1025dc5458e6 2024-12-23 11:38:47,782 - DEBUG - Requesting: http://10.0.0.44:8082/virtual-machine-interface/a7a8bd4a-ea89-464b-b687-843bb6d7c57d 2024-12-23 11:38:49,035 - 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=4.05 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.507 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.507/2.280/4.054/1.773 ms') 2024-12-23 11:38:49,035 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-24275750-97296025 passed 2024-12-23 11:38:49,200 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-12-23 11:38:49,201 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-24275750-97296025, IP 201.194.241.3, Port 22 2024-12-23 11:38:49,389 - DEBUG - VM ctest-TestRoutersBasic-24275750-97296025 is ready for SSH connections 2024-12-23 11:38:49,389 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-12-23 11:38:49,389 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 201.194.241.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.44, gateway password: c0ntrail123 2024-12-23 11:38:49,390 - DEBUG - ping -s 56 -c 3 -W 1 201.194.241.3 2024-12-23 11:38:53,124 - DEBUG - PING 201.194.241.3 (201.194.241.3): 56 data bytes 64 bytes from 201.194.241.3: seq=0 ttl=62 time=5.495 ms 64 bytes from 201.194.241.3: seq=1 ttl=62 time=1.009 ms 64 bytes from 201.194.241.3: seq=2 ttl=62 time=1.061 ms --- 201.194.241.3 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.009/2.521/5.495 ms 2024-12-23 11:38:53,124 - INFO - Ping to IP 201.194.241.3 from VM ctest-TestRoutersBasic-24275750-02557316 passed 2024-12-23 11:38:53,124 - INFO - Deleting interface with subnet_id d5a8f223-6ad4-443d-ae37-8eef9834f33b, port_id None from router b62b6e7f-8098-4c82-8dfc-63f54e56b92a 2024-12-23 11:38:53,353 - INFO - Deleting VM ctest-TestRoutersBasic-24275750-97296025 2024-12-23 11:38:53,474 - INFO - Deleting VM ctest-TestRoutersBasic-24275750-02557316 2024-12-23 11:38:53,567 - INFO - Deleting VN ctest-ext_vn-23900401 2024-12-23 11:38:53,653 - DEBUG - VN 51422aa3-f13c-4bc1-8771-866e2e7facfe still in use: Unable to complete operation on network 51422aa3-f13c-4bc1-8771-866e2e7facfe. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-cb24dcbe-56e1-4088-bdcb-567bb3d74f96'] 2024-12-23 11:38:53,654 - WARNING - Deleting VN ctest-ext_vn-23900401 failed..Will retry 2024-12-23 11:38:55,781 - DEBUG - Response for deleting network () 2024-12-23 11:38:55,782 - INFO - Deleting VN ctest-vn-48588683 2024-12-23 11:38:55,908 - DEBUG - Response for deleting network () 2024-12-23 11:38:56,167 - DEBUG - No XMPP flaps were noticed during the test 2024-12-23 11:38:56,167 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:32] 2024-12-23 11:38:56,167 - INFO - -------------------------------------------------------------------------------- 2024-12-23 11:38:56,957 - INFO - Deleted project: ctest-TestRoutersBasic-24275750, ID : 872a5a54-11d5-4d0f-af9e-6942645eb6b7