本文属于机器翻译版本。若本译文内容与英语原文存在差异,则一律以英文原文为准。
自定义AMI问题疑难解答
本节为自定义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
、或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"