Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
SNAPS
apex
Commits
ea1ad48c
Commit
ea1ad48c
authored
Aug 23, 2016
by
Dan Radez
Committed by
Gerrit Code Review
Aug 23, 2016
Browse files
Merge "correcting the virtual baremetal defaults"
parents
5805f11f
9c776d55
Changes
3
Hide whitespace changes
Inline
Side-by-side
ci/deploy.sh
View file @
ea1ad48c
...
...
@@ -45,7 +45,7 @@ OPNFV_NETWORK_TYPES="admin_network private_network public_network storage_networ
VM_CPUS
=
4
VM_RAM
=
8
VM_COMPUTES
=
2
VM_COMPUTES
=
1
# Netmap used to map networks to OVS bridge names
NET_MAP[
'admin_network'
]=
"br-admin"
...
...
lib/overcloud-deploy-functions.sh
View file @
ea1ad48c
...
...
@@ -180,7 +180,7 @@ EOI
DEPLOY_OPTIONS+
=
" -e /usr/share/openstack-tripleo-heat-templates/environments/storage-environment.yaml"
# scale compute nodes according to inventory
total_nodes
=
$(
ssh
-T
${
SSH_OPTIONS
[@]
}
"root@
$UNDERCLOUD
"
"
cat
/home/stack/instackenv.json
| grep -c memory
"
)
total_nodes
=
$(
ssh
-T
${
SSH_OPTIONS
[@]
}
"root@
$UNDERCLOUD
"
"
grep -c memory
/home/stack/instackenv.json"
)
# check if HA is enabled
if
[[
"
$ha_enabled
"
==
"True"
]]
;
then
...
...
lib/virtual-setup-functions.sh
View file @
ea1ad48c
...
...
@@ -30,19 +30,19 @@ EOF
# next create the virtual machines and add their definitions to the file
if
[
"
$ha_enabled
"
==
"False"
]
;
then
# 1 controller + computes
# zero based so just pass compute count
vm_index
=
$VM_COMPUTES
controller_index
=
0
else
controller_index
=
2
# 3 controller + computes
# zero based so add 2 to compute count
vm_index
=
$((
2
+
$VM_COMPUTES
))
if
[
$VM_COMPUTES
-lt
2
]
;
then
VM_COMPUTES
=
2
fi
fi
for
i
in
$(
seq
0
$
vm_index
)
;
do
if
[
"
$VM_COMPUTES
"
-gt
0
]
;
then
for
i
in
$(
seq
0
$
((
$controller_index
+
$VM_COMPUTES
))
)
;
do
if
[
$i
-gt
$controller_index
]
;
then
capability
=
"profile:compute"
VM_COMPUTES
=
$((
VM_COMPUTES
-
1
))
else
capability
=
"profile:control"
if
[[
"
${
deploy_options_array
[
'sdn_controller'
]
}
"
==
'opendaylight'
&&
"
$ramsize
"
-lt
10240
]]
;
then
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment