packer-plugin-openstack icon indicating copy to clipboard operation
packer-plugin-openstack copied to clipboard

Remove redundant square braces for ipv6 with latest sdk version

Open vin01 opened this issue 3 months ago • 0 comments

Description

Until the latest release of plugin, it was using the older SDK version in release 1.1.2 (Feb 29, 2024). In 1.1.3 however the latest SDK version is in use which includes proper handling of ipv6 addresses directly in the SDK itself: https://github.com/hashicorp/packer-plugin-sdk/pull/246/files

This breaks ipv6 connectivity for openstack plugin because address is returned with square braces around it.

I have kept if/else structure the same to ensure precedence still is given to ipv6 if present and returned first. No logic change.

Error messages from 1.1.3 using latest plugin sdk showing redundant square braces

2025/11/21 09:59:44 packer-plugin-openstack_v1.1.3_x5.0_linux_amd64 plugin: 2025/11/21 09:59:44 [DEBUG] TCP connection to SSH ip/port failed: dial tcp: address [[2a00:1350:2001:211]]:22: missing port in address

Changes to Security Controls

No changes related to security controls.

vin01 avatar Nov 21 '25 10:11 vin01