2025-11-13 13:16:04,535 - INFO - Domain Default found not creating 2025-11-13 13:16:04,679 - INFO - Project ctest-TestRoutersBasic-54658983 not found, creating it 2025-11-13 13:16:05,137 - INFO - Created Project:ctest-TestRoutersBasic-54658983, ID : 7459519c-31ec-4f14-b5b4-e859fd368365 2025-11-13 13:16:06,520 - INFO - ================================================================================ 2025-11-13 13:16:06,521 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2025-11-13 13:16:06,521 - 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-11-13 13:16:06,773 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.14': '0'}} with 2025-11-13 13:16:06,774 - INFO - Initial checks done. Running the testcase now 2025-11-13 13:16:06,774 - INFO - 2025-11-13 13:16:07,453 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-54658983 2025-11-13 13:16:07,552 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-54658983 2025-11-13 13:16:07,868 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-54658983', 'default']} 2025-11-13 13:16:08,143 - DEBUG - Response for create_network : {'network': {'id': '084d3c52-4b92-4ba5-8f99-f815852c730a', 'name': 'ctest-vn-53807639', 'tenant_id': '7459519c31ec4f14b5b4e859fd368365', 'project_id': '7459519c31ec4f14b5b4e859fd368365', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-54658983', 'ctest-vn-53807639'], 'port_security_enabled': True, 'description': ''}} 2025-11-13 13:16:08,322 - DEBUG - Response for create_subnet : {'subnet': {'id': 'abf7218b-56a7-458f-ad3f-88b2c3a13d19', 'name': '', 'tenant_id': '7459519c31ec4f14b5b4e859fd368365', 'network_id': '084d3c52-4b92-4ba5-8f99-f815852c730a', 'ip_version': 4, 'cidr': '24.215.100.0/26', 'allocation_pools': [{'start': '24.215.100.2', 'end': '24.215.100.62'}], 'gateway_ip': '24.215.100.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '24.215.100.2', 'tags': [], 'project_id': '7459519c31ec4f14b5b4e859fd368365'}} 2025-11-13 13:16:08,338 - INFO - Created VN ctest-vn-53807639 2025-11-13 13:16:08,388 - DEBUG - VN ctest-vn-53807639 UUID is 084d3c52-4b92-4ba5-8f99-f815852c730a 2025-11-13 13:16:08,724 - DEBUG - Response for create_network : {'network': {'id': '367dac5a-1368-443f-9bdf-6c19e60c09a7', 'name': 'ctest-ext_vn-85394931', 'tenant_id': '7459519c31ec4f14b5b4e859fd368365', 'project_id': '7459519c31ec4f14b5b4e859fd368365', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-54658983', 'ctest-ext_vn-85394931'], 'port_security_enabled': True, 'description': ''}} 2025-11-13 13:16:08,939 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ea87ecd2-dd49-47c6-916b-751afd9270bb', 'name': '', 'tenant_id': '7459519c31ec4f14b5b4e859fd368365', 'network_id': '367dac5a-1368-443f-9bdf-6c19e60c09a7', 'ip_version': 4, 'cidr': '111.76.16.128/26', 'allocation_pools': [{'start': '111.76.16.130', 'end': '111.76.16.190'}], 'gateway_ip': '111.76.16.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '111.76.16.130', 'tags': [], 'project_id': '7459519c31ec4f14b5b4e859fd368365'}} 2025-11-13 13:16:08,956 - INFO - Created VN ctest-ext_vn-85394931 2025-11-13 13:16:09,012 - DEBUG - VN ctest-ext_vn-85394931 UUID is 367dac5a-1368-443f-9bdf-6c19e60c09a7 2025-11-13 13:16:09,179 - DEBUG - Services list from nova: [, , ] 2025-11-13 13:16:10,163 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-4722-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-4722-1) 2025-11-13 13:16:11,261 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-4722-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-4722-1) 2025-11-13 13:16:11,324 - INFO - Setting gateway for router 0ac69fc4-f192-4d04-b6b7-6402e2997adc to network 367dac5a-1368-443f-9bdf-6c19e60c09a7 2025-11-13 13:16:11,389 - INFO - Adding interface with subnet_id abf7218b-56a7-458f-ad3f-88b2c3a13d19, port_id None to router 0ac69fc4-f192-4d04-b6b7-6402e2997adc 2025-11-13 13:16:11,711 - INFO - Waiting for VM ctest-TestRoutersBasic-54658983-68758396 to be up.. 2025-11-13 13:16:11,850 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-11-13 13:16:16,934 - DEBUG - VM is in ACTIVE state now 2025-11-13 13:16:16,934 - INFO - VM name : ctest-TestRoutersBasic-54658983-68758396 2025-11-13 13:16:17,023 - DEBUG - VM ctest-TestRoutersBasic-54658983-68758396 ID is ca155b7a-3259-4511-b102-efa615dea5c3 2025-11-13 13:16:17,045 - DEBUG - VM ctest-TestRoutersBasic-54658983-68758396 launched on Node cn-jenkins-deploy-platform-ansible-os-4722-1 2025-11-13 13:16:17,128 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine/ca155b7a-3259-4511-b102-efa615dea5c3 2025-11-13 13:16:17,418 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine/ca155b7a-3259-4511-b102-efa615dea5c3 2025-11-13 13:16:17,448 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine-interface/d966cbeb-09a9-4a59-acf3-ede892aecb35 2025-11-13 13:16:20,693 - 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 1003ms') 2025-11-13 13:16:20,693 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-54658983-68758396 failed! 2025-11-13 13:16:20,748 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-54658983:ctest-vn-53807639 is 24.215.100.1 and allocation pool is NOT set 2025-11-13 13:16:22,809 - 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=2.74 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=2.69 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 = 2.694/2.719/2.744/0.025 ms') 2025-11-13 13:16:22,809 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-54658983-68758396 passed 2025-11-13 13:16:22,956 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-11-13 13:16:22,956 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-54658983-68758396, IP 24.215.100.3, Port 22 2025-11-13 13:16:23,011 - 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-11-13 13:16:23,088 - DEBUG - VM ctest-TestRoutersBasic-54658983-68758396 is NOT ready for SSH connections, VM status: ACTIVE 2025-11-13 13:16:28,089 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-11-13 13:16:28,089 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-54658983-68758396, IP 24.215.100.3, Port 22 2025-11-13 13:16:28,243 - DEBUG - VM ctest-TestRoutersBasic-54658983-68758396 is ready for SSH connections 2025-11-13 13:16:28,243 - INFO - Waiting for VM ctest-TestRoutersBasic-54658983-24729145 to be up.. 2025-11-13 13:16:28,319 - DEBUG - VM is in ACTIVE state now 2025-11-13 13:16:28,319 - INFO - VM name : ctest-TestRoutersBasic-54658983-24729145 2025-11-13 13:16:28,392 - DEBUG - VM ctest-TestRoutersBasic-54658983-24729145 ID is ec6f1cc3-6659-494c-8cf8-70085da75906 2025-11-13 13:16:28,392 - DEBUG - VM ctest-TestRoutersBasic-54658983-24729145 launched on Node cn-jenkins-deploy-platform-ansible-os-4722-1 2025-11-13 13:16:28,462 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine/ec6f1cc3-6659-494c-8cf8-70085da75906 2025-11-13 13:16:28,469 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine-interface/638747b5-c57f-448f-8151-05d02900b4da 2025-11-13 13:16:29,700 - 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.74 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.527 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.527/1.632/2.737/1.105 ms') 2025-11-13 13:16:29,700 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-54658983-24729145 passed 2025-11-13 13:16:29,848 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-11-13 13:16:29,848 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-54658983-24729145, IP 111.76.16.131, Port 22 2025-11-13 13:16:30,000 - DEBUG - VM ctest-TestRoutersBasic-54658983-24729145 is ready for SSH connections 2025-11-13 13:16:30,000 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-11-13 13:16:30,000 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 111.76.16.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.50, gateway password: c0ntrail123 2025-11-13 13:16:30,000 - DEBUG - ping -s 56 -c 3 -W 1 111.76.16.131 2025-11-13 13:16:34,016 - DEBUG - PING 111.76.16.131 (111.76.16.131): 56 data bytes 64 bytes from 111.76.16.131: seq=0 ttl=62 time=8.344 ms 64 bytes from 111.76.16.131: seq=1 ttl=62 time=0.972 ms 64 bytes from 111.76.16.131: seq=2 ttl=62 time=0.863 ms --- 111.76.16.131 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.863/3.393/8.344 ms 2025-11-13 13:16:34,016 - INFO - Ping to IP 111.76.16.131 from VM ctest-TestRoutersBasic-54658983-68758396 passed 2025-11-13 13:16:34,017 - INFO - Deleting interface with subnet_id abf7218b-56a7-458f-ad3f-88b2c3a13d19, port_id None from router 0ac69fc4-f192-4d04-b6b7-6402e2997adc 2025-11-13 13:16:34,180 - INFO - Deleting VM ctest-TestRoutersBasic-54658983-24729145 2025-11-13 13:16:34,242 - INFO - Deleting VM ctest-TestRoutersBasic-54658983-68758396 2025-11-13 13:16:34,334 - INFO - Deleting VN ctest-ext_vn-85394931 2025-11-13 13:16:34,387 - DEBUG - VN 367dac5a-1368-443f-9bdf-6c19e60c09a7 still in use: Unable to complete operation on network 367dac5a-1368-443f-9bdf-6c19e60c09a7. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-6bc50821-833d-498d-b0cf-bd03edf3f1ba'] 2025-11-13 13:16:34,387 - WARNING - Deleting VN ctest-ext_vn-85394931 failed..Will retry 2025-11-13 13:16:36,489 - DEBUG - Response for deleting network () 2025-11-13 13:16:36,489 - INFO - Deleting VN ctest-vn-53807639 2025-11-13 13:16:36,600 - DEBUG - Response for deleting network () 2025-11-13 13:16:36,856 - DEBUG - No XMPP flaps were noticed during the test
2025-11-13 13:16:36,856 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:30]
2025-11-13 13:16:36,856 - INFO - -------------------------------------------------------------------------------- 2025-11-13 13:16:37,538 - INFO - Deleted project: ctest-TestRoutersBasic-54658983, ID : 7459519c-31ec-4f14-b5b4-e859fd368365