Scott Moser
df47967da4
fix STACK_DIR variable
2011-10-12 20:15:50 -04:00
Scott Moser
102e440e2b
fix bad usage of 'su'. instead use 'set -e'.
...
I had had tried to use -e argument to su, thinking that it would
go through to sh, but it does not. instead, just use 'set -e'
2011-10-12 20:00:34 -04:00
Anthony Young
b4db225494
No need to check localrc for password. Also use TOP_DIR as described by smoser.
2011-10-12 14:08:08 -07:00
Scott Moser
f9da508122
move setting variables and run-as-stack-user code
...
Change the over all flow so that the default settings are
filled in in the outside shell (not inside the '()' and 'tee').
This way, those variables pass through to the subshell, but they're
also available in the parent shell at the end for outputting status.
Also, exit failure rather than success if 'exec' to run as stack
user failed.
2011-10-12 08:52:09 -04:00
Scott Moser
8ab1ade42e
instead of 'newgrp' and a pipe, use 'sg'
...
sg and newgrp basically do the same thing, but sg takes a command to
execute rather than just executing sh. This just seems cleaner.
2011-10-12 08:52:09 -04:00
Scott Moser
b94f4bf35b
move 'how to use cloud' info outside of xtrace
...
make the successful run output end with more clear messages.
By moving them outside of the "do it all" path, the xtrace output
will not mix with echo statements.
2011-10-12 08:52:09 -04:00
Scott Moser
d67a18bb07
make sure apt-get update is run
...
Previously, the only path that would only ensure that 'apt-get update'
was run was when the stack user was created.
Archives can be out of date, apt-get should be run.
2011-10-12 08:52:09 -04:00
Scott Moser
0d2145a0f3
some improvements to 'create stack user' path
...
* Increase the timeout from 3 to 10, so user has a bigger chance
to kill the script if being run interactively before a 'stack'
user is created.
* explicitly ask 'getent' for the stack user rather than getting
all users and grepping (which would match an "openstack" user,
or a user named "bob.stack")
* use $PWD rather than `pwd`
* create file in sudoers.d rather than modifying /etc/sudoers.
2011-10-12 08:52:09 -04:00
Scott Moser
7c481189bd
log output of stack.sh to logfile in current dir
...
use the variable LOGFILE to log stack.sh output for debugging
2011-10-12 08:41:17 -04:00
Scott Moser
c4e47ab858
simplify script duration output
...
Bash contains a variable 'SECONDS' that indicates how long
the current shell has been alive. It seems sane to just use that
to indicate to the user how long the script took.
2011-10-12 08:39:44 -04:00
Anthony Young
66b8bbcbd8
update msg
2011-10-12 07:21:41 +00:00
Anthony Young
6015c82a2b
use hard path to localrc
2011-10-12 07:17:11 +00:00
Anthony Young
7a549f40f5
Prompt users for passwords, and write those passwords to localrc
2011-10-12 07:13:13 +00:00
Dean Troyer
9a60bfac1e
Cleanups
2011-10-11 20:34:07 -05:00
Dean Troyer
274ec1022e
Add build_usb_boot.sh
2011-10-11 20:32:07 -05:00
Dean Troyer
dd6636be06
Cleanup PXE boot config
2011-10-11 20:28:39 -05:00
Dean Troyer
8f851e716e
Create run.sh
2011-10-11 20:22:23 -05:00
Dean Troyer
f6fd4dcf2e
Check out devstack by default
2011-10-11 20:03:05 -05:00
Dean Troyer
5611951aef
Move utility scripts to tools/
2011-10-11 19:45:58 -05:00
Dean Troyer
336e0001a6
Merge remote-tracking branch 'upstream/master' into rcb-master
2011-10-11 17:57:16 -05:00
Dean Troyer
66e2aa2c73
Create RCB master branch
2011-10-11 17:57:01 -05:00
Anthony Young
94c889ac15
make glance client work in exercise.sh
2011-10-11 18:07:48 +00:00
Jesse Andrews
65bb9a9345
Merge pull request #51 from jeblair/master
...
Add option not to run bash after execing stack.sh
2011-10-10 13:35:22 -07:00
James E. Blair
74c084cd1c
Add option not to run bash after execing stack.sh
...
If stack.sh is run as root, it execs stack.sh as stack, but also
runs bash after doing so to provide a prompt as the stack user.
In unattended installations this isn't desired as it will prevent
the original job from completing.
This change adds a paremeter "SHELL_AFTER_RUN" which can be set
to "no" to prevent the final invocation of bash.
2011-10-10 08:06:14 -05:00
Jesse Andrews
461bfdc89f
delete instances needs sudo
2011-10-09 17:50:38 -07:00
Jesse Andrews
e4304238c2
only mount cgroups if you haven't already
2011-10-07 10:34:32 -04:00
Anthony Young
0edde7d44f
use tenantName for NOVA_PROJECT_ID
2011-10-06 07:10:24 -07:00
Anthony Young
1c598da608
call novnc with flagfile
2011-10-05 08:07:53 -07:00
Anthony Young
f2aee71a2a
use 10 bytes for dash password, as the UI truncates at 20 characters
2011-10-04 13:32:45 -07:00
Anthony Young
06b7ad7c05
don't require uuidgen, as it isn't always in sparse natty installs
2011-10-04 13:30:19 -07:00
Jesse Andrews
0031df019d
spacing fixes
2011-10-03 23:10:55 -04:00
Jesse Andrews
4b16984f35
jesse sucks
2011-10-03 22:53:45 -04:00
Jesse Andrews
2abbdd4751
fix comparisons
2011-10-03 22:48:30 -04:00
Jesse Andrews
0700211f90
devin sucks
2011-10-03 23:44:33 -03:00
Jesse Andrews
647de9d3e3
Merge pull request #47 from dtroyer/master
...
Updates to build_nfs.sh and build_pxe_ramdisk.sh for common functions
2011-10-03 19:31:42 -07:00
Jesse Andrews
f8ebcec063
Merge pull request #44 from devcamcar/patch-1
...
Target Dashboard to diablo branch
2011-10-03 19:30:50 -07:00
Dean Troyer
d4a3bac8d5
Move cache dir to /var/cache/devstack
2011-10-03 21:27:13 -05:00
Dean Troyer
c0a6739f7e
Fix two typos
2011-10-03 21:03:03 -05:00
Dean Troyer
cf9db8da33
Configure network for DHCP
2011-10-03 14:59:57 -05:00
Dean Troyer
3508a3a926
Move PXE cache to /root/pxe
2011-10-03 11:43:28 -05:00
Dean Troyer
10db445b32
Move ramdisk images to CHROOTCACHEDIR
2011-10-03 11:28:05 -05:00
Dean Troyer
a3379e0eb1
Default USE_CURRENT_DEVSTACK to 1
2011-10-03 11:14:13 -05:00
Dean Troyer
6994f94789
Missed a save
2011-10-03 11:03:27 -05:00
Dean Troyer
03412c8cb9
Copy devstack into image
2011-10-03 09:56:41 -05:00
Dean Troyer
11e5e6fc3d
use for /opt/stack
2011-10-03 09:40:32 -05:00
Dean Troyer
cc80654450
build_nfs.sh match build_pxe_ramdisk.sh
2011-10-03 09:30:57 -05:00
Dean Troyer
4cbb267679
Move chroot cache dirs out of devstack dir
2011-10-03 09:14:36 -05:00
Jesse Andrews
5372f43387
update readmes
2011-10-03 01:08:24 -04:00
Jesse Andrews
85d9be3a79
document images upload
2011-10-03 00:01:28 -04:00
Devin Carlen
bfc7bdacae
Target Dashboard to diablo branch
2011-10-02 20:44:39 -07:00