2025-06-19 14:26:12,832 - INFO - Domain Default found not creating 2025-06-19 14:26:12,987 - INFO - Project ctest-TestRoutersBasic-86623477 not found, creating it 2025-06-19 14:26:13,483 - INFO - Created Project:ctest-TestRoutersBasic-86623477, ID : 1aedb999-3e26-48d2-ae24-0d984d94c3d2 2025-06-19 14:26:15,063 - INFO - ================================================================================ 2025-06-19 14:26:15,063 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2025-06-19 14:26:15,063 - 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-06-19 14:26:15,323 - DEBUG - Nothing to compare xmpp stats {'10.0.0.49': {'10.20.0.17': '0'}} with 2025-06-19 14:26:15,323 - INFO - Initial checks done. Running the testcase now 2025-06-19 14:26:15,323 - INFO - 2025-06-19 14:26:16,119 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-86623477 2025-06-19 14:26:16,220 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-86623477 2025-06-19 14:26:16,551 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-86623477', 'default']} 2025-06-19 14:26:17,159 - DEBUG - Response for create_network : {'network': {'id': '50a39891-a85f-4379-8d05-e31bd1a16ed9', 'name': 'ctest-vn-38825783', 'tenant_id': '1aedb9993e2648d2ae240d984d94c3d2', 'project_id': '1aedb9993e2648d2ae240d984d94c3d2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-86623477', 'ctest-vn-38825783'], 'port_security_enabled': True, 'description': ''}} 2025-06-19 14:26:17,360 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ffb12c94-512d-47e8-b588-0fce8998feb3', 'name': '', 'tenant_id': '1aedb9993e2648d2ae240d984d94c3d2', 'network_id': '50a39891-a85f-4379-8d05-e31bd1a16ed9', 'ip_version': 4, 'cidr': '85.127.247.192/26', 'allocation_pools': [{'start': '85.127.247.194', 'end': '85.127.247.254'}], 'gateway_ip': '85.127.247.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '85.127.247.194', 'tags': [], 'project_id': '1aedb9993e2648d2ae240d984d94c3d2'}} 2025-06-19 14:26:17,379 - INFO - Created VN ctest-vn-38825783 2025-06-19 14:26:17,436 - DEBUG - VN ctest-vn-38825783 UUID is 50a39891-a85f-4379-8d05-e31bd1a16ed9 2025-06-19 14:26:17,804 - DEBUG - Response for create_network : {'network': {'id': '706d5901-affa-47ee-8637-9446dbfa842d', 'name': 'ctest-ext_vn-56118984', 'tenant_id': '1aedb9993e2648d2ae240d984d94c3d2', 'project_id': '1aedb9993e2648d2ae240d984d94c3d2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-86623477', 'ctest-ext_vn-56118984'], 'port_security_enabled': True, 'description': ''}} 2025-06-19 14:26:18,040 - DEBUG - Response for create_subnet : {'subnet': {'id': '8313799d-f752-419d-acda-ca503b4dd7fb', 'name': '', 'tenant_id': '1aedb9993e2648d2ae240d984d94c3d2', 'network_id': '706d5901-affa-47ee-8637-9446dbfa842d', 'ip_version': 4, 'cidr': '175.34.20.128/26', 'allocation_pools': [{'start': '175.34.20.130', 'end': '175.34.20.190'}], 'gateway_ip': '175.34.20.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '175.34.20.130', 'tags': [], 'project_id': '1aedb9993e2648d2ae240d984d94c3d2'}} 2025-06-19 14:26:18,059 - INFO - Created VN ctest-ext_vn-56118984 2025-06-19 14:26:18,112 - DEBUG - VN ctest-ext_vn-56118984 UUID is 706d5901-affa-47ee-8637-9446dbfa842d 2025-06-19 14:26:18,276 - DEBUG - Services list from nova: [, , ] 2025-06-19 14:26:19,423 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3496-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3496-1) 2025-06-19 14:26:20,708 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3496-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3496-1) 2025-06-19 14:26:20,795 - INFO - Setting gateway for router bc374479-e606-468b-b48d-cb7b38ec1346 to network 706d5901-affa-47ee-8637-9446dbfa842d 2025-06-19 14:26:20,869 - INFO - Adding interface with subnet_id ffb12c94-512d-47e8-b588-0fce8998feb3, port_id None to router bc374479-e606-468b-b48d-cb7b38ec1346 2025-06-19 14:26:21,286 - INFO - Waiting for VM ctest-TestRoutersBasic-86623477-78034638 to be up.. 2025-06-19 14:26:21,522 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-06-19 14:26:26,617 - DEBUG - VM is in ACTIVE state now 2025-06-19 14:26:26,617 - INFO - VM name : ctest-TestRoutersBasic-86623477-78034638 2025-06-19 14:26:26,717 - DEBUG - VM ctest-TestRoutersBasic-86623477-78034638 ID is 5805c264-933f-47ed-aadf-a2e8480dc8a8 2025-06-19 14:26:26,743 - DEBUG - VM ctest-TestRoutersBasic-86623477-78034638 launched on Node cn-jenkins-deploy-platform-ansible-os-3496-1 2025-06-19 14:26:26,851 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-machine/5805c264-933f-47ed-aadf-a2e8480dc8a8 2025-06-19 14:26:27,184 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-machine/5805c264-933f-47ed-aadf-a2e8480dc8a8 2025-06-19 14:26:27,225 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-machine-interface/a01634a3-8e9e-4e54-a1fe-494ccd5dc512 2025-06-19 14:26:30,485 - 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 1010ms') 2025-06-19 14:26:30,485 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-86623477-78034638 failed! 2025-06-19 14:26:30,544 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-86623477:ctest-vn-38825783 is 85.127.247.193 and allocation pool is NOT set 2025-06-19 14:26:32,619 - 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.43 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=4.85 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 = 4.429/4.637/4.846/0.208 ms') 2025-06-19 14:26:32,619 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-86623477-78034638 passed 2025-06-19 14:26:32,788 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-19 14:26:32,788 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-86623477-78034638, IP 85.127.247.195, Port 22 2025-06-19 14:26:32,844 - 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-06-19 14:26:32,936 - DEBUG - VM ctest-TestRoutersBasic-86623477-78034638 is NOT ready for SSH connections, VM status: ACTIVE 2025-06-19 14:26:37,937 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-19 14:26:37,937 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-86623477-78034638, IP 85.127.247.195, Port 22 2025-06-19 14:26:38,095 - DEBUG - VM ctest-TestRoutersBasic-86623477-78034638 is ready for SSH connections 2025-06-19 14:26:38,096 - INFO - Waiting for VM ctest-TestRoutersBasic-86623477-17507134 to be up.. 2025-06-19 14:26:38,196 - DEBUG - VM is in ACTIVE state now 2025-06-19 14:26:38,196 - INFO - VM name : ctest-TestRoutersBasic-86623477-17507134 2025-06-19 14:26:38,281 - DEBUG - VM ctest-TestRoutersBasic-86623477-17507134 ID is 3c6dc917-1137-48d8-9272-b2ae7daeb05f 2025-06-19 14:26:38,281 - DEBUG - VM ctest-TestRoutersBasic-86623477-17507134 launched on Node cn-jenkins-deploy-platform-ansible-os-3496-1 2025-06-19 14:26:38,364 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-machine/3c6dc917-1137-48d8-9272-b2ae7daeb05f 2025-06-19 14:26:38,374 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-machine-interface/10efac3d-d2c8-4cac-95bf-e76bba587aad 2025-06-19 14:26:39,621 - 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=3.20 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.523 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.523/1.860/3.198/1.337 ms') 2025-06-19 14:26:39,621 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-86623477-17507134 passed 2025-06-19 14:26:39,776 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-19 14:26:39,776 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-86623477-17507134, IP 175.34.20.131, Port 22 2025-06-19 14:26:39,931 - DEBUG - VM ctest-TestRoutersBasic-86623477-17507134 is ready for SSH connections 2025-06-19 14:26:39,932 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-19 14:26:39,932 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 175.34.20.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.49, gateway password: c0ntrail123 2025-06-19 14:26:39,932 - DEBUG - ping -s 56 -c 3 -W 1 175.34.20.131 2025-06-19 14:26:44,028 - DEBUG - PING 175.34.20.131 (175.34.20.131): 56 data bytes 64 bytes from 175.34.20.131: seq=0 ttl=62 time=7.131 ms 64 bytes from 175.34.20.131: seq=1 ttl=62 time=0.898 ms 64 bytes from 175.34.20.131: seq=2 ttl=62 time=0.954 ms --- 175.34.20.131 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.898/2.994/7.131 ms 2025-06-19 14:26:44,028 - INFO - Ping to IP 175.34.20.131 from VM ctest-TestRoutersBasic-86623477-78034638 passed 2025-06-19 14:26:44,028 - INFO - Deleting interface with subnet_id ffb12c94-512d-47e8-b588-0fce8998feb3, port_id None from router bc374479-e606-468b-b48d-cb7b38ec1346 2025-06-19 14:26:44,269 - INFO - Deleting VM ctest-TestRoutersBasic-86623477-17507134 2025-06-19 14:26:44,339 - INFO - Deleting VM ctest-TestRoutersBasic-86623477-78034638 2025-06-19 14:26:44,435 - INFO - Deleting VN ctest-ext_vn-56118984 2025-06-19 14:26:44,517 - DEBUG - VN 706d5901-affa-47ee-8637-9446dbfa842d still in use: Unable to complete operation on network 706d5901-affa-47ee-8637-9446dbfa842d. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-2d2f9553-15f0-4443-b04a-8e2793370452'] 2025-06-19 14:26:44,517 - WARNING - Deleting VN ctest-ext_vn-56118984 failed..Will retry 2025-06-19 14:26:46,646 - DEBUG - Response for deleting network () 2025-06-19 14:26:46,646 - INFO - Deleting VN ctest-vn-38825783 2025-06-19 14:26:46,773 - DEBUG - Response for deleting network () 2025-06-19 14:26:47,038 - DEBUG - No XMPP flaps were noticed during the test
2025-06-19 14:26:47,038 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:32]
2025-06-19 14:26:47,038 - INFO - -------------------------------------------------------------------------------- 2025-06-19 14:26:47,778 - INFO - Deleted project: ctest-TestRoutersBasic-86623477, ID : 1aedb999-3e26-48d2-ae24-0d984d94c3d2