Use devstack RABBIT_HOST to point to rabbit, instead of localhost

Otherwise, in a multiple controller devstack deployment, all services
point to localhost, which won't work.

While we're at it I removed oslo_messaging_rabbit rabbit_port, since
rabbit_hosts option overrides the former setting.

Change-Id: Ib3c9b75a24ae9351ac7e6f2b4b748ccd6bcb2236
This commit is contained in:
Miguel Angel Ajo 2016-05-25 09:59:54 -04:00
parent dee7043f2f
commit c599f9b80f
1 changed files with 1 additions and 2 deletions

View File

@ -76,8 +76,7 @@ function octavia_configure {
iniset $OCTAVIA_CONF DEFAULT api_handler queue_producer
iniset $OCTAVIA_CONF oslo_messaging_rabbit rabbit_port 5672
iniset $OCTAVIA_CONF oslo_messaging_rabbit rabbit_hosts localhost:5672
iniset $OCTAVIA_CONF oslo_messaging_rabbit rabbit_hosts ${RABBIT_HOST}:5672
iniset $OCTAVIA_CONF oslo_messaging rpc_thread_pool_size 2
iniset $OCTAVIA_CONF oslo_messaging topic octavia_prov