Skip to content
This repository has been archived by the owner on Mar 13, 2023. It is now read-only.

Cannot delete cluster build outside of PCM #316

Open
stephenmsachs opened this issue Oct 12, 2022 · 4 comments
Open

Cannot delete cluster build outside of PCM #316

stephenmsachs opened this issue Oct 12, 2022 · 4 comments
Assignees
Labels
bug Something isn't working

Comments

@stephenmsachs
Copy link
Contributor

ParallelClusters created outside of PCM are listed on the PCM main page and there is a functioning Delete button. But PCM has insufficient IAM permissions to delete clusters created outside of PCM, thus the CFN stack wil go to state "DELETE_FAILED".

Error message:
"API: iam:DetachRolePolicy User: arn:aws:sts::XXXXXXXXXX:assumed-role/stesachs-pcluster-manager-ParallelClusterUserRole-1D9BDG028QH9H/stesachs-pcluster-manager--ParallelClusterFunction-yUrGn2AGbR5F is not authorized to perform: iam:DetachRolePolicy on resource: role clustername-Role24989d8ee41c1575-1Q55UE4K27TZ0 because no identity-based policy allows the iam:DetachRolePolicy action"

@mendaomn mendaomn self-assigned this Oct 12, 2022
@mendaomn mendaomn added the bug Something isn't working label Oct 12, 2022
@mendaomn
Copy link
Contributor

Thank you, we'll investigate the issue and report here when we fix it

@sean-smith
Copy link
Contributor

This is also true for clusters created within pcluster manager.

@mendaomn
Copy link
Contributor

mendaomn commented Oct 13, 2022

This is also true for clusters created within pcluster manager.

Meaning by creating a cluster on a PCM installation, you cannot manage it or delete it via another PCM installation on the same account?

EDIT: I could successfully delete a cluster created via another PCM installation on the same account

@mendaomn
Copy link
Contributor

This may be related to aws/aws-parallelcluster#4031, will keep you posted as soon as we either have a fix or a workaround

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants