2025-09-25 06:51:18,416 - INFO - Domain Default found not creating 2025-09-25 06:51:18,574 - INFO - Project ctest-TestRoutersBasic-15138306 not found, creating it 2025-09-25 06:51:19,036 - INFO - Created Project:ctest-TestRoutersBasic-15138306, ID : 1d8d653a-fa95-4e36-9e0c-493e5840511a 2025-09-25 06:51:20,610 - INFO - ================================================================================ 2025-09-25 06:51:20,610 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2025-09-25 06:51:20,610 - 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-09-25 06:51:20,867 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with 2025-09-25 06:51:20,867 - INFO - Initial checks done. Running the testcase now 2025-09-25 06:51:20,867 - INFO - 2025-09-25 06:51:21,585 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-15138306 2025-09-25 06:51:21,686 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-15138306 2025-09-25 06:51:22,013 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-15138306', 'default']} 2025-09-25 06:51:22,336 - DEBUG - Response for create_network : {'network': {'id': '3fcf882a-16f4-4549-8f87-c83c7c75b658', 'name': 'ctest-vn-19222234', 'tenant_id': '1d8d653afa954e369e0c493e5840511a', 'project_id': '1d8d653afa954e369e0c493e5840511a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-15138306', 'ctest-vn-19222234'], 'port_security_enabled': True, 'description': ''}} 2025-09-25 06:51:22,568 - DEBUG - Response for create_subnet : {'subnet': {'id': 'fae64b97-03d8-428a-b955-7c6a9628c957', 'name': '', 'tenant_id': '1d8d653afa954e369e0c493e5840511a', 'network_id': '3fcf882a-16f4-4549-8f87-c83c7c75b658', 'ip_version': 4, 'cidr': '27.218.76.64/26', 'allocation_pools': [{'start': '27.218.76.66', 'end': '27.218.76.126'}], 'gateway_ip': '27.218.76.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '27.218.76.66', 'tags': [], 'project_id': '1d8d653afa954e369e0c493e5840511a'}} 2025-09-25 06:51:22,588 - INFO - Created VN ctest-vn-19222234 2025-09-25 06:51:22,642 - DEBUG - VN ctest-vn-19222234 UUID is 3fcf882a-16f4-4549-8f87-c83c7c75b658 2025-09-25 06:51:22,959 - DEBUG - Response for create_network : {'network': {'id': '4dd5023d-d08e-4dd6-9b1a-cddcb3c1c5fe', 'name': 'ctest-ext_vn-98303579', 'tenant_id': '1d8d653afa954e369e0c493e5840511a', 'project_id': '1d8d653afa954e369e0c493e5840511a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-15138306', 'ctest-ext_vn-98303579'], 'port_security_enabled': True, 'description': ''}} 2025-09-25 06:51:23,143 - DEBUG - Response for create_subnet : {'subnet': {'id': '93740c19-9b6e-4f30-a803-ef131850cabe', 'name': '', 'tenant_id': '1d8d653afa954e369e0c493e5840511a', 'network_id': '4dd5023d-d08e-4dd6-9b1a-cddcb3c1c5fe', 'ip_version': 4, 'cidr': '113.44.181.0/26', 'allocation_pools': [{'start': '113.44.181.2', 'end': '113.44.181.62'}], 'gateway_ip': '113.44.181.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '113.44.181.2', 'tags': [], 'project_id': '1d8d653afa954e369e0c493e5840511a'}} 2025-09-25 06:51:23,163 - INFO - Created VN ctest-ext_vn-98303579 2025-09-25 06:51:23,217 - DEBUG - VN ctest-ext_vn-98303579 UUID is 4dd5023d-d08e-4dd6-9b1a-cddcb3c1c5fe 2025-09-25 06:51:23,393 - DEBUG - Services list from nova: [, , ] 2025-09-25 06:51:24,416 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-4190-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-4190-1) 2025-09-25 06:51:25,597 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-4190-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-4190-1) 2025-09-25 06:51:25,687 - INFO - Setting gateway for router 2e8d6b01-7cb4-4350-afbc-c2bb4ae7a60c to network 4dd5023d-d08e-4dd6-9b1a-cddcb3c1c5fe 2025-09-25 06:51:25,751 - INFO - Adding interface with subnet_id fae64b97-03d8-428a-b955-7c6a9628c957, port_id None to router 2e8d6b01-7cb4-4350-afbc-c2bb4ae7a60c 2025-09-25 06:51:26,157 - INFO - Waiting for VM ctest-TestRoutersBasic-15138306-34474308 to be up.. 2025-09-25 06:51:26,330 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-09-25 06:51:31,412 - DEBUG - VM is in ACTIVE state now 2025-09-25 06:51:31,412 - INFO - VM name : ctest-TestRoutersBasic-15138306-34474308 2025-09-25 06:51:31,487 - DEBUG - VM ctest-TestRoutersBasic-15138306-34474308 ID is a9395cf6-7019-4b97-8586-f340035746ca 2025-09-25 06:51:31,507 - DEBUG - VM ctest-TestRoutersBasic-15138306-34474308 launched on Node cn-jenkins-deploy-platform-ansible-os-4190-1 2025-09-25 06:51:31,592 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine/a9395cf6-7019-4b97-8586-f340035746ca 2025-09-25 06:51:31,890 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine/a9395cf6-7019-4b97-8586-f340035746ca 2025-09-25 06:51:31,922 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine-interface/f70f38f4-f011-4d77-8099-c3cebf3cd2a0 2025-09-25 06:51:35,179 - 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 1025ms') 2025-09-25 06:51:35,179 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-15138306-34474308 failed! 2025-09-25 06:51:35,238 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-15138306:ctest-vn-19222234 is 27.218.76.65 and allocation pool is NOT set 2025-09-25 06:51:37,300 - 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.38 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.750 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.750/2.567/4.384/1.817 ms') 2025-09-25 06:51:37,300 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-15138306-34474308 passed 2025-09-25 06:51:37,458 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-09-25 06:51:37,458 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-15138306-34474308, IP 27.218.76.67, Port 22 2025-09-25 06:51:37,517 - 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-09-25 06:51:37,603 - DEBUG - VM ctest-TestRoutersBasic-15138306-34474308 is NOT ready for SSH connections, VM status: ACTIVE 2025-09-25 06:51:42,604 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-09-25 06:51:42,605 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-15138306-34474308, IP 27.218.76.67, Port 22 2025-09-25 06:51:42,761 - DEBUG - VM ctest-TestRoutersBasic-15138306-34474308 is ready for SSH connections 2025-09-25 06:51:42,761 - INFO - Waiting for VM ctest-TestRoutersBasic-15138306-03602395 to be up.. 2025-09-25 06:51:42,840 - DEBUG - VM is in ACTIVE state now 2025-09-25 06:51:42,840 - INFO - VM name : ctest-TestRoutersBasic-15138306-03602395 2025-09-25 06:51:42,915 - DEBUG - VM ctest-TestRoutersBasic-15138306-03602395 ID is 8f079a31-2917-4a03-a31b-c7bac5e5cb88 2025-09-25 06:51:42,916 - DEBUG - VM ctest-TestRoutersBasic-15138306-03602395 launched on Node cn-jenkins-deploy-platform-ansible-os-4190-1 2025-09-25 06:51:42,989 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine/8f079a31-2917-4a03-a31b-c7bac5e5cb88 2025-09-25 06:51:42,998 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine-interface/9b6a9db4-15f2-464d-be61-70e1f0347b33 2025-09-25 06:51:44,239 - 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.87 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.422 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.422/1.644/2.867/1.222 ms') 2025-09-25 06:51:44,239 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-15138306-03602395 passed 2025-09-25 06:51:44,394 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-09-25 06:51:44,394 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-15138306-03602395, IP 113.44.181.3, Port 22 2025-09-25 06:51:44,553 - DEBUG - VM ctest-TestRoutersBasic-15138306-03602395 is ready for SSH connections 2025-09-25 06:51:44,553 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-09-25 06:51:44,554 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 113.44.181.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.50, gateway password: c0ntrail123 2025-09-25 06:51:44,554 - DEBUG - ping -s 56 -c 3 -W 1 113.44.181.3 2025-09-25 06:51:48,254 - DEBUG - PING 113.44.181.3 (113.44.181.3): 56 data bytes 64 bytes from 113.44.181.3: seq=0 ttl=62 time=6.650 ms 64 bytes from 113.44.181.3: seq=1 ttl=62 time=0.930 ms 64 bytes from 113.44.181.3: seq=2 ttl=62 time=1.235 ms --- 113.44.181.3 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.930/2.938/6.650 ms 2025-09-25 06:51:48,254 - INFO - Ping to IP 113.44.181.3 from VM ctest-TestRoutersBasic-15138306-34474308 passed 2025-09-25 06:51:48,254 - INFO - Deleting interface with subnet_id fae64b97-03d8-428a-b955-7c6a9628c957, port_id None from router 2e8d6b01-7cb4-4350-afbc-c2bb4ae7a60c 2025-09-25 06:51:48,452 - INFO - Deleting VM ctest-TestRoutersBasic-15138306-03602395 2025-09-25 06:51:48,528 - INFO - Deleting VM ctest-TestRoutersBasic-15138306-34474308 2025-09-25 06:51:48,629 - INFO - Deleting VN ctest-ext_vn-98303579 2025-09-25 06:51:48,712 - DEBUG - VN 4dd5023d-d08e-4dd6-9b1a-cddcb3c1c5fe still in use: Unable to complete operation on network 4dd5023d-d08e-4dd6-9b1a-cddcb3c1c5fe. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-8c58318c-8f33-4b37-9875-0723147983f4'] 2025-09-25 06:51:48,713 - WARNING - Deleting VN ctest-ext_vn-98303579 failed..Will retry 2025-09-25 06:51:50,816 - DEBUG - Response for deleting network () 2025-09-25 06:51:50,817 - INFO - Deleting VN ctest-vn-19222234 2025-09-25 06:51:50,922 - DEBUG - Response for deleting network () 2025-09-25 06:51:51,178 - DEBUG - No XMPP flaps were noticed during the test
2025-09-25 06:51:51,178 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:31]
2025-09-25 06:51:51,178 - INFO - -------------------------------------------------------------------------------- 2025-09-25 06:51:51,873 - INFO - Deleted project: ctest-TestRoutersBasic-15138306, ID : 1d8d653a-fa95-4e36-9e0c-493e5840511a