gardenlinux / glci

CI/CD utils for Garden Linux
MIT License
2 stars 2 forks source link

Publish AliCloud images to make them compatible with NVME disks #49

Open MrBatschner opened 6 months ago

MrBatschner commented 6 months ago

What would you like to be added:

AliCloud offers some machine types that use NVME disks for enhanced disk throughput. Such machine types (e.g. ecs.g8ae.32xlarge) require the OS images to have NVME drivers in them and they must be tagged accordingly (see sample screenshot for Ubuntu images). Without the required feature attribute, AliCloud simply refuses to provision a machine from that image.

image_720

glci code must be adapted to include the given attribute. This cannot be done in the ImportImage() method but must be done in a subsequent call to ModifyImageAttribute(), like so:

features = ecs_20140526_models.ModifyImageAttributeRequestFeatures(
    nvme_support='supported'
)
modify_image_attribute_request = ecs_20140526_models.ModifyImageAttributeRequest(
    region_id='cn-hangzhou-finance',
    features=features
)
client.modify_image_attribute_with_options(modify_image_attribute_request, runtime)

Relevant documentation (Chinese only, use translator):

Important: There is more documentation about NVME support for AliCloud in Linux, it must be checked if Garden Linux is configured so that it meets the requirements, see https://www.alibabacloud.com/help/en/ecs/user-guide/adapt-linux-custom-images-to-nvme-based-system-disks

DelinaDeng commented 2 months ago

Hi @MrBatschner ,

Any update on this?