summaryrefslogtreecommitdiff
path: root/openstackclient
Commit message (Collapse)AuthorAgeFilesLines
* Move plugin stuff to clientmanagerDean Troyer2014-10-132-18/+30
| | | | | | | | | | | | | The OSC plugins work by adding an object as an attribute to a ClientManager instance. The initialization and management of thos plugins belongs in clientmanager.py. At this point the only part not moved is the API version dict initialization bcause the timing and connection to the CommandManager initialization. It gets refactored anyway when API discovery becomes operational. Change-Id: If9cb9a0c45a3a577082a5cdbb793769211f20ebb
* Merge "Mark identity v2 resources for translation"Jenkins2014-10-127-60/+64
|\
| * Mark identity v2 resources for translationSteve Martinelli2014-10-097-60/+64
| | | | | | | | | | | | mark v2 catalog, ec2, endpoint, project, role, service and token Change-Id: I14a5852bfee4ca9e25130d001fdadd7778ad0996
* | Merge "Update compute server messages for translation"Jenkins2014-10-121-121/+118
|\ \
| * | Update compute server messages for translationSteve Martinelli2014-10-081-121/+118
| |/ | | | | | | | | | | | | | | Mark some of the messages from the server for translation implements bp use_i18n Change-Id: I503efcfb4ca3dec1c427b58ee4a85de9a241dacd
* | Merge "Add translation markers for user v2 actions"Jenkins2014-10-122-21/+22
|\ \
| * | Add translation markers for user v2 actionsSteve Martinelli2014-10-092-21/+22
| |/ | | | | | | | | | | implements bp use_i18n Change-Id: I86508a232c9cf88695b7982dad0b9b02eaf8b3a1
* | Merge "Fix issue token for v3"Jenkins2014-10-123-4/+7
|\ \
| * | Fix issue token for v3Steve Martinelli2014-10-113-4/+7
| | | | | | | | | | | | | | | | | | | | | | | | Currently the code is broken as it references a part of keystoneclient that does not exist. Change-Id: I7fbc754537fbb4acffb166b5854840acfaef1fb8 Closes-Bug: #1379871
* | | Allow --domain to be used for identity commands without lookupNathan Kinder2014-10-093-27/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Performing create, list, or set operations for users, groups, and projects with the --domain option attempts to look up the domain for name to ID conversion. In the case of an environment using Keystone domains, it is desired to allow a domain admin to perform these operations for objects in their domain without allowing them to list or show domains. The current behavior prevents the domain admin from performing these operations since they will be forbidden to perform the underlying list_domains operation. This patch makes the domain lookup error a soft failure, and falls back to using the passed in domain argument directly as a domain ID in the request that it sends to Keystone. Change-Id: I5139097f8cedc53693f6f71297518917ac72e50a Closes-Bug: #1378565
* | | Add domain parameters to user show for Identity V3Steve Martinelli2014-10-094-21/+75
|/ / | | | | | | | | | | | | | | | | | | | | Update `user show` for Identity V3 to account for a domain argument, in doing so, also update `find resource` to be more flexible by allowing **kwargs. Also update `group show` and `project show` since they follow the same logic as a user within a group. Change-Id: Ib828e4dbeb0bd31164396069ce8a64c873179779 Closes-Bug: #1378165
* | Support for keystone auth pluginsMatthieu Huin2014-10-097-305/+579
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch allows the user to choose which authentication plugin to use with the CLI. The arguments needed by the auth plugins are automatically added to the argument parser. Some examples with the currently available authentication plugins:: OS_USERNAME=admin OS_PROJECT_NAME=admin OS_AUTH_URL=http://keystone:5000/v2.0 \ OS_PASSWORD=admin openstack user list OS_USERNAME=admin OS_PROJECT_DOMAIN_NAME=default OS_USER_DOMAIN_NAME=default \ OS_PROJECT_NAME=admin OS_AUTH_URL=http://keystone:5000/v3 OS_PASSWORD=admin \ OS_IDENTITY_API_VERSION=3 OS_AUTH_PLUGIN=v3password openstack project list OS_TOKEN=1234 OS_URL=http://service_url:35357/v2.0 \ OS_IDENTITY_API_VERSION=2.0 openstack user list The --os-auth-plugin option can be omitted; if so the CLI will attempt to guess which plugin to use from the other options. Change-Id: I330c20ddb8d96b3a4287c68b57c36c4a0f869669 Co-Authored-By: Florent Flament <florent.flament-ext@cloudwatt.com>
* | Merge "Update for cliff commandmanager >=1.6.1"Jenkins2014-10-092-22/+12
|\ \
| * | Update for cliff commandmanager >=1.6.1Dean Troyer2014-10-082-22/+12
| |/ | | | | | | | | | | | | | | | | Cliff 1.6.1 added CommandManager.load_commands() so we can adopt it rather than rolling our own. Also, that second group is Greek, not Latin. Jeez... Change-Id: I4a63c22f37bcfd0ef5d83c2dbd08b58fda0db35c
* | Merge "CRUD operations for federated protocols"Jenkins2014-10-093-0/+391
|\ \
| * | CRUD operations for federated protocolsMarek Denis2014-10-083-0/+391
| | | | | | | | | | | | | | | | | | | | | | | | | | | Openstackclient needs to have a capability to manage federated protocols (like saml2, openid connect, abfab). This patch allows users to administrate such operations from the commandline. Change-Id: I59eef2acdda60c7ec795d1bfe31e8e960b4478a1 Implements: bp/add-openstackclient-federation-crud
* | | Merge "Pass in domain and project as positional args, not kwargs"Jenkins2014-10-092-4/+4
|\ \ \ | |/ / |/| |
| * | Pass in domain and project as positional args, not kwargsSteve Martinelli2014-10-022-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The signature for users.set in keystoneclient dictates that domain and project be sent in, not domainId and projectId, which are being incorrectly sent in as 'extra' data. Closes-Bug: #1376833 Change-Id: I44df3e492f61eab2241f3758dee622417bb6f399
* | | Merge "Fix issues with object related commands"Jenkins2014-10-082-8/+3
|\ \ \
| * | | Fix issues with object related commandsSteve Martinelli2014-10-062-8/+3
| | |/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1) Can't create instance of swiftclient. Since we now create an API instance, creating a swiftclient instance won't work. Trying to do any object related command fails. 2) Listing objects in a container fails, we depend on the data returned in a specific way, during the API transition this must have slipped through. Needs regression/funcitonal tests to mame sure this doesn't happen again. Change-Id: I69079a0dc9f32b84e6f9307729d3dbbba549ac5e
* | | Merge "Implement CRUD operations for Mapping objects"Jenkins2014-10-083-0/+509
|\ \ \ | |/ / |/| |
| * | Implement CRUD operations for Mapping objectsMarek Denis2014-10-083-0/+509
| | | | | | | | | | | | | | | Change-Id: I4b8f2e77e741cf74f50aba98ab975af7321b02c6 Implements: bp/add-openstackclient-federation-crud
* | | Remove duplicate env function in shell.pySteve Martinelli2014-10-021-25/+12
| |/ |/| | | | | | | | | | | There already exists an env() function in utils. Let's use that one since it's common. Change-Id: I661984394cf0c0543b2f35bf76e3929dead54d1d
* | Move object-store commands to low-level APIDean Troyer2014-10-0113-1066/+773
| | | | | | | | | | | | | | | | api.object_store.APIv1 now contains the formerly top-level functions implementing the object-store REST client. This replaces the old-style ObjectClientv1 that is no longer necessary. Change-Id: I7d8fea326b214481e7d6b24119bd41777c6aa968
* | Add low-level API base classDean Troyer2014-09-294-0/+711
| | | | | | | | | | | | | | | | | | | | Adds the foundation of a low-level REST API client. This is the final prep stage in the conversion of the object-store commands from the old restapi interface to the keystoneclient.session-based API. * api.api.BaseAPI holds the common operations Change-Id: I8fba980e3eb2d787344f766507a9d0dae49dcadf
* | Test top-to-bottom: object-store containersDean Troyer2014-09-293-8/+352
|/ | | | | | | | | | Replicate the object-store container command tests but use requests_mock to test the entire stack down to the requests module. These will be useful regressions tests when the existing object-store lib modules are moved to the low-level API object. Change-Id: Ibf25be46156eb1009f1b66f02f2073d3913b846d
* Merge "utils.find_resource does not catch right exception"Jenkins2014-09-281-2/+9
|\
| * utils.find_resource does not catch right exceptionwanghong2014-09-241-2/+9
| | | | | | | | | | | | | | | | | | Currently, utils.find_resource catch NotFound exception defined in openstackclient. However, different client libraries raise different exceptions defined in thire own library. Change-Id: Idc40428e30e59f71dbdbfa0555c0066fddc441c2 Closes-Bug: #1371924
* | Remove unused reference to keyringSteve Martinelli2014-09-231-2/+0
| | | | | | | | | | | | There's a unnecessary reference that is not being used. Change-Id: I5ac85d2331385e4a31970b63fd17e650f82046ca
* | v3 credential set always needs --user optionwanghong2014-09-231-4/+5
|/ | | | | Change-Id: Ieca76bb6ee2f328f4e33010623c25eb9c18e6952 Closes-Bug: #1372744
* Use oslo.utilsOleksii Chuprykov2014-09-226-881/+2
| | | | | | | | Module `importutils` from common code was graduated to oslo.utils, so it would be great if we reuse this library. Remove unused strutils.py and gettextutils.py Change-Id: Iaae19fc5018d83103e5f15ff76d6da686bfdf5f8
* Merge "Fixing typo and improving docstring of find_domain"Jenkins2014-09-221-5/+5
|\
| * Fixing typo and improving docstring of find_domainVictor Silva2014-09-191-5/+5
| | | | | | | | | | | | | | | | | | This should make it easier to understand the purpose of find_domain - I believe the reason for which find_resource wasn't enough was not quite clear. Change-Id: I6a1cdfa86f52401d95c6da2cd38d7c95a140b4a1
* | Change help text for image save commandSteve Martinelli2014-09-212-2/+2
|/ | | | | Change-Id: Ib2aecb68ffa06f9ac831131944c98c49cf99c75a Closes-Bug: #1372070
* Merge "Add service catalog commands"Jenkins2014-09-192-0/+205
|\
| * Add service catalog commandsDean Troyer2014-09-182-0/+205
| | | | | | | | | | | | | | | | 'catalog list' and 'catalog show' for Identity v2 Identity v2 only so far. Change-Id: I9df0dac3d5bb7c18f38a81bd7d29f8119462d3a5
* | Merge "Return current user/project for user/project show commands"Jenkins2014-09-182-17/+53
|\ \
| * | Return current user/project for user/project show commandsDean Troyer2014-09-142-17/+53
| |/ | | | | | | | | | | | | | | If non-admin user attempts 'project show' or 'user show' on the currently authenticated project or user return the information that is already in the service catalog rather than throwing a Forbidden error. Change-Id: Ieeb6eacf71a471e410fbd3c09e7871740547e890
* | Merge "Add network extension list"Jenkins2014-09-183-15/+126
|\ \
| * | Add network extension listTerry Howe2014-07-263-15/+126
| | | | | | | | | | | | | | | | | | | | | Network extension list support Change-Id: I013f68ef2c3329c8db59e2441dd8d4ffafd4470e Closes-Bug: #1337685
* | | Merge "Multiple args for object and container commands"Jenkins2014-09-182-34/+57
|\ \ \
| * | | Multiple args for object and container commandsTerry Howe2014-09-062-34/+57
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Have object and container create and delete handle multiple arguments. Change-Id: I389358c13ac2d99655ca26e784e3d299286c0af3
* | | | Merge "Add support for 'file' format objects"Jenkins2014-09-181-0/+4
|\ \ \ \
| * | | | Add support for 'file' format objectsSteve Martinelli2014-09-151-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Some objects can be saved as 'dirname/filename' which causes the existing support to fail. The correct behaviour should be to create the directories needed. Change-Id: I71c61bc3b0f76a3e6d2703bd45508f9d6483546e
* | | | | Merge "Add preliminary save container support"Jenkins2014-09-182-0/+43
|\ \ \ \ \ | |/ / / /
| * | | | Add preliminary save container supportSteve Martinelli2014-09-152-0/+43
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Save all objects from a container implements bp: swift-client Change-Id: I7f2437236574e212033e63d768929d813289ed05
* | | | | Merge "Add preliminary support for downloading objects"Jenkins2014-09-182-0/+62
|\ \ \ \ \ | |/ / / /
| * | | | Add preliminary support for downloading objectsSteve Martinelli2014-09-152-0/+62
| | |_|/ | |/| | | | | | | | | | | | | | | | | | | | | | Added command and library to download a single object from swift Change-Id: I3dc47b414ff37b526e6f633aa83ac3aa4b5be0ae implements: bp swift-client
* | | | Merge "Use Keystone client session.Session"Jenkins2014-09-1710-742/+102
|\ \ \ \ | |/ / /
| * | | Use Keystone client session.SessionDean Troyer2014-09-0810-742/+102
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This replaces the restapi requests wrapper with the one from Keystone client so we can take advantage of the auth plugins. As a first step only the v2 and v3 token and password plugins are supported. This maintainis no changes to the command options or environment variables. The next steps will include reworking the other API client interfaces to fully utilize the single auth session. Blueprint: ksc-session-auth Change-Id: I47ec63291e4c3cf36c8061299a4764f60b36ab89