Jesse Andrews
aa8bb244be
rearrange order of setup.py develop as novaclient is needed by nova in essex
2011-10-16 12:24:11 -07:00
Jesse Andrews
b1304f2d35
if RECLONE is set, reclone the directories
2011-10-16 12:18:50 -07:00
Anthony Young
7a8989e971
fix doc
2011-10-14 10:20:30 -07:00
Anthony Young
120f4860cd
allow multiple images
2011-10-14 09:31:09 -07:00
Anthony Young
93947e59be
improve docs
2011-10-13 23:07:56 -07:00
Anthony Young
0ab1d46e05
Allow user to download and install arbitrary images
2011-10-13 23:03:23 -07:00
Anthony Young
696b6a3aae
Merge remote-tracking branch 'origin/master' into image_config
2011-10-13 22:20:24 -07:00
Anthony Young
f2b5f8856f
starting work to extract image configuration so it isn't hard coded
2011-10-13 16:44:42 -07:00
Anthony Young
cf145b77e4
merge trunk, and also make sure localrc exists before running build_lxc.sh
2011-10-13 15:07:36 -07:00
Anthony Young
f8dfba1c73
Merge remote-tracking branch 'origin/master' into password_prompt
2011-10-13 11:45:07 -07:00
Jesse Andrews
2e536a3faf
add some docs
2011-10-13 11:40:16 -07:00
Chmouel Boudjnah
d5d5b680f8
Set sensible default for mysql client
...
Using $HOME/.my.cnf to make easier for user to connect to mysql client.
2011-10-13 18:45:42 +01:00
Scott Moser
4bec581e4e
add includedir entry to sudoers if its not there
2011-10-12 20:32:16 -04:00
Scott Moser
55c9d3f13d
fix writing of 50_stack_sh in sudoers
2011-10-12 20:19:46 -04:00
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
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
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
2abbdd4751
fix comparisons
2011-10-03 22:48:30 -04: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
Jesse Andrews
08e8b74588
add uec-natty
2011-10-02 23:42:56 -04:00
Jesse Andrews
a5e5f2a680
attempt to get the id from glance redux
2011-10-02 21:07:08 -04:00
Andy Smith
2ff3f59e5b
TODO: fix parsing of glance results
2011-10-02 21:05:01 -03:00
Jesse Andrews
014e9130db
fix grabbing kernel/ramdisk
2011-10-02 19:23:22 -04:00
Jesse Andrews
644b8e831c
more documentation and attempt to fix glance add
2011-10-02 17:50:41 -04:00
Jesse Andrews
cbe98d5663
more documentation
2011-10-02 17:47:32 -04:00
Jesse Andrews
782b99176c
update docs
2011-10-02 16:53:21 -04:00
Jesse Andrews
0e7e897b48
simple docs
2011-10-02 16:36:54 -04:00
Jesse Andrews
53ed387de4
don't use guest for rabbitmq password - fixes #41
2011-10-02 14:28:17 -04:00
Jesse Andrews
89358afe35
don't use secrete as admin password - fixes #34
2011-10-02 14:11:17 -04:00
Jesse Andrews
c315ebfde6
append to fstab correctly
2011-10-02 13:25:33 -04:00
Jesse Andrews
8cfd8b6cf2
apt-get needs sudo'd
2011-10-02 13:17:31 -04:00
Jesse Andrews
c6d3042e06
attempt to get lxc working #23
2011-10-02 13:11:28 -04:00
Jesse Andrews
9b6741e7ec
remove nixon & munin
2011-10-02 10:01:00 -07:00
Jesse Andrews
fa418f66a8
fixes #39 - use openssl to generate passwd for mysql
2011-10-02 09:31:34 -07:00
Jesse Andrews
9f20f5140e
set service token in keystone's paste config for nova
2011-10-02 09:18:03 -07:00
Jesse Andrews
b96871e486
don't use the same keystone admin token for everything
2011-10-02 09:02:46 -07:00
Jesse Andrews
6e9fae0d27
fixing stack's passwdless sudo
2011-10-02 08:48:34 -07:00
Vishvananda Ishaya
cd10164381
Make a stack user. Fixes #35
2011-10-01 00:37:27 -07:00
Vishvananda Ishaya
c9e3fff73a
autocreate a stack user if you are root instead of failing
2011-09-29 10:48:49 -07:00
termie
523c405f06
add elapsed time to script
2011-09-28 19:49:40 -05:00
termie
197d53d32e
small docs updates about localrc
2011-09-28 17:18:23 -07:00
Jesse Andrews
d462295368
make sure user isn't running as root
2011-09-28 14:08:36 -07:00
Anthony Young
ba89a26e4f
remove old comment
2011-09-27 19:01:08 -07:00
Anthony Young
0383b4a29e
Merge remote-tracking branch 'origin/master' into nova-vncproxy-redux
2011-09-27 18:58:36 -07:00
Jesse Andrews
8f3e28cec1
use the current user instead of stack for dash
2011-09-27 18:26:27 -07:00
Anthony Young
527e341b74
changes to support the new nova-vnc wsproxy
2011-09-27 15:05:37 -07:00
Anthony Young
34acee3699
latest keystone configuration for python-novaclient and dash
2011-09-27 00:12:52 -07:00
Anthony Young
124b0c253d
fix apache config to suck less - don't require chown www-data
2011-09-26 23:42:46 -07:00
Anthony Young
e8fed48ead
use /opt/stack instead of /opt
2011-09-26 19:50:43 -07:00
sleepsonthefloor
9563361cf4
Merge pull request #15 from cloudbuilders/stackrc
...
implement stackrc for variable configuration (esp repos)
2011-09-26 15:48:49 -07:00
Anthony Young
d8c259af5a
use stackrc.example, and prompt user before copying
2011-09-26 14:04:13 -07:00
Anthony Young
303233e2f5
tweaks to comments and cache organization
2011-09-26 13:12:57 -07:00
Anthony Young
2f14020756
implement stackrc for variable configuration (esp repos)
2011-09-26 13:02:40 -07:00
Jesse Andrews
b5197e4011
allow network size to be set
2011-09-26 12:48:31 -07:00
Jesse Andrews
8ff5dbc27d
allow specification of scheduler and take flat interface from environmnet
2011-09-25 22:28:08 -07:00
Jesse Andrews
a72f7ad3f2
update network defaults
2011-09-25 13:41:22 -07:00
Anthony Young
36d2527790
more tweaks to get dash working
2011-09-23 07:34:38 +00:00
Anthony Young
853092855b
temporary changes to get openstack diablo working with keystone
2011-09-23 07:23:31 +00:00
Anthony Young
f33796e01f
add python-virtualenv to deps, make keystone print to stdout
2011-09-22 00:14:12 -07:00
Dean Troyer
0d6de09552
Re-enable munin
2011-09-21 13:44:08 -05:00
root
40a37006f4
add IF EXISTS to DROP DATABASE statememnts,
...
make sure sudo is installed (prevents errors on miminal LXC installs),
2011-09-19 14:44:12 -07:00
Anthony Young
c835762081
fix typo
2011-09-20 10:38:06 -07:00
Anthony Young
a531b77267
fixes to glance configuration so that we aren't creating files outside of /opt
2011-09-20 09:59:54 -07:00
Anthony Young
9bf3d767ce
put user in correct directory when using screen
2011-09-20 09:51:16 -07:00
Anthony Young
b1bdd5e276
some cleanup of networking params
2011-09-20 09:39:50 -07:00
Anthony Young
09fde81cc4
sudo when killing dnsmasq
2011-09-20 02:23:54 -07:00
Anthony Young
d02d7154ff
add token to glance call
2011-09-20 01:31:41 -07:00
Anthony Young
f12d3ab02c
update glance to use keystone
2011-09-20 00:33:51 -07:00
Anthony Young
d000b22d16
add checks to make sure that services are started
2011-09-19 14:46:53 -07:00
Anthony Young
f96e59a033
Merge branch 'master' of github.com:cloudbuilders/devstack
2011-09-19 13:51:18 -07:00
Anthony Young
79799796f7
better check for kvm support
2011-09-19 13:51:00 -07:00
Jesse Andrews
5e2fc41cec
tweak intro
2011-09-18 21:16:42 -07:00
Anthony Young
a074800ca8
move nova-manage commands below the conf generation
2011-09-16 21:37:36 -07:00
Jake Dahn
25806832e2
Merge pull request #11 from jakedahn/master
...
This should fix munin
2011-09-16 16:58:08 -07:00
Jake Dahn
356812547d
Fixing munin
2011-09-16 16:53:22 -07:00
Jesse Andrews
a16e5e9c4d
move screen creation closer to where used
2011-09-16 16:30:55 -07:00
Jesse Andrews
d1879c5cfb
default to kvm, but revert to qemu
2011-09-16 16:28:28 -07:00
Anthony Young
9b01ffb05e
Merge branch 'master' of github.com:cloudbuilders/devstack
2011-09-16 16:06:19 -07:00
Anthony Young
ec21d9371a
Configure keystone catalog for multihost use
2011-09-16 16:05:55 -07:00
Jesse Andrews
1f71760110
use newgrp to launch nova-compute in a new context
2011-09-16 15:18:53 -07:00
Jesse Andrews
e30432f625
attempt to fix group issue
2011-09-16 14:54:59 -07:00
Anthony Young
1c9f0afeb3
add multi_host option
2011-09-16 14:36:11 -07:00
Jesse Andrews
eba18fbfa5
add note to fix the process of adding user to group
2011-09-16 14:35:14 -07:00
Jesse Andrews
74e965f0db
more updates to how images are installed
2011-09-16 14:19:46 -07:00
Jesse Andrews
543d7d44e9
don't download images to /opt
2011-09-16 14:16:36 -07:00
Jesse Andrews
d61db8597f
clone to a directory owned by correct user
2011-09-16 14:13:17 -07:00
Jesse Andrews
bf3868d889
use variable FILES instead of DEVSTACK
2011-09-16 11:31:16 -07:00
Jesse Andrews
4d28218954
move apts/pips to files directory
2011-09-16 11:27:43 -07:00
Anthony Young
fa594eb978
fix path
2011-09-15 23:28:52 -07:00
Anthony Young
093eeb0dbb
silent install
2011-09-15 23:17:44 -07:00
Anthony Young
a9a32de4af
Merge branch 'master' of github.com:cloudbuilders/devstack
2011-09-15 23:11:53 -07:00
Anthony Young
a09ae2ff4b
only install mysql-server and rabbitmq-server if needed
2011-09-15 23:11:29 -07:00
Jesse Andrews
b0c8feec10
Merge branch 'master' of github.com:cloudbuilders/devstack
2011-09-15 23:08:33 -07:00
Jake Dahn
38fc665584
changing nixon repo to cloudbuilders
2011-09-15 22:58:06 -07:00
Jesse Andrews
c4b3aabd30
more docs update
2011-09-15 22:54:52 -07:00
Jake Dahn
a3492ed4a9
updating comments, adding fixmes
2011-09-15 22:42:43 -07:00
Jake Dahn
1f712795c9
Merge branch 'master' into nixon
2011-09-15 22:32:46 -07:00
Jesse Andrews
6edd17f7c1
update with sanity checks
2011-09-15 22:19:42 -07:00
Jake Dahn
feb6582019
Merge branch 'master' into nixon
2011-09-15 21:46:59 -07:00
Jake Dahn
9337b339bf
adding nixon
2011-09-15 21:46:20 -07:00
Jesse Andrews
7dd13d03f1
add note that we need to make sure people grab more than just stack.sh
2011-09-15 21:29:15 -07:00
Jesse Andrews
2485906042
update docs / moving mysql higher
2011-09-15 21:28:23 -07:00
Anthony Young
e7335c26a4
warn non-natty users
2011-09-15 20:58:31 -07:00
Anthony Young
70dc5e0578
only run certain code if th respective service has been enabled
2011-09-15 16:52:43 -07:00
Jesse Andrews
b683aa1bca
Merge pull request #1 from dtroyer/master
...
Add munin to stack.sh
2011-09-14 10:58:40 -07:00
Anthony Young
52d019b1d2
remove dup flag
2011-09-14 10:19:24 -07:00
Anthony Young
377aae6f6c
make glance host configurable
2011-09-14 09:55:31 -07:00
Anthony Young
10791a13fa
update to allow remote mysql connections
2011-09-14 09:40:58 -07:00
Dean Troyer
b9cd6d5618
Fix merge conflicts
2011-09-14 11:13:54 -05:00
Dean Troyer
925df4c295
Auto-detect current user
2011-09-14 10:20:57 -05:00
Anthony Young
320412b24f
root user for mysql
2011-09-14 02:39:10 -07:00
Anthony Young
3859f73760
pre-cache git repos, add mysql perms
2011-09-14 02:33:43 -07:00
Anthony Young
927a656ac2
more work on multi-lxc
2011-09-14 01:58:01 -07:00
Anthony Young
80638e545f
progress on multi-host lxc
2011-09-14 01:29:05 -07:00
Anthony Young
1c36464615
allow role configuration for multi-host lxc
2011-09-13 20:21:42 -07:00
Anthony Young
fdaf21a5e6
configurable mysql user
2011-09-13 20:11:42 -07:00
Anthony Young
a841644e98
progress on multi-host stack.sh
2011-09-13 20:07:44 -07:00
Anthony Young
c6da0833a9
remove xtra space
2011-09-13 19:48:12 -07:00
Anthony Young
af9de3d56a
xtra $
2011-09-13 19:45:18 -07:00
Anthony Young
79918c54fa
configure mysql password for keystone and glance
2011-09-13 19:43:14 -07:00
Anthony Young
963d2eb1c6
update usage comment
2011-09-13 17:29:02 -07:00
Anthony Young
5d4843cfeb
add some sudo's to dashboard setup, so that the script can handle consecutive runs of stack.sh without hitting permisisons issues
2011-09-13 17:22:18 -07:00
Anthony Young
b6838a1cec
make glance use mysql
2011-09-13 17:13:32 -07:00
Anthony Young
4da6686507
fix typo in 000-default config
2011-09-13 17:08:12 -07:00
Anthony Young
76d5dc7765
comments, and fix the sed expression for 000-default
2011-09-13 17:00:00 -07:00
Jesse Andrews
e8d9cd8b09
separate out keystone config
2011-09-13 15:16:26 -07:00
Dean Troyer
0017c8f9d5
Add munin to stack
2011-09-13 15:37:50 -05:00
Jesse Andrews
dfcd200348
update docs
2011-09-13 13:17:22 -07:00
Anthony Young
3a0931273b
make keystone use mysql
2011-09-13 19:01:45 +00:00
Anthony Young
292e46d001
fix service enablement
2011-09-13 11:28:56 -07:00
Dean Troyer
2a15a7c40a
Minor fixes
2011-09-13 13:22:14 -05:00
Anthony Young
2135cf87c2
back out service selection
2011-09-13 11:07:11 -07:00