Comments (9)
run puppet a second time and it works fine, it is just the first time where it fails.
from puppet-rabbitmq.
try reverting this patch and see if it works:
https://github.com/puppetlabs/puppetlabs-rabbitmq/commit/0c4ba9bff3f6c4306b9d4eedb6847ad0b9cc2c98
This patch looks like it would result in that behavior
from puppet-rabbitmq.
Hmm, this is unexpected (and of course I can't reproduce it easily in testing). I can confirm what you're seeing via vagrant and it's definitely odd. We do a rabbitmqctl list_users -q and look for 'unable to connect to node'. If we get that we fail out the providers.
I can see that the service refreshed and is running prior to the first attempted load of the provider, so this should work. At least my understanding was that providers don't run the :confine block until they are actually called for the first time so it shouldn't have done it up front and cached that result past the start of the service.
I'm torn over the right thing to do here. We want the provider to fail if the service isn't up so users don't have to specify their own requires, but if this is going to fail on every first run then it won't do. I'll dig into this a little more and see if I can find out exactly what is happening.
from puppet-rabbitmq.
Yeah, I can confirm reverting that code resolved the issue as well.
Thanks
from puppet-rabbitmq.
I'll give in and switch these over to just autorequires the service. I wanted to avoid that as I couldn't autorequires the service but it seems like a cleaner solution and should hopefully work for a first run.
Testing with your vagrant and the changes:
Notice: /Stage[main]/Roles::Middleware/Rabbitmq_user[mcollective]/ensure: created
I'll get a PR in to make these changes.
from puppet-rabbitmq.
awesome! tnx @apenney & @bodepd 👍
from puppet-rabbitmq.
@zeph #96 - give that a whirl, seems to work better for me. If you have success I'll merge it.
from puppet-rabbitmq.
Yeah, works great for me. Thanks.
from puppet-rabbitmq.
Awesome, closing this for now then!
from puppet-rabbitmq.
Related Issues (20)
- need support for newer versions of dependency puppet-archive HOT 1
- rabbitmq_plugin not working properly with RabbitMQ 3.10.x
- Feature-request: Configure prometheus exporter HOT 5
- Unable to use custom list inside enabled_plugins file HOT 1
- Missing option to add members to quorum queue
- Idempotency issue with implicitly enabled plugins
- PackageCloud repos are no longer available (see RabbitMQ issue) HOT 2
- Method to enable HSTS?
- rabbitmq_queue takes a long time when a large number of vhosts is present
- rabbitmq::install::rabbitmqadmin keeps installing python package HOT 2
- Question: Will support be added for Puppet 8 and RHEL8? HOT 5
- Policy "applyto" options missing HOT 2
- ldap_log should be string not boolean to support network/network_unsafe options HOT 3
- resources fail to prefetch when rabbitmq is not intended to be installed (via --noop or --tags) HOT 5
- Missing support for Vhost Metadata HOT 5
- puppet-archive version HOT 2
- Use epp template to handle sensitive data
- Add support for policy definition consumer-timeout as a integer HOT 1
- Failing with "Language validation logged 2 errors" HOT 2
- Module fails on puppet 7.29.0 + puppetserver 7.16.0 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from puppet-rabbitmq.