hashicorp / packer-plugin-alicloud

Packer plugin for Alibaba Cloud Image Builder
https://www.packer.io/docs/builders/alicloud-ecs
Mozilla Public License 2.0
12 stars 21 forks source link

The basic example does not work. #88

Open dirk-unified opened 1 year ago

dirk-unified commented 1 year ago

Overview of the Issue

The basic example does not work, trying to build it gives the following error:

==> alicloud-ecs.basic-example: No alicloud image was found matching filters: centos_7_04_64_20G_alibase_201701015.vhd

Other regions, instance types and OSes give the same error, for instance

  instance_type = "ecs.t1.small"
  region        = "eu-central-1"
  source_image  = "ubuntu_20_04_x64_20G_alibase_20220824.vhd"

This gives the same error as with CentOS previously.

Note these are public images where in the source file step_check_source_image.go at line 38 there is the following:

  // Describe markerplace image
  describeImagesRequest.ImageOwnerAlias = "marketplace"

Trying to use a marketplace instance id does not work either - same error.

Adding a ram_role_name (required according the documentation, but also see issue #7) does not help either, then the error becomes:

2022/11/10 05:26:12 [INFO] (telemetry) ending alicloud-ecs.basic-example

* refresh Ecs sts token err: Get "http://100.100.100.200/latest/meta-data/ram/security-credentials/usp-test": dial tcp 100.100.100.200:80: i/o timeout

Reproduction Steps

From packer version

Simplified Packer Buildfile

See https://github.com/hashicorp/packer-plugin-alicloud/blob/main/docs/builders/alicloud-ecs.mdx#basic-example

Operating system and Environment details

macOS Monterey

Log Fragments and crash.log files

Prints mostly getting started and nothing about the actual error

alexyueer commented 1 year ago

==> alicloud-ecs.basic-example: No alicloud image was found matching filters: centos_7_04_64_20G_alibase_201701015.vhd

add parameter skip_image_validation and retry.