aboutsummaryrefslogtreecommitdiffstats
path: root/mcp/scripts
diff options
context:
space:
mode:
authorMichael Polenchuk <mpolenchuk@mirantis.com>2017-07-13 16:35:25 +0400
committerMichael Polenchuk <mpolenchuk@mirantis.com>2017-07-13 16:43:55 +0400
commit08e52d4ee0e5ecb6caf033a9ecfbb762c98d400e (patch)
tree35c04f2088c8521b647998d07f11a62baa277605 /mcp/scripts
parentd676c91a67684a7efb317d58429c49db7c562473 (diff)
Tune network sysctl options
* tune net/tcp opts * handle vcpus setting for vms * fix tempest issue with public subnets visible * set reclass data source to local to avoid git clone Change-Id: Ibac9eba8234ebb20854c03b399405968cb2069e8 Signed-off-by: Michael Polenchuk <mpolenchuk@mirantis.com>
Diffstat (limited to 'mcp/scripts')
-rw-r--r--mcp/scripts/lib.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/mcp/scripts/lib.sh b/mcp/scripts/lib.sh
index b3abd21c7..fb3fc990b 100644
--- a/mcp/scripts/lib.sh
+++ b/mcp/scripts/lib.sh
@@ -54,10 +54,11 @@ create_networks() {
create_vms() {
local -n vnodes=$1
local -n vnodes_ram=$2
+ local -n vnodes_vcpus=$3
# create vms with specified options
for node in "${vnodes[@]}"; do
- virt-install --name ${node} --ram ${vnodes_ram[$node]} --vcpus=2 --cpu host --accelerate \
+ virt-install --name ${node} --ram ${vnodes_ram[$node]} --vcpus ${vnodes_vcpus[$node]} --cpu host --accelerate \
--network network:pxe,model=virtio \
--network network:mgmt,model=virtio \
--network network:internal,model=virtio \