Hi team,
We have enabled RabbitMQ internode TLS with strategy 2 mentioned in the link
https://www.rabbitmq.com/clustering-ssl.html . Everything seems to be working fine and we are able to run rabbitmq-diagnostics and rabbitmqctl commands inside the nodes.
But in our rabbitmq-env.conf, when we set RABBITMQ_SERVER_ADDITIONAL_ERL_ARGS and SERVER_ADDITIONAL_ERL_ARGS(for internode TLS) both parameters, the rabbitmq-diagnostics stopped working.
But after removing RABBITMQ_SERVER_ADDITIONAL_ERL_ARGS from rabbitmq-env.conf it started working back again. It seems like RABBITMQ_SERVER_ADDITIONAL_ERL_ARGS overrides the SERVER_ADDITIONAL_ERL_ARGS.
Below is the code of rabbitmq-env
[ "x" = "x$RABBITMQ_SERVER_ERL_ARGS" ] && RABBITMQ_SERVER_ERL_ARGS=${SERVER_ERL_ARGS}
[ "x" = "x$RABBITMQ_SERVER_START_ARGS" ] && RABBITMQ_SERVER_START_ARGS=${SERVER_START_ARGS}
[ "x" = "x$RABBITMQ_SERVER_ADDITIONAL_ERL_ARGS" ] && RABBITMQ_SERVER_ADDITIONAL_ERL_ARGS=${SERVER_ADDITIONAL_ERL_ARGS}
[ "x" = "x$RABBITMQ_SERVER_CODE_PATH" ] && RABBITMQ_SERVER_CODE_PATH=${SERVER_CODE_PATH}
[ "x" = "x$RABBITMQ_IGNORE_SIGINT" ] && RABBITMQ_IGNORE_SIGINT="true"
[ "xtrue" = "x$RABBITMQ_IGNORE_SIGINT" ] && RABBITMQ_IGNORE_SIGINT_FLAG="+B i"
Is there any way to set both the parameters or we always need to club them together in single parameter i.e SERVER_ADDITIONAL_ERL_ARGS in case of internode TLS and RABBITMQ_SERVER_ADDITIONAL_ERL_ARGS in case of NON-TLS