本文属于机器翻译版本。若本译文内容与英语原文存在差异,则一律以英文原文为准。
排查自定义 AMI 问题
当您使用自定义 AMI 时,您会看到以下警告:
"validationMessages": [ { "level": "WARNING", "type": "CustomAmiTagValidator", "message": "The custom AMI may not have been created by pcluster. You can ignore this warning if the AMI is shared or copied from another pcluster AMI. If the AMI is indeed not created by pcluster, cluster creation will fail. If the cluster creation fails, please go to https://docs.aws.amazon.com/parallelcluster/latest/ug/troubleshooting.html#troubleshooting-stack-creation-failures for troubleshooting." }, { "level": "WARNING", "type": "AmiOsCompatibleValidator", "message": "Could not check node AMI ami-0000012345 OS and cluster OS alinux2 compatibility, please make sure they are compatible before cluster creation and update operations." } ]
如果您确定使用的是正确的 AMI,则可以忽略这些警告。
如果您不想在以后看到这些警告,请使用以下标签标记自定义 AMI,其中
是 my-os
alinux2
、ubuntu2204
、ubuntu2004
、centos7
或 rhel8
之一,“3.7.0”
是正在使用的 pcluster
版本:
$
aws ec2 create-tags \ --resources
ami-yourcustomAmi
\ --tags Key="parallelcluster:version",Value="3.7.0"
Key="parallelcluster:os",Value="my-os"