2025-10-29 15:41:53,592 - INFO - Domain Default found not creating 2025-10-29 15:41:53,729 - INFO - Project ctest-TestRoutersBasic-77228176 not found, creating it 2025-10-29 15:41:54,180 - INFO - Created Project:ctest-TestRoutersBasic-77228176, ID : 53ada3b5-e74c-4bc4-ab63-41b2d23f548f 2025-10-29 15:41:55,592 - INFO - ================================================================================ 2025-10-29 15:41:55,592 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2025-10-29 15:41:55,592 - 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-29 15:41:55,848 - DEBUG - Nothing to compare xmpp stats {'10.0.0.73': {'10.20.0.18': '0'}} with 2025-10-29 15:41:55,848 - INFO - Initial checks done. Running the testcase now 2025-10-29 15:41:55,848 - INFO - 2025-10-29 15:41:56,551 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-77228176 2025-10-29 15:41:56,647 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-77228176 2025-10-29 15:41:56,959 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-77228176', 'default']} 2025-10-29 15:41:57,247 - DEBUG - Response for create_network : {'network': {'id': 'c4cc7bdb-22e3-481b-9348-e887502ff053', 'name': 'ctest-vn-18846928', 'tenant_id': '53ada3b5e74c4bc4ab6341b2d23f548f', 'project_id': '53ada3b5e74c4bc4ab6341b2d23f548f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-77228176', 'ctest-vn-18846928'], 'port_security_enabled': True, 'description': ''}} 2025-10-29 15:41:57,439 - DEBUG - Response for create_subnet : {'subnet': {'id': '794f5b43-baea-46db-90a1-1c5bb9eb97a9', 'name': '', 'tenant_id': '53ada3b5e74c4bc4ab6341b2d23f548f', 'network_id': 'c4cc7bdb-22e3-481b-9348-e887502ff053', 'ip_version': 4, 'cidr': '28.12.254.64/26', 'allocation_pools': [{'start': '28.12.254.66', 'end': '28.12.254.126'}], 'gateway_ip': '28.12.254.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '28.12.254.66', 'tags': [], 'project_id': '53ada3b5e74c4bc4ab6341b2d23f548f'}} 2025-10-29 15:41:57,457 - INFO - Created VN ctest-vn-18846928 2025-10-29 15:41:57,507 - DEBUG - VN ctest-vn-18846928 UUID is c4cc7bdb-22e3-481b-9348-e887502ff053 2025-10-29 15:41:57,810 - DEBUG - Response for create_network : {'network': {'id': '5cf46c07-29cc-44b8-be7e-c8338ad6712f', 'name': 'ctest-ext_vn-23234950', 'tenant_id': '53ada3b5e74c4bc4ab6341b2d23f548f', 'project_id': '53ada3b5e74c4bc4ab6341b2d23f548f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-77228176', 'ctest-ext_vn-23234950'], 'port_security_enabled': True, 'description': ''}} 2025-10-29 15:41:58,016 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd15665df-66ef-4734-a4c0-491679ffbe90', 'name': '', 'tenant_id': '53ada3b5e74c4bc4ab6341b2d23f548f', 'network_id': '5cf46c07-29cc-44b8-be7e-c8338ad6712f', 'ip_version': 4, 'cidr': '44.101.190.128/26', 'allocation_pools': [{'start': '44.101.190.130', 'end': '44.101.190.190'}], 'gateway_ip': '44.101.190.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '44.101.190.130', 'tags': [], 'project_id': '53ada3b5e74c4bc4ab6341b2d23f548f'}} 2025-10-29 15:41:58,033 - INFO - Created VN ctest-ext_vn-23234950 2025-10-29 15:41:58,083 - DEBUG - VN ctest-ext_vn-23234950 UUID is 5cf46c07-29cc-44b8-be7e-c8338ad6712f 2025-10-29 15:41:58,286 - DEBUG - Services list from nova: [, , ] 2025-10-29 15:41:59,302 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-4523-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-4523-1) 2025-10-29 15:42:00,438 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-4523-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-4523-1) 2025-10-29 15:42:00,513 - INFO - Setting gateway for router d9cb840c-ae94-4c72-9c6b-12aca30db5c4 to network 5cf46c07-29cc-44b8-be7e-c8338ad6712f 2025-10-29 15:42:00,580 - INFO - Adding interface with subnet_id 794f5b43-baea-46db-90a1-1c5bb9eb97a9, port_id None to router d9cb840c-ae94-4c72-9c6b-12aca30db5c4 2025-10-29 15:42:00,912 - INFO - Waiting for VM ctest-TestRoutersBasic-77228176-40394246 to be up.. 2025-10-29 15:42:01,056 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-10-29 15:42:06,143 - DEBUG - VM is in ACTIVE state now 2025-10-29 15:42:06,143 - INFO - VM name : ctest-TestRoutersBasic-77228176-40394246 2025-10-29 15:42:06,224 - DEBUG - VM ctest-TestRoutersBasic-77228176-40394246 ID is f02f281a-4924-4222-865a-0b62b939ac11 2025-10-29 15:42:06,241 - DEBUG - VM ctest-TestRoutersBasic-77228176-40394246 launched on Node cn-jenkins-deploy-platform-ansible-os-4523-1 2025-10-29 15:42:06,310 - DEBUG - Requesting: http://10.0.0.73:8082/virtual-machine/f02f281a-4924-4222-865a-0b62b939ac11 2025-10-29 15:42:06,605 - DEBUG - Requesting: http://10.0.0.73:8082/virtual-machine/f02f281a-4924-4222-865a-0b62b939ac11 2025-10-29 15:42:06,639 - DEBUG - Requesting: http://10.0.0.73:8082/virtual-machine-interface/9f0fac95-a0cc-4079-99ce-1884428dd50e 2025-10-29 15:42:09,898 - 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 1018ms') 2025-10-29 15:42:09,898 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-77228176-40394246 failed! 2025-10-29 15:42:09,951 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-77228176:ctest-vn-18846928 is 28.12.254.65 and allocation pool is NOT set 2025-10-29 15:42:12,009 - 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.47 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.485 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.485/1.978/3.472/1.493 ms') 2025-10-29 15:42:12,009 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-77228176-40394246 passed 2025-10-29 15:42:12,159 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-29 15:42:12,159 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-77228176-40394246, IP 28.12.254.67, Port 22 2025-10-29 15:42:12,325 - DEBUG - VM ctest-TestRoutersBasic-77228176-40394246 is ready for SSH connections 2025-10-29 15:42:12,325 - INFO - Waiting for VM ctest-TestRoutersBasic-77228176-41248969 to be up.. 2025-10-29 15:42:12,401 - DEBUG - VM is in ACTIVE state now 2025-10-29 15:42:12,401 - INFO - VM name : ctest-TestRoutersBasic-77228176-41248969 2025-10-29 15:42:12,473 - DEBUG - VM ctest-TestRoutersBasic-77228176-41248969 ID is 64696fe3-1442-43a1-b555-d66e11672169 2025-10-29 15:42:12,474 - DEBUG - VM ctest-TestRoutersBasic-77228176-41248969 launched on Node cn-jenkins-deploy-platform-ansible-os-4523-1 2025-10-29 15:42:12,551 - DEBUG - Requesting: http://10.0.0.73:8082/virtual-machine/64696fe3-1442-43a1-b555-d66e11672169 2025-10-29 15:42:12,562 - DEBUG - Requesting: http://10.0.0.73:8082/virtual-machine-interface/e69aade0-a911-4854-be7d-01fe1c33b111 2025-10-29 15:42:13,802 - 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.81 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=2.21 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 = 2.214/2.511/2.808/0.297 ms') 2025-10-29 15:42:13,802 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-77228176-41248969 passed 2025-10-29 15:42:13,959 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-29 15:42:13,959 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-77228176-41248969, IP 44.101.190.131, Port 22 2025-10-29 15:42:14,019 - 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-10-29 15:42:14,090 - DEBUG - VM ctest-TestRoutersBasic-77228176-41248969 is NOT ready for SSH connections, VM status: ACTIVE 2025-10-29 15:42:19,091 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-29 15:42:19,091 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-77228176-41248969, IP 44.101.190.131, Port 22 2025-10-29 15:42:19,246 - DEBUG - VM ctest-TestRoutersBasic-77228176-41248969 is ready for SSH connections 2025-10-29 15:42:19,246 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-29 15:42:19,247 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 44.101.190.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.73, gateway password: c0ntrail123 2025-10-29 15:42:19,247 - DEBUG - ping -s 56 -c 3 -W 1 44.101.190.131 2025-10-29 15:42:22,957 - DEBUG - PING 44.101.190.131 (44.101.190.131): 56 data bytes 64 bytes from 44.101.190.131: seq=0 ttl=62 time=7.530 ms 64 bytes from 44.101.190.131: seq=1 ttl=62 time=0.839 ms 64 bytes from 44.101.190.131: seq=2 ttl=62 time=0.888 ms --- 44.101.190.131 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.839/3.085/7.530 ms 2025-10-29 15:42:22,957 - INFO - Ping to IP 44.101.190.131 from VM ctest-TestRoutersBasic-77228176-40394246 passed 2025-10-29 15:42:22,957 - INFO - Deleting interface with subnet_id 794f5b43-baea-46db-90a1-1c5bb9eb97a9, port_id None from router d9cb840c-ae94-4c72-9c6b-12aca30db5c4 2025-10-29 15:42:23,135 - INFO - Deleting VM ctest-TestRoutersBasic-77228176-41248969 2025-10-29 15:42:23,212 - INFO - Deleting VM ctest-TestRoutersBasic-77228176-40394246 2025-10-29 15:42:23,289 - INFO - Deleting VN ctest-ext_vn-23234950 2025-10-29 15:42:23,360 - DEBUG - VN 5cf46c07-29cc-44b8-be7e-c8338ad6712f still in use: Unable to complete operation on network 5cf46c07-29cc-44b8-be7e-c8338ad6712f. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-a955fc3b-864a-429f-bd0f-61f3bf14a06d'] 2025-10-29 15:42:23,360 - WARNING - Deleting VN ctest-ext_vn-23234950 failed..Will retry 2025-10-29 15:42:25,457 - DEBUG - Response for deleting network () 2025-10-29 15:42:25,457 - INFO - Deleting VN ctest-vn-18846928 2025-10-29 15:42:25,546 - DEBUG - Response for deleting network () 2025-10-29 15:42:25,805 - DEBUG - No XMPP flaps were noticed during the test
2025-10-29 15:42:25,805 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:30]
2025-10-29 15:42:25,805 - INFO - -------------------------------------------------------------------------------- 2025-10-29 15:42:26,465 - INFO - Deleted project: ctest-TestRoutersBasic-77228176, ID : 53ada3b5-e74c-4bc4-ab63-41b2d23f548f