summaryrefslogtreecommitdiff
path: root/openstackclient
Commit message (Collapse)AuthorAgeFilesLines
* Merge "Add test for role list --inherited"Jenkins2015-10-121-0/+33
|\
| * Add test for role list --inheritedDean Troyer2015-10-071-0/+33
| | | | | | | | Change-Id: I216ab6c8ac903720ec67870a5171ae57a8f293aa
* | Merge "image set should not show the resource"Jenkins2015-10-084-25/+7
|\ \
| * | image set should not show the resourceSteve Martinelli2015-10-064-25/+7
| | | | | | | | | | | | | | | | | | | | | | | | the rest of OSC set commands do not show the resource after it has been updated. unless the update fails then we report back a failure, otherwise the user should assume everything went fine. Change-Id: I2bd4188450c3853b4a1bc25f80fc9450cda32bdd
* | | Merge "Evaluate --inherited in role list"Jenkins2015-10-082-0/+10
|\ \ \ | | |/ | |/|
| * | Evaluate --inherited in role listRudolf Vriend2015-10-062-0/+10
| | | | | | | | | | | | | | | | | | | | | | | | the --inherited option was not being passed into keystoneclient Closes-Bug: #1502822 Change-Id: I48170dc67b23cc9b0665b1e0f38118eea952f131
* | | Fix non-ascii issue with object commandslin-hua-cheng2015-10-061-13/+22
| | | | | | | | | | | | | | | | | | | | | | | | Escape the container and object name whenever it is used as URL. Change-Id: I2343c1e67843ab53773b3fca6e258dc329cd9573 Closes-Bug: #1503508
* | | Merge "Add ID column to compute service list"Jenkins2015-10-071-0/+1
|\ \ \
| * | | Add ID column to compute service listAlex Schultz2015-10-061-0/+1
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | This change adds the ID to the compute service list command so that the ID can be leveraged by scripts trying to remove or update a specific service. Change-Id: I446b4c0071988133195eb2382313b3918b7ffa72 Closes-Bug: #1503430
* | | Merge "Add tags to `image set`"Jenkins2015-10-074-10/+113
|\ \ \ | | |/ | |/|
| * | Add tags to `image set`NiallBunting2015-10-064-10/+113
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This adds --tag to the v2 version of `image set`. This is another step to compatability between the osc image api. Added merge of tags into existing tags and handling duplicates, and tests for same. Co-Authored-By: Steve Martinelli <stevemar@ca.ibm.com> Change-Id: Ie800fcbf8bbc0978c54ace3278750a18023e8ce4
* | | Merge "Clean up Image v2 image set command"Jenkins2015-10-062-123/+264
|\ \ \ | |/ / | | / | |/ |/|
| * Clean up Image v2 image set commandDean Troyer2015-10-062-123/+264
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Make the Image v2 image set command meet at the intersection of the v1 image set command and the v2 image create command: * Add visibility to the deadopts list and remove the option * Put the options in the same order as v1 image set * Make the help text match * Add --properties * Move the additional options that do not appear in either v1 image set or v2 image create after --property as they are really pre-defined properties * Add tests for v2 image set to match v1 and then some * Put the SetImage class in v2/image.py in alphabetical order Change-Id: I102b914e8ad09a014f6fdd846c5766b6c2eaadb8
* | Merge "Image fix bug with --volume"Jenkins2015-10-061-12/+14
|\ \
| * | Image fix bug with --volumeNiallBunting2015-09-181-12/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Currently after calling the cinderclient to create an image from a volume, it also then tries to create another image. This fails as the keyword volume is unexpected. This add checks so the image is not created in this case. Allowing --volume to not throw an error when it has worked. Change-Id: I67e650eb0b8c331d86515e3e326c39a5d6dad5e1 Closes-Bug: 1497221
* | | add set/unset support for objects in object storeSteve Martinelli2015-10-062-0/+114
| | | | | | | | | | | | | | | | | | | | | | | | | | | add docs and command support to set and unset metadata of objects that are stored in an object store (swift). Closes-Bug: #1501945 Change-Id: If838a4b3343b6ddb97cd4bd1cb63f0ba1c1a00a1
* | | add support for set/unset of container propertiesSteve Martinelli2015-10-062-16/+124
| | | | | | | | | | | | | | | | | | | | | | | | include docs and commands to set and unset container properties Partial-Bug: #1501945 Change-Id: I8d7e8cf356a2321a37ed940c4e10cae411b94dfd
* | | Merge "Add one parenthesis"Jenkins2015-10-051-1/+1
|\ \ \
| * | | Add one parenthesisAtsushi SAKAI2015-10-021-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In the following help message, last parenthesis is missing. $ openstack --os-volume-api-version 2 help volume delete usage: openstack volume delete [-h] [--force] <volume> [<volume> ...] Delete volume(s) positional arguments: <volume> Volume(s) to delete (name or ID) optional arguments: -h, --help show this help message and exit --force Attempt forced removal of volume(s), regardless of state (defaults to False Change-Id: I45c4030abf076cba14450019c379d333eb6530d6
* | | | Merge "cleanup account ids from container commands"Jenkins2015-10-054-6/+12
|\ \ \ \
| * | | | cleanup account ids from container commandsSteve Martinelli2015-10-024-6/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | use a common function to determine account ID instead of different ways - depending on the response and command Change-Id: I95adc5dc7d5a82a2cffc570d1ded24d1fc754a11
* | | | | Merge "Add support for showing account details"Jenkins2015-10-052-1/+34
|\ \ \ \ \ | |/ / / /
| * | | | Add support for showing account detailsSteve Martinelli2015-10-022-1/+34
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | add the command `openstack account show` that lists details about the object store account that the user authenticated against. Partial-Bug: #1501943 Change-Id: I1246dafee812b63a41d43be4e3598224364a2c11
* | | | | Merge "Add support for updating swift account properties"Jenkins2015-10-052-0/+118
|\ \ \ \ \ | |/ / / /
| * | | | Add support for updating swift account propertiesSteve Martinelli2015-10-012-0/+118
| | |/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | this patch adds support for creating/updating and removing properties (nee: metadata) for object store accounts. Partial-Bug: #1501943 Change-Id: I3ed70a5d8bd8920fedb79adc60cdc602261d5eef
* | | | Add tests for find_resource()Dean Troyer2015-10-011-0/+54
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Add a couple of tests for utils.find_resource() for the odd resources and managers without resource_class. Change-Id: I2ed9b491d1361b5259b3a5f80b4fac787a7087c1
* | | | attempt to find resource by listingSteve Martinelli2015-09-301-2/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | add a last-ditch effort to find the resource in question by listing all the resources and doing a simply match for name and id. if no match is found then raise an error, if the list call is unsuccessful, raise the same error. we have failed this city. Closes-Bug: #1501362 Change-Id: I0d3d7002e9ac47b17b1ef1a5534406c85b1fc753
* | | | Additional exception handling for find_resourceSteve Martinelli2015-09-301-7/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | A few things here: 1) we need to check if the client class even has a 'resource_class', in the case of glanceclient, it does not. 2) If everything fails we should print a better error message, rather than a "find" failed, since some clients don't support find. Change-Id: I6277322639e75b1635f9f3d159753efadbce1031
* | | | Merge "Override the debug default and help text"Jenkins2015-09-241-0/+4
|\ \ \ \ | |_|/ / |/| | |
| * | | Override the debug default and help textTerryHowe2015-08-181-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Cliff sets the default debug value to False and this makes it impossible to override debug with OCC. If we set the default to None, we can override debug in clouds.yaml. Also, OSC changes the meaning of --debug, so modify the help text. Change-Id: I5e6680b2286cd7f55afe4b083fae5f8a4a9567a2 Closes-Bug: #1483378
* | | | Merge "Use `discover_extensions` for novaclient"Jenkins2015-09-231-7/+3
|\ \ \ \ | |_|_|/ |/| | |
| * | | Use `discover_extensions` for novaclientAndrey Kurilin2015-09-111-7/+3
| | |/ | |/| | | | | | | | | | | | | | | | | | | | | | novaclien v2.26.0 includes `discover_extensions` method, which returns list of all nova extensions based of version. Such method allows us to reduce imports of novaclient's modules and construct novaclient instance simpler. Change-Id: Idbe3ed275fb4a7e3918b11669dcfad47b8de4fb9
* | | Merge "Glance `image set` Resolve Fracturing"Jenkins2015-09-232-8/+59
|\ \ \
| * | | Glance `image set` Resolve FracturingNiallBunting2015-09-232-8/+60
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Currently `image set` uses the new api, where other parts of osc the old api is used. This deprecates the v2 api in favour of the v1 to maintain the same commands across osc. However the functionality now remains there as people could now be using this functionality. This also adds the --unprotected argument, as in the previous version if --protected was not supplied it would just make the argument --unprotected without the users explicit consent. The patch also fixes the documentation for image set as it was outdated. Change-Id: I990d20332c80165102badef7ac94ddbeb7824950 Closes-Bug: 1498092
* | | | Merge "Use format_list instead of format_dict when listing images"Jenkins2015-09-211-1/+1
|\ \ \ \
| * | | | Use format_list instead of format_dict when listing imagesSteve Martinelli2015-09-211-1/+1
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | This currently breaks listing images with --long. Tags are an array and shouldn't be formatted as a dictionary. Change-Id: I6d1d85351b58ae4824498774673ebdc8eaa7e420 Closes-Bug: #1498150
* | | | Merge "Format an images properties and tags"Jenkins2015-09-211-3/+35
|\ \ \ \
| * | | | Format an images properties and tagsSteve Martinelli2015-09-211-3/+35
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Currently, these properties are each top level keys, they should all be under a single 'properties' field. Secondly, the tags are kept as an array, but can be shown as a comma separated string. Change-Id: Ic769c657a86e768fee38acc40434c377de70a7bc
* | | | | Merge "Add image create support for image v2"Jenkins2015-09-212-1/+372
|\ \ \ \ \ | |/ / / / | | / / / | |/ / / |/| | |
| * | | Add image create support for image v2Monty Taylor2015-09-212-1/+372
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We have it for v1, but v2 is the future. There are two differences, things in v2 do not go into a properties dict, and the actual image data needs to get uploaded as a second step. Closes-Bug: 1405562 Co-Authored-By: Niall Bunting <niall.bunting@hp.com> Co-Authored-By: Sean Perry <sean.perry@hp.com> Change-Id: If7b81c4a6746c8a1eb0302c96e045fb0f457d67b
* | | | Merge "Set default auth plugin back to 'password'"Jenkins2015-09-211-1/+1
|\ \ \ \ | |/ / / |/| | |
| * | | Set default auth plugin back to 'password'Dean Troyer2015-09-181-1/+1
| |/ / | | | | | | | | | | | | | | | This was a hack that should be less needed now... Change-Id: Id8cba87ad05b106aa36e356c0d70a568316fd327
* | | Merge "Remove backticks from help in role commands"Jenkins2015-09-191-1/+1
|\ \ \
| * | | Remove backticks from help in role commandsHidekazu Nakamura2015-09-191-1/+1
| |/ / | | | | | | | | | | | | | | | | | | | | | the docs and code had inconsistencies with how it references other arguments, lets just remove the backticks from around them. Change-Id: I43d17b07364e45387c6b9d86c2aca26eeea8ed93
* | | Merge "Move option logging back to start if initialize_app()"Jenkins2015-09-191-2/+2
|\ \ \
| * | | Move option logging back to start if initialize_app()Dean Troyer2015-09-181-2/+2
| |/ / | | | | | | | | | | | | | | | | | | The log for the options should be printed early enough to see what is being passed in to occ. Change-Id: I97b09bc28abcd485b6793d0223b9f8602237fd80
* | | Merge "Add tests for volume quota set"Jenkins2015-09-192-2/+46
|\ \ \
| * | | Add tests for volume quota setTerryHowe2015-08-112-2/+46
| | |/ | |/| | | | | | | | | | | | | | | | Add some tests for volume quota set and get rid of TODO about using the value instead of the key to get the attribute. Change-Id: I57aa57951aeea65965966e63af922cda532d759d
* | | Merge "Support listing users by group name"Jenkins2015-09-191-6/+4
|\ \ \ | |_|/ |/| |
| * | Support listing users by group nameSteve Martinelli2015-09-071-6/+4
| |/ | | | | | | | | | | | | | | | | | | | | Listing users within a group is not presently domain scoped. We do not use the domain info at all when the group option is present. A new --group-domain option is not needed since we cannot list users by --project and --group, they are mutually exclusive (as per the identity API). Closes-Bug: 1492916 Change-Id: I50f995ee4a03c2bdb21f2b5722546ab8fe786eb6