Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
RabbitMQ commands fail due to wrong locale #45383
Description of Issue/Question
it seems that the salt-runner on the minion doesn't set the proper locale for the rabbitmq commands of erlang-20.1.7-1, rabbitmq-server-3.7.1
Steps to Reproduce Issue
whenever i run a rabbitmq command on a minion from salt-master (e.g.
if i run the command on the minion directly (
CentOS 7, erlang-20.1.7-1, rabbitmq-server-3.7.1
If you set the locale using https://docs.saltstack.com/en/latest/ref/states/all/salt.states.locale.html#salt.states.locale.system does the problem go away?
i've additionally set the locale as outlined - running the highstate didn't trigger a change (so it was already set).
This is an Elixir requirement and their team seems to feel strongly about this.
Configuration software that uses CLI tools can override locale environment variables for the calls that expect an output that is parsed:
Team RabbitMQ will consider forcing this in our shell scripts (rabbitmq/rabbitmq-server#1573) but IIRC this has been considered before and rejected.