2025-11-03 09:01:23,036 - INFO - Domain Default found not creating 2025-11-03 09:01:23,187 - INFO - Project ctest-TestRoutersBasic-75358095 not found, creating it 2025-11-03 09:01:23,629 - INFO - Created Project:ctest-TestRoutersBasic-75358095, ID : d5a64559-6d9a-49b0-8ec0-07660b6509f5 2025-11-03 09:01:25,028 - INFO - ================================================================================ 2025-11-03 09:01:25,028 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2025-11-03 09:01:25,028 - 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-03 09:01:25,279 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with 2025-11-03 09:01:25,280 - INFO - Initial checks done. Running the testcase now 2025-11-03 09:01:25,280 - INFO - 2025-11-03 09:01:25,974 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-75358095 2025-11-03 09:01:26,067 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-75358095 2025-11-03 09:01:26,402 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-75358095', 'default']} 2025-11-03 09:01:26,832 - DEBUG - Response for create_network : {'network': {'id': '23d500da-8a76-45ba-888f-bbf4176ed0ea', 'name': 'ctest-vn-72528969', 'tenant_id': 'd5a645596d9a49b08ec007660b6509f5', 'project_id': 'd5a645596d9a49b08ec007660b6509f5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-75358095', 'ctest-vn-72528969'], 'port_security_enabled': True, 'description': ''}} 2025-11-03 09:01:26,995 - DEBUG - Response for create_subnet : {'subnet': {'id': '4b0465d9-74d2-480f-b4a1-c8758585a761', 'name': '', 'tenant_id': 'd5a645596d9a49b08ec007660b6509f5', 'network_id': '23d500da-8a76-45ba-888f-bbf4176ed0ea', 'ip_version': 4, 'cidr': '3.38.13.64/26', 'allocation_pools': [{'start': '3.38.13.66', 'end': '3.38.13.126'}], 'gateway_ip': '3.38.13.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3.38.13.66', 'tags': [], 'project_id': 'd5a645596d9a49b08ec007660b6509f5'}} 2025-11-03 09:01:27,012 - INFO - Created VN ctest-vn-72528969 2025-11-03 09:01:27,062 - DEBUG - VN ctest-vn-72528969 UUID is 23d500da-8a76-45ba-888f-bbf4176ed0ea 2025-11-03 09:01:27,380 - DEBUG - Response for create_network : {'network': {'id': '3b6c5d1e-8919-44fc-baef-90c6097db0e5', 'name': 'ctest-ext_vn-20557632', 'tenant_id': 'd5a645596d9a49b08ec007660b6509f5', 'project_id': 'd5a645596d9a49b08ec007660b6509f5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-75358095', 'ctest-ext_vn-20557632'], 'port_security_enabled': True, 'description': ''}} 2025-11-03 09:01:27,536 - DEBUG - Response for create_subnet : {'subnet': {'id': '566ad049-7a71-4a6f-b33b-d4e4795b041d', 'name': '', 'tenant_id': 'd5a645596d9a49b08ec007660b6509f5', 'network_id': '3b6c5d1e-8919-44fc-baef-90c6097db0e5', 'ip_version': 4, 'cidr': '54.38.174.192/26', 'allocation_pools': [{'start': '54.38.174.194', 'end': '54.38.174.254'}], 'gateway_ip': '54.38.174.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '54.38.174.194', 'tags': [], 'project_id': 'd5a645596d9a49b08ec007660b6509f5'}} 2025-11-03 09:01:27,551 - INFO - Created VN ctest-ext_vn-20557632 2025-11-03 09:01:27,602 - DEBUG - VN ctest-ext_vn-20557632 UUID is 3b6c5d1e-8919-44fc-baef-90c6097db0e5 2025-11-03 09:01:27,812 - DEBUG - Services list from nova: [, , ] 2025-11-03 09:01:28,828 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-4602-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-4602-1) 2025-11-03 09:01:29,984 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-4602-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-4602-1) 2025-11-03 09:01:30,067 - INFO - Setting gateway for router fe06c45a-33a4-4064-88bf-b31d89e1bcc9 to network 3b6c5d1e-8919-44fc-baef-90c6097db0e5 2025-11-03 09:01:30,133 - INFO - Adding interface with subnet_id 4b0465d9-74d2-480f-b4a1-c8758585a761, port_id None to router fe06c45a-33a4-4064-88bf-b31d89e1bcc9 2025-11-03 09:01:30,418 - INFO - Waiting for VM ctest-TestRoutersBasic-75358095-42611685 to be up.. 2025-11-03 09:01:30,547 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-11-03 09:01:35,619 - DEBUG - VM is in ACTIVE state now 2025-11-03 09:01:35,619 - INFO - VM name : ctest-TestRoutersBasic-75358095-42611685 2025-11-03 09:01:35,697 - DEBUG - VM ctest-TestRoutersBasic-75358095-42611685 ID is 81170da3-187d-4161-9219-6c46ec100ce9 2025-11-03 09:01:35,721 - DEBUG - VM ctest-TestRoutersBasic-75358095-42611685 launched on Node cn-jenkins-deploy-platform-ansible-os-4602-1 2025-11-03 09:01:35,787 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine/81170da3-187d-4161-9219-6c46ec100ce9 2025-11-03 09:01:36,083 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine/81170da3-187d-4161-9219-6c46ec100ce9 2025-11-03 09:01:36,111 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine-interface/b5d7f3f1-0245-4147-b6ba-d218af274b82 2025-11-03 09:01:39,371 - 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 1031ms') 2025-11-03 09:01:39,371 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-75358095-42611685 failed! 2025-11-03 09:01:39,426 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-75358095:ctest-vn-72528969 is 3.38.13.65 and allocation pool is NOT set 2025-11-03 09:01:41,484 - 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=3.04 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.446 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.446/1.740/3.035/1.294 ms') 2025-11-03 09:01:41,484 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-75358095-42611685 passed 2025-11-03 09:01:41,639 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-11-03 09:01:41,639 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-75358095-42611685, IP 3.38.13.67, Port 22 2025-11-03 09:01:41,811 - DEBUG - VM ctest-TestRoutersBasic-75358095-42611685 is ready for SSH connections 2025-11-03 09:01:41,811 - INFO - Waiting for VM ctest-TestRoutersBasic-75358095-56224487 to be up.. 2025-11-03 09:01:41,882 - DEBUG - VM is in ACTIVE state now 2025-11-03 09:01:41,882 - INFO - VM name : ctest-TestRoutersBasic-75358095-56224487 2025-11-03 09:01:41,954 - DEBUG - VM ctest-TestRoutersBasic-75358095-56224487 ID is 63504e4e-b445-43f5-aa75-08e47e0d50e9 2025-11-03 09:01:41,954 - DEBUG - VM ctest-TestRoutersBasic-75358095-56224487 launched on Node cn-jenkins-deploy-platform-ansible-os-4602-1 2025-11-03 09:01:42,020 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine/63504e4e-b445-43f5-aa75-08e47e0d50e9 2025-11-03 09:01:42,027 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine-interface/72a0bcfc-69ea-47dd-8d7c-3ad658801590 2025-11-03 09:01:43,251 - 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=4.21 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.553 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.553/2.381/4.209/1.828 ms') 2025-11-03 09:01:43,251 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-75358095-56224487 passed 2025-11-03 09:01:43,399 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-11-03 09:01:43,399 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-75358095-56224487, IP 54.38.174.195, Port 22 2025-11-03 09:01:43,455 - DEBUG - Error on ssh to cirros@169.254.0.4:22, result: /bin/bash: connect: Connection refused /bin/bash: line 1: /dev/tcp/169.254.0.4/22: Connection refused {'failed': True, 'command': '(echo > /dev/tcp/169.254.0.4/22)', 'real_command': '/bin/bash -l -c "(echo > /dev/tcp/169.254.0.4/22)"', 'return_code': 1, 'succeeded': False, 'stderr': ''} 2025-11-03 09:01:43,527 - DEBUG - VM ctest-TestRoutersBasic-75358095-56224487 is NOT ready for SSH connections, VM status: ACTIVE 2025-11-03 09:01:48,528 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-11-03 09:01:48,528 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-75358095-56224487, IP 54.38.174.195, Port 22 2025-11-03 09:01:48,685 - DEBUG - VM ctest-TestRoutersBasic-75358095-56224487 is ready for SSH connections 2025-11-03 09:01:48,686 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-11-03 09:01:48,686 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 54.38.174.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.50, gateway password: c0ntrail123 2025-11-03 09:01:48,686 - DEBUG - ping -s 56 -c 3 -W 1 54.38.174.195 2025-11-03 09:01:52,373 - DEBUG - PING 54.38.174.195 (54.38.174.195): 56 data bytes 64 bytes from 54.38.174.195: seq=0 ttl=62 time=6.077 ms 64 bytes from 54.38.174.195: seq=1 ttl=62 time=1.082 ms 64 bytes from 54.38.174.195: seq=2 ttl=62 time=0.943 ms --- 54.38.174.195 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.943/2.700/6.077 ms 2025-11-03 09:01:52,373 - INFO - Ping to IP 54.38.174.195 from VM ctest-TestRoutersBasic-75358095-42611685 passed 2025-11-03 09:01:52,374 - INFO - Deleting interface with subnet_id 4b0465d9-74d2-480f-b4a1-c8758585a761, port_id None from router fe06c45a-33a4-4064-88bf-b31d89e1bcc9 2025-11-03 09:01:52,542 - INFO - Deleting VM ctest-TestRoutersBasic-75358095-56224487 2025-11-03 09:01:52,637 - INFO - Deleting VM ctest-TestRoutersBasic-75358095-42611685 2025-11-03 09:01:52,729 - INFO - Deleting VN ctest-ext_vn-20557632 2025-11-03 09:01:52,805 - DEBUG - VN 3b6c5d1e-8919-44fc-baef-90c6097db0e5 still in use: Unable to complete operation on network 3b6c5d1e-8919-44fc-baef-90c6097db0e5. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-83792aa2-d840-4faf-b3cf-4c7c8f1a18c4'] 2025-11-03 09:01:52,805 - WARNING - Deleting VN ctest-ext_vn-20557632 failed..Will retry 2025-11-03 09:01:54,905 - DEBUG - Response for deleting network () 2025-11-03 09:01:54,905 - INFO - Deleting VN ctest-vn-72528969 2025-11-03 09:01:54,998 - DEBUG - Response for deleting network () 2025-11-03 09:01:55,250 - DEBUG - No XMPP flaps were noticed during the test 2025-11-03 09:01:55,251 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:30] 2025-11-03 09:01:55,251 - INFO - -------------------------------------------------------------------------------- 2025-11-03 09:01:55,920 - INFO - Deleted project: ctest-TestRoutersBasic-75358095, ID : d5a64559-6d9a-49b0-8ec0-07660b6509f5