2025-08-20 16:11:35,106 - INFO - Domain Default found not creating 2025-08-20 16:11:35,237 - INFO - Project ctest-TestRoutersBasic-32224948 not found, creating it 2025-08-20 16:11:35,648 - INFO - Created Project:ctest-TestRoutersBasic-32224948, ID : c1c7def5-c05f-40b5-a320-11ea1b5b835c 2025-08-20 16:11:36,971 - INFO - ================================================================================ 2025-08-20 16:11:36,971 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2025-08-20 16:11:36,971 - 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-20 16:11:37,234 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.0.0.254': '0'}} with 2025-08-20 16:11:37,234 - INFO - Initial checks done. Running the testcase now 2025-08-20 16:11:37,234 - INFO - 2025-08-20 16:11:37,904 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-32224948 2025-08-20 16:11:37,997 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-32224948 2025-08-20 16:11:38,313 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-32224948', 'default']} 2025-08-20 16:11:38,757 - DEBUG - Response for create_network : {'network': {'id': '51098b62-404c-4345-8694-47f558d10257', 'name': 'ctest-vn-53533077', 'tenant_id': 'c1c7def5c05f40b5a32011ea1b5b835c', 'project_id': 'c1c7def5c05f40b5a32011ea1b5b835c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-32224948', 'ctest-vn-53533077'], 'port_security_enabled': True, 'description': ''}} 2025-08-20 16:11:38,939 - DEBUG - Response for create_subnet : {'subnet': {'id': 'dcfe0ecf-2c5e-445b-b57d-bce8fe41aab4', 'name': '', 'tenant_id': 'c1c7def5c05f40b5a32011ea1b5b835c', 'network_id': '51098b62-404c-4345-8694-47f558d10257', 'ip_version': 4, 'cidr': '194.36.180.128/26', 'allocation_pools': [{'start': '194.36.180.130', 'end': '194.36.180.190'}], 'gateway_ip': '194.36.180.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '194.36.180.130', 'tags': [], 'project_id': 'c1c7def5c05f40b5a32011ea1b5b835c'}} 2025-08-20 16:11:38,955 - INFO - Created VN ctest-vn-53533077 2025-08-20 16:11:39,005 - DEBUG - VN ctest-vn-53533077 UUID is 51098b62-404c-4345-8694-47f558d10257 2025-08-20 16:11:39,321 - DEBUG - Response for create_network : {'network': {'id': 'b26d0616-c382-4291-8d34-519ecbaff08a', 'name': 'ctest-ext_vn-37618620', 'tenant_id': 'c1c7def5c05f40b5a32011ea1b5b835c', 'project_id': 'c1c7def5c05f40b5a32011ea1b5b835c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-32224948', 'ctest-ext_vn-37618620'], 'port_security_enabled': True, 'description': ''}} 2025-08-20 16:11:39,511 - DEBUG - Response for create_subnet : {'subnet': {'id': '02140bb6-0833-44e5-baf3-6de6879fcead', 'name': '', 'tenant_id': 'c1c7def5c05f40b5a32011ea1b5b835c', 'network_id': 'b26d0616-c382-4291-8d34-519ecbaff08a', 'ip_version': 4, 'cidr': '135.115.225.64/26', 'allocation_pools': [{'start': '135.115.225.66', 'end': '135.115.225.126'}], 'gateway_ip': '135.115.225.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '135.115.225.66', 'tags': [], 'project_id': 'c1c7def5c05f40b5a32011ea1b5b835c'}} 2025-08-20 16:11:39,531 - INFO - Created VN ctest-ext_vn-37618620 2025-08-20 16:11:39,585 - DEBUG - VN ctest-ext_vn-37618620 UUID is b26d0616-c382-4291-8d34-519ecbaff08a 2025-08-20 16:11:39,772 - DEBUG - Services list from nova: [, , ] 2025-08-20 16:11:40,711 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3899-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3899-1) 2025-08-20 16:11:41,734 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3899-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3899-1) 2025-08-20 16:11:41,797 - INFO - Setting gateway for router 90e555f8-f1e2-495d-b3b6-797e2824b806 to network b26d0616-c382-4291-8d34-519ecbaff08a 2025-08-20 16:11:41,863 - INFO - Adding interface with subnet_id dcfe0ecf-2c5e-445b-b57d-bce8fe41aab4, port_id None to router 90e555f8-f1e2-495d-b3b6-797e2824b806 2025-08-20 16:11:42,326 - INFO - Waiting for VM ctest-TestRoutersBasic-32224948-07556555 to be up.. 2025-08-20 16:11:42,469 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-08-20 16:11:47,539 - DEBUG - VM is in ACTIVE state now 2025-08-20 16:11:47,539 - INFO - VM name : ctest-TestRoutersBasic-32224948-07556555 2025-08-20 16:11:47,607 - DEBUG - VM ctest-TestRoutersBasic-32224948-07556555 ID is 051348d7-d7bc-45c0-917e-7cf9db92beeb 2025-08-20 16:11:47,624 - DEBUG - VM ctest-TestRoutersBasic-32224948-07556555 launched on Node cn-jenkins-deploy-platform-ansible-os-3899-1. 2025-08-20 16:11:47,683 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine/051348d7-d7bc-45c0-917e-7cf9db92beeb 2025-08-20 16:11:47,970 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine/051348d7-d7bc-45c0-917e-7cf9db92beeb 2025-08-20 16:11:47,997 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine-interface/73de3115-8296-4513-b846-777a15a38bed 2025-08-20 16:11:51,252 - 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=2 ttl=63 time=12.0 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 1 received, 50% packet loss, time 1024ms\r\nrtt min/avg/max/mdev = 12.018/12.018/12.018/0.000 ms') 2025-08-20 16:11:51,252 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-32224948-07556555 passed 2025-08-20 16:11:51,405 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-20 16:11:51,405 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-32224948-07556555, IP 194.36.180.131, Port 22 2025-08-20 16:11:51,471 - 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-08-20 16:11:51,533 - DEBUG - VM ctest-TestRoutersBasic-32224948-07556555 is NOT ready for SSH connections, VM status: ACTIVE 2025-08-20 16:11:56,534 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-20 16:11:56,534 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-32224948-07556555, IP 194.36.180.131, Port 22 2025-08-20 16:11:56,700 - DEBUG - VM ctest-TestRoutersBasic-32224948-07556555 is ready for SSH connections 2025-08-20 16:11:56,700 - INFO - Waiting for VM ctest-TestRoutersBasic-32224948-01308927 to be up.. 2025-08-20 16:11:56,763 - DEBUG - VM is in ACTIVE state now 2025-08-20 16:11:56,763 - INFO - VM name : ctest-TestRoutersBasic-32224948-01308927 2025-08-20 16:11:56,825 - DEBUG - VM ctest-TestRoutersBasic-32224948-01308927 ID is bdda15a1-a3ff-4d28-b976-cc8ffb0edcfc 2025-08-20 16:11:56,825 - DEBUG - VM ctest-TestRoutersBasic-32224948-01308927 launched on Node cn-jenkins-deploy-platform-ansible-os-3899-1. 2025-08-20 16:11:56,885 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine/bdda15a1-a3ff-4d28-b976-cc8ffb0edcfc 2025-08-20 16:11:56,891 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine-interface/42c991da-c389-4363-9b99-28433d4c8f81 2025-08-20 16:11:58,120 - 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.57 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.357 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.357/1.461/2.566/1.104 ms') 2025-08-20 16:11:58,120 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-32224948-01308927 passed 2025-08-20 16:11:58,265 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-20 16:11:58,265 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-32224948-01308927, IP 135.115.225.67, Port 22 2025-08-20 16:11:58,420 - DEBUG - VM ctest-TestRoutersBasic-32224948-01308927 is ready for SSH connections 2025-08-20 16:11:58,420 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-20 16:11:58,420 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 135.115.225.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.254, gateway password: c0ntrail123 2025-08-20 16:11:58,420 - DEBUG - ping -s 56 -c 3 -W 1 135.115.225.67 2025-08-20 16:12:02,400 - DEBUG - PING 135.115.225.67 (135.115.225.67): 56 data bytes 64 bytes from 135.115.225.67: seq=0 ttl=62 time=4.826 ms 64 bytes from 135.115.225.67: seq=1 ttl=62 time=0.767 ms 64 bytes from 135.115.225.67: seq=2 ttl=62 time=0.822 ms --- 135.115.225.67 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.767/2.138/4.826 ms 2025-08-20 16:12:02,401 - INFO - Ping to IP 135.115.225.67 from VM ctest-TestRoutersBasic-32224948-07556555 passed 2025-08-20 16:12:02,401 - INFO - Deleting interface with subnet_id dcfe0ecf-2c5e-445b-b57d-bce8fe41aab4, port_id None from router 90e555f8-f1e2-495d-b3b6-797e2824b806 2025-08-20 16:12:02,570 - INFO - Deleting VM ctest-TestRoutersBasic-32224948-01308927 2025-08-20 16:12:02,643 - INFO - Deleting VM ctest-TestRoutersBasic-32224948-07556555 2025-08-20 16:12:02,716 - INFO - Deleting VN ctest-ext_vn-37618620 2025-08-20 16:12:02,776 - DEBUG - VN b26d0616-c382-4291-8d34-519ecbaff08a still in use: Unable to complete operation on network b26d0616-c382-4291-8d34-519ecbaff08a. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-ecd831fa-acdc-455e-8e5c-0c9455b62505'] 2025-08-20 16:12:02,776 - WARNING - Deleting VN ctest-ext_vn-37618620 failed..Will retry 2025-08-20 16:12:04,861 - DEBUG - Response for deleting network () 2025-08-20 16:12:04,862 - INFO - Deleting VN ctest-vn-53533077 2025-08-20 16:12:04,953 - DEBUG - Response for deleting network () 2025-08-20 16:12:05,201 - DEBUG - No XMPP flaps were noticed during the test 2025-08-20 16:12:05,201 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:29] 2025-08-20 16:12:05,201 - INFO - -------------------------------------------------------------------------------- 2025-08-20 16:12:05,834 - INFO - Deleted project: ctest-TestRoutersBasic-32224948, ID : c1c7def5-c05f-40b5-a320-11ea1b5b835c