排解自訂 AMI 問題 - AWS ParallelCluster

本文為英文版的機器翻譯版本,如內容有任何歧義或不一致之處,概以英文版為準。

排解自訂 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,則可以忽略這些警告。

如果您 future 不想看到這些警告,請使用以下標籤標記自訂 AMI,其中my-osalinux2ubuntu2204、或之一 ubuntu2004centos7rhel8「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"