Giter Club home page Giter Club logo

Comments (9)

jurgenweber avatar jurgenweber commented on May 26, 2024

run puppet a second time and it works fine, it is just the first time where it fails.

from puppet-rabbitmq.

bodepd avatar bodepd commented on May 26, 2024

@zeph

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.

apenney avatar apenney commented on May 26, 2024

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.

jurgenweber avatar jurgenweber commented on May 26, 2024

Yeah, I can confirm reverting that code resolved the issue as well.

Thanks

from puppet-rabbitmq.

apenney avatar apenney commented on May 26, 2024

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.

zeph avatar zeph commented on May 26, 2024

awesome! tnx @apenney & @bodepd 👍

from puppet-rabbitmq.

apenney avatar apenney commented on May 26, 2024

@zeph #96 - give that a whirl, seems to work better for me. If you have success I'll merge it.

from puppet-rabbitmq.

jurgenweber avatar jurgenweber commented on May 26, 2024

Yeah, works great for me. Thanks.

from puppet-rabbitmq.

apenney avatar apenney commented on May 26, 2024

Awesome, closing this for now then!

from puppet-rabbitmq.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.