314 Commits

Author SHA1 Message Date
Jenkins
90875eacf9 Merge "Do not use sudo when sed'ing $KEYSTONE_CATALOG" 2012-12-19 18:39:14 +00:00
Jenkins
d22dd9c06c Merge "Clear out the keystone pki data for each run" 2012-12-18 13:13:50 +00:00
Vishvananda Ishaya
23431f3526 Clear out the keystone pki data for each run
This prevents old invalid tokens from working after a rerun of stack.sh
and potentially providing users and tenants that don't exist.

Fixes bug 1089700

Change-Id: Icfc22978e41e459d51b50bc7ad2e6d98d766e402
2012-12-17 08:44:01 -08:00
Vincent Untz
7e86dbe166 Do not use sudo when sed'ing $KEYSTONE_CATALOG
We already edited this file earlier without sudo.

Change-Id: I366053edd1a2ad729cfd983ea7491c6252cad905
2012-12-13 12:10:22 +01:00
Vincent Untz
90e1088854 Always chown $KEYSTONE_CONF_DIR
If the directory exists but is owned by another user, then this will
cause failures.

Note that we already do this for other components (glance, for
instance).

Change-Id: Ic7d2a2dd179f721636afc9ea9c3fe6bb314c9b33
2012-12-13 12:10:02 +01:00
Dean Troyer
c83a7e125f Add TLS support for keystone via proxy
* Adds lib/tls to create test CA/certs
* Start proxy if 'tls-proxy' is enabled
* Configure keystone service catalog for TLS
* Tear down proxy in unstack.sh
* Set auth protocol and ca-cert chain in openrc
* Add DATA_DIR to stackrc

This is the first in a series of patches to enable TLS support
for the service API endpoints.

Change-Id: Ia1c91dc8f1aaf94fbec9dc71da322559a83d14b6
2012-12-11 17:08:54 -06:00
Dean Troyer
d835de892a Move keystone account creation out of keystone_data.sh
keystone_data.sh is getting unwieldly and increasingly needs
configuration information for services.  Also need the ability
to manipulate HOST/IP information for hosts to handle service
HA/proxy configurations.

Begin moving the creation of service account information into
the service lib files, starting with the common accounts and
keystone itself.

Change-Id: Ie259f7b71983c4f4a2e33ab9c8a8e2b00238ba38
2012-12-03 13:47:27 -06:00
Jenkins
308beccc24 Merge "Add PostgreSQL support to devstack" 2012-11-04 12:34:31 +00:00
Terry Wilson
428af5a257 Add PostgreSQL support to devstack
This patch adds an interface for supporting multiple database backend
types and implemnts support for PostgreSQL. It also adds a function,
use_exclusive_service, which serves as a base for enabling a service
that conflicts with other services. The use_database function uses it,
and it might also be useful for selecting messaging backends.

MySQL is still selected by default. Tested on Fedora 17 and Ubuntu
12.04 with MySQL and PostgreSQL. Implements blueprint postgresql-support

Change-Id: I4b1373e25676fd9a9809fe70cb4a6450a2479174
2012-11-03 18:19:21 -04:00
Dean Troyer
bc071bcef0 Configure PKI cache dirs
* Configure Cinder, Glance, Keystone, Nova to put cached credentials
  from keystone.auth_token into /var/cache/<service>

It is not obvious to me that having each of these service share a
credentials cache is a good idea.  It does appear to work but this
patch takes the conservative approach of putting each service's cache
in a distinct directory.

More importantly it gets them out of $HOME!

Change-Id: If88088fc287a2f2f4f3e34f6d9be9de3da7ee00d
2012-10-31 13:23:39 -05:00
Doug Hellmann
4de55e9be4 Add a variable to control keystone token format
This change lets the developer running devstack
control the token format used by keystone through
setting KEYSTONE_TOKEN_FORMAT in their localrc
file.

Change-Id: Ic1265fcb10b8de112891f61d5e07312322148ec2
Signed-off-by: Doug Hellmann <doug.hellmann@dreamhost.com>
2012-10-26 12:24:28 -04:00
Dean Troyer
7903b795dd Add non-verbose output mode
Set VERBOSE=False to turn off the noise of stack.sh output.  All
output still is written to the logfile if LOGFILE is set.

Rebased

Change-Id: I316bc4d68c997ec907a48e720e2f7778428d935b
2012-09-17 19:38:23 +00:00
Dean Troyer
b80379c3fc Change default keystone backend to sql
The templated backend for Keystone is limited and does not support the
CRUD operations so does not fully exercise the Identity API.  Change
the default to SQL but leave the templated back-end in place for now.

Set KEYSTONE_CATALOG_BACKEND=template in localrc to restore the old
behaviour.

Change-Id: Id4490194d49b8004583016a9666cb9439cd4700a
2012-09-10 18:57:05 -05:00
Dean Troyer
d81a0274aa Move keystone to lib/keystone
The next in a line of changes to break down stack.sh and make
it a bit more manageable.

Part of blueprint devstack-modular

Change-Id: I40405af07b776f045d6bf801f7e4f1ad863139ae
2012-09-09 18:54:42 -05:00