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

bug: two different vmagent's in different namespaces can get the same credentials.. #891

Open
ThomasADavis opened this issue Mar 4, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@ThomasADavis
Copy link

If you:

a) create an vmagent, in namespace a, with a name of 'vmagent', then
b) create a vmnodescrape for cadvisor and verify it works.
c) create a second vmagent, in namespace b, with a name of 'vmagent', then..
d) watch the vmnodscrape for cadvisor fail after the second vmagent is created. This may take a minute or two to show up.
e) delete the 2nd vmagent, wait for and watch the 1st vmagent cadvisor scrapes start to work again.

when you check the clusterroles/clusterrolbindings, you'll find that the second vmagent has corrupted the first vmagent's credentials.

It will change back and forth each time the operator updates the vmagents.

Workaround is to give every vmagent running on the system a unique name and not to rely on namespacing.

The issue is clusteroles/clusterbindings are not namespaced, and must be unique for each vmagent, and they are not when you do the above.

@f41gh7 f41gh7 added the bug Something isn't working label Mar 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants