summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAbraham Arce <abraham.arce.moreno@intel.com>2019-01-08 08:08:19 -0600
committerAbraham Arce <abraham.arce.moreno@intel.com>2019-01-21 04:28:02 -0600
commit06248c2f1eebf57d1b51c906b0ca5b3b4c432246 (patch)
tree6684101542079b7b30223d5f920e771f9af968fd
parent09c07804b71b827e7a076c680ecd0f0425d440f9 (diff)
Worker Node Personality Libvirt
Change for Libvirt the "compute" personality to "worker". Story: 2004022 Task: 28799 Depends-On: https://review.openstack.org/#/c/628341 Change-Id: Icba19b252b22765c7f64990fd92af19cb748fd6a Signed-off-by: Abraham Arce <abraham.arce.moreno@intel.com>
Notes
Notes (review): Code-Review+1: Bob Church <robert.church@windriver.com> Code-Review+2: Saul Wold <sgw@linux.intel.com> Code-Review+2: Scott Little <scott.little@windriver.com> Workflow+1: Scott Little <scott.little@windriver.com> Verified+2: Zuul Submitted-by: Zuul Submitted-at: Mon, 28 Jan 2019 22:11:13 +0000 Reviewed-on: https://review.openstack.org/629324 Project: openstack/stx-tools Branch: refs/heads/master
-rw-r--r--deployment/libvirt/README.rst2
-rwxr-xr-xdeployment/libvirt/destroy_configuration.sh10
-rwxr-xr-xdeployment/libvirt/setup_configuration.sh10
-rw-r--r--deployment/libvirt/worker.xml (renamed from deployment/libvirt/compute.xml)0
4 files changed, 11 insertions, 11 deletions
diff --git a/deployment/libvirt/README.rst b/deployment/libvirt/README.rst
index 69f71a1..8d6c860 100644
--- a/deployment/libvirt/README.rst
+++ b/deployment/libvirt/README.rst
@@ -23,7 +23,7 @@ The simplest way to handle this is to keep an rc file that can be sourced into
23an interactive shell that configures everything. Here's an example:: 23an interactive shell that configures everything. Here's an example::
24 24
25 export CONTROLLER=madcloud 25 export CONTROLLER=madcloud
26 export COMPUTE=madnode 26 export WORKER=madnode
27 export BRIDGE_INTERFACE=madbr 27 export BRIDGE_INTERFACE=madbr
28 export EXTERNAL_NETWORK=172.30.20.0/24 28 export EXTERNAL_NETWORK=172.30.20.0/24
29 export EXTERNAL_IP=172.30.20.1/24 29 export EXTERNAL_IP=172.30.20.1/24
diff --git a/deployment/libvirt/destroy_configuration.sh b/deployment/libvirt/destroy_configuration.sh
index 624a1ba..16edd46 100755
--- a/deployment/libvirt/destroy_configuration.sh
+++ b/deployment/libvirt/destroy_configuration.sh
@@ -31,11 +31,11 @@ DOMAIN_DIRECTORY=vms
31destroy_controller ${CONFIGURATION} ${CONTROLLER} 31destroy_controller ${CONFIGURATION} ${CONTROLLER}
32 32
33if ([ "$CONFIGURATION" == "controllerstorage" ] || [ "$CONFIGURATION" == "dedicatedstorage" ]); then 33if ([ "$CONFIGURATION" == "controllerstorage" ] || [ "$CONFIGURATION" == "dedicatedstorage" ]); then
34 COMPUTE=${COMPUTE:-compute} 34 WORKER=${WORKER:-worker}
35 COMPUTE_NODES_NUMBER=${COMPUTE_NODES_NUMBER:-1} 35 WORKER_NODES_NUMBER=${WORKER_NODES_NUMBER:-1}
36 for ((i=0; i<=$COMPUTE_NODES_NUMBER; i++)); do 36 for ((i=0; i<=$WORKER_NODES_NUMBER; i++)); do
37 COMPUTE_NODE=${CONFIGURATION}-${COMPUTE}-${i} 37 WORKER_NODE=${CONFIGURATION}-${WORKER}-${i}
38 destroy_node "compute" $COMPUTE_NODE 38 destroy_node "worker" $WORKER_NODE
39 done 39 done
40fi 40fi
41 41
diff --git a/deployment/libvirt/setup_configuration.sh b/deployment/libvirt/setup_configuration.sh
index a149bce..7c1c1bc 100755
--- a/deployment/libvirt/setup_configuration.sh
+++ b/deployment/libvirt/setup_configuration.sh
@@ -30,8 +30,8 @@ configuration_check ${CONFIGURATION}
30CONFIGURATION=${CONFIGURATION:-simplex} 30CONFIGURATION=${CONFIGURATION:-simplex}
31BRIDGE_INTERFACE=${BRIDGE_INTERFACE:-stxbr} 31BRIDGE_INTERFACE=${BRIDGE_INTERFACE:-stxbr}
32CONTROLLER=${CONTROLLER:-controller} 32CONTROLLER=${CONTROLLER:-controller}
33COMPUTE=${COMPUTE:-compute} 33WORKER=${WORKER:-worker}
34COMPUTE_NODES_NUMBER=${COMPUTE_NODES_NUMBER:-1} 34WORKER_NODES_NUMBER=${WORKER_NODES_NUMBER:-1}
35STORAGE=${STORAGE:-storage} 35STORAGE=${STORAGE:-storage}
36STORAGE_NODES_NUMBER=${STORAGE_NODES_NUMBER:-1} 36STORAGE_NODES_NUMBER=${STORAGE_NODES_NUMBER:-1}
37DOMAIN_DIRECTORY=vms 37DOMAIN_DIRECTORY=vms
@@ -43,9 +43,9 @@ bash ${SCRIPT_DIR}/destroy_configuration.sh -c $CONFIGURATION
43create_controller $CONFIGURATION $CONTROLLER $BRIDGE_INTERFACE $ISOIMAGE 43create_controller $CONFIGURATION $CONTROLLER $BRIDGE_INTERFACE $ISOIMAGE
44 44
45if ([ "$CONFIGURATION" == "controllerstorage" ] || [ "$CONFIGURATION" == "dedicatedstorage" ]); then 45if ([ "$CONFIGURATION" == "controllerstorage" ] || [ "$CONFIGURATION" == "dedicatedstorage" ]); then
46 for ((i=0; i<=$COMPUTE_NODES_NUMBER; i++)); do 46 for ((i=0; i<=$WORKER_NODES_NUMBER; i++)); do
47 COMPUTE_NODE=${CONFIGURATION}-${COMPUTE}-${i} 47 WORKER_NODE=${CONFIGURATION}-${WORKER}-${i}
48 create_node "compute" ${COMPUTE_NODE} ${BRIDGE_INTERFACE} 48 create_node "worker" ${WORKER_NODE} ${BRIDGE_INTERFACE}
49 done 49 done
50fi 50fi
51 51
diff --git a/deployment/libvirt/compute.xml b/deployment/libvirt/worker.xml
index d1f9291..d1f9291 100644
--- a/deployment/libvirt/compute.xml
+++ b/deployment/libvirt/worker.xml