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

AuthFailure.ServiceLinkedRoleCreationNotPermitted: The provided credentials do not have permission to create the service-linked role for EC2 Spot Instances. #16475

Closed
clayrisser opened this issue Apr 18, 2024 · 5 comments

Comments

@clayrisser
Copy link

I'm getting the following error when using karpneter with kops version 1.28.4

2024-04-18T16:45:10.598Z    DEBUG    controller.deprovisioning    waiting on cluster sync    {"commit": "74bf29c"}                                                            
2024-04-18T16:45:11.384Z    ERROR    controller    Reconciler error    {"commit": "74bf29c", "controller": "machine.lifecycle", "controllerGroup": "karpenter.sh", "controller
Kind": "Machine", "Machine": {"name":"karpenter-0-kgvdg"}, "namespace": "", "name": "karpenter-0-kgvdg", "reconcileID": "87fb931e-5ced-407b-91fb-4fa1054d1225", "error": "laun
ching machine, creating instance, with fleet error(s), AuthFailure.ServiceLinkedRoleCreationNotPermitted: The provided credentials do not have permission to create the servic
e-linked role for EC2 Spot Instances."}                                                                                                                                       
2024-04-18T16:45:11.600Z    DEBUG    controller.deprovisioning    waiting on cluster sync    {"commit": "74bf29c"}                                                            
2024-04-18T16:45:12.007Z    ERROR    controller    Reconciler error    {"commit": "74bf29c", "controller": "machine.lifecycle", "controllerGroup": "karpenter.sh", "controller
Kind": "Machine", "Machine": {"name":"karpenter-0-dcpvm"}, "namespace": "", "name": "karpenter-0-dcpvm", "reconcileID": "e70178b9-2a22-4141-ab07-3a84366f8280", "error": "laun
ching machine, creating instance, with fleet error(s), AuthFailure.ServiceLinkedRoleCreationNotPermitted: The provided credentials do not have permission to create the servic
e-linked role for EC2 Spot Instances."}
@maker2413
Copy link

I am also encountering this error when trying to test out a new cluster using the information provided in the documentation: https://kops.sigs.k8s.io/operations/karpenter/#new-clusters

@rifelpet
Copy link
Member

The Karpenter documentation mentions this error: https://karpenter.sh/docs/troubleshooting/#missing-service-linked-role

@maker2413
Copy link

Thank you so much @rifelpet! That ended up being my solution.

@rifelpet
Copy link
Member

/close

@k8s-ci-robot
Copy link
Contributor

@rifelpet: Closing this issue.

In response to this:

/close

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

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

No branches or pull requests

4 participants