Giter Site home page Giter Site logo

Comments (7)

michaelklishin avatar michaelklishin commented on July 28, 2024 5

This cookbook's master has long dropped RabbitMQ 3.6 support and bumped the major version. That series has been out of support for 19 months in general. I would not mind dropping support for it in v5.x with a clear warning in the change log.

from chef-cookbook.

jtschelling avatar jtschelling commented on July 28, 2024 1

are you thinking divergent code paths based on running rabbit version or a major bump of this cookbook dropping RabbitMQ version <3.7 support? I can put up a PR for this if you want, just wanna make sure i'm on the same page as you

from chef-cookbook.

jtschelling avatar jtschelling commented on July 28, 2024

this can be observed by running sudo rabbitmqctl cluster_status on a 3.7 rabbit node and then on a 3.8 node to see the output differences and why the string would not be parsed correctly

from chef-cookbook.

lukebakken avatar lukebakken commented on July 28, 2024

I suggest using the JSON formatter:

rabbitmqctl cluster_status --silent --formatter json

from chef-cookbook.

michaelklishin avatar michaelklishin commented on July 28, 2024

@jtschelling we are quite aware of the changes. Are there examples of Chef resources that capture JSON output that you can recommend?

from chef-cookbook.

jtschelling avatar jtschelling commented on July 28, 2024

@lukebakken I know you know - hah - but just noting here that 3.7 and 3.8 both have the same running_nodes field that would be perfect for cross-compatibility here. Was that formatter flag introduced at some previous version of rabbit or there since the beginning? It seems like the best way to fix this, but if that json formatter flag was introduced at 3.6 or something there'd still be compatibility issues that would need to be denoted or code path changed in this cookbook

@michaelklishin since you're using the provider design pattern in this cookbook I'd probably just use the ruby core native json module

from chef-cookbook.

lukebakken avatar lukebakken commented on July 28, 2024

JSON formatting is supported since version 3.7.0:

(20.3)lbakken@MESSIAEN ~/issues/rmq-generic-unix/rabbitmq_server-3.7.0
$ ./sbin/rabbitmqctl cluster_status --formatter json
{"nodes":{"disc":["rabbit@MESSIAEN"]},"running_nodes":["rabbit@MESSIAEN"],"cluster_name":"rabbit@localhost","partitions":[],"alarms":{"rabbit@MESSIAEN":[]}}

RabbitMQ 3.6 isn't supported anymore and the RMQ team does everything we can to discourage its use.

from chef-cookbook.

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.