tools/deployment/libvirt/destroy_standard_controller.sh
Abraham Arce 1b534e77b0 [Doc] Compute Identity Nodes Common Code +
Compute identity nodes are required for Standard Controller configuration
setups. Move their creation and removal functions to common file:

  - create_compute
  - destroy_compute

Allow also to specify the number of Compute nodes to be created.

Change-Id: I5d687b4daf16745758c65ed0d44eec5307e0f7f4
Signed-off-by: Abraham Arce <abraham.arce.moreno@intel.com>
2018-11-20 08:54:09 -06:00

19 lines
460 B
Bash
Executable File

#!/usr/bin/env bash
SCRIPT_DIR="$(dirname "$(readlink -f "${BASH_SOURCE[0]}" )" )"
source ${SCRIPT_DIR}/functions.sh
CONFIGURATION="standardcontroller"
CONTROLLER=${CONTROLLER:-controller}
COMPUTE=${COMPUTE:-compute}
COMPUTE_NODES_NUMBER=${COMPUTE_NODES_NUMBER:-1}
DOMAIN_DIRECTORY=vms
destroy_controller ${CONFIGURATION} ${CONTROLLER}
for ((i=0; i<=$COMPUTE_NODES_NUMBER; i++)); do
COMPUTE_NODE=${COMPUTE}-${i}
destroy_compute $COMPUTE_NODE
done