Skip to content

Commit 22ddb27

Browse files
author
John Garbutt
committed
Fix multi-host deployments using RabbitMQ
Currently the rabbit password and rabbit_host are no longer written into nova.conf. This is due to this change: https://review.openstack.org/#/c/6501/ My solution is to write the values if: - they are set - and you are not using the alternative queue system Change-Id: I8de7b57125d1fdf50044fc2b3ae4683ac15d5a61
1 parent 0c28915 commit 22ddb27

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

stack.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1672,11 +1672,11 @@ add_nova_opt "vncserver_proxyclient_address=$VNCSERVER_PROXYCLIENT_ADDRESS"
16721672
add_nova_opt "api_paste_config=$NOVA_CONF_DIR/api-paste.ini"
16731673
add_nova_opt "image_service=nova.image.glance.GlanceImageService"
16741674
add_nova_opt "ec2_dmz_host=$EC2_DMZ_HOST"
1675-
if is_service_enabled rabbit ; then
1675+
if is_service_enabled qpid ; then
1676+
add_nova_opt "rpc_backend=nova.rpc.impl_qpid"
1677+
elif [ -n "$RABBIT_HOST" ] && [ -n "$RABBIT_PASSWORD" ]; then
16761678
add_nova_opt "rabbit_host=$RABBIT_HOST"
16771679
add_nova_opt "rabbit_password=$RABBIT_PASSWORD"
1678-
elif is_service_enabled qpid ; then
1679-
add_nova_opt "rpc_backend=nova.rpc.impl_qpid"
16801680
fi
16811681
add_nova_opt "glance_api_servers=$GLANCE_HOSTPORT"
16821682
add_nova_opt "force_dhcp_release=True"

0 commit comments

Comments
 (0)