2025-08-26 08:06:04,455 - INFO - Domain Default found not creating 2025-08-26 08:06:04,608 - INFO - Project ctest-TestRoutersBasic-89263631 not found, creating it 2025-08-26 08:06:05,104 - INFO - Created Project:ctest-TestRoutersBasic-89263631, ID : 336a6058-939e-48fc-a4a1-265606a7205e 2025-08-26 08:06:06,667 - INFO - ================================================================================ 2025-08-26 08:06:06,667 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2025-08-26 08:06:06,667 - 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-08-26 08:06:06,929 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.254': '0'}} with 2025-08-26 08:06:06,929 - INFO - Initial checks done. Running the testcase now 2025-08-26 08:06:06,929 - INFO - 2025-08-26 08:06:07,668 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-89263631 2025-08-26 08:06:07,763 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-89263631 2025-08-26 08:06:08,091 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-89263631', 'default']} 2025-08-26 08:06:08,429 - DEBUG - Response for create_network : {'network': {'id': 'f755a753-d2a4-4f2e-9a0c-8b9225a055e8', 'name': 'ctest-vn-53439738', 'tenant_id': '336a6058939e48fca4a1265606a7205e', 'project_id': '336a6058939e48fca4a1265606a7205e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-89263631', 'ctest-vn-53439738'], 'port_security_enabled': True, 'description': ''}} 2025-08-26 08:06:08,640 - DEBUG - Response for create_subnet : {'subnet': {'id': '5e5bd6ce-158b-4588-acee-28d0fc205f3b', 'name': '', 'tenant_id': '336a6058939e48fca4a1265606a7205e', 'network_id': 'f755a753-d2a4-4f2e-9a0c-8b9225a055e8', 'ip_version': 4, 'cidr': '22.152.210.192/26', 'allocation_pools': [{'start': '22.152.210.194', 'end': '22.152.210.254'}], 'gateway_ip': '22.152.210.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '22.152.210.194', 'tags': [], 'project_id': '336a6058939e48fca4a1265606a7205e'}} 2025-08-26 08:06:08,659 - INFO - Created VN ctest-vn-53439738 2025-08-26 08:06:08,711 - DEBUG - VN ctest-vn-53439738 UUID is f755a753-d2a4-4f2e-9a0c-8b9225a055e8 2025-08-26 08:06:09,084 - DEBUG - Response for create_network : {'network': {'id': 'd7a0f864-12e1-456f-aa08-54013bd94d07', 'name': 'ctest-ext_vn-94746812', 'tenant_id': '336a6058939e48fca4a1265606a7205e', 'project_id': '336a6058939e48fca4a1265606a7205e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-89263631', 'ctest-ext_vn-94746812'], 'port_security_enabled': True, 'description': ''}} 2025-08-26 08:06:09,260 - DEBUG - Response for create_subnet : {'subnet': {'id': '96d03055-4bd4-468f-8785-ba3de1da7a96', 'name': '', 'tenant_id': '336a6058939e48fca4a1265606a7205e', 'network_id': 'd7a0f864-12e1-456f-aa08-54013bd94d07', 'ip_version': 4, 'cidr': '25.84.104.192/26', 'allocation_pools': [{'start': '25.84.104.194', 'end': '25.84.104.254'}], 'gateway_ip': '25.84.104.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '25.84.104.194', 'tags': [], 'project_id': '336a6058939e48fca4a1265606a7205e'}} 2025-08-26 08:06:09,283 - INFO - Created VN ctest-ext_vn-94746812 2025-08-26 08:06:09,339 - DEBUG - VN ctest-ext_vn-94746812 UUID is d7a0f864-12e1-456f-aa08-54013bd94d07 2025-08-26 08:06:09,528 - DEBUG - Services list from nova: [, , ] 2025-08-26 08:06:10,594 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3937-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3937-1) 2025-08-26 08:06:11,836 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3937-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3937-1) 2025-08-26 08:06:11,923 - INFO - Setting gateway for router 708ed189-36df-4d28-80f9-e751d873c8ba to network d7a0f864-12e1-456f-aa08-54013bd94d07 2025-08-26 08:06:12,000 - INFO - Adding interface with subnet_id 5e5bd6ce-158b-4588-acee-28d0fc205f3b, port_id None to router 708ed189-36df-4d28-80f9-e751d873c8ba 2025-08-26 08:06:12,565 - INFO - Waiting for VM ctest-TestRoutersBasic-89263631-37443050 to be up.. 2025-08-26 08:06:12,734 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-08-26 08:06:17,823 - DEBUG - VM is in ACTIVE state now 2025-08-26 08:06:17,823 - INFO - VM name : ctest-TestRoutersBasic-89263631-37443050 2025-08-26 08:06:17,904 - DEBUG - VM ctest-TestRoutersBasic-89263631-37443050 ID is bade654d-6a24-491e-8366-2fca1541e106 2025-08-26 08:06:17,925 - DEBUG - VM ctest-TestRoutersBasic-89263631-37443050 launched on Node cn-jenkins-deploy-platform-ansible-os-3937-1 2025-08-26 08:06:18,015 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine/bade654d-6a24-491e-8366-2fca1541e106 2025-08-26 08:06:18,315 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine/bade654d-6a24-491e-8366-2fca1541e106 2025-08-26 08:06:18,351 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine-interface/f2c22c87-eee0-4eb5-a32e-bae7d8b9fdfc 2025-08-26 08:06:21,620 - 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 1015ms') 2025-08-26 08:06:21,620 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-89263631-37443050 failed! 2025-08-26 08:06:21,679 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-89263631:ctest-vn-53439738 is 22.152.210.193 and allocation pool is NOT set 2025-08-26 08:06:23,741 - 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.49 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.429 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.429/2.461/4.493/2.032 ms') 2025-08-26 08:06:23,741 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-89263631-37443050 passed 2025-08-26 08:06:23,895 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-26 08:06:23,895 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-89263631-37443050, IP 22.152.210.195, Port 22 2025-08-26 08:06:24,051 - DEBUG - VM ctest-TestRoutersBasic-89263631-37443050 is ready for SSH connections 2025-08-26 08:06:24,051 - INFO - Waiting for VM ctest-TestRoutersBasic-89263631-93058880 to be up.. 2025-08-26 08:06:24,145 - DEBUG - VM is in ACTIVE state now 2025-08-26 08:06:24,145 - INFO - VM name : ctest-TestRoutersBasic-89263631-93058880 2025-08-26 08:06:24,234 - DEBUG - VM ctest-TestRoutersBasic-89263631-93058880 ID is ef846144-8bf8-4f9a-9bdf-281c2f6fbbf7 2025-08-26 08:06:24,234 - DEBUG - VM ctest-TestRoutersBasic-89263631-93058880 launched on Node cn-jenkins-deploy-platform-ansible-os-3937-1 2025-08-26 08:06:24,319 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine/ef846144-8bf8-4f9a-9bdf-281c2f6fbbf7 2025-08-26 08:06:24,331 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine-interface/a02b10cd-cf79-450f-a62c-334e609c6a39 2025-08-26 08:06:25,599 - 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=5.25 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=1.20 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 = 1.203/3.228/5.254/2.025 ms') 2025-08-26 08:06:25,600 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-89263631-93058880 passed 2025-08-26 08:06:25,751 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-26 08:06:25,751 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-89263631-93058880, IP 25.84.104.195, Port 22 2025-08-26 08:06:25,914 - DEBUG - VM ctest-TestRoutersBasic-89263631-93058880 is ready for SSH connections 2025-08-26 08:06:25,914 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-26 08:06:25,914 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 25.84.104.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.50, gateway password: c0ntrail123 2025-08-26 08:06:25,915 - DEBUG - ping -s 56 -c 3 -W 1 25.84.104.195 2025-08-26 08:06:29,599 - DEBUG - PING 25.84.104.195 (25.84.104.195): 56 data bytes 64 bytes from 25.84.104.195: seq=0 ttl=62 time=5.343 ms 64 bytes from 25.84.104.195: seq=1 ttl=62 time=0.829 ms 64 bytes from 25.84.104.195: seq=2 ttl=62 time=1.555 ms --- 25.84.104.195 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.829/2.575/5.343 ms 2025-08-26 08:06:29,599 - INFO - Ping to IP 25.84.104.195 from VM ctest-TestRoutersBasic-89263631-37443050 passed 2025-08-26 08:06:29,599 - INFO - Deleting interface with subnet_id 5e5bd6ce-158b-4588-acee-28d0fc205f3b, port_id None from router 708ed189-36df-4d28-80f9-e751d873c8ba 2025-08-26 08:06:29,978 - INFO - Deleting VM ctest-TestRoutersBasic-89263631-93058880 2025-08-26 08:06:30,044 - INFO - Deleting VM ctest-TestRoutersBasic-89263631-37443050 2025-08-26 08:06:30,164 - INFO - Deleting VN ctest-ext_vn-94746812 2025-08-26 08:06:30,249 - DEBUG - VN d7a0f864-12e1-456f-aa08-54013bd94d07 still in use: Unable to complete operation on network d7a0f864-12e1-456f-aa08-54013bd94d07. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-600574d7-a9a5-4e2b-954d-52ed8f1e6754'] 2025-08-26 08:06:30,249 - WARNING - Deleting VN ctest-ext_vn-94746812 failed..Will retry 2025-08-26 08:06:32,387 - DEBUG - Response for deleting network () 2025-08-26 08:06:32,387 - INFO - Deleting VN ctest-vn-53439738 2025-08-26 08:06:32,514 - DEBUG - Response for deleting network () 2025-08-26 08:06:32,771 - DEBUG - No XMPP flaps were noticed during the test
2025-08-26 08:06:32,771 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:26]
2025-08-26 08:06:32,771 - INFO - -------------------------------------------------------------------------------- 2025-08-26 08:06:33,485 - INFO - Deleted project: ctest-TestRoutersBasic-89263631, ID : 336a6058-939e-48fc-a4a1-265606a7205e