alibaba / packer-provider

Apache License 2.0
92 stars 26 forks source link

Can't create image for instance type ecs.gn5-c4g1.xlarge #37

Closed jhagege closed 5 years ago

jhagege commented 6 years ago

Hi I'm trying to create an instance for the type ecs.gn5-c4g1.xlarge. I get the error "InvalidDiskCategory.CreateImage".

I think it's because packer tries to create an image of the I/O-Intensive Local Disk 440GB. I don't need to create an image of this, just of system disk.

By default, this instance type creates two disks: image

Can I instruct packer to create an image only for the system disk, and not the second disk ? Thanks !

willmao commented 6 years ago

From Alicloud web console, the ecs.gn5-c4g1.xlarge type instance creates a 440G NVMe SSD by default, just try another instance type :)

Marcus-James-Adams commented 5 years ago

Hi this is occurring for us too on the latest version of packer and provisioner - Changing to another hardware type is not an option

chhaj5236 commented 5 years ago

@Marcus-James-Adams Thanks for reporting this issue. I'll see if we can provide an option for only creating image from the system disk.

chhaj5236 commented 5 years ago

@jhagege @Marcus-James-Adams This feature has been satisfied by https://github.com/alibaba/packer-provider/pull/50. Supported version: V1.2.5. Option image_ignore_data_disks can be set to true to ignore data disks.

jhagege commented 5 years ago

Thanks!

On Sun, 18 Nov 2018, 09:25 chhaj5236 <notifications@github.com wrote:

Closed #37 https://github.com/alibaba/packer-provider/issues/37.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/alibaba/packer-provider/issues/37#event-1973100782, or mute the thread https://github.com/notifications/unsubscribe-auth/AHKEDAHgb-rdO_tUJdtJPCw0m36D83eQks5uwQtjgaJpZM4Vn-12 .

Marcus-James-Adams commented 5 years ago

@jhagege @chhaj5236 after updating to new release When setting "image_ignore_data_disks":"true",

I now immediately get uild 'TEST.alicloud.eu-central-1.ecs.gn5-c4g1.xlarge' errored: Aliyun API Error: RequestId: Status Code: 400 Code: InvalidEndpoint Message: endpoint is empty,pls check uild 'alicloud.eu-central-1.ecs.gn5-c4g1.xlarge' errored: Aliyun API Error: RequestId: Status Code: 400 Code: InvalidEndpoint Message: endpoint is empty,pls check

If I remove it, its launches and builds as normal but the gives the original error at the end when it tries to create the image