Skip to content

AWS PCS create failed without any specific information about error

0

Im building my AWS PCS cluster using cloud formation. Here is my cluster basic component. Earlier it was only ScaleDownIdleTimeInSeconds which says it should be integer (it was interger still), but now its failing without giving any useful information

Cluster:
    Type: AWS::PCS::Cluster
    Properties:
      Name: !Sub ${ProjectNamePrefix}-cluster
      Networking:
        SecurityGroupIds:
          - !Ref PrivateResourceSecurityGroup
          - !Ref PublicResourceSecurityGroup
        SubnetIds:
          - !Ref PrivateSubnet
          - !Ref PublicSubnet
      Scheduler:
        Type: SLURM
        Version: "23.11"
      Size: SMALL # [SMALL, MEDIUM, LARGE]
      #SlurmConfiguration:
      #ScaleDownIdleTimeInSeconds: 300 #!Sub "300" # CFormation is unable to parse 300 as integer, thats why
      Tags:
        - Key: Project
          Value: !Ref ProjectName
        - Key: Environment
          Value: !Ref Environment

Error (this is all i get): Enter image description here

asked 2 years ago288 views

1 Answer
0

When a AWS ParallelCluster Service (PCS) cluster creation fails without providing specific error information, it can be challenging to diagnose the issue. However, there are several steps you can take to troubleshoot and resolve the problem:

  1. Check the CloudFormation console for more detailed error messages. Navigate to the CloudFormation stack associated with your cluster and review the "Events" tab. This may provide more specific information about which resource failed to create and why.

  2. Verify that all the referenced resources in your template (such as SecurityGroupIds and SubnetIds) exist and are correctly specified. Ensure that the PrivateResourceSecurityGroup, PublicResourceSecurityGroup, PrivateSubnet, and PublicSubnet references are valid and accessible.

  3. Make sure you have the necessary permissions to create all the resources specified in your template. Insufficient IAM permissions can cause creation failures without clear error messages.

  4. Double-check that the Scheduler configuration is valid. The Type "SLURM" and Version "23.11" should be supported, but verify this against the latest AWS ParallelCluster documentation.

  5. Ensure that the Size parameter (SMALL) is valid and supported for your specific configuration.

  6. If you're using custom AMIs or scripts, verify that they are compatible with the cluster configuration you're trying to create.

  7. Check your service quotas to ensure you haven't exceeded any limits, such as the number of clusters you can create or the number of instances you can launch.

  8. If the issue persists, you may want to try creating the cluster again with rollback-on-failure set to false. This will allow you to inspect the partially created resources and potentially gather more information about the failure point.

  9. Review the CloudWatch logs for your cluster, if available. These logs might contain more detailed information about the creation process and any errors encountered.

If after trying these steps you're still unable to determine the cause of the failure, you may need to contact AWS support for further assistance. They can help you investigate the issue more deeply and provide guidance on resolving it.
Sources
AWS ParallelCluster troubleshooting - AWS ParallelCluster
Trying to create a cluster - AWS ParallelCluster
Troubleshooting cluster deployment issues - AWS ParallelCluster

answered 2 years ago

EXPERT

reviewed 2 years ago

    1. In events tab it says This AWS::PCS::Cluster resource is in a CREATE_FAILED state.

    Resource handler returned message: "Invalid request provided: Resource properties validation failed with invalid configuration" (RequestToken: e81f6ce0-9aa3-4e90-5ffa-4076ea8b84c1, HandlerErrorCode: InvalidRequest)

    nothing more specific

    1. All parameters are accessible and valid
    2. I haven't selected IAM role for my cloud formation so by default it can create any resource
    3. AWS PCS does support 23.11 and 24.05 version as i checked
    4. SMALL cluster has nothing to do with instance type, it is for number instances and jobs
    5. I tried my custom ami by launching separater ec2-instances and its working fine
    6. I'm launching this only cluster in my account, so no issue of quota
    7. That didn't help PCS is still failing without any more information.
    8. In cloud watch logs it says the same error as shown in point 1

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.