-
-
Notifications
You must be signed in to change notification settings - Fork 500
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
rabbitmq_vhost resource not idempotent with a description #1006
Comments
I think I see at least one issue... question: what's the RabbitMQ behavior you see? |
It seems like the provider code is mostly smart enough to not try and set it in the case where puppet-rabbitmq/lib/puppet/provider/rabbitmq_vhost/rabbitmqctl.rb Lines 46 to 57 in 381dcc0
|
Nothing happens, I'm still on RMQ 3.9, because of OpenStack, I'd expect it to throw an error/warning that description is unsupported |
Got it. Not sure if OpenStack will let you use A warning and / or a docs fix may be feasible. For example, removing the condition for
I was able to create an acceptance test that reproduces the issue, however I don't know how to suppress the idempotency issue caused by Puppet thinking it wants to update the description (will be happy to review PRs if someone else wants to put one in, though). The simplest fix is going to be to not try and set the description (maybe leaving it commented out in the code with a note). |
It is possible but it would be an "untested" configuration
Yes, for now I'll go this route |
Affected Puppet, Ruby, OS and module versions/distributions
How to reproduce (e.g Puppet code you use)
What are you seeing
At every agent run, a change is reported because of the vhost description, even if this has not been modified
What behaviour did you expect instead
Report changes only if there have been modifications
Output log
Notice: /Stage[main]/Main/Node[rabbitmq.example.com]/Rabbitmq_vhost[myvhost]/description: description changed to 'A description here' (corrective)
Any additional information you'd like to impart
\
The text was updated successfully, but these errors were encountered: