Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[3.11] elasticloadbalancing:DescribeTags permission is missing when run a cluster with login nodes #6483

Closed
kondakovm opened this issue Oct 20, 2024 · 1 comment
Labels

Comments

@kondakovm
Copy link

kondakovm commented Oct 20, 2024

My 3.11.0 ParallelCluster deployment failed due to insufficient AWS permissions for a Lambda role created by the API stack. The Lambda function requires the permission 'elasticloadbalancing:DescribeTags', but this permission is not included in the policy configuration.

Most likely, this issue was caused by changes to the permissions in the 'cloudformation/policies/parallelcluster-policies.yaml' file since ParallelCluster version 3.10.1 where the elasticloadbalancing:Describe* permission was included.

The deployment succeeds when there are no login nodes in the cluster configuration, but fails when the login nodes section is included.

The cluster configuration:

  Region: eu-central-1
  CustomS3Bucket: parallelcluster-custom-bucket-name
  Image:
    Os: alinux2
  SharedStorage:
    - MountDir: /home
      Name: parallelcluster_shared
      StorageType: Ebs
      EbsSettings:
        VolumeType: gp3
        Size: 1000
        DeletionPolicy: Delete
  HeadNode:
    InstanceType: c5.large
    LocalStorage:
      RootVolume:
        Size: 100
        VolumeType: gp3
        DeleteOnTermination: true
    Networking:
      SubnetId: subnet-123456789123
    Iam:
      AdditionalIamPolicies:
        - Policy: arn:aws:iam::aws:policy/AmazonSSMManagedInstanceCore
    Ssh:
      KeyName: parallelcluster_ssh_key
  LoginNodes:
    Pools:
      - Name: login
        Count: 1
        InstanceType: t3.small
        Ssh:
          KeyName: parallelcluster_ssh_key
        Networking:
          SubnetIds:
            - subnet-123456789123
        Iam:
          AdditionalIamPolicies:
            - Policy: arn:aws:iam::aws:policy/AmazonSSMManagedInstanceCore
  Scheduling:
    Scheduler: slurm
    SlurmQueues:
      - Name: queue1
        CapacityType: SPOT
        Networking:
          SubnetIds:
            - subnet-123456789123
        Iam:
          AdditionalIamPolicies:
            - Policy: arn:aws:iam::aws:policy/AmazonSSMManagedInstanceCore
        ComputeResources:
          - InstanceType: c5.xlarge
            MinCount: 0
            MaxCount: 10
            Name: c5xlarge
    SlurmSettings:
      QueueUpdateStrategy: TERMINATE
      Dns:
        DisableManagedDns: true
        UseEc2Hostnames: true

Lambda logs for evidence:

    "level": "ERROR",
    "location": "common.py:107:wrapper()",
    "message": "Encountered error when performing boto3 call in describe_tags: User: arn:aws:sts::123456789123:assumed-role/ParallelClusterLambdaRole-1d812250/ParallelClusterAPI-ParallelClusterFunction-MxG8NLI7N3Nq is not authorized to perform: elasticloadbalancing:DescribeTags because no identity-based policy allows the elasticloadbalancing:DescribeTags action",
    "timestamp": "2024-10-20 14:49:14,667+0000",
    "service": "pcluster",
    "cold_start": false,
    "function_name": "ParallelClusterAPI-ParallelClusterFunction-MxG8NLI7N3Nq",
    "function_memory_size": "2048",
    "function_arn": "arn:aws:lambda:eu-central-1:123456789123:function:ParallelClusterAPI-ParallelClusterFunction-MxG8NLI7N3Nq",
    "function_request_id": "3948efa8-700f-4b83-b396-fc593f04033e",
    "xray_trace_id": "1-67151869-23d459f976b54e012b1dd398"
@kondakovm kondakovm added the 3.x label Oct 20, 2024
@kondakovm kondakovm changed the title [3.11] elasticloadbalancing:DescribeTags permission is required to run a cluster with login nodes [3.11] elasticloadbalancing:DescribeTags permission missing when run a cluster with login nodes Oct 20, 2024
@kondakovm kondakovm changed the title [3.11] elasticloadbalancing:DescribeTags permission missing when run a cluster with login nodes [3.11] elasticloadbalancing:DescribeTags permission is missing when run a cluster with login nodes Oct 20, 2024
@gmarciani
Copy link
Contributor

Hi,

this issue has been fixed in ParallelCluster 3.11.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants