From 8498487e552880d8630b5ce3a2d2d4c641e664cd Mon Sep 17 00:00:00 2001 From: armando-migliaccio Date: Tue, 11 Jun 2013 13:50:59 -0700 Subject: [PATCH] Install agent packages when running agents like DHCP or L3 This is because these agents rely on quantum agent packages as much as the L2 agent. Fixes bug #1190050 Change-Id: I8b0c5667f86b22e3727a316f7bb0500d0d0ba637 --- lib/quantum | 11 ++++++++--- stack.sh | 2 +- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/lib/quantum b/lib/quantum index 1a826f8545..122a2cdbe3 100644 --- a/lib/quantum +++ b/lib/quantum @@ -362,8 +362,14 @@ function install_quantumclient() { # install_quantum_agent_packages() - Collect source and prepare function install_quantum_agent_packages() { - # install packages that is specific to plugin agent - quantum_plugin_install_agent_packages + # install packages that are specific to plugin agent(s) + if is_service_enabled q-agt q-dhcp q-l3; then + quantum_plugin_install_agent_packages + fi + + if is_service_enabled q-lbaas; then + quantum_agent_lbaas_install_agent_packages + fi } # Start running processes, including screen @@ -548,7 +554,6 @@ function _configure_quantum_metadata_agent() { } function _configure_quantum_lbaas() { - quantum_agent_lbaas_install_agent_packages quantum_agent_lbaas_configure_common quantum_agent_lbaas_configure_agent } diff --git a/stack.sh b/stack.sh index 24a3d5f32c..4089531710 100755 --- a/stack.sh +++ b/stack.sh @@ -584,7 +584,7 @@ if is_service_enabled $DATABASE_BACKENDS; then install_database fi -if is_service_enabled q-agt; then +if is_service_enabled quantum; then install_quantum_agent_packages fi