summaryrefslogtreecommitdiff
path: root/openstackclient/image
Commit message (Collapse)AuthorAgeFilesLines
* Add --marker option to "image list" commandTang Chen2016-02-031-0/+11
| | | | | | | | Users could specify the last image (name or ID) of the previous page with --marker option to control the start image of the output. Change-Id: Idca0235ee83b1226b00c89cf3d38500fa898b7d0 Closes-Bug: #1540988
* Add limit option to "image list" commandxiexs2016-02-031-0/+8
| | | | | | | | This option is quite useful if there are too many images. Change-Id: If6a901c27c5da2d1f4412e8fa9ba3bed3b72fdd9 Co-Authored-By: Tang Chen <chen.tang@easystack.cn> Partial-Bug: #1540988
* Remove marker and loop from "image list" commandTang Chen2016-02-031-10/+1
| | | | | | | | | | | | Since --page-size has never worked, there is no paginate logic needs to be implemented in "image list" command. So remove the unnecessary loop. And also, the marker is not necessary because --marker option has not been implemented. Will add it back when implementing --marker option. Change-Id: I71fea1502f92f447a49697edb52e8e82f336772f Partial-Bug: #1540988
* log take_action parameters in a single placeAkihiro Motoki2016-02-022-66/+9
| | | | | | | | | | | | Previously each command logs take_action parameters explicitly by using @utils.log_method decorator or log.debug(). Some commands have no logging. This commit calls a logger in the base class and drops all logging definition from individual commands. Closes-Bug: #1532294 Change-Id: I43cd0290a4353c68c075bade9571c940733da1be
* Merge "Initialize activation status"Jenkins2016-01-211-0/+1
|\
| * Initialize activation statusTerry Howe2016-01-191-0/+1
| | | | | | | | | | | | | | activation_status throws an exception if the image set fails because it is not initialized. Change-Id: Iff6d5a8844eed954fb1c0bcea96118b99ac6bcf4
* | Change --owner to --project in image commandsDean Troyer2016-01-152-32/+117
|/ | | | | | | | | | * image create and image set now use --project to specify an alternate project to own the image * --owner is still silently accepted but deprecated, add warning messages * --project and --owner are mutually exclusive to prevent precedence issues Closes Bug: 1527833 Change-Id: Iccb1a1d9175ef9b5edcd79d294607db12641c1f0
* Merge "Trivial: Remove useless return from files in image and volume"Jenkins2015-12-281-2/+0
|\
| * Trivial: Remove useless return from files in image and volumeTang Chen2015-12-181-2/+0
| | | | | | Change-Id: I3526ecd202d0908d91305a066ad72d03cee794b5
* | Add owner validation for "openstack image create/set"xiexs2015-12-211-0/+18
| | | | | | | | | | | | | | | | Owner validation is necessary if a new image owner will be created/set. Change-Id: I621774e02866bfa98a31b613deff5d7b6a962737 Closes-Bug: #1517134
* | Add image re/deactivate commandsNiallBunting2015-12-161-2/+30
|/ | | | | | | | | | | | | | | | This change allows admins to deactivate and reactivate their images. Currently this has to be done with the REST api or the glanceclient. This change introduces `--deactivate` and `--activate` for the `image set` command. This requires glanceclient 1.2.0. Which got bumped here: https://review.openstack.org/#/c/257512/ Change-Id: I476c44a0343cdc92d58ddc93fb06470242de2345 Depends-On: I2c370c6bf6ff664d94d756cc76aaa983fbdb8869 Closes-Bug: 1516661
* Merge "Add --volume to Image `create`"Jenkins2015-12-041-5/+41
|\
| * Add --volume to Image `create`NiallBunting2015-11-201-5/+41
| | | | | | | | | | | | | | | | | | | | This was previously part of the command, so added it in for backwards compatibility. This adds the --volume command and the complimentary --force command allowing users to create images from volumes. It seems it may not be possible to add it to image set v2. Change-Id: Ica36e70989f75d80959af3227f66708758fae68d
* | Add status column for "openstack image list"xiexs2015-11-292-3/+8
| | | | | | | | | | | | | | | | | | Actually, the status column is useful for the user. So, it`s better to output this info by default (or, user had to specify the extra option, i.e. --long). Change-Id: Id2a9f86f0de5310f8f5ff9a46bf1b7411094b519 Closes-Bug: #1519181
* | Merge "Add --owner to `image create`"Jenkins2015-11-121-3/+7
|\ \
| * | Add --owner to `image create`NiallBunting2015-11-061-3/+7
| |/ | | | | | | | | | | | | This adds --owner to `image create`. This is backwards compatable with v1. Change-Id: I9e79cf880c91a1386419db729818d23dfe632179 Depends-On: I8d572a070bbb04dccdd051b8e0ad199c5754746e
* | Fix issue when displaying image_memberlin-hua-cheng2015-10-231-1/+1
|/ | | | | | | | image_member doesn't have a _info attribute, glanceclient returns warlock object instead of a Resource object. Change-Id: If6e7c4bd404454bd6cbe8c111879c1afa1380211 Closes-Bug: #1509054
* Merge "image set should not show the resource"Jenkins2015-10-082-11/+4
|\
| * image set should not show the resourceSteve Martinelli2015-10-062-11/+4
| | | | | | | | | | | | | | | | 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 "Add tags to `image set`"Jenkins2015-10-071-4/+15
|\ \ | |/
| * Add tags to `image set`NiallBunting2015-10-061-4/+15
| | | | | | | | | | | | | | | | | | | | | | | | 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-061-90/+90
|\ \ | |/
| * Clean up Image v2 image set commandDean Troyer2015-10-061-90/+90
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | Merge "Glance `image set` Resolve Fracturing"Jenkins2015-09-231-6/+58
|\ \
| * | Glance `image set` Resolve FracturingNiallBunting2015-09-231-6/+59
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | 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
* | Add image create support for image v2Monty Taylor2015-09-211-1/+186
|/ | | | | | | | | | | 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 "Do not set default versions in parsed args"Jenkins2015-07-241-5/+3
|\
| * Do not set default versions in parsed argsTerryHowe2015-07-181-5/+3
| | | | | | | | | | | | | | | | | | | | | | Setting default versions in parsed args makes it so OCC cannot tell if the argument was parsed, an environment variable was set or it is just defaulted. In order to set api versions from OCC, it will have to be defaulted after processing OCC. Closes-Bug: #1453229 Change-Id: I4d065919397b783f3bdd4022c986c0234a7a16e6
* | Merge "add image member commands for image API"Jenkins2015-07-201-0/+80
|\ \
| * | add image member commands for image APIchengkunye2015-07-201-0/+80
| | | | | | | | | | | | | | | | | | | | | | | | | | | This commit adds the following commands: image project add image project remove Closes-Bug: 1402420 Change-Id: I07954e9fa43a3ad6078dd939ecedf9f038299e7b
* | | Merge "Fix image save with API v2"Jenkins2015-07-191-1/+1
|\ \ \ | |_|/ |/| |
| * | Fix image save with API v2David Moreau Simard2015-07-151-1/+1
| |/ | | | | | | | | | | | | | | Glanceclient v2 no longer expects the whole image object, just the image id. Change-Id: I8f34acfa50ca2d50eb7c9eb1dd5114c4621ad158 Closes-bug: #1475001
* | Rename endpoint type to interfaceTerryHowe2015-07-151-2/+2
|/ | | | | Change-Id: I4e21d09bc747e8210f4f79a1d6c4c7ccf2f25d1c Closes-Bug: #1454392
* Merge "Add --os-endpoint-type cli optional argument"Jenkins2015-07-031-0/+2
|\
| * Add --os-endpoint-type cli optional argumentRoxana Gherle2015-07-021-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | User should be able to specify the endpoint type through a CLI optional argument/ENV variable setting. We will name this new optional argument: --os-endpoint-type (Env: OS_ENDPOINT_TYPE) and based on the value given, the service API will use that specific endpoint type. Possible values: public, admin, internal. DocImpact Closes-Bug: #1454392 Change-Id: Ife3d4e46b44c0ddcd712b1130e27e362545a9a29
* | Merge "Move update code from image create command"Jenkins2015-07-021-38/+104
|\ \
| * | Move update code from image create commandMarek Aufart2015-07-021-38/+104
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | Openstack image create command updates existing image (with same name) by default. That might be confusing since glance allows create multiple images with same names and may lead to unwanted image update by image create command. Image update code was moved from image create action to image set action. BackwardsIncompatibleImpact Change-Id: I1686c6544c366262efab9e33c066d5f8a667f707 Closes-Bug: #1461817
* | Add functional tests for image setTerryHowe2015-06-161-0/+3
|/ | | | | | | | | | | | | | | | This patch includes functional tests for image set and it includes a change to use the OSC utils.format_dict method to format the properties. This will give a more user friendly format to the image commands and it gives a more consistent testable format to the output. Instead of: {u'a': u'b', u'c': u'd'} The user will see: a=b, c=d Change-Id: Ib396316586ffc5dbab231064d5b6dc9425507934
* Add support for v2 image set commandAmey Bhide2015-05-271-0/+137
| | | | | Partial-Bug: #1405562 Change-Id: Ie30802d720a247748c45099c38450cc6c76bbc2a
* Add missing properties to image set commandAmey Bhide2015-05-251-1/+24
| | | | | | | | Enable user to update the following image properties from OSC: container-format, disk-format, size Closes-Bug: #1446362 Change-Id: Id9f40f15702e8f14f0327a37fcc7d7971338c258
* Minor fix to openstack image show commandAmey Bhide2015-05-011-1/+1
| | | | | | | | | | image show using V2 api was failing. openstack --os-image-api-version 2 image show <image_id> ERROR: openstack _info Closes-Bug: #1450829 Change-Id: Ic95db2f63d9f5f37e29f0d7e048397da311fbf8c
* Fix tiny typo in comment messageLin Yang2015-04-302-2/+2
| | | | | | | compatability => compatibility Change-Id: I3181fb2b83df1e2cb60a9eedf319f2ad0a487dba Signed-off-by: Lin Yang <lin.a.yang@intel.com>
* Merge "Handle the pagination for image list"1.1.0Jenkins2015-04-202-2/+22
|\
| * Handle the pagination for image listTerryHowe2015-04-202-2/+22
| | | | | | | | | | | | | | Handle the paginatiion for image list. We were sorting the data here, so nothing lost for the generator. Change-Id: I2d7d4b3d5c9f650953f309c971ac53b64f6f7f77
* | Fix skipped image create attribute location attrMarek Aufart2015-04-171-1/+1
|/ | | | | | | | | | Image create action accepts attribute called location, in method body is list of allowed attributes, which contain localtion, what is typo and this attribute was not passed to glance. Fixed. Change-Id: I357b06b63b8aa97f7a5f587ef3fcee7a4b360ed1 Closes-Bug: #1445460