2025-01-06 09:18:13,831 - INFO - Domain Default found not creating 2025-01-06 09:18:13,963 - INFO - Project ctest-TestRoutersBasic-64132852 not found, creating it 2025-01-06 09:18:14,436 - INFO - Created Project:ctest-TestRoutersBasic-64132852, ID : 16d9cff1-9382-48ba-8770-868dc491df80 2025-01-06 09:18:15,940 - INFO - ================================================================================ 2025-01-06 09:18:15,940 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2025-01-06 09:18:15,940 - 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-01-06 09:18:16,189 - DEBUG - Nothing to compare xmpp stats {'10.0.0.34': {'10.20.0.5': '0'}} with 2025-01-06 09:18:16,189 - INFO - Initial checks done. Running the testcase now 2025-01-06 09:18:16,190 - INFO - 2025-01-06 09:18:16,876 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-64132852 2025-01-06 09:18:16,976 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-64132852 2025-01-06 09:18:17,303 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-64132852', 'default']} 2025-01-06 09:18:17,611 - DEBUG - Response for create_network : {'network': {'id': '62c8442e-a6df-4c90-8384-e9d704897dea', 'name': 'ctest-vn-15187296', 'tenant_id': '16d9cff1938248ba8770868dc491df80', 'project_id': '16d9cff1938248ba8770868dc491df80', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-64132852', 'ctest-vn-15187296'], 'port_security_enabled': True, 'description': ''}} 2025-01-06 09:18:17,811 - DEBUG - Response for create_subnet : {'subnet': {'id': '322e6afb-3e4e-4680-9959-81f6ae4e427c', 'name': '', 'tenant_id': '16d9cff1938248ba8770868dc491df80', 'network_id': '62c8442e-a6df-4c90-8384-e9d704897dea', 'ip_version': 4, 'cidr': '144.112.185.64/26', 'allocation_pools': [{'start': '144.112.185.66', 'end': '144.112.185.126'}], 'gateway_ip': '144.112.185.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '144.112.185.66', 'tags': [], 'project_id': '16d9cff1938248ba8770868dc491df80'}} 2025-01-06 09:18:17,828 - INFO - Created VN ctest-vn-15187296 2025-01-06 09:18:17,880 - DEBUG - VN ctest-vn-15187296 UUID is 62c8442e-a6df-4c90-8384-e9d704897dea 2025-01-06 09:18:18,240 - DEBUG - Response for create_network : {'network': {'id': 'fb0490f2-41ff-4c80-a436-495b62ffb314', 'name': 'ctest-ext_vn-14075579', 'tenant_id': '16d9cff1938248ba8770868dc491df80', 'project_id': '16d9cff1938248ba8770868dc491df80', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-64132852', 'ctest-ext_vn-14075579'], 'port_security_enabled': True, 'description': ''}} 2025-01-06 09:18:18,443 - DEBUG - Response for create_subnet : {'subnet': {'id': '039a05c9-35a7-45e7-b6e0-82831558061f', 'name': '', 'tenant_id': '16d9cff1938248ba8770868dc491df80', 'network_id': 'fb0490f2-41ff-4c80-a436-495b62ffb314', 'ip_version': 4, 'cidr': '44.110.236.128/26', 'allocation_pools': [{'start': '44.110.236.130', 'end': '44.110.236.190'}], 'gateway_ip': '44.110.236.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '44.110.236.130', 'tags': [], 'project_id': '16d9cff1938248ba8770868dc491df80'}} 2025-01-06 09:18:18,458 - INFO - Created VN ctest-ext_vn-14075579 2025-01-06 09:18:18,511 - DEBUG - VN ctest-ext_vn-14075579 UUID is fb0490f2-41ff-4c80-a436-495b62ffb314 2025-01-06 09:18:18,716 - DEBUG - Services list from nova: [, , ] 2025-01-06 09:18:19,716 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2540-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2540-1) 2025-01-06 09:18:20,806 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2540-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2540-1) 2025-01-06 09:18:20,873 - INFO - Setting gateway for router ad4721ff-797f-47bc-85ce-76dfd5cdae30 to network fb0490f2-41ff-4c80-a436-495b62ffb314 2025-01-06 09:18:20,960 - INFO - Adding interface with subnet_id 322e6afb-3e4e-4680-9959-81f6ae4e427c, port_id None to router ad4721ff-797f-47bc-85ce-76dfd5cdae30 2025-01-06 09:18:21,432 - INFO - Waiting for VM ctest-TestRoutersBasic-64132852-07468495 to be up.. 2025-01-06 09:18:21,583 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-01-06 09:18:26,664 - DEBUG - VM is in ACTIVE state now 2025-01-06 09:18:26,664 - INFO - VM name : ctest-TestRoutersBasic-64132852-07468495 2025-01-06 09:18:26,735 - DEBUG - VM ctest-TestRoutersBasic-64132852-07468495 ID is dd7af81e-5174-4c75-af5d-3b00da67d832 2025-01-06 09:18:26,752 - DEBUG - VM ctest-TestRoutersBasic-64132852-07468495 launched on Node cn-jenkins-deploy-platform-ansible-os-2540-1 2025-01-06 09:18:26,825 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-machine/dd7af81e-5174-4c75-af5d-3b00da67d832 2025-01-06 09:18:27,122 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-machine/dd7af81e-5174-4c75-af5d-3b00da67d832 2025-01-06 09:18:27,156 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-machine-interface/98696979-ccc3-41ce-9d49-89eb6bf7bc34 2025-01-06 09:18:30,443 - 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 1035ms') 2025-01-06 09:18:30,443 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-64132852-07468495 failed! 2025-01-06 09:18:30,499 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-64132852:ctest-vn-15187296 is 144.112.185.65 and allocation pool is NOT set 2025-01-06 09:18:32,564 - 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=6.23 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.618 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 = 0.618/3.422/6.227/2.804 ms') 2025-01-06 09:18:32,565 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-64132852-07468495 passed 2025-01-06 09:18:32,719 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-06 09:18:32,720 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-64132852-07468495, IP 144.112.185.67, Port 22 2025-01-06 09:18:32,775 - 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-01-06 09:18:32,853 - DEBUG - VM ctest-TestRoutersBasic-64132852-07468495 is NOT ready for SSH connections, VM status: ACTIVE 2025-01-06 09:18:37,853 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-06 09:18:37,854 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-64132852-07468495, IP 144.112.185.67, Port 22 2025-01-06 09:18:38,014 - DEBUG - VM ctest-TestRoutersBasic-64132852-07468495 is ready for SSH connections 2025-01-06 09:18:38,014 - INFO - Waiting for VM ctest-TestRoutersBasic-64132852-64041878 to be up.. 2025-01-06 09:18:38,103 - DEBUG - VM is in ACTIVE state now 2025-01-06 09:18:38,103 - INFO - VM name : ctest-TestRoutersBasic-64132852-64041878 2025-01-06 09:18:38,172 - DEBUG - VM ctest-TestRoutersBasic-64132852-64041878 ID is 41bd6039-1698-4019-ae52-a3afbea04279 2025-01-06 09:18:38,172 - DEBUG - VM ctest-TestRoutersBasic-64132852-64041878 launched on Node cn-jenkins-deploy-platform-ansible-os-2540-1 2025-01-06 09:18:38,237 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-machine/41bd6039-1698-4019-ae52-a3afbea04279 2025-01-06 09:18:38,245 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-machine-interface/388a00ef-68c2-426c-9389-429c0dfda6e4 2025-01-06 09:18:39,480 - 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=2.55 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.521 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.521/1.535/2.550/1.014 ms') 2025-01-06 09:18:39,480 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-64132852-64041878 passed 2025-01-06 09:18:39,627 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-06 09:18:39,628 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-64132852-64041878, IP 44.110.236.131, Port 22 2025-01-06 09:18:39,789 - DEBUG - VM ctest-TestRoutersBasic-64132852-64041878 is ready for SSH connections 2025-01-06 09:18:39,789 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-06 09:18:39,789 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 44.110.236.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.34, gateway password: c0ntrail123 2025-01-06 09:18:39,789 - DEBUG - ping -s 56 -c 3 -W 1 44.110.236.131 2025-01-06 09:18:43,721 - DEBUG - PING 44.110.236.131 (44.110.236.131): 56 data bytes 64 bytes from 44.110.236.131: seq=0 ttl=62 time=5.151 ms 64 bytes from 44.110.236.131: seq=1 ttl=62 time=0.798 ms 64 bytes from 44.110.236.131: seq=2 ttl=62 time=1.007 ms --- 44.110.236.131 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.798/2.318/5.151 ms 2025-01-06 09:18:43,721 - INFO - Ping to IP 44.110.236.131 from VM ctest-TestRoutersBasic-64132852-07468495 passed 2025-01-06 09:18:43,721 - INFO - Deleting interface with subnet_id 322e6afb-3e4e-4680-9959-81f6ae4e427c, port_id None from router ad4721ff-797f-47bc-85ce-76dfd5cdae30 2025-01-06 09:18:43,918 - INFO - Deleting VM ctest-TestRoutersBasic-64132852-64041878 2025-01-06 09:18:43,982 - INFO - Deleting VM ctest-TestRoutersBasic-64132852-07468495 2025-01-06 09:18:44,076 - INFO - Deleting VN ctest-ext_vn-14075579 2025-01-06 09:18:44,134 - DEBUG - VN fb0490f2-41ff-4c80-a436-495b62ffb314 still in use: Unable to complete operation on network fb0490f2-41ff-4c80-a436-495b62ffb314. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-9fb45b37-3f53-487b-a2f5-f09af7ff93c0'] 2025-01-06 09:18:44,134 - WARNING - Deleting VN ctest-ext_vn-14075579 failed..Will retry 2025-01-06 09:18:46,256 - DEBUG - Response for deleting network () 2025-01-06 09:18:46,256 - INFO - Deleting VN ctest-vn-15187296 2025-01-06 09:18:46,361 - DEBUG - Response for deleting network () 2025-01-06 09:18:46,621 - DEBUG - No XMPP flaps were noticed during the test 2025-01-06 09:18:46,621 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:31] 2025-01-06 09:18:46,621 - INFO - -------------------------------------------------------------------------------- 2025-01-06 09:18:47,274 - INFO - Deleted project: ctest-TestRoutersBasic-64132852, ID : 16d9cff1-9382-48ba-8770-868dc491df80