1125 Commits

Author SHA1 Message Date
Jenkins
5bdabd070b Merge "Add $TOP_DIR to the path when calling tools' scripts" 2014-06-17 19:51:28 +00:00
Jenkins
7c5a02c48c Merge "Add optional repo enablement for RHEL 7" 2014-06-17 16:47:22 +00:00
Jenkins
da2fe19e24 Merge "Use identity_uri instead of auth fragments" 2014-06-17 16:06:48 +00:00
Mauro S. M. Rodrigues
dae1152518 Add $TOP_DIR to the path when calling tools' scripts
The missing reference to $TOP_DIR prevent us to run stack.sh from a different
directory.

Change-Id: Ie15b89734264789bef9a8efcfdbbf2cdb89c936e
2014-06-17 02:07:11 +00:00
Brad P. Crochet
c359921cce Add optional repo enablement for RHEL 7
The RHEL 7 and RHEL 6 optional repos have different names. This enables
the correct repo depending on the release.

Change-Id: I6772c9903a5b9e98cb870d586629564126a6119a
2014-06-16 10:30:02 -04:00
Sean Dague
62cb563ddc convert devstack from awk to outfilter
The complexity of the awk script was pretty high, and it would
be good to do it in summaries as well, which starts to get a bit
squirelly. Instead bring over the outfilter.py from grenade and
use it for the timestamping.

Any additional overhead from python should be offset from not
shelling out to date on every line of output.

Change-Id: Ic2b86ddba3e7f6520a0fd35599b01143936c6deb
2014-06-16 07:03:23 -04:00
Jamie Lennox
3561d7f9ed Use identity_uri instead of auth fragments
auth_token middleware now accepts a standard URL string as the parameter
identity_uri instead of specifying protocol etc individually. Change the
services over to use this.

Also changes over some other places in which the auth fragments are used
individually to the new variables and fixes up some misconfigurations of
auth_token.

identity_uri option was release in keystoneclient 0.8.0

Change-Id: Iac13bc3d08c524a6a0f39cdfbc1009e2f5c45c2a
2014-06-16 15:16:48 +10:00
Chris Dent
a0ced4df00 chown stack/data/nova/networks to $STACK_USER
$USER may be undefined (resulting in an error exit from stack.sh)
or may be the current $USER rather than the target $STACK_USER
(which may or may not be the same) which could lead to errors
later.

This change brings about consistency: the rest of stack.sh always
uses $STACK_USER.

This same problem may be present in lib/marconi.

Change-Id: Idff2bee88de4e1da11cd5765a03646caf3ede24f
2014-05-27 22:18:21 +01:00
Ian Wienand
26a28b4af5 Use urandom rather than openssl for password gen
I tried using devstack on a cloud image that didn't have openssl, so
it generated blank passwords and gave an error about openssl missing.
Using urandom should not require more than minimal shell tools.

Change-Id: Ib3091183eb1d85fc8cf7c76e47da24a04ae4791f
2014-05-14 14:10:47 +10:00
Jun Wu
8710b6501b Better "exec 3>&1" comment
"Copy stdout to fd 3" is confusing. Explain the intention behind `exec 3>&1`.

Change-Id: Id19434121876e65a14c709beac26b9daf4a36a0a
2014-05-04 10:26:28 +08:00
Jenkins
0154badc2b Merge "Kill spinner process when stack.sh exits" 2014-05-02 19:20:29 +00:00
JordanP
ea9c24b15f Re-enable Swift3 middleware support in DevStack
Because *swift* in no more allowed in ENABLED_SERVICES (see
I78222d7ee2ea8a281962129d5bcf06c118469510) swift3 middleware to
swift could not be installed anymore. This patch thighten a check
to allow swift3 (but not swift) in ENABLED_SERVICES.

Change-Id: I194f66ae7e5163e0e6178561b09f55024fdaa607
2014-04-28 08:42:20 +00:00
Roger Luethi
de56ee15c7 Kill spinner process when stack.sh exits
The last spinner process active in non-verbose mode does not get killed
when stack.sh exits -- the spinner keeps spinning indefinitely.

Killing the spinner in err_exit cleans up no matter how the program
got terminated.

Because the code to kill the spinner is now called regardless of
whether spinners are in use, it has to check LAST_SPINNER_PID or the
kill command without an argument will trigger the ERR trap (or EXIT
with an error status, depending on where program execution stops).

This patch resurrects and fixes an abandoned changeset, hence:

Co-Authored-By: Adalberto Medeiros <adalbas@linux.vnet.ibm.com>

Fixes bug 1302112

Change-Id: I2d5b27971889b672361e9173bf6faf38fb1a1ec6
2014-04-26 15:06:23 +02:00
Dean Troyer
a79617c12a Prevent the use of 'swift' in ENABLED_SERVICES
This is not supported and we missed a comment in stackrc that still
said otherwise.  Fix the comment and abort in the sanity check section
if 'swift' is detected in ENABLED_SERVICES.

Change-Id: I78222d7ee2ea8a281962129d5bcf06c118469510
2014-04-13 18:22:53 -05:00
Jenkins
b8071e9ba9 Merge "only remove network states from Nova when n-net is enabled" 2014-04-11 11:18:19 +00:00
Attila Fazekas
6d227a4a5b Add EPEL-7 repo for RHEL7
* RHEL7 requires epel for many dependencies.
* The default RDO URL also switched to an icehouse version.
* RHEL6 RDO repo also will be configured for RHEL7, but the
  configuration variable name remains RHEL6_RDO_REPO_RPM for compatibility
  reasons.

Change-Id: I414c0f5357bf24c8d5657ea8231515461862e734
2014-04-10 08:07:47 +02:00
Jenkins
3f52e5ef74 Merge "Default RABBIT_HOST to be the SERVICE_HOST." 2014-04-09 10:32:31 +00:00
Christian Berendt
7a7fb49b15 only remove network states from Nova when n-net is enabled
When n-net is not enabled but q-dhcp is enabled then it's not
necessary to remove the states directory of nova-network.

Change-Id: Ib4b37aa7df2b3cda3048b278ddad24e87e3744c9
2014-04-07 13:31:07 +00:00
Jenkins
995e10cbf7 Merge "Makes error message easier to understand." 2014-04-03 13:02:43 +00:00
Bob Ball
e309e5a9f8 Default RABBIT_HOST to be the SERVICE_HOST.
Using localhost for RABBIT_HOST can cause problems - particularly
on systems where IPv6 is partially broken and localhost resolves
to an IPv6 address.

The service should logically be running on SERVICE_HOST unless
otherwise overridden.

Change-Id: I6efb71b8b95174770066f38403d5d428ec88c3b6
2014-04-01 16:28:36 +01:00
James E. Blair
e8d840668e Add memory usage to dstat output
Adds used, buffers, cache, free values next to the CPU usage.

Change-Id: Ia873e6a5e78413b724464985b253149bc7e9e2d8
2014-03-26 08:19:37 -07:00
James E. Blair
7ee8f11588 Add iops to dstat output
The "-r" option adds io request counts.  They are placed next to
the currently present io throughput columns.

Change-Id: I7b4c6f3608afb3714bc997bb4ba005c00eeab61e
2014-03-26 07:56:56 -07:00
Dean Troyer
a3935fb0ad Skip child process kills in stack.sh exit trap
Logs are still being cut off in certain circumstances, almost certainly
because the awk process handling the output for verbose logging to a file
dies/is killed early.

Don't kill child processes in the EXIT trap function in this specific case.

Change-Id: I89600b61d59f87e93ff959710d0169e49d2c9845
2014-03-21 13:02:26 -05:00
Jenkins
26e57cbb4c Merge "Allow sudo access without a controlling terminal" 2014-03-21 14:54:21 +00:00
Jenkins
871b1e4709 Merge "Update stack.sh to use openstackclient commands" 2014-03-18 14:32:49 +00:00
Jenkins
5d4406c56d Merge "Complete moving Keystone setup out of keystone_data.sh" 2014-03-18 05:46:48 +00:00
Adam Gandelman
ea2fcb5538 Allow sudo access without a controlling terminal
Ironic setup uses some external scripts that use sudo but they
are not called with a TTY.  This patch allows STACK_USER sudo
access without a controlling terminal.

Change-Id: I0c60fcd5d8418738405d4dd9d08fdf5c8f766829
2014-03-17 16:37:56 -07:00
Steve Martinelli
df6793a86e Update stack.sh to use openstackclient commands
There were a few instances of keystoneclient still being used,
these were replaced with their openstackclient equivalent.

Change-Id: I47fb7cf949b9ab054b97ae387ecbc6d7070fa9c3
2014-03-17 12:56:53 -05:00
Sean Dague
7afffa6447 change the order of the print/flush
It seems that we get a different behavior whether stdout is closed
in the parent process or not when it comes to buffering. If it's
closed we don't get the last line flushed out to the file, if it's
not closed we do. This was seen in the trove pg fail.

A complete shot in the dark, but I'd like to see if this is fixed
with being explicit with printing to the log before stdout.

Change-Id: Ie37299dbc88d549d34d85731e571a5b7ef181311
2014-03-15 13:50:36 -04:00
Jenkins
f10d8feca0 Merge "Clarify deprecation of EXTRA_xxx_OPTS" 2014-03-15 12:37:17 +00:00
Dean Troyer
1a0c090057 Additional attempts to flosh stdout/stderr
The logfile output is piped through awk to apply a timestamp
and filter out all of the xtrace commands in the xtrace output.

A while back we added fflush("") which is supposed to flush all
open output files and pipes. It appears that gawk in precise
is old enough that it may only flush stdout, so explicitly
flush the logfile handle.

Change-Id: If5198c2da2a3278eed8ae3d50c7ca5c15eac6d94
2014-03-12 14:59:53 -05:00
Newell Jensen
ccb3d10e04 Makes error message easier to understand.
If the host ip address is indeterminate while executing
stack.sh, an error message is displayed.  This error message
could be a source of confusion since it references localrc,
which is depreciated.

This patch makes the error message clearer and easier to
understand.  It does this by taking out the reference to
localrc.  It also points the user towards local.conf where there
are suggestions on how to set HOST_IP.

Change-Id: I41f14a2de85449d2a08ab7eb2849844a1087b147
Closes-Bug: #1290556
2014-03-10 18:59:07 -07:00
Dean Troyer
42a59c2bfa Complete moving Keystone setup out of keystone_data.sh
* Move remaining role creation to create_keystone_accounts()
* Move glance creation to create_glance_accounts()
* Move nova/ec2/s3 creation to create_nova_accounts()
* Move ceilometer creation to create_ceilometer_accounts()
* Move tempest creation to create_tempest_accounts()
* Convert moved code to use OpenStackClient for setup
* files/keystone_data.sh is removed

Note that the SERVICE_TENANT and ADMIN_ROLE lookups in the other service
implementations are not necessary with OSC, all operations can be done
using names rather than requiring IDs.

Change-Id: I4283ca0036ae39fd44ed2eed834b69d78e4f8257
2014-03-10 15:17:30 -05:00
Sean Dague
d9259ea466 remove distros that are out of support by their upstream
raring EOL was - 27 Jan 2014
f18 EOL was - 14 Jan 2014
opensuse 12.2 was - 15 Jan 2014

if their upstream isn't going to support them, we shouldn't be
in devstack.

this additionally leaves us in an interesting situation that there
is no longer *any* opensuse version listed as supported. if the
opensuse community doesn't step up here we should probably look
at removing it.

Change-Id: Ibb883930b430477dfd3b5126c5db04f95a50d3a7
2014-03-10 08:39:15 -04:00
Jenkins
0dfbf9b4b9 Merge "Close all logging file descriptors" 2014-03-08 19:09:50 +00:00
Jenkins
82660c6914 Merge "Move heat keystone setup into lib/heat" 2014-03-06 20:54:19 +00:00
Dean Troyer
8068455a02 Close all logging file descriptors
This has lingered for a long time, finally do something about it...

Change-Id: Ib90408187698d5d4c23ffb0e527011446efc3c7e
2014-03-05 11:51:04 -06:00
Jenkins
6751ed504c Merge "Remove bm_poseur, unmaintained and obsolete" 2014-03-04 00:57:01 +00:00
Steven Hardy
57d478d874 Move heat keystone setup into lib/heat
Move the heat setup which currently happens in files/keystone_data.sh
to lib/heat, where we have create_heat_accounts.

Move the user, role, service and endpoint creation as that is consistent
with what other services, e.g lib/nova are doing.

Change-Id: Iaa2c822cad581d6b2b4f22f8863daf81e25f8485
2014-03-03 18:18:28 +00:00
Dean Troyer
91baef3e26 Clarify deprecation of EXTRA_xxx_OPTS
The various EXTRA_xxx_OPTS variables will be removed in the Juno
development cycle, change the README to reflect the new way for
the Neutron variables.

Change-Id: Ic84da4a9b5a83e66cf0b57d643a87691f15517f0
2014-03-03 10:46:42 -06:00
Jenkins
9bd5b9399a Merge "Preinstall yum-utils; move sudo check before install" 2014-02-28 23:12:47 +00:00
Eric Windisch
e994f5708d Remove bm_poseur, unmaintained and obsolete
The bm_poseur git repository link has been broken
for over 11 months. The virtualized/fake baremetal
environment is not working and has not worked in a
long time. Now, on the tail of enabling 'enable -o errexit',
this functionality now has a hard break.

Change-Id: I3cbd8db58c422bc5273d2433278aaa5e449ecfd9
Closes-Bug: 1285954
2014-02-28 15:21:38 -05:00
Jenkins
dad6e4114d Merge "Enforce function declaration format in bash8" 2014-02-28 06:32:20 +00:00
Jenkins
5caa58459d Merge "Fix exit_trap() error if no child processes" 2014-02-28 01:50:06 +00:00
Jenkins
5f9d3980fc Merge "Set umask" 2014-02-28 01:43:31 +00:00
Ian Wienand
531aeb7900 Preinstall yum-utils; move sudo check before install
Some cloud images don't have yum-utils installed, so the call to
yum-config-manager fails.  Pre-install it (I still think it's easier
than fiddling config files).

Also, these repo setup steps are using sudo, but the root/sudo checks
happen after this.  Move them up before we start trying to do
repo/package installs.

Change-Id: I875e1f0663c9badc00278b2cc1a3b04ca3dde9fc
2014-02-28 11:24:29 +11:00
Ian Wienand
aee18c749b Enforce function declaration format in bash8
Check that function calls look like ^function foo {$ in bash8, and fix
all existing failures of that check.  Add a note to HACKING.rst

Change-Id: Ic19eecb39e0b20273d1bcd551a42fe400d54e938
2014-02-28 07:59:03 +11:00
Dean Troyer
94b9e82039 Fix exit_trap() error if no child processes
Bug-Id: 1285776
Change-Id: Iad7a9f2c03cc39159beda55345f232cefed10520
2014-02-27 11:14:05 -06:00
Jenkins
0ed4af02da Merge "enable -o errexit" 2014-02-27 14:57:43 +00:00
Sean Dague
09bd7c8fd5 enable -o errexit
devstack should run under -o errexit to ensure that we fail early
when something has gone wrong, otherwise determination of the root
failure location is often quite challenging.

this clears all the normal use cases for devstack, there could be
tests which now die early, which we're going to have to check for
later.

Change-Id: Ibd828c4f4fd95a60d3918d3d7ae90e10649479ab
2014-02-27 06:30:37 -05:00