libvirt: include worker nodes in duplex configuration
Duplex configuration may include worker nodes, as described in "Deployment Configurations" page of Starlingx docs. Allow the setup_configuration.sh and destroy_configuration.sh to include worker nodes. Test Plan: PASS setup/destroy configurations Story: 2010816 Task: 49219 Change-Id: I276002255f42ca68228d179777e717fc84ea2e9a Signed-off-by: Michel Thebeau <michel.thebeau@windriver.com>
This commit is contained in:
parent
4079553a32
commit
3eb7e6467e
@ -34,7 +34,8 @@ fi
|
|||||||
configuration_check ${CONFIGURATION}
|
configuration_check ${CONFIGURATION}
|
||||||
destroy_controller ${CONFIGURATION} ${CONTROLLER}
|
destroy_controller ${CONFIGURATION} ${CONTROLLER}
|
||||||
|
|
||||||
if ([ "$CONFIGURATION" == "controllerstorage" ] || [ "$CONFIGURATION" == "dedicatedstorage" ]); then
|
WORK_CFGS="duplex controllerstorage dedicatedstorage"
|
||||||
|
if [[ " $WORK_CFGS " == *" $CONFIGURATION "* ]]; then
|
||||||
for ((i=0; i<=$WORKER_NODES_NUMBER; i++)); do
|
for ((i=0; i<=$WORKER_NODES_NUMBER; i++)); do
|
||||||
destroy_node "worker" ${i} ${CONFIGURATION}
|
destroy_node "worker" ${i} ${CONFIGURATION}
|
||||||
done
|
done
|
||||||
|
@ -45,7 +45,8 @@ if [ $? -ne 0 ]; then
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if ([ "$CONFIGURATION" == "controllerstorage" ] || [ "$CONFIGURATION" == "dedicatedstorage" ]); then
|
WORK_CFGS="duplex controllerstorage dedicatedstorage"
|
||||||
|
if [[ " $WORK_CFGS " == *" $CONFIGURATION "* ]]; then
|
||||||
for ((i=0; i<=$WORKER_NODES_NUMBER; i++)); do
|
for ((i=0; i<=$WORKER_NODES_NUMBER; i++)); do
|
||||||
create_node "worker" ${i} ${CONFIGURATION} ${BRIDGE_INTERFACE}
|
create_node "worker" ${i} ${CONFIGURATION} ${BRIDGE_INTERFACE}
|
||||||
if [ $? -ne 0 ]; then
|
if [ $? -ne 0 ]; then
|
||||||
|
Loading…
Reference in New Issue
Block a user