Commit Graph

101 Commits (a985862ad32c61c42adc6b255c67b18f693e2d7a)

Author SHA1 Message Date
Monty Taylor a985862ad3 Migrate to pbr.
Fixes bug 1179007

Change-Id: Iceb63c223faab49be01baa36c035f703ddf59fc0
2013-05-17 14:43:31 -07:00
Jenkins 818472b099 Merge "Use testr instead of nose." 2013-05-17 21:16:16 +00:00
Jenkins 4b1573a61b Merge "Perform oslo-incubator code sync." 2013-05-17 21:16:14 +00:00
Jenkins e59c1a83f4 Merge "Added Conflict Exception to the exception code map" 2013-05-17 19:29:56 +00:00
Jenkins 5460904a9b Merge "Restore compatibility with PrettyTable < 0.7.2" 2013-05-17 19:29:48 +00:00
Monty Taylor d7f57cf83f Use testr instead of nose.
Part of blueprint grizzly-testtools

Change-Id: I76dee19781eaac21901b5c0258e83a42180c1702
2013-05-10 15:39:10 -07:00
Clark Boylan b7cc2778c6 Perform oslo-incubator code sync.
run_tests.sh cannot install a virtualenv with tools/install_venv.py as
tools/install_venv_common.py depends on oslo.config which is an external
dependency. The virtualenv installer should not depend on any external
dependencies. Fix this by performing a code sync with oslo-incubator.

Note this adds a new dependency on six and changes the way versioning is
determined.

Change-Id: Ifb67bbfeec4eabc943c2a88a34fe535c57f174a1
2013-05-10 15:39:08 -07:00
Kannan Manickam baf3677d78 Added Conflict Exception to the exception code map
The Conflict Exception is added for HTTP error code 409.
However this exception is never raised as this class is not added to
the error_code map and always raises the ClientException whenever a
409 code is returned.

Fixes bug #1168826

Change-Id: I7045eae33533ff603f4aab61ea988264b46f0d09
2013-05-07 10:56:59 +05:30
Dirk Mueller 877c8b934a Restore compatibility with PrettyTable < 0.7.2
PrettyTable 0.7.2 defaults to print a table even if
the resultset is empty. Restore previous behavior
to be in line with older prettytable releases.

Change-Id: Idd1d0c2c2f41966076517cbc8819ba9a5e097306
2013-04-29 11:25:19 +02:00
Vishvananda Ishaya 811c6c0dd3 Sync memorycache and timeutils from oslo.
Change-Id: Ibc61b07fe65d97f9a0eb60e514e29bc12b2f9f4a
2013-03-01 10:13:30 -08:00
Doug Hellmann 2c0baa720c Improve error message for missing endpoint
Horizon logs an error when it wants an endpoint
that the client can't find, but the error does not
say which endpoint is missing. This change includes
more details in the error message to make debugging
from the horizon logs easier.

Change-Id: I6f0aacd469500238f13a2178a220268d86d31fe5
Signed-off-by: Doug Hellmann <doug.hellmann@dreamhost.com>
2013-02-22 16:06:34 -05:00
Jenkins b4f5c7c464 Merge "Use oslo-config-2013.1b3" 2013-02-19 18:38:33 +00:00
Alan Pevec 11c4f003d4 Use oslo-config-2013.1b3
The cfg API is now available via the oslo-config library, so switch to
it and remove the copied-and-pasted version.

Removes the load of copied-and-pasted cfg from each application
in authtoken middleware.
Depends on oslo-config deployments:
Nova I4815aeb8a9341a31a250e920157f15ee15cfc5bc
Glance I4815aeb8a9341a31a250e920157f15ee15cfc5bc
Quantum I4815aeb8a9341a31a250e920157f15ee15cfc5bc
Cinder I4815aeb8a9341a31a250e920157f15ee15cfc5bc

Add the 2013.1b3 tarball to tools/pip-requires - this will be changed
to 'oslo-config>=2013.1' when oslo-config is published to pypi. This
will happen in time for grizzly final.

Change-Id: I18c450174277c8e2d15ed93879da6cd92074c27a
2013-02-17 00:35:40 +01:00
Jenkins 8c4f496b38 Merge "Use install_venv_common.py from oslo." 2013-02-16 15:58:50 +00:00
Jenkins 794841e668 Merge "Update .coveragerc" 2013-02-16 10:58:44 +00:00
Jenkins 6e3b454d6f Merge "Add name arguments to keystone command." 2013-02-13 08:27:39 +00:00
Jenkins 3ac075ec95 Merge "Treat HTTP code 400 and above as error." 2013-02-07 19:33:19 +00:00
Matthew Treinish ddfa4d0048 Use install_venv_common.py from oslo.
This syncs install_venv_common.py from oslo and reworks the
tools/install_venv.py script to use the new library.

Change-Id: Ia8c2674b4abed8de754e92ea795130cdb065a720
2013-02-06 16:47:37 -05:00
Alessio Ababilov f4f0cdf310 Update .coveragerc
Set up proper source and omit options.

Change-Id: Ieb6e514849e6fc054ce563806243d29f4ff2075c
Implements: blueprint update-coveragerc
2013-02-06 16:47:06 +02:00
Lin Hua Cheng 021614a656 Treat HTTP code 400 and above as error.
Fixes bug 1116559.

Change-Id: I4b12176599686f7e545b63c8e54cf9da6a1f963e
2013-02-05 11:30:27 -08:00
Jenkins 67a6622243 Merge "Take region_name into account when calling url_for" 2013-01-30 00:49:36 +00:00
Jenkins a008bf298f Merge "Fix STALE_TOKEN_DURATION usage" 2013-01-26 17:32:13 +00:00
Jenkins 9141466e2c Merge "Factorize endpoint retrieval in access" 2013-01-24 22:16:12 +00:00
Jenkins 95d08cbea5 Merge "Remove useless code" 2013-01-24 22:06:24 +00:00
Julien Danjou 7b83626ea5 Fix STALE_TOKEN_DURATION usage
Change-Id: I9856684d93d8b45310e599863553a020180aa509
Signed-off-by: Julien Danjou <julien@danjou.info>
2013-01-24 18:48:22 +01:00
Julien Danjou e515eaad2b Factorize endpoint retrieval in access
Change-Id: Iaace7020696b238e7829dbcae60f0bc7c74a79e4
Signed-off-by: Julien Danjou <julien@danjou.info>
2013-01-24 12:27:11 +01:00
Sam Morrison 7c1bcdc83c Take region_name into account when calling url_for
Fixes bug 1103282

When creating a Client object with region_name specified, url_for
will return an endpoint url for that region.

Change-Id: Ia5c95503fe2ed5e53de93040d70ba08a9c09f286
2013-01-24 09:38:32 +11:00
Julien Danjou 0efe94f86d Remove useless code
- There's no need to call parent init function since that's the default
  behaviour.
- The token attribute is nor used nor updated anywhere.

Change-Id: Ib0b2729a396a2d761931ce0e178c49c49814eb21
Signed-off-by: Julien Danjou <julien@danjou.info>
2013-01-23 15:15:30 +01:00
Ken'ichi Ohmichi d0c2346ec0 Add name arguments to keystone command.
This patch adds name arguments to the following subcommands:
  * role-delete
  * role-get
  * service-delete
  * service-get
  * tenant-delete
  * tenant-get
  * tenant-update
  * user-delete
  * user-get
  * user-password-update
  * user-role-add
  * user-role-list
  * user-role-remove
  * user-update

Fixes bug 1100648

Change-Id: I73c08c0ba553a72ec57ff3a684a00be4ef1294a6
2013-01-17 18:11:27 +09:00
Jenkins 2641c42117 Merge "Add file 'ChangeLog' to MANIFEST.in" 2012-12-21 18:25:47 +00:00
Jenkins 5756360565 Merge "Use requests module for HTTP/HTTPS" 2012-12-20 19:07:53 +00:00
Sascha Peilicke 943ddcf991 Add file 'ChangeLog' to MANIFEST.in
The file is missing from tarballs released at tarballs.openstack.org.

Change-Id: I5c4f53f32b2e6b3741b03658d9c9472fca4226dd
2012-12-19 15:09:16 +01:00
Dean Troyer edb9a150e1 Use requests module for HTTP/HTTPS
* Implement correct certificate verification
* Add requests to tools/pip-requires
* Fix OS_CACERT env var help text
* Add info to README
* Rework tests to use requests

Pinned requests module to < 1.0 as 1.0.2 is now current in pipi
as of 17Dec2012.

Change-Id: I120d2c12d6f20ebe2fd7182ec8988cc73f623b80
2012-12-18 15:30:43 -06:00
Jenkins 475d6bba0f Merge "Fix keystoneclient user-list output order" 2012-12-13 23:37:29 +00:00
Masayuki Igawa 7d5f425095 Fix keystoneclient user-list output order
keystone user-list output is ordered by 'id' now.
But this order(by 'id') is not human-friendly. Sorting by 'name' is easy to
identify a user.

This patch fixes this problem.

Fixes bug 1073437

Change-Id: I00b1f46c248544157e09b2efccfff63a1f0426aa
2012-12-11 08:10:11 +09:00
Guang Yee 81c8a5762a bug-1040361: use keyring to store tokens
User can optionally turn off keyring by specifying the --no-cache option.
It can also be disabled with environment variable OS-NO-CACHE.

Change-Id: I8935260bf7fd6befa14798da9b4d02c81e65c417
2012-12-04 09:18:20 -08:00
Brian Waldon e53a1c33dd Add --version CLI opt and __version__ module attr
Change-Id: I8c39a797e79429dd21c5caf093b076a4b1757de0
2012-11-28 10:52:43 -08:00
Jenkins 62fe64bf2e Merge "updating PEP8 to 1.3.3" 2012-11-26 20:01:31 +00:00
Joe Heck f21e83c085 updating PEP8 to 1.3.3
* matching cinder, glance, etc
* made run_tests exclusions match tox

Change-Id: I9963245b079535a38a8c9b46917e8d833b62addb
2012-11-26 13:37:18 -06:00
Wu Wenxiang 83c57ccacb Correct a misspelled in comments
'fron' in keystoneclient/service_catalog.py should be 'from'

Change-Id: I75b01aca6eb905efa9d74f7deb4146c43525d4cc
2012-11-26 16:39:37 +08:00
Jenkins 657dbe7502 Merge "HACKING compliance: consistent usage of 'except'" 2012-11-13 20:47:22 +00:00
Henry Nash 943bde5250 Add auth-token code to keystoneclient, along with supporting files
This step in the process duplicates the auth-token code to keystoneclient but,
for the moment, leaves a copy in its origional location in keystone.
Testing for auth-token is also copied across, as is the cms support file.

Although no other project will yet pick up the code here in the client, since
the paste.ini files haev not yet been updated, it would work if anyone
did reference it.

Once the client code is in, the next step is to update all the other
project paste files, and then finally retire the code from keystone.

Change-Id: I88853a373d406020d54b61cba5a5e887380e3b3e
2012-11-12 19:40:21 +00:00
Jenkins 1b20d77b92 Merge "Make initial structural changes to keystoneclient in preparation to moving auth_token here from keystone. No functional change should occur from this commit (even though it did refresh a newer copy of openstack.common.setup.py, none of the newer updates are in functions called from this client)" 2012-11-10 03:04:58 +00:00
Henry Nash 86acb5657e Make initial structural changes to keystoneclient in preparation
to moving auth_token here from keystone.  No functional change
should occur from this commit (even though it did refresh a newer copy
of openstack.common.setup.py, none of the newer updates are in
functions called from this client)

blueprint authtoken-to-keystoneclient-repo

Change-Id: Ie54feb73e0e34b56400fdaa8a8f876f9284bac27
2012-11-09 02:35:11 +00:00
Joe Heck 0373b9f8e2 removing repeat attempt at authorization in client
blueprint solidify-python-api

* extended and updated documentation strings
* updated README.rst with latest options
* made debug a pass-through value, optionally set on client (instead of
  just being pulled from environment variable)
* adding AccessInfo object and associated tests
  (access.AccessInfo meant to be a cacheable object external to client
  and ultimately to replace service_catalog and it's existing functionality)
* extending authtoken to support lists of endpoints
* maintaining a single entity for client.management_url with first from
  list of possible endpoints
* create project_name and project_id synonyms to match tenant_name and
  tenant_id
* replacing authenticate call to a pure method, not overloading the
  resource/manager path that confuses base URL concepts.
* throw AuthorizationFailure if client attempts to access keystone
  resources before it has a management url
* special case listing tenant using auth_url for unscoped tokens authorized
  through client
* special case listing tokens.authenticate for Dashboard to allow unscoped
  tokens to hand back parity information to dashboard

Change-Id: I4bb3a1b6a5ce2c4b3fbcebeb59116286cac8b2e3
2012-11-09 00:02:41 +00:00
Jenkins 4ed4fb4d49 Merge "Replace refs to 'Keystone API' with 'Identity API'" 2012-11-06 06:12:53 +00:00
Dolph Mathews b2fbd868b9 HACKING compliance: consistent usage of 'except'
Change-Id: I13988e94d7e20a9179874ec5be072bdb8db3a95e
2012-11-05 10:13:48 -06:00
Dolph Mathews 376172a5c8 Merge remote-tracking branch 'origin/feature/keystone-v3' into HEAD
Conflicts:
	tests/v2_0/test_tenants.py

Change-Id: I37037e60210edd574da86b1dc07aa73e6761e338
2012-10-30 22:22:17 +00:00
Jenkins b4ab92e06b Merge "Add OpenStack trove classifier for PyPI" 2012-10-25 21:13:17 +00:00
Dolph Mathews 302086ac11 Replace refs to 'Keystone API' with 'Identity API'
Formally, OpenStack Keystone implements the OpenStack Identity API, and
this is a client to the API, not to Keystone itself.

Change-Id: If568866221a29ba041f0f2cd56dc81deeb9ebc00
2012-10-24 07:21:47 -05:00