We are trying to build Red Hat 8 and Red Hat 9 images on OpenTelekomCloud, but Packer can not get the newly created Virtual Machines IP addresses. Packer version is 1.11.2, huawei cloud plugin is 1.2.1
$ PACKER_LOG=1 packer build $DISTRIBUTION.pkr.hcl
2024/10/22 10:08:34 [INFO] Packer version: 1.11.2 [go1.21.12 linux amd64]
2024/10/22 10:08:34 [INFO] PACKER_CONFIG env var not set; checking the default config file path
2024/10/22 10:08:34 [INFO] PACKER_CONFIG env var set; attempting to open config file: /root/.packerconfig
==> huaweicloud-ecs.otc: Loading availability zones...
huaweicloud-ecs.otc: Availability zones: eu-de-01 eu-de-02 eu-de-03
huaweicloud-ecs.otc: Select eu-de-02 as the availability zone
==> huaweicloud-ecs.otc: Loading flavor: s3.large.2
==> huaweicloud-ecs.otc: Creating temporary keypair: packer_671779a2-27e2-541f-4266-fbeb6475142e...
2024/10/22 10:08:35 packer-plugin-huaweicloud_v1.2.1_x5.0_linux_amd64 plugin: 2024/10/22 10:08:35 [INFO] skip the verification for flavor s3.large.2 as the method is missing in SDK
==> huaweicloud-ecs.otc: Created temporary keypair: packer_671779a2-27e2-541f-4266-fbeb6475142e
2024/10/22 10:08:36 packer-plugin-huaweicloud_v1.2.1_x5.0_linux_amd64 plugin: 2024/10/22 10:08:36 Using Image Filters ListImagesRequest {"name":"Enterprise_RedHat_8_amd64_bios_prev","sort_dir":"desc","sort_key":"created_at","status":"active"}
huaweicloud-ecs.otc: Found Image ID: 6b8ad132-0b8c-4d58-a478-31e76f3c6555
huaweicloud-ecs.otc: the [default] security groups will be used ...
==> huaweicloud-ecs.otc: Launching server in AZ eu-de-02...
huaweicloud-ecs.otc: Waiting for server to become ready...
2024/10/22 10:08:39 packer-plugin-huaweicloud_v1.2.1_x5.0_linux_amd64 plugin: 2024/10/22 10:08:39 [DEBUG] Waiting for state to become: [SUCCESS]
2024/10/22 10:08:49 packer-plugin-huaweicloud_v1.2.1_x5.0_linux_amd64 plugin: 2024/10/22 10:08:49 [TRACE] Waiting 10s before next try
2024/10/22 10:08:59 packer-plugin-huaweicloud_v1.2.1_x5.0_linux_amd64 plugin: 2024/10/22 10:08:59 [TRACE] Waiting 10s before next try
2024/10/22 10:09:09 packer-plugin-huaweicloud_v1.2.1_x5.0_linux_amd64 plugin: 2024/10/22 10:09:09 [TRACE] Waiting 10s before next try
2024/10/22 10:09:19 packer-plugin-huaweicloud_v1.2.1_x5.0_linux_amd64 plugin: 2024/10/22 10:09:19 [TRACE] Waiting 10s before next try
2024/10/22 10:09:29 packer-plugin-huaweicloud_v1.2.1_x5.0_linux_amd64 plugin: 2024/10/22 10:09:29 [TRACE] Waiting 10s before next try
2024/10/22 10:09:39 packer-plugin-huaweicloud_v1.2.1_x5.0_linux_amd64 plugin: 2024/10/22 10:09:39 [TRACE] Waiting 10s before next try
huaweicloud-ecs.otc: Server ID: 24be6090-b6[88](https://gitlab.ms.otc.t-systems.com/images/RedHat-based/-/jobs/64267#L88)-47c5-8c35-e18bb0840aed
==> huaweicloud-ecs.otc: Using SSH communicator to connect:
2024/10/22 10:09:49 packer-plugin-huaweicloud_v1.2.1_x5.0_linux_amd64 plugin: 2024/10/22 10:09:49 [INFO] Not using winrm communicator, skipping get password...
2024/10/22 10:09:49 packer-plugin-huaweicloud_v1.2.1_x5.0_linux_amd64 plugin: 2024/10/22 10:09:49 [DEBUG] Using floating IP to connect
2024/10/22 10:09:49 packer-plugin-huaweicloud_v1.2.1_x5.0_linux_amd64 plugin: 2024/10/22 10:09:49 [INFO] Waiting for SSH, up to timeout: 30m0s
2024/10/22 10:09:49 packer-plugin-huaweicloud_v1.2.1_x5.0_linux_amd64 plugin: 2024/10/22 10:09:49 [DEBUG] Using floating IP to connect
2024/10/22 10:09:49 packer-plugin-huaweicloud_v1.2.1_x5.0_linux_amd64 plugin: 2024/10/22 10:09:49 [DEBUG] TCP connection to SSH ip/port failed: dial tcp :22: connect: connection refused
==> huaweicloud-ecs.otc: Waiting for SSH to become available...
2024/10/22 10:09:54 packer-plugin-huaweicloud_v1.2.1_x5.0_linux_amd64 plugin: 2024/10/22 10:09:54 [DEBUG] Using floating IP to connect
2024/10/22 10:09:54 packer-plugin-huaweicloud_v1.2.1_x5.0_linux_amd64 plugin: 2024/10/22 10:09:54 [DEBUG] TCP connection to SSH ip/port failed: dial tcp :22: connect: connection refused
At part of "Using SSH communicator to connect: "
Private IP should be appear, but not appears and not receives. On other distribution, for example Centos, Ubuntu, it is working fine with the same code.
With older plugin version, all distribution can be build. ( packer 1.10.3 with huaweicloud plugin 1.1.0 )
Can you please check what can be the problem here ?
We are trying to build Red Hat 8 and Red Hat 9 images on OpenTelekomCloud, but Packer can not get the newly created Virtual Machines IP addresses. Packer version is 1.11.2, huawei cloud plugin is 1.2.1
Here is the code:
Here is the output:
At part of "Using SSH communicator to connect: " Private IP should be appear, but not appears and not receives. On other distribution, for example Centos, Ubuntu, it is working fine with the same code.
With older plugin version, all distribution can be build. ( packer 1.10.3 with huaweicloud plugin 1.1.0 ) Can you please check what can be the problem here ?