2025-10-22 16:36:14,478 - INFO - Domain Default found not creating 2025-10-22 16:36:14,670 - INFO - Project ctest-TestRoutersBasic-98714813 not found, creating it 2025-10-22 16:36:15,201 - INFO - Created Project:ctest-TestRoutersBasic-98714813, ID : d2483935-83f0-4574-80c6-82b5cd148104 2025-10-22 16:36:16,759 - INFO - ================================================================================ 2025-10-22 16:36:16,759 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2025-10-22 16:36:16,759 - 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-10-22 16:36:17,036 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with 2025-10-22 16:36:17,036 - INFO - Initial checks done. Running the testcase now 2025-10-22 16:36:17,036 - INFO - 2025-10-22 16:36:17,767 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-98714813 2025-10-22 16:36:17,869 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-98714813 2025-10-22 16:36:18,197 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-98714813', 'default']} 2025-10-22 16:36:18,535 - DEBUG - Response for create_network : {'network': {'id': '343f93c2-263c-4e29-9f96-2417c735120d', 'name': 'ctest-vn-09759850', 'tenant_id': 'd248393583f0457480c682b5cd148104', 'project_id': 'd248393583f0457480c682b5cd148104', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-98714813', 'ctest-vn-09759850'], 'port_security_enabled': True, 'description': ''}} 2025-10-22 16:36:18,715 - DEBUG - Response for create_subnet : {'subnet': {'id': '53070d06-ac34-44b6-87ce-f76ef6d80165', 'name': '', 'tenant_id': 'd248393583f0457480c682b5cd148104', 'network_id': '343f93c2-263c-4e29-9f96-2417c735120d', 'ip_version': 4, 'cidr': '90.156.198.64/26', 'allocation_pools': [{'start': '90.156.198.66', 'end': '90.156.198.126'}], 'gateway_ip': '90.156.198.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '90.156.198.66', 'tags': [], 'project_id': 'd248393583f0457480c682b5cd148104'}} 2025-10-22 16:36:18,739 - INFO - Created VN ctest-vn-09759850 2025-10-22 16:36:18,793 - DEBUG - VN ctest-vn-09759850 UUID is 343f93c2-263c-4e29-9f96-2417c735120d 2025-10-22 16:36:19,139 - DEBUG - Response for create_network : {'network': {'id': '51ec7d6e-8d1a-40e7-b6ee-26b0c355e264', 'name': 'ctest-ext_vn-75478333', 'tenant_id': 'd248393583f0457480c682b5cd148104', 'project_id': 'd248393583f0457480c682b5cd148104', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-98714813', 'ctest-ext_vn-75478333'], 'port_security_enabled': True, 'description': ''}} 2025-10-22 16:36:19,346 - DEBUG - Response for create_subnet : {'subnet': {'id': '91422cc9-558e-492e-bb72-21fc2948ff5e', 'name': '', 'tenant_id': 'd248393583f0457480c682b5cd148104', 'network_id': '51ec7d6e-8d1a-40e7-b6ee-26b0c355e264', 'ip_version': 4, 'cidr': '25.191.104.128/26', 'allocation_pools': [{'start': '25.191.104.130', 'end': '25.191.104.190'}], 'gateway_ip': '25.191.104.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '25.191.104.130', 'tags': [], 'project_id': 'd248393583f0457480c682b5cd148104'}} 2025-10-22 16:36:19,364 - INFO - Created VN ctest-ext_vn-75478333 2025-10-22 16:36:19,417 - DEBUG - VN ctest-ext_vn-75478333 UUID is 51ec7d6e-8d1a-40e7-b6ee-26b0c355e264 2025-10-22 16:36:19,603 - DEBUG - Services list from nova: [, , ] 2025-10-22 16:36:20,666 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-4435-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-4435-1) 2025-10-22 16:36:21,868 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-4435-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-4435-1) 2025-10-22 16:36:21,957 - INFO - Setting gateway for router 8b5e7bd4-13e5-4816-aa6a-8d7b355caa2b to network 51ec7d6e-8d1a-40e7-b6ee-26b0c355e264 2025-10-22 16:36:22,028 - INFO - Adding interface with subnet_id 53070d06-ac34-44b6-87ce-f76ef6d80165, port_id None to router 8b5e7bd4-13e5-4816-aa6a-8d7b355caa2b 2025-10-22 16:36:22,437 - INFO - Waiting for VM ctest-TestRoutersBasic-98714813-67889339 to be up.. 2025-10-22 16:36:22,637 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-10-22 16:36:27,739 - DEBUG - VM is in ACTIVE state now 2025-10-22 16:36:27,739 - INFO - VM name : ctest-TestRoutersBasic-98714813-67889339 2025-10-22 16:36:27,827 - DEBUG - VM ctest-TestRoutersBasic-98714813-67889339 ID is 774045b6-2bd5-4574-a40e-5ef567841412 2025-10-22 16:36:27,861 - DEBUG - VM ctest-TestRoutersBasic-98714813-67889339 launched on Node cn-jenkins-deploy-platform-ansible-os-4435-1 2025-10-22 16:36:27,960 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine/774045b6-2bd5-4574-a40e-5ef567841412 2025-10-22 16:36:28,263 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine/774045b6-2bd5-4574-a40e-5ef567841412 2025-10-22 16:36:28,298 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine-interface/a100f152-3809-470a-b553-d83297ba1d8d 2025-10-22 16:36:31,577 - 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 1029ms') 2025-10-22 16:36:31,578 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-98714813-67889339 failed! 2025-10-22 16:36:31,637 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-98714813:ctest-vn-09759850 is 90.156.198.65 and allocation pool is NOT set 2025-10-22 16:36:33,704 - 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=4.82 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.536 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1002ms\r\nrtt min/avg/max/mdev = 0.536/2.679/4.823/2.143 ms') 2025-10-22 16:36:33,704 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-98714813-67889339 passed 2025-10-22 16:36:33,861 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-22 16:36:33,861 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-98714813-67889339, IP 90.156.198.67, Port 22 2025-10-22 16:36:33,928 - 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-10-22 16:36:34,014 - DEBUG - VM ctest-TestRoutersBasic-98714813-67889339 is NOT ready for SSH connections, VM status: ACTIVE 2025-10-22 16:36:39,015 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-22 16:36:39,016 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-98714813-67889339, IP 90.156.198.67, Port 22 2025-10-22 16:36:39,181 - DEBUG - VM ctest-TestRoutersBasic-98714813-67889339 is ready for SSH connections 2025-10-22 16:36:39,182 - INFO - Waiting for VM ctest-TestRoutersBasic-98714813-03812442 to be up.. 2025-10-22 16:36:39,270 - DEBUG - VM is in ACTIVE state now 2025-10-22 16:36:39,270 - INFO - VM name : ctest-TestRoutersBasic-98714813-03812442 2025-10-22 16:36:39,363 - DEBUG - VM ctest-TestRoutersBasic-98714813-03812442 ID is bd05562b-5dab-460e-bcc4-87a0d15d789c 2025-10-22 16:36:39,363 - DEBUG - VM ctest-TestRoutersBasic-98714813-03812442 launched on Node cn-jenkins-deploy-platform-ansible-os-4435-1 2025-10-22 16:36:39,444 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine/bd05562b-5dab-460e-bcc4-87a0d15d789c 2025-10-22 16:36:39,453 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine-interface/e65503cb-a37f-40de-8214-1e683584e433 2025-10-22 16:36:40,703 - 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.36 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.440 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.440/1.900/3.361/1.460 ms') 2025-10-22 16:36:40,703 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-98714813-03812442 passed 2025-10-22 16:36:40,857 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-22 16:36:40,857 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-98714813-03812442, IP 25.191.104.131, Port 22 2025-10-22 16:36:41,012 - DEBUG - VM ctest-TestRoutersBasic-98714813-03812442 is ready for SSH connections 2025-10-22 16:36:41,013 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-22 16:36:41,013 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 25.191.104.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.254, gateway password: c0ntrail123 2025-10-22 16:36:41,013 - DEBUG - ping -s 56 -c 3 -W 1 25.191.104.131 2025-10-22 16:36:44,748 - DEBUG - PING 25.191.104.131 (25.191.104.131): 56 data bytes 64 bytes from 25.191.104.131: seq=0 ttl=62 time=8.475 ms 64 bytes from 25.191.104.131: seq=1 ttl=62 time=1.141 ms 64 bytes from 25.191.104.131: seq=2 ttl=62 time=1.377 ms --- 25.191.104.131 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.141/3.664/8.475 ms 2025-10-22 16:36:44,748 - INFO - Ping to IP 25.191.104.131 from VM ctest-TestRoutersBasic-98714813-67889339 passed 2025-10-22 16:36:44,748 - INFO - Deleting interface with subnet_id 53070d06-ac34-44b6-87ce-f76ef6d80165, port_id None from router 8b5e7bd4-13e5-4816-aa6a-8d7b355caa2b 2025-10-22 16:36:44,967 - INFO - Deleting VM ctest-TestRoutersBasic-98714813-03812442 2025-10-22 16:36:45,057 - INFO - Deleting VM ctest-TestRoutersBasic-98714813-67889339 2025-10-22 16:36:45,163 - INFO - Deleting VN ctest-ext_vn-75478333 2025-10-22 16:36:45,255 - DEBUG - VN 51ec7d6e-8d1a-40e7-b6ee-26b0c355e264 still in use: Unable to complete operation on network 51ec7d6e-8d1a-40e7-b6ee-26b0c355e264. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-f7f8c134-424b-49f3-b247-6a5535646dfb'] 2025-10-22 16:36:45,256 - WARNING - Deleting VN ctest-ext_vn-75478333 failed..Will retry 2025-10-22 16:36:47,363 - DEBUG - Response for deleting network () 2025-10-22 16:36:47,363 - INFO - Deleting VN ctest-vn-09759850 2025-10-22 16:36:47,473 - DEBUG - Response for deleting network () 2025-10-22 16:36:47,737 - DEBUG - No XMPP flaps were noticed during the test
2025-10-22 16:36:47,737 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:31]
2025-10-22 16:36:47,737 - INFO - -------------------------------------------------------------------------------- 2025-10-22 16:36:48,447 - INFO - Deleted project: ctest-TestRoutersBasic-98714813, ID : d2483935-83f0-4574-80c6-82b5cd148104