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

5.6.2 generates config file path with .config at the end which RabbitMQ 3.6.x does not support #506

Closed
craigjamesstewart opened this issue Mar 4, 2019 · 4 comments
Labels
Milestone

Comments

@craigjamesstewart
Copy link

craigjamesstewart commented Mar 4, 2019

Thank you for using RabbitMQ and for taking the time to report an
issue.

Does This Belong to GitHub or RabbitMQ Mailing List?

Important: please first read the CONTRIBUTING.md document in the
root of this repository. It will help you determine whether your
feedback should be directed to the RabbitMQ mailing list [1] instead.

Please Help Maintainers and Contributors Help You

In order for the RabbitMQ team to investigate your issue, please provide
as much as possible of the following details:

  • Cookbook version used
    5.6.2
  • Operating system, version, and patch level
    CentOS Linux release 7.6.1810 (Core)
  • Node attributes
  • RabbitMQ version provisioned
    RabbitMQ 3.6.6
  • Erlang version provisioned
    Erlang 19.3.6.9
  • RabbitMQ server and client application log files
    Relevant lines from logs
    =INFO REPORT==== 4-Mar-2019::15:50:28 ===
    node : {servername redacted}@{servername redacted}
    home dir : /var/lib/rabbitmq
    config file(s) : /etc/rabbitmq/rabbitmq.config (not found)
    cookie hash : REDACTED
    log : /opt/rabbitmq/logs/{servername redacted}.log
    sasl log : /opt/rabbitmq/logs/{servername redacted}-sasl.log
    database dir : /opt/rabbitmq/mnesia/{servername redacted}
  • Brief instructions that can be used to reproduce the issue e.g. with Vagrant and chef-solo
    Deploy rabbitMQ version 3.6.6 using cookbook version 5.6.1 And working for remote connections
    Run chef using cookbook version 5.6.2 and watch rabbitMQ stop accepting connections.

This information greatly speeds up issue investigation (or makes it
possible to investigate it at all). Please help project maintainers and
contributors to help you by providing it!

  1. https://groups.google.com/forum/#!forum/rabbitmq-users
  2. https://github.com/rabbitmq/support-tools/blob/master/scripts/rabbitmq-collect-env
@michaelklishin
Copy link
Member

@craigjamesstewart I'm afraid there isn't much information to work with. Please provide steps to reproduce or at least any errors and config file entries generated (the logs says that the file does not exist at all).

Also note that RabbitMQ 3.6.x has been out of support for 9 months. In that series alone, 3.6.6 is 10 patch releases behind.

@craigjamesstewart
Copy link
Author

craigjamesstewart commented Mar 4, 2019

Yes the error says the config file doesn't exist, but it does. The same line appears (without the "not found" part) when starting rabbitMQ after running chef using cookbook version 5.6.1

The only RabbitMQ related change between versions 5.6.2 of the cookbook and 5.6.1 was to /etc/rabbitmq/rabbitmq-env.conf and the change was

< CONFIG_FILE=/etc/rabbitmq/rabbitmq         
---                                                                                                                                                                                                                                                                                                                                                                                                    
> CONFIG_FILE=/etc/rabbitmq/rabbitmq.config

Your own docs state in the "Supported RabbitMQ Versions" at https://supermarket.chef.io/cookbooks/rabbitmq/versions/5.6.2 that you support using this cookbook for versions 3.7.x 3.6.x and even 3.5.x. However #505 appears to have broken this, and you have released it as a patch level change, not a breaking change. However for 3.6.x branches of RabbitMQ it is a breaking change.

@michaelklishin
Copy link
Member

@craigjamesstewart thanks for the details, now that's something actionable. I'm afraid supporting all 17 3.6.x patch releases plus 13 3.7.x patch releases is a bit tricky.

Another issue for 3.6.x is the fact that rabbitmq-plugins commands do not support -q:

==> default: ---- Begin output of rabbitmq-plugins list -q -e 'rabbitmq_management\b' ----
==> default: STDOUT:
==> default: STDERR: Error: {'EXIT',
==> default:            {function_clause,
==> default:                [{rabbit_plugins_main,action,
==> default:                     [list,rabbit@vagrant,
==> default:                      ["-q","rabbitmq_management\\b"],

I'm looking into both things right now.

@michaelklishin michaelklishin changed the title 5.6.2 breaks rabbitmq version 3.6.6 config rendering the server unusable. 5.6.2 generates config file path with .config at the end which RabbitMQ 3.6.x does not support Mar 4, 2019
@michaelklishin
Copy link
Member

There's now an InSpec suite for 3.6.16 as well as a 3.6.16 Vagrant example.

michaelklishin added a commit that referenced this issue Mar 4, 2019
It makes sense to have it for as long as `5.x` releases support RabbitMQ
3.6.x.

References #506.
@michaelklishin michaelklishin added this to the 5.7.2 milestone Mar 14, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants