Ignore required_services for multinode topology
Skip required_services check for subnode in multinode environment. Change-Id: I0fa8ea81bbb9ebbc7de86e143d5562fb095ba6c3 Depends-On: I7e4ab0fec79f027302baea7257c9851f34d8be39
This commit is contained in:
parent
d41cf18a4c
commit
38f38fb303
@ -428,16 +428,19 @@ function setup_virtualbmc {
|
|||||||
|
|
||||||
# install_ironic() - Install the things!
|
# install_ironic() - Install the things!
|
||||||
function install_ironic {
|
function install_ironic {
|
||||||
# make sure all needed service were enabled
|
# NOTE(vsaienko) do not check required_services on subnode
|
||||||
local req_services="key"
|
if [[ "$HOST_TOPOLOGY_ROLE" != "subnode" ]]; then
|
||||||
if [[ "$VIRT_DRIVER" == "ironic" ]]; then
|
# make sure all needed service were enabled
|
||||||
req_services+=" nova glance neutron"
|
local req_services="key"
|
||||||
fi
|
if [[ "$VIRT_DRIVER" == "ironic" ]]; then
|
||||||
for srv in $req_services; do
|
req_services+=" nova glance neutron"
|
||||||
if ! is_service_enabled "$srv"; then
|
|
||||||
die $LINENO "$srv should be enabled for Ironic."
|
|
||||||
fi
|
fi
|
||||||
done
|
for srv in $req_services; do
|
||||||
|
if ! is_service_enabled "$srv"; then
|
||||||
|
die $LINENO "$srv should be enabled for Ironic."
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
fi
|
||||||
|
|
||||||
if use_library_from_git "ironic-lib"; then
|
if use_library_from_git "ironic-lib"; then
|
||||||
git_clone_by_name "ironic-lib"
|
git_clone_by_name "ironic-lib"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user