-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Fixing RABBITMQ_CONFIG_ARG_FILE variable #1881
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
Conversation
The rabbit_prelaunch module can read the os:getenv(RABBITMQ_CONFIG_ARG_FILE) correctly
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Gsantomaggio thanks for noticing this. I think RABBITMQ_CONFIG_ARG_FILE
needs to be removed as it isn't documented and only used by the prelaunch step ... and not very effectively at that. What makes this more complicated is the introduction of the rabbitmq.conf
file whose contents can really only be verified after processing.
@Gsantomaggio
Or, you can create the |
@lukebakken thanks
does not work :)
this because of the In 3.6.x it worked because of the value was read directly from the conf file in 3.7.x is suppose to read RABBITMQ_CONFIG_ARG_FILE |
@Gsantomaggio - I can reproduce this, but the fix will have to take |
@lukebakken I think the same, I was focusing on the
|
OK, since we generate config from |
@Gsantomaggio I think your change will suffice, but I'm doing some testing and will remove the settings from the |
You can change Also see rabbitmq/rabbitmq-website#687 Thanks @Gsantomaggio |
@Gsantomaggio please submit all future PRs against |
@michaelklishin I will. @lukebakken |
The rabbit_prelaunch module can read the
os:getenv(RABBITMQ_CONFIG_ARG_FILE)
correctlyProposed Changes
With this PR the
rabbit_prelaunch
can read the variable RABBITMQ_CONFIG_ARG_FILE correctly.Found the bug (RMQ 3.7.11) while I was trying to set:
on the
etc/rabbitmq/advanced.config
file, and did not work.The
RABBITMQ_CONFIG_ARG_FILE
was not read and therabbitmq-server script
always set the default values (PRELAUNCH_RESULT
was always 0).3.6.x had to do the same
Types of Changes
What types of changes does your code introduce to this project?
Checklist
Put an
x
in the boxes that apply. You can also fill these out after creatingthe PR. If you're unsure about any of them, don't hesitate to ask on the
mailing list. We're here to help! This is simply a reminder of what we are
going to look for before merging your code.
CONTRIBUTING.md
document