Révision 53 trunk/shell/configuration-delete-compute-nodes

configuration-delete-compute-nodes (revision 53)
1
#! /bin/bash -x
1
#! /bin/bash 
2 2
#
3 3
# ST - 2012-07-04
4 4
#
......
15 15
#
16 16
CONFIGURATIONS=`ls $SCRIPT_PATH/$CONST_CONFIGURATIONS_DIR`
17 17
CONFIGURATIONS_STRING="{"
18
echo $CONFIGURATIONS
19 18
for i in $CONFIGURATIONS ; do
20 19
  CONFIGURATIONS_STRING="$CONFIGURATIONS_STRING$i|"
21 20
done
......
79 78
  #
80 79
  CURRENT_HOST_NAME=${COMPUTE_NODE_NAME_PREFIX}${COMPUTE_NODE_INDEX_STRING}
81 80
  #
81
  echo "Deleting $CURRENT_HOST_NAME..."
82
  #
82 83
  # If the compute node is running, stop it.
83 84
  #
84 85
  IS_RUNNING=`xm list | grep $CURRENT_HOST_NAME`
......
92 93
      IS_RUNNING=`xm list | grep $CURRENT_HOST_NAME`
93 94
      sleep 1
94 95
    done # End while
96
  sleep 1  # Extra delay after VM is stopped.
95 97
  fi # End compute node is running.
96 98
  #
97 99
  # If necessary, delete the VM system disk.

Formats disponibles : Unified diff