@@ -94,6 +94,12 @@ if [[ ! ${DISTRO} =~ (oneiric|precise|quantal|f16) ]]; then
9494 fi
9595fi
9696
97+ if [ " ${DISTRO} " = " oneiric" ] && is_service_enabled qpid ; then
98+ # Qpid was introduced in precise
99+ echo " You must use Ubuntu Precise or newer for Qpid support."
100+ exit 1
101+ fi
102+
97103# Set the paths of certain binaries
98104if [[ " $os_PACKAGE " = " deb" ]]; then
99105 NOVA_ROOTWRAP=/usr/local/bin/nova-rootwrap
@@ -381,8 +387,8 @@ FLAT_INTERFACE=${FLAT_INTERFACE:-$GUEST_INTERFACE_DEFAULT}
381387# host.
382388
383389
384- # MySQL & RabbitMQ
385- # ----------------
390+ # MySQL & ( RabbitMQ or Qpid)
391+ # --------------------------
386392
387393# We configure Nova, Horizon, Glance and Keystone to use MySQL as their
388394# database server. While they share a single server, each has their own
@@ -400,8 +406,10 @@ read_password MYSQL_PASSWORD "ENTER A PASSWORD TO USE FOR MYSQL."
400406BASE_SQL_CONN=${BASE_SQL_CONN:- mysql:// $MYSQL_USER : $MYSQL_PASSWORD @ $MYSQL_HOST }
401407
402408# Rabbit connection info
403- RABBIT_HOST=${RABBIT_HOST:- localhost}
404- read_password RABBIT_PASSWORD " ENTER A PASSWORD TO USE FOR RABBIT."
409+ if is_service_enabled rabbit; then
410+ RABBIT_HOST=${RABBIT_HOST:- localhost}
411+ read_password RABBIT_PASSWORD " ENTER A PASSWORD TO USE FOR RABBIT."
412+ fi
405413
406414# Glance connection info. Note the port must be specified.
407415GLANCE_HOSTPORT=${GLANCE_HOSTPORT:- $SERVICE_HOST : 9292}
756764fi
757765
758766
759- # Rabbit
760- # ------
767+ # Rabbit or Qpid
768+ # --------------
761769
762770if is_service_enabled rabbit; then
763771 # Install and start rabbitmq-server
@@ -772,6 +780,13 @@ if is_service_enabled rabbit; then
772780 fi
773781 # change the rabbit password since the default is "guest"
774782 sudo rabbitmqctl change_password guest $RABBIT_PASSWORD
783+ elif is_service_enabled qpid; then
784+ if [[ " $os_PACKAGE " = " rpm" ]]; then
785+ install_package qpid-cpp-server
786+ restart_service qpidd
787+ else
788+ install_package qpidd
789+ fi
775790fi
776791
777792
@@ -1653,8 +1668,12 @@ add_nova_opt "vncserver_proxyclient_address=$VNCSERVER_PROXYCLIENT_ADDRESS"
16531668add_nova_opt " api_paste_config=$NOVA_CONF_DIR /api-paste.ini"
16541669add_nova_opt " image_service=nova.image.glance.GlanceImageService"
16551670add_nova_opt " ec2_dmz_host=$EC2_DMZ_HOST "
1656- add_nova_opt " rabbit_host=$RABBIT_HOST "
1657- add_nova_opt " rabbit_password=$RABBIT_PASSWORD "
1671+ if is_service_enabled rabbit ; then
1672+ add_nova_opt " rabbit_host=$RABBIT_HOST "
1673+ add_nova_opt " rabbit_password=$RABBIT_PASSWORD "
1674+ elif is_service_enabled qpid ; then
1675+ add_nova_opt " rpc_backend=nova.rpc.impl_qpid"
1676+ fi
16581677add_nova_opt " glance_api_servers=$GLANCE_HOSTPORT "
16591678add_nova_opt " force_dhcp_release=True"
16601679if [ -n " $INSTANCES_PATH " ]; then
0 commit comments