Merge "Make ironic's service check flexible"

This commit is contained in:
Jenkins 2015-03-26 17:13:41 +00:00 committed by Gerrit Code Review
commit c8944720ef
2 changed files with 6 additions and 4 deletions

View File

@ -181,7 +181,11 @@ function is_deployed_with_ipa_ramdisk {
# install_ironic() - Collect source and prepare
function install_ironic {
# make sure all needed service were enabled
for srv in nova glance key; do
local req_services="mysql rabbit key"
if [[ "$VIRT_DRIVER" == "ironic" ]]; then
req_services+=" nova glance neutron"
fi
for srv in $req_services; do
if ! is_service_enabled "$srv"; then
die $LINENO "$srv should be enabled for Ironic."
fi

View File

@ -54,9 +54,7 @@ function configure_nova_hypervisor {
# install_nova_hypervisor() - Install external components
function install_nova_hypervisor {
if ! is_service_enabled neutron; then
die $LINENO "Neutron should be enabled for usage of the Ironic Nova driver."
elif is_ironic_hardware; then
if is_ironic_hardware; then
return
fi
install_libvirt