-
Notifications
You must be signed in to change notification settings - Fork 256
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
Cannot create cluster by Application Credentials without role admin #2131
Comments
I have updates: |
@nguyenhuukhoi From the error you've pasted, the problem is that you're over quota. This is presumably why admin can do this, because quotas don't apply to admin. I'm going to close this because it looks like it's working as intended. I think you need to increase your |
Hello. if i have 10 network, it will take all and 100 network, it is same. |
It is ok. I get what you mean. Dont create cluster with admin role? Pls correct me. |
Can you paste some logs from the first network creation failure? The one you posted is just because it's out of quota. If you're saying the controller is looping creating networks until it runs out of whatever quota you gave it, that would be a bug. |
"If you're saying the controller is looping creating networks until it runs out of whatever quota you gave it". Yes, that what i mean. I will collect and post as you say. |
The bug (CAPO retrying network / subnet / router creation until you hit quota limits) might be trigged by a number of things, but specifically I've hit this recently and it was caused by changes to Neutron RBAC policies. The original error which causes CAPO to get stuck in a reconciliation loop until resources are exhausted in my case was:
The root cause was related to how the application credential had been created and new Neutron API RBAC policies that were introduced and made the default as of 2023.2: https://docs.openstack.org/releasenotes/neutron/2023.2.html#upgrade-notes From the Neutron side, you'll see something like this corresponding with the CAPO router creation request:
Updating the Neutron server configuration as recommended in the release notes solved the problem. |
The Kubernetes project currently lacks enough contributors to adequately respond to all issues. This bot triages un-triaged issues according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale |
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues. This bot triages un-triaged issues according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle rotten |
/kind bug
What steps did you take and what happened:
Creating cluster by Application Credentials without admin role will cause create router and network forever util exceed quota. But it is ok when using password method
What did you expect to happen:
Create cluster properly by Application Credentials without role admin role
Anything else you would like to add:
Reconciler error err=<
failed to reconcile network: Expected HTTP response code [201 202] when accessing [POST https://x.x.net:9696/v2.0/networks], but got 409 instead
{"NeutronError": {"type": "OverQuota", "message": "Quota exceeded for resources: ['network'].", "detail": ""}}
controller="openstackcluster" controllerGroup="infrastructure.cluster.x-k8s.io" controllerKind="OpenStackCluster" OpenStackCluster="default/capi-quickstartdck" namespace="default" name="capi-quickstartdck" reconcileID="24ecea61-905e-40e5-8266-6cc0b4d95918"
Environment:
git rev-parse HEAD
if manually built): v0.10.3kubectl version
): 1.27.4/etc/os-release
): 22.04The text was updated successfully, but these errors were encountered: