Merge "scope warnings to only display if the services are enabled"

This commit is contained in:
Jenkins 2014-08-28 22:04:10 +00:00 committed by Gerrit Code Review
commit 78d7c60aea

View File

@ -1423,8 +1423,9 @@ if [[ -n "$DEPRECATED_TEXT" ]]; then
echo_summary "WARNING: $DEPRECATED_TEXT" echo_summary "WARNING: $DEPRECATED_TEXT"
fi fi
# TODO(dtroyer): Remove Q_AGENT_EXTRA_AGENT_OPTS after stable/juno branch is cut if is_service_enabled neutron; then
if [[ -n "$Q_AGENT_EXTRA_AGENT_OPTS" ]]; then # TODO(dtroyer): Remove Q_AGENT_EXTRA_AGENT_OPTS after stable/juno branch is cut
if [[ -n "$Q_AGENT_EXTRA_AGENT_OPTS" ]]; then
echo "" echo ""
echo_summary "WARNING: Q_AGENT_EXTRA_AGENT_OPTS is used" echo_summary "WARNING: Q_AGENT_EXTRA_AGENT_OPTS is used"
echo "You are using Q_AGENT_EXTRA_AGENT_OPTS to pass configuration into $NEUTRON_CONF." echo "You are using Q_AGENT_EXTRA_AGENT_OPTS to pass configuration into $NEUTRON_CONF."
@ -1438,10 +1439,10 @@ if [[ -n "$Q_AGENT_EXTRA_AGENT_OPTS" ]]; then
# Replace the first '=' with ' ' for iniset syntax # Replace the first '=' with ' ' for iniset syntax
echo ${I} echo ${I}
done done
fi fi
# TODO(dtroyer): Remove Q_AGENT_EXTRA_SRV_OPTS after stable/juno branch is cut # TODO(dtroyer): Remove Q_AGENT_EXTRA_SRV_OPTS after stable/juno branch is cut
if [[ -n "$Q_AGENT_EXTRA_SRV_OPTS" ]]; then if [[ -n "$Q_AGENT_EXTRA_SRV_OPTS" ]]; then
echo "" echo ""
echo_summary "WARNING: Q_AGENT_EXTRA_SRV_OPTS is used" echo_summary "WARNING: Q_AGENT_EXTRA_SRV_OPTS is used"
echo "You are using Q_AGENT_EXTRA_SRV_OPTS to pass configuration into $NEUTRON_CONF." echo "You are using Q_AGENT_EXTRA_SRV_OPTS to pass configuration into $NEUTRON_CONF."
@ -1455,10 +1456,12 @@ if [[ -n "$Q_AGENT_EXTRA_SRV_OPTS" ]]; then
# Replace the first '=' with ' ' for iniset syntax # Replace the first '=' with ' ' for iniset syntax
echo ${I} echo ${I}
done done
fi
fi fi
# TODO(dtroyer): Remove CINDER_MULTI_LVM_BACKEND after stable/juno branch is cut if is_service_enabled cinder; then
if [[ "$CINDER_MULTI_LVM_BACKEND" = "True" ]]; then # TODO(dtroyer): Remove CINDER_MULTI_LVM_BACKEND after stable/juno branch is cut
if [[ "$CINDER_MULTI_LVM_BACKEND" = "True" ]]; then
echo "" echo ""
echo_summary "WARNING: CINDER_MULTI_LVM_BACKEND is used" echo_summary "WARNING: CINDER_MULTI_LVM_BACKEND is used"
echo "You are using CINDER_MULTI_LVM_BACKEND to configure Cinder's multiple LVM backends" echo "You are using CINDER_MULTI_LVM_BACKEND to configure Cinder's multiple LVM backends"
@ -1468,6 +1471,7 @@ if [[ "$CINDER_MULTI_LVM_BACKEND" = "True" ]]; then
[[local|localrc]] [[local|localrc]]
CINDER_ENABLED_BACKENDS=lvm:lvmdriver-1,lvm:lvmdriver-2 CINDER_ENABLED_BACKENDS=lvm:lvmdriver-1,lvm:lvmdriver-2
" "
fi
fi fi
# Indicate how long this took to run (bash maintained variable ``SECONDS``) # Indicate how long this took to run (bash maintained variable ``SECONDS``)