86 Commits

Author SHA1 Message Date
Brant Knudson
87ebedc136 Use extras for ldap dependencies
This allows installing ldap dependencies using keystone[ldap].

pbr documentation:

 http://docs.openstack.org/developer/pbr/#environment-markers

Partial-Bug: 1479962
Change-Id: Id8e30bdcc16d99b0fb5dc995665d2ddeba19309f
2015-07-31 19:19:04 +00:00
Matt Riedemann
c995c8f634 Remove comment for doc building bug 1260495
Commit 0d6bfaf2e3f839704f07b265ba81e224936a2b49 fixed the pbr bug which
was released in 0.11 which is also the minimum required version of pbr
for Liberty.

Commit 6f98a9e2bd7eed7f618a453d18055c34f84cd1ca removed the other part
of the keystone doc building workaround, but missed removing this note
about cleaning everything up later.

Related-Bug: #1260495

Change-Id: Ia4c8c903f049714013a0c6faab65b28a00c303b9
2015-07-07 13:07:06 -07:00
Jenkins
13f1da5bd0 Merge "Switch to oslo.service" 2015-06-26 17:06:05 +00:00
Brant Knudson
04ff3541be Short names for auth plugins
A "default" entrypoint is defined for each auth method. The
default driver will be used if there's no config option for the
method, or the config option is not set, or if the config option
is set to "default".

For the external methods, since there's several of them, each gets
a short name that can be used rather than the qualified class.

bp stevedore

DocImpact

Change-Id: I2484af32e9eb3703869cf441e4f9851b54b0db2b
2015-06-22 17:48:11 -05:00
Brant Knudson
9d7490f79f Switch to oslo.service
Use oslo.service rather than service from oslo-incubator.

openstack-common.conf was updated and sync from oslo-incubator to
clean up unused modules.

Check requirements files to make sure there are no new unused
requirements (there are none).

config generator configuration was updated to pull options from
oslo.service.

Closes-Bug: 1466851
Depends-On: I305cf53bad6213c151395e93d656b53a8a28e1db
Change-Id: Ie8ef66720bdc480cd1c67548c7a20bf78eeeac71
2015-06-22 21:20:14 +00:00
Brant Knudson
437d5bf941 Use stevedore for auth drivers
The Stevedore library is used for loading auth drivers rather
than using importutils. This provides a level of indirection for
deployers/packagers.

The importutils method of loading drivers is still supported, but
it's deprecated.

bp stevedore

Change-Id: I170a5e422805e988ac472676c8838d8cc7a1ad77
2015-06-18 21:04:14 -05:00
Doug Hellmann
9e47df5493 Update version for Liberty
Update the version for Liberty, switching from date-based versioning
to pre-versioning using SemVer. See
http://lists.openstack.org/pipermail/openstack-dev/2015-May/065211.html
and
http://lists.openstack.org/pipermail/openstack-dev/2015-June/067082.html
for details.

Change-Id: I6a35fa0dda798fad93b804d00a46af80f08d475c
2015-06-16 19:49:14 +00:00
Jamie Lennox
696c1569e8 Move endpoint policy into keystone core
Remove endpoint_policy as an extension and move it to a core resource.
For now we leave the database migrations in the extension directory
until we have a general policy for merging these into core.

DocImpact: You should no longer run the migrations for this extension.
Implements: bp replace-extensions
Change-Id: I6215b7df497c142a5e73b62543e0d76458c85f64
2015-05-25 15:27:08 +08:00
David Stanek
6f98a9e2bd Removes temporary fix for doc generation
A temporary fix was added to get around a bug in how pbr handles
its autodoc_tree_index_modules setting. Since this bug is fixed we no
longer need the work around.

Change-Id: I6af0fdd6d1efacb47692b89c329e45ac59fef7cb
Closes-Bug: #1260495
2015-05-13 12:01:16 +00:00
Brant Knudson
e7e3ca5269 Use short names for drivers
With stevedore support, we can use shorter names for the drivers
rather than the full class path.

Using the full class path is supported, but deprecated (the code
falls back to importing by importutils which is already reported
as deprecated).

bp stevedore

Co-Authored-By: Boris Bobrov <bbobrov@mirantis.com>
Change-Id: I11cf1bca474f59419185e2a1970c1dae31017329
2015-05-10 10:12:45 -05:00
Brant Knudson
6817d66bd2 Use stevedore for backend drivers
The Stevedore library is used for loading backend drivers rather
than using importutils. This provides a level of indirection for
deployers/packagers.

The importutils method of loading drivers is still supported, but
it's deprecated.

bp stevedore

Change-Id: Id77ebf7056987ff1d3b9f62fab411845e63c86c3
2015-04-28 16:40:23 -05:00
Jenkins
5925313819 Merge "Entrypoints for commands" 2015-04-24 19:45:26 +00:00
Thierry Carrez
697d87ee41 Open Liberty development
Bump pre-version in setup.cfg to formally open Liberty development.
Kilo release branch will be cut from the previous commit.

Change-Id: I188547a25d0aa1ec8d60f6ab7c13fe63a7eccdbf
2015-04-07 17:51:43 +02:00
Brant Knudson
a549b74ebf Entrypoints for commands
Use entrypoints for keystone-all and keystone-manage.

This makes keystone consistent with other projects that
already use entry points, e.g., nova.

Change-Id: Ib8d1a30d9b31d515dd5256896e24ae7b327fff6e
2015-03-27 02:16:02 +00:00
Steve Martinelli
3ec2418673 Use oslo.policy instead of incubated version
* pull in oslo.policy
* account for changes to Enforcer initialization
* account for changes to config options

partially implements bp graduate-policy

Change-Id: Ia23afda5acf92cdc4578ec4c85821603c56d3097
2015-03-05 18:53:03 -05:00
Steve Martinelli
0f61b11141 Use oslo.log instead of incubator
Most of changes are just replacing

from keystone.openstack.common import log
  with
from oslo_log import log

There are some other specific changes that had to be made
  * Initialize logger in keystone/config.py

Change-Id: I859edb71c434051ffe7f34c16018b738ddb71e3b
2015-02-14 05:34:52 +00:00
Dolph Mathews
083d1cd522 switch from sample_config.sh to oslo-config-generator
This switches keystone to use oslo-config-generator, where the contents
of our sample configuration file are configured using a configuration
file in config-generators/, because the only way to have tox create
files is to have configuration files for your configuration files
(seriously, it chokes when redirects are included in the command for a
test environment).

This also takes advantage of oslo-config-generator's ability to set the
line wrap width, which is done at 79 chars here to match the rest of our
code.

Also update the actual sample file under etc/

Change-Id: I9f9a157c7802c56a2c7484f6f4adec4aeb4071b8
Closes-Bug: 1324610
2015-01-02 15:04:20 -06:00
Julien Danjou
579498e3a9 Remove Python 2.6 classifier
Keystone does not support Python 2.6 anymore starting with Kilo and
might not work correctly with it, so remove the classifier.

Change-Id: Iafe029d962e8ec6960efc6b61bdd2ac86ad980b7
2014-11-25 17:03:07 +01:00
Thierry Carrez
1335d6684d Open Kilo development
Bump pre-version to 2015.1 to formally open master branch to Kilo
development.

Change-Id: I75e3285cfbdf64f6b15c506d14265c66a266c2f3
2014-09-29 11:14:46 +02:00
Thierry Carrez
d57a21fd9c Open Juno development
Bump preversion to 2014.2 to formally open Juno development.
The Icehouse release branch (milestone-proposed) will be cut
from the last commit before this one.

Change-Id: I16d88d311795868b83cd13afc87dc8fbff01bfb6
2014-03-26 17:57:01 +01:00
Dolph Mathews
dd18e86ff6 drop key distribution from icehouse
key distribution is being continued in feature branch here:

  https://github.com/openstack/keystone/tree/feature/key-dist

Change-Id: I47504bec73dd7e1a6419a5509093a9d494d90108
2014-03-03 20:04:29 -08:00
Morgan Fainberg
10f9c1f1c3 Setup code for auto-config sample generation
Sync in the oslo code for auto-config sample generation and
make the appropriate changes to setup to allow for automatic
option discovery.

`test-requirements.txt` now includes stevedore to
ensure the oslo libraries can all be loaded as expected.

Change-Id: Ieca0aea4d3c67b930c12467317d2f4d83763b601
2014-02-16 20:41:00 +00:00
James E. Blair
ff4a50658d Treat sphinx warnings as errors
Change-Id: I003c9a210704c12423dc038f442df3913d133a6a
2014-02-14 14:43:49 -06:00
Jamie Lennox
365e65dfd3 Introduce database functionality into KDS
Add database setup and initial testing into Key Distribution Server.
Also adds a migration script.

Implements: bp key-distribution-server
Change-Id: I22e914ef1ca6ec8217d131c073261b309d9f637e
2014-01-28 10:12:04 +10:00
Jamie Lennox
bdaddf8c5e Introduce basic Pecan/WSME framework for KDS
So far there is simply a CLI application called kds-api that launches
the server using the reference wsgi server and a test just to
make sure things are wired in correctly.

blueprint: key-distribution-server
Change-Id: I17f1943eb6cd71f6059606a1a099f5761896b131
2014-01-07 08:15:09 -06:00
David Stanek
3f27b309f0 Fixes documentation building
- Adds the ability to build docs using tox
 - Fixes autodoc generation

A Sphinx extension is introduced in the commit to facilitate building
the API documentation. This extension should be removed when
bug 1260495 is fixed.

Change-Id: Ibf5e5403cb7d3e67947c87b2828b64a56a11fc30
2013-12-13 02:47:37 +00:00
David Stanek
59adb86b26 Changes to testr as the test runner
run_tests.sh has also been deprecated.

Fixes-Bug: #1177924
Change-Id: I15c1707eb6a62c74a0021a48b89ae15f03fcfea8
2013-10-15 12:28:38 +00:00
Thierry Carrez
284c5e3af3 Open Icehouse development
This should be accepted/merged once all the RC1 bugfixes are in.

This bumps the target version to 2014.1, effectively opening the master
branch to Icehouse development, ending the feature freeze.

The Havana release branch is cut from the previous commit in master.

Change-Id: I99861235bb71d9b47ff85623317efe4243ee0668
2013-10-01 07:52:52 -05:00
David Stanek
8d2f53c403 Changes template header for translation catalogs
New translation catalogs will be generated with the organization set to
'OpenStack Foundation' in the header.

Change-Id: I0da323113030c6a68b3c4bbdd94053639312c594
Partial-Bug: #1214176
2013-09-05 14:23:13 -04:00
Sascha Peilicke
14e090154c Move 'tests' directory into 'keystone' package
Similar to a range of other components (e.g. glance,nova,...) and recent
reviews by Monty.

Running individual tests can be done like this:

./run_tests.sh keystone.tests.test_drivers

Change-Id: I2482a48322150e5eb09b703326a94d8283f1c75b
2013-08-14 01:30:01 -03:00
Monty Taylor
220875a92e Add version so that pre-release versioning works
As a server project, keystone should list a version number in setup.cfg
so that the version numbers products in daily tarballs list the
pre-release alpha designation.

Change-Id: I1aff86b0890f2d215d00b0c1f19cca3798ae88ec
2013-07-12 10:00:38 -04:00
Monty Taylor
444af9db83 Migrate to pbr.
Closes bug 1179007

Change-Id: I9d2a0190bb8dc31ea481909a4e0af3008aa976bf
2013-05-23 16:59:08 +02:00
Monty Taylor
49487a6ac6 Remove run_test.py in favor of stock nose.
Move specific functionality into test fixtures, so that normal test runners
can work. For now, this means we can use unaltered nose. For the future, it
gets us closer to being able to use other test runners such as testrepository
which allow for things like parallel test runs and re-running failed tests
in a dev/test cycle.

Also, aligns keystone with nova and glance.

Change-Id: Ic1966281c0bdfbc09792360209692e9d4a0a51a7
2012-09-27 22:34:51 -07:00
Joe Heck
e0136d2f7c setting up babel for i18n work
blueprint start-keystone-i18n

Change-Id: Ie18daada4b537b74a27aa1defe676698d9944468
2012-06-21 18:03:09 -07:00
Monty Taylor
e33a4742a8 Clean up test requires a bit.
The main culprit here was prettytable - but because of the way this was
working, it was causing intermittent transient network issues from pypi in
the devstack gates.

Change-Id: I62117116c850361c5e2de7e6485c14ef43007c1d
2012-06-16 13:01:39 -04:00
Monty Taylor
f8ba5af130 Align with project configs.
* docs in doc/ rather than docs/
* write out changelog from git
* freeze requirements file

Change-Id: If28d5414f7b2747fd6835546c45e1acfac8a3563
2012-03-01 11:42:42 -08:00