<div dir="ltr">You would know all this at install time as that's when this would be determined. If that information is not available to you currently, you can look at some other service's config files I suppose. You'll need enough rabbit creds to create a Congress rabbit user unless you are just going to re-use another service's info. Rabbit itself does have an API to pull users/etc but you'd need to know the URL and port to even get that far.<div><br></div><div>An analogy here is "how do I set the mysql info", well you'd to decide that and know it during service install. You wouldn't have a way afterwards to ask mysql what the person who installed it was thinking.</div><div><br></div><div>Hope that makes sense.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Feb 6, 2017 at 2:40 PM, Aimee Ukasick <span dir="ltr"><<a href="mailto:aimeeu.opensource@gmail.com" target="_blank">aimeeu.opensource@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
Hi everyone - I'm relatively new to OpenStac and am working on a bash<br>
script to install OpenStack Congress. I'm having trouble finding CLI or<br>
API commands to determine the Rabbit userID, password, host, and port<br>
from a running OpenStack installation so I can configure the Rabbit<br>
transport_url in the Congress configuration file.<br>
<br>
transport_url = rabbit://$RABBIT_USERID:$<wbr>RABBIT_PASSWORD@$RABBIT_HOST:<wbr>5672<br>
<br>
<br>
Is there a CLI or API call to determine the Rabbit userID, password,<br>
host, and port? I don't have any details about how OpenStack has been<br>
installed - it may have been by an OPNFV Installer, an OpenStack<br>
installer, or some other way. The OpenStack installation may have<br>
multiple controllers. I am looking for an installer-agnostic means of<br>
determining: 1) where Rabbit is installed and running as a service<br>
(rabbit_host); and 2) how to obtain the rabbit UserID and password so I<br>
can configure the transport_url.<br>
<br>
I really don't want to resort to pulling the transport URL out of<br>
another service's conf file (nova.conf, keystone.conf, etc).<br>
<br>
There is a rabbitmqctl<br>
<a href="https://www.rabbitmq.com/man/rabbitmqctl.1.man.html" rel="noreferrer" target="_blank">https://www.rabbitmq.com/man/<wbr>rabbitmqctl.1.man.html</a>  but that doesn't<br>
have the commands for finding userID, password, host, and port.<br>
<br>
Any ideas or other places I should look/ask for help is greatly<br>
appreciated. I've already posted to openstack-dev.<br>
<br>
Thanks!<br>
<br>
<br>
<br>
----------------<br>
Aimee Ukasick<br>
<br>
<br>
______________________________<wbr>_________________<br>
OpenStack-operators mailing list<br>
<a href="mailto:OpenStack-operators@lists.openstack.org">OpenStack-operators@lists.<wbr>openstack.org</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-operators" rel="noreferrer" target="_blank">http://lists.openstack.org/<wbr>cgi-bin/mailman/listinfo/<wbr>openstack-operators</a><br>
</blockquote></div><br></div>