Fixing gate failing due to bad AMQP virtual_host

We are currently hitting this error with the gate.
> NOT_ALLOWED - access to vhost 'None' refused for user 'stackrabbit'

This patch fixes this by using the inbuilt devstack construct
to create an appropriate transport_url.

Change-Id: I9aae96094b7bd8bc148ae3e42c118ba160eff8ae
This commit is contained in:
Erik Olof Gunnar Andersson 2018-10-15 15:23:29 -07:00
parent 348ebc90f5
commit 423d186312
1 changed files with 1 additions and 2 deletions

View File

@ -126,8 +126,7 @@ function create_magnum_conf {
rm -f $MAGNUM_CONF
HOSTNAME=`hostname`
iniset $MAGNUM_CONF DEFAULT debug "$ENABLE_DEBUG_LOG_LEVEL"
iniset $MAGNUM_CONF DEFAULT transport_url \
"rabbit://$RABBIT_USERID:$RABBIT_PASSWORD@$RABBIT_HOST"
iniset $MAGNUM_CONF DEFAULT transport_url $(get_transport_url)
iniset $MAGNUM_CONF DEFAULT host "$HOSTNAME"
iniset $MAGNUM_CONF database connection `database_connection_url magnum`