summaryrefslogtreecommitdiff
path: root/openstackclient/image
Commit message (Collapse)AuthorAgeFilesLines
* 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
* Use glanceclient's inbuilt images findJamie Lennox2015-04-021-55/+1
| | | | | | | | Glanceclient image listing was special cased as it wasn't implemented in glanceclient directly. This is no longer the case and we should use glanceclient's functions. Change-Id: If8d1246f1bd97c07f9f10f5457aa32124efa0be3
* Add sort support to image listzhiyuan_cai2015-02-062-0/+20
| | | | | | | | | | Add sort support to image list by sorting items in the client side. The parameter syntax follows this spec[1]. [1] https://review.openstack.org/#/c/145544/ Change-Id: I42b487d18f00f937db1938daa46487cea2a896ab Closes-Bug: #1410251
* Add filter to image listDean Troyer2015-01-272-22/+155
| | | | | | | | | | | | | | | * Hides previously broken --page-size option * Adds --property to image list for filtering on properties * Adds Visibility, Protected, Owner, Properties/Tags to --long output * Adds api.utils.simple_filter() for selecting matches out of a list of objects * Adds tests for all of the above * Updates image docs There are additional filtering options to be added in later reviews. Change-Id: I32feff0ad61aae749b33621c817658d7dc90c3aa Closes-bug: 1401902
* Begin low-level API for Image v1 and v2Dean Troyer2015-01-203-6/+72
| | | | | | | | | image list for v1 and v2: * Add --public|--private to command parsers * Implement local public/private filtering for v1 image_list() * Pass public/private filter to server for v2 image_list() Change-Id: Ie7c24ea2d1bf2b3b1b7fa342eb45fee45894634d
* Command doc: imageSteve Martinelli2015-01-092-14/+14
| | | | Change-Id: Ib1563b58351315dc2a44ad77882f8c834a1214c0
* add multi-delete support for compute/image/net/volumewanghong2014-12-232-16/+20
| | | | | | | | | | | | | | This is part1, add support for these objects: compute.server imagev1.image imagev2.image network.network volume.volume volume.backup volume.snapshot Closes-Bug: #1400597 Change-Id: Ice21fee85203a8a55417e0ead8b509b8fd6705c1
* Merge "Close files on image create"Jenkins2014-10-241-23/+30
|\
| * Close files on image createDean Troyer2014-10-141-23/+30
| | | | | | | | | | | | | | The file opened for --file was never closed. Close it if it is a file object. Change-Id: I7bd120a2413de42339771d01e8fd1894d38c3011
* | Remove ClientManager._service_catalogDean Troyer2014-10-181-3/+5
| | | | | | | | | | | | | | | | | | | | Anything that needs a service catalog can get it directly from auth_ref.service_catalog, no need to carry the extra attribute. ClientManager.get_endpoint_for_service_type() reamins the proper method to get an endpoint for clients that still need one directly. Change-Id: I809091c9c71d08f29606d7fd8b500898ff2cb8ae
* | Remove now-unnecessary client creation hacksDean Troyer2014-10-181-1/+1
|/ | | | | | | | | | | | | | | | | | | | Clients that can use ksc Session don't need the old junk to fake auth anymore: * compute * volume Clients that still need to be fed credentials can pick directly from the auth object in clientmanager. The _token attribute is removed, the token can be retrieved from the auth object: openstackclient/tests/common/test_clientmanager.py This change will break any plugin that relies on getting a token from instance._token. They should be updated to use the above, or preferable, to use keystoneclient.session.Session to create its HTTP interface object. Change-Id: I877a29de97a42f85f12a14c274fc003e6fba5135
* Change help text for image save commandSteve Martinelli2014-09-212-2/+2
| | | | | Change-Id: Ib2aecb68ffa06f9ac831131944c98c49cf99c75a Closes-Bug: #1372070
* Merge "Add more columns to image list output"Jenkins2014-07-262-2/+22
|\
| * Add more columns to image list outputSteve Martinelli2014-07-252-2/+22
| | | | | | | | | | | | | | | | Add disk_format, container_format, size and status to image list command. Added tests as well. Change-Id: I8e3822c6d46d0020fc706955c026549f6c635587 Closes-Bug: #1348475
* | Change V2 image tests to actually run V2 image codeSteve Martinelli2014-07-251-1/+1
|/ | | | | | | | | | The current tests for image do not run v2 image code, changing that portion also made it's only test fail. I opted to change the image delete code and not the test, since passing the object ID is more in line with the rest of the project code. Change-Id: I62e13c063a5d68279dbbf31e59266db6285d73bf
* Clean up make_client() loggingDean Troyer2014-07-081-0/+1
| | | | Change-Id: I0b6760a6401b50e3dfb891af75424ae89df42ebc
* Image create and set command updates and testsDean Troyer2014-06-161-135/+187
| | | | | | | | | | | | | Refactor image create and set commands to properly handle properties. This is particularly tricky with exclusive booleans as in this case leaving both choices off the command line should NOT assume a default value but leave the existing value unchanged. Properties were not being updated correctly in the 'image set' command. Refactor it to use the same pattern as in other SetXxx commands. Add tests for arg handling. Change-Id: I123a64c9b4feecab25a3e2013cc047f55b1c9967
* replace string format arguments with function parametersChristian Berendt2014-05-202-10/+10
| | | | | | | | There are files containing string format arguments inside logging messages. Using logging function parameters should be preferred. Change-Id: Ic749ac9eb55564ed631d57055a5a4dfc3aebd169
* Add --volume option to image create commandTerry Howe2014-03-051-16/+43
| | | | | | | | | | | Add ability to create an image from a volume. * Added --volume command to image create * Added --force option to image create * Added block to access volume manager in image create * Tests added for the volume option Change-Id: I3910a2b5e04acd0d15dd230747ba6ebca07aa316 Closes-Bug: #1207615
* Merge "Glance client no longer isa http client"Jenkins2014-02-201-1/+1
|\
| * Glance client no longer isa http clientTerry Howe2014-02-071-1/+1
| | | | | | | | | | | | | | If the client has-a http_client, then is must not be an is-a. This has been tested with the current version of glanceclient and the master branch. Closes-Bug: #1269821 Change-Id: I14d67eb094bfb4c2dbc07106343488298b6a9409
* | Remove copyright from empty filesAlexander Ignatov2014-01-203-42/+0
|/ | | | | | | | | According to policy change in HACKING: http://docs.openstack.org/developer/hacking/#openstack-licensing empty files should no longer contain copyright notices. Change-Id: Iba09a00f24dfbd1cd03c1c9f70ea216788e64d93 Closes-Bug: #1262424
* Merge "Fix image set properties error"Jenkins2014-01-101-0/+1
|\
| * Fix image set properties errorDean Troyer2014-01-061-0/+1
| | | | | | | | Change-Id: Ia290935c8a040221caf1a46ca29a7bb2e5df1ce6
* | Fix errant underscoresDean Troyer2014-01-091-9/+9
|/ | | | Change-Id: I71b8c8df14b85e3042220e3593a9732ee6cefe15
* Expand support for command extensionsDean Troyer2013-11-211-0/+16
| | | | | | | | | | | | Allows client libraries to have complete access to the rest of the OSC ClientManager. In addition, extension libraries can define global options (for API version options/env vars) and define versioned API entry points similar to the in-repo commands. The changes to ClientManager exposed some issues in the existing object api tests that needed to be cleaned up. Change-Id: Ic9662edf34c5dd130a2f1a69d2454adefc1f8a95