Fix HIMN setup

This commit is contained in:
John Hua 2015-07-30 11:59:05 +08:00
parent 2815d1254d
commit be59a64692
5 changed files with 14 additions and 63 deletions

View File

@ -20,3 +20,9 @@ Deployment
./deploy.sh release
./deploy.sh plugin
./deploy.sh #both
./prepare_cluster.sh "eth0" "eth1" 2048 40
./setup_HIMN.sh
Web UI
----------
open http://HOST_OF_FUEL_MASTER:8000/

View File

@ -1,36 +0,0 @@
#!/bin/bash
set -x
guest_name="$1"
fuel_network="$2"
trunk_network="$3"
memory="$4"
disksize="$5"
tname="Other install media"
vm_uuid=$(xe vm-install template="$tname" new-name-label="$guest_name")
localsr=$(xe pool-list params=default-SR minimal=true)
extra_vdi=$(xe vdi-create \
name-label=xvdb \
virtual-size="${disksize}GiB" \
sr-uuid=$localsr type=user)
xe vbd-create vm-uuid=$vm_uuid vdi-uuid=$extra_vdi device=0
xe vm-cd-add vm=$vm_uuid device=1 cd-name="xs-tools.iso"
xe vm-memory-limits-set \
static-min=${memory}MiB \
static-max=${memory}MiB \
dynamic-min=${memory}MiB \
dynamic-max=${memory}MiB \
uuid=$vm_uuid
xe vif-create network-uuid=$(xe network-list name-label="$fuel_network" --minimal) \
vm-uuid=$vm_uuid device=0
xe vif-create network-uuid=$(xe network-list name-label="$trunk_network" --minimal) \
vm-uuid=$vm_uuid device=1
xe vm-param-set uuid=$vm_uuid HVM-boot-params:order=nd
xe vm-start vm=$vm_uuid

View File

@ -1,4 +1,11 @@
VERSION="0.0.3"
FUELMASTER="HOST_OF_FUEL_MASTER"
VIRENV_PATH="../MOS"
FPB_PATH="../fuel-plugins"
FPB_PATH="../fuel-plugins"
XEN_ROOT="root"
XEN_PASSWORD="PASSWORD"
CONTROLLER_NODES="XENSERVER_HOST_1/NODE_NAME_1"
COMPUTE_NODES="XENSERVER_HOST_1/NODE_NAME_2,\
XENSERVER_HOST_2/NODE_NAME_3,\
XENSERVER_HOST_3/NODE_NAME_4"
STORAGE_NODES="XENSERVER_HOST_4/NODE_NAME_5"

View File

@ -1,10 +0,0 @@
#!/bin/bash
./prepare_xs.sh "XenServer-1" "Controller" "fuel_network" "trunk_network" 2048 40
./prepare_xs.sh "XenServer-1" "Compute-1" "fuel_network" "trunk_network" 2048 40
./prepare_xs.sh "XenServer-2" "Compute-2" "fuel_network" "trunk_network" 2048 40
./prepare_xs.sh "XenServer-3" "Compute-3" "fuel_network" "trunk_network" 2048 40
./prepare_xs.sh "XenServer-4" "Compute-Storage" "fuel_network" "trunk_network" 2048 40

View File

@ -1,16 +0,0 @@
#!/bin/bash
set +x
host="$1"
name="$2"
eth0="$3"
eth1="$4"
memory="$5"
disksize="$6"
cmd="~/add_node.sh \"$name\" \"$eth0\" \"$eth1\" $memory $disksize"
scp add_node.sh root@$host:~
ssh root@$host "$cmd"
ssh root@$host "rm ~/add_node -f"