Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
openstack-build-ubuntu
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
David Johnson
openstack-build-ubuntu
Commits
a814e07f
Commit
a814e07f
authored
May 04, 2016
by
David Johnson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use /dev/sda4 (if possible) for Nova VM backing store on compute nodes.
parent
4f5ccc6c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
0 deletions
+24
-0
setup-compute.sh
setup-compute.sh
+20
-0
setup-lib.sh
setup-lib.sh
+4
-0
No files found.
setup-compute.sh
View file @
a814e07f
...
@@ -41,6 +41,26 @@ fi
...
@@ -41,6 +41,26 @@ fi
maybe_install_packages nova-compute sysfsutils
maybe_install_packages nova-compute sysfsutils
maybe_install_packages libguestfs-tools libguestfs0 python-guestfs
maybe_install_packages libguestfs-tools libguestfs0 python-guestfs
#
# Once we install packages, if the user wants a bigger VM disk space
# area, we make that and copy anything in /var/lib/nova into it (which
# may include stuff that was just installed). Then we bind mount it to
# /var/lib/nova .
#
if
[
"
$COMPUTE_EXTRA_NOVA_DISK_SPACE
"
=
"1"
]
;
then
mkdir
-p
/mnt/var-lib-nova
/usr/local/etc/emulab/mkextrafs.pl
-r
sda
-s
4 /mnt/var-lib-nova
if
[
$?
=
0
]
;
then
chown
nova:nova /mnt/var-lib-nova
rsync
-avz
/var/lib/nova/ /mnt/var-lib-nova/
mount
-o
bind
/mnt/var-lib-nova /var/lib/nova
echo
"/mnt/var-lib-nova /var/lib/nova none defaults,bind 0 0"
\
>>
/etc/fstab
else
echo
"*** ERROR: could not make larger Nova /var/lib/nova dir!"
fi
fi
crudini
--set
/etc/nova/nova.conf DEFAULT rpc_backend rabbit
crudini
--set
/etc/nova/nova.conf DEFAULT rpc_backend rabbit
crudini
--set
/etc/nova/nova.conf DEFAULT auth_strategy keystone
crudini
--set
/etc/nova/nova.conf DEFAULT auth_strategy keystone
crudini
--set
/etc/nova/nova.conf DEFAULT my_ip
${
MGMTIP
}
crudini
--set
/etc/nova/nova.conf DEFAULT my_ip
${
MGMTIP
}
...
...
setup-lib.sh
View file @
a814e07f
...
@@ -65,6 +65,10 @@ QUOTASOFF=1
...
@@ -65,6 +65,10 @@ QUOTASOFF=1
KEYSTONEUSEMEMCACHE
=
0
KEYSTONEUSEMEMCACHE
=
0
# Off by default for Juno; on for Kilo and on by default.
# Off by default for Juno; on for Kilo and on by default.
KEYSTONEUSEWSGI
=
""
KEYSTONEUSEWSGI
=
""
# On by default; users will have to take full disk images of the
# compute nodes if they have this enabled.
COMPUTE_EXTRA_NOVA_DISK_SPACE
=
"1"
#
#
# We have an 'adminapi' user that gets a random password. Then, we have
# We have an 'adminapi' user that gets a random password. Then, we have
# the dashboard and instance password, that comes in from geni-lib/rspec as a
# the dashboard and instance password, that comes in from geni-lib/rspec as a
...
...
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