2025-03-24 18:16:09,154 - INFO - Domain Default found not creating 2025-03-24 18:16:09,323 - INFO - Project ctest-TestRoutersBasic-07630937 not found, creating it 2025-03-24 18:16:09,829 - INFO - Created Project:ctest-TestRoutersBasic-07630937, ID : f59937a1-7ac9-4138-a846-56530e4ed899 2025-03-24 18:16:11,331 - INFO - ================================================================================ 2025-03-24 18:16:11,331 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2025-03-24 18:16:11,332 - 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-24 18:16:11,593 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.6': '0'}} with 2025-03-24 18:16:11,593 - INFO - Initial checks done. Running the testcase now 2025-03-24 18:16:11,593 - INFO - 2025-03-24 18:16:12,370 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-07630937 2025-03-24 18:16:12,471 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-07630937 2025-03-24 18:16:12,802 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-07630937', 'default']} 2025-03-24 18:16:13,138 - DEBUG - Response for create_network : {'network': {'id': '2c2305d5-0dba-47c4-ad1e-b22a5adc29f6', 'name': 'ctest-vn-70185923', 'tenant_id': 'f59937a17ac94138a84656530e4ed899', 'project_id': 'f59937a17ac94138a84656530e4ed899', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-07630937', 'ctest-vn-70185923'], 'port_security_enabled': True, 'description': ''}} 2025-03-24 18:16:13,383 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a9e2bc01-9b18-42aa-bcef-2de8c379798d', 'name': '', 'tenant_id': 'f59937a17ac94138a84656530e4ed899', 'network_id': '2c2305d5-0dba-47c4-ad1e-b22a5adc29f6', 'ip_version': 4, 'cidr': '187.191.222.192/26', 'allocation_pools': [{'start': '187.191.222.194', 'end': '187.191.222.254'}], 'gateway_ip': '187.191.222.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '187.191.222.194', 'tags': [], 'project_id': 'f59937a17ac94138a84656530e4ed899'}} 2025-03-24 18:16:13,403 - INFO - Created VN ctest-vn-70185923 2025-03-24 18:16:13,458 - DEBUG - VN ctest-vn-70185923 UUID is 2c2305d5-0dba-47c4-ad1e-b22a5adc29f6 2025-03-24 18:16:13,794 - DEBUG - Response for create_network : {'network': {'id': '329568a5-906b-4cdd-a62a-c45cfc8db577', 'name': 'ctest-ext_vn-84853995', 'tenant_id': 'f59937a17ac94138a84656530e4ed899', 'project_id': 'f59937a17ac94138a84656530e4ed899', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-07630937', 'ctest-ext_vn-84853995'], 'port_security_enabled': True, 'description': ''}} 2025-03-24 18:16:13,962 - DEBUG - Response for create_subnet : {'subnet': {'id': '1780bacb-c1b6-4118-9b4c-023c0401de32', 'name': '', 'tenant_id': 'f59937a17ac94138a84656530e4ed899', 'network_id': '329568a5-906b-4cdd-a62a-c45cfc8db577', 'ip_version': 4, 'cidr': '19.102.175.128/26', 'allocation_pools': [{'start': '19.102.175.130', 'end': '19.102.175.190'}], 'gateway_ip': '19.102.175.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '19.102.175.130', 'tags': [], 'project_id': 'f59937a17ac94138a84656530e4ed899'}} 2025-03-24 18:16:13,982 - INFO - Created VN ctest-ext_vn-84853995 2025-03-24 18:16:14,034 - DEBUG - VN ctest-ext_vn-84853995 UUID is 329568a5-906b-4cdd-a62a-c45cfc8db577 2025-03-24 18:16:14,218 - DEBUG - Services list from nova: [, , ] 2025-03-24 18:16:15,265 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2944-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2944-1) 2025-03-24 18:16:16,434 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2944-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2944-1) 2025-03-24 18:16:16,516 - INFO - Setting gateway for router 7620ca7e-0d6d-45d4-a565-f6034edd711c to network 329568a5-906b-4cdd-a62a-c45cfc8db577 2025-03-24 18:16:16,588 - INFO - Adding interface with subnet_id a9e2bc01-9b18-42aa-bcef-2de8c379798d, port_id None to router 7620ca7e-0d6d-45d4-a565-f6034edd711c 2025-03-24 18:16:17,035 - INFO - Waiting for VM ctest-TestRoutersBasic-07630937-97450271 to be up.. 2025-03-24 18:16:17,219 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-03-24 18:16:22,317 - DEBUG - VM is in ACTIVE state now 2025-03-24 18:16:22,317 - INFO - VM name : ctest-TestRoutersBasic-07630937-97450271 2025-03-24 18:16:22,422 - DEBUG - VM ctest-TestRoutersBasic-07630937-97450271 ID is 7bcf0772-2857-4f66-928a-6c552d720b33 2025-03-24 18:16:22,446 - DEBUG - VM ctest-TestRoutersBasic-07630937-97450271 launched on Node cn-jenkins-deploy-platform-ansible-os-2944-1 2025-03-24 18:16:22,535 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine/7bcf0772-2857-4f66-928a-6c552d720b33 2025-03-24 18:16:22,834 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine/7bcf0772-2857-4f66-928a-6c552d720b33 2025-03-24 18:16:22,888 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine-interface/3efc93b3-dea2-41d9-9422-cb0457c4cbe9 2025-03-24 18:16:26,139 - 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 1006ms') 2025-03-24 18:16:26,140 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-07630937-97450271 failed! 2025-03-24 18:16:26,206 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-07630937:ctest-vn-70185923 is 187.191.222.193 and allocation pool is NOT set 2025-03-24 18:16:28,269 - 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=5.66 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=1.94 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 = 1.941/3.800/5.660/1.859 ms') 2025-03-24 18:16:28,269 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-07630937-97450271 passed 2025-03-24 18:16:28,386 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-24 18:16:28,387 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-07630937-97450271, IP 187.191.222.195, Port 22 2025-03-24 18:16:28,453 - 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': ''} 2025-03-24 18:16:28,547 - DEBUG - VM ctest-TestRoutersBasic-07630937-97450271 is NOT ready for SSH connections, VM status: ACTIVE 2025-03-24 18:16:33,547 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-24 18:16:33,548 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-07630937-97450271, IP 187.191.222.195, Port 22 2025-03-24 18:16:33,706 - DEBUG - VM ctest-TestRoutersBasic-07630937-97450271 is ready for SSH connections 2025-03-24 18:16:33,706 - INFO - Waiting for VM ctest-TestRoutersBasic-07630937-54650771 to be up.. 2025-03-24 18:16:33,794 - DEBUG - VM is in ACTIVE state now 2025-03-24 18:16:33,794 - INFO - VM name : ctest-TestRoutersBasic-07630937-54650771 2025-03-24 18:16:33,881 - DEBUG - VM ctest-TestRoutersBasic-07630937-54650771 ID is dfd7e5df-51f9-4476-acf0-156b068196d1 2025-03-24 18:16:33,881 - DEBUG - VM ctest-TestRoutersBasic-07630937-54650771 launched on Node cn-jenkins-deploy-platform-ansible-os-2944-1 2025-03-24 18:16:33,971 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine/dfd7e5df-51f9-4476-acf0-156b068196d1 2025-03-24 18:16:33,981 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine-interface/e4709817-3da3-4cb7-9950-0f816ba24a8c 2025-03-24 18:16:35,235 - 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.26 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.529 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.529/1.893/3.258/1.364 ms') 2025-03-24 18:16:35,235 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-07630937-54650771 passed 2025-03-24 18:16:35,390 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-24 18:16:35,391 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-07630937-54650771, IP 19.102.175.131, Port 22 2025-03-24 18:16:35,556 - DEBUG - VM ctest-TestRoutersBasic-07630937-54650771 is ready for SSH connections 2025-03-24 18:16:35,556 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-24 18:16:35,556 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 19.102.175.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.50, gateway password: c0ntrail123 2025-03-24 18:16:35,556 - DEBUG - ping -s 56 -c 3 -W 1 19.102.175.131 2025-03-24 18:16:39,600 - DEBUG - PING 19.102.175.131 (19.102.175.131): 56 data bytes 64 bytes from 19.102.175.131: seq=0 ttl=62 time=6.333 ms 64 bytes from 19.102.175.131: seq=1 ttl=62 time=0.950 ms 64 bytes from 19.102.175.131: seq=2 ttl=62 time=1.219 ms --- 19.102.175.131 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.950/2.834/6.333 ms 2025-03-24 18:16:39,600 - INFO - Ping to IP 19.102.175.131 from VM ctest-TestRoutersBasic-07630937-97450271 passed 2025-03-24 18:16:39,601 - INFO - Deleting interface with subnet_id a9e2bc01-9b18-42aa-bcef-2de8c379798d, port_id None from router 7620ca7e-0d6d-45d4-a565-f6034edd711c 2025-03-24 18:16:39,904 - INFO - Deleting VM ctest-TestRoutersBasic-07630937-54650771 2025-03-24 18:16:39,981 - INFO - Deleting VM ctest-TestRoutersBasic-07630937-97450271 2025-03-24 18:16:40,101 - INFO - Deleting VN ctest-ext_vn-84853995 2025-03-24 18:16:40,190 - DEBUG - VN 329568a5-906b-4cdd-a62a-c45cfc8db577 still in use: Unable to complete operation on network 329568a5-906b-4cdd-a62a-c45cfc8db577. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-25821f7a-5d0a-4d60-8a45-0dd6dffbe627'] 2025-03-24 18:16:40,190 - WARNING - Deleting VN ctest-ext_vn-84853995 failed..Will retry 2025-03-24 18:16:42,307 - DEBUG - Response for deleting network () 2025-03-24 18:16:42,307 - INFO - Deleting VN ctest-vn-70185923 2025-03-24 18:16:42,435 - DEBUG - Response for deleting network () 2025-03-24 18:16:42,690 - DEBUG - No XMPP flaps were noticed during the test
2025-03-24 18:16:42,690 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:31]
2025-03-24 18:16:42,690 - INFO - -------------------------------------------------------------------------------- 2025-03-24 18:16:43,751 - INFO - Deleted project: ctest-TestRoutersBasic-07630937, ID : f59937a1-7ac9-4138-a846-56530e4ed899