summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Updated from global requirementskilo-eolstable/kiloOpenStack Proposal Bot2016-04-291-1/+1
| | | | Change-Id: I03cc03e69ace6f2f7fc0c3ad4545fee81caa5a70
* Updated from global requirementsOpenStack Proposal Bot2016-02-061-1/+1
| | | | Change-Id: I6687f2889fd22435a7b087ee6ae7b0494d8749bd
* Fix failure to create glance https connection poolHaikel Guemar2015-12-222-3/+20
| | | | | | | | | | | | Due to a typo in an attribute named, an Attribute error is raised causing failure in connection to glance through HTTPS Urllib3 PoolManager class has a connection_pool_kw attribute but not connection_kw Change-Id: Id4d6a5bdcf971d09e80043fd2ab399e208fd931c Closes-Bug: #1479020 (cherry picked from commit c41dcc9f4366429d952cc47853496d58d47b7511)
* Merge "Release Notes for 0.17.3" into stable/kilo0.17.3Jenkins2015-11-181-0/+14
|\
| * Release Notes for 0.17.3Erno Kuvaja2015-11-181-0/+14
| | | | | | | | | | | | | | | | | | | | | | | | ffd135c Updated from global requirements fab2ace Updated from global requirements 68cf63d Don't get the image before deleting it 15fe21d Updated from global requirements e7a801d Ship the default image schema in the client 320bc6f V2: Do not validate image schema when listing 0acf7cc Expose 'is_base' schema property attribute Change-Id: Icc2f9108276747ea6324e410d56c7b73f1048562
* | Updated from global requirementsOpenStack Proposal Bot2015-11-171-1/+1
|/ | | | Change-Id: I129c147d334f615e08c990444d080a0e9c86ef3d
* Updated from global requirementsOpenStack Proposal Bot2015-09-291-1/+1
| | | | Change-Id: I200800694db3391950926997352f11369c7a65b0
* Don't get the image before deleting itFlavio Percoco2015-09-232-7/+7
| | | | | | | | | | | | The client currently downloads the image metadata to check if it's deleted or not. This logic belongs to the server and it's already implemented there. Instead of getting the image, send the delete request and catch the 404 error, which is already raised by the server. Change-Id: I1e6ef42340f8e380ff99b9d6ca7ea416e0eebfbc Closes-bug: #1496305 (cherry picked from commit b8a881f5ea89514d715e61b632bc3081a0dde2c6) (cherry picked from commit e82d9df74cbac9accc8a6724c0759760e44bb315)
* Merge "Updated from global requirements" into stable/kiloJenkins2015-08-261-1/+1
|\
| * Updated from global requirementsOpenStack Proposal Bot2015-08-141-1/+1
| | | | | | | | Change-Id: I910c89b8ef4210ed95f9213ae8441991d3b0a93a
* | Merge "V2: Do not validate image schema when listing" into stable/kiloJenkins2015-08-243-14/+381
|\ \ | |/ |/|
| * V2: Do not validate image schema when listingStuart McLaren2015-08-103-14/+381
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Previously when listing images via v2, the first image of each batch was validated against the v2 schema. This could lead to unpredictable behaviour where a particular image which failed the schema check may or may not be the first of a batch. In some cases it also meant that operation by one user could affect the ability of another other to list images. Change-Id: I22974a3e3d9cbdd254099780752ae45ff2a557af Closes-bug: 1477910 (cherry picked from commit 43769d6cc7266d7c81db31ad58b4fa403c35b611)
* | Ship the default image schema in the clientFlavio Percoco2015-08-123-0/+233
|/ | | | | | | | | | | | | | | | | | | | | | Now that we have stable branches for clients, it's easier to keep track of the current default image's schema in Glance and update it respectively. This patch adds the current image schema, including the schema-properties. One good reason to do this is to be able to react when a running Glance instance is not around to be introspected. It's really unfortunate that things like help text can't be rendered when there image schema is not available in the system. We could keep the schema in a json file but rather than shipping data files with glanceclient we can just have it in the python modules. Conflicts: glanceclient/v2/shell.py Change-Id: I9b8cc1d18d6717ccf991fb8149ab13c06d653ee4 Closes-bug: #1481729 (cherry picked from commit 3949e0e918e2501c4953a7d9beb58511688d84e1)
* Expose 'is_base' schema property attributeAlexander Tivelkov2015-08-032-1/+38
| | | | | | | | | | | | | | | | | | Changeset I49255255 has added an 'is_base' attribute for Image Schema properties, thus allowing to differentiate between base and custom image properties, but the client hasn't make any use of it. This patch adds appropriate attribute to SchemaProperty class and a helper method which allows to validate if the given property is base or not. The added helper method (is_base_property) should not be confused with the existing is_core_property: the latter just checks if the property is known to the schema, regardless of its being base or not. Change-Id: I7c397196dad9ae5494ed2f8f3aacef3fc1ce70d8 Partial-Bug: #1323660 (cherry picked from commit 90407d9e473014c24eeab294192f9d3208f58ea7)
* Add release notes for 0.17.20.17.2Erno Kuvaja2015-07-161-0/+16
| | | | | | | | | | | | | % git log 0.17.1..HEAD --no-merges --oneline 8d4237d Updated from global requirements e9b2b4e Correct help messages for image-update command 5533018 Creating task with invalid property crashes in py3 28dc1da Omit 'locations' as image-create parameter 1990e76 Fix Metadef Object update issue with python-glanceclient 7771d3b Do not crash on homedir mkdir Change-Id: Id7ef4bce7da0d201ba325f6045d5e9f3d1ba9c42
* Updated from global requirementsOpenStack Proposal Bot2015-07-133-13/+12
| | | | Change-Id: I1e4d5d5fd2bec8095867fdfe7b3ac2e605c4178b
* Merge "Fix Metadef Object update issue with python-glanceclient" into ↵Jenkins2015-07-094-2/+38
|\ | | | | | | stable/kilo
| * Fix Metadef Object update issue with python-glanceclientLakshmi N Sampath2015-07-084-2/+38
| | | | | | | | | | | | | | | | | | Disallowed fields(schema, created_at and updated_at) were getting deleted from Metadef namespace instead of Metadef object. Change-Id: Id80e204c7af1ac6926c66627d290a15c4e6b00d9 Closes-Bug: #1433884 (cherry picked from commit 5d933b0dd59b6340147d1f2307df98c1b66d76f7)
* | Merge "Omit 'locations' as image-create parameter" into stable/kiloJenkins2015-07-091-1/+2
|\ \
| * | Omit 'locations' as image-create parameterFei Long Wang2015-07-081-1/+2
| |/ | | | | | | | | | | | | | | | | | | | | Based on current implementation, locations is reserved attribute, so it should not be a parameter for image create. Closes-Bug: #1399778 Change-Id: Ie51e52157e905fdecf736125be0dac87b1a966ec (cherry picked from commit c73026634cc4bef7e648bb1e82bde29d6b737af2)
* | Merge "Creating task with invalid property crashes in py3" into stable/kiloJenkins2015-07-092-1/+9
|\ \
| * | Creating task with invalid property crashes in py3Kamil Rykowski2015-07-082-1/+9
| |/ | | | | | | | | | | | | | | | | | | | | | | | | Currently when you are trying to set invalid additional property for task using py3 interpreter it will fail, because function `unicode` does not exist in py3. Fix it by replacing `unicode` with `utils.exception_to_str` which is used in other modules already. Change-Id: I5897868f801467a2eaa7585b5f2d578cef358426 Closes-Bug: 1439513 (cherry picked from commit a6234d1c4e0ba8c6bbf822cfe89473436b583acc)
* | Correct help messages for image-update commandAbhishek Talwar2015-07-081-2/+4
|/ | | | | | | | | | | | | | Currently when you are trying to update the location of an image which is not in queued status you will get an error from the Glance API. The help message for --location and --copy-from arguments should be updated to inform the user that it works only for images in queued status. Co-Authored-By: Abhishek Talwar <abhishek.talwar@tcs.com> Co-Authored-By: Kamil Rykowski <kamil.rykowski@intel.com> Change-Id: I82b14ffde3f301d7ffef68e984ba4ad2ae0f8b0f Closes-Bug: #1220809 (cherry picked from commit 6d864ef65c73905370fe9c817fb81b262714bd2d)
* Do not crash on homedir mkdirThomas Goirand2015-05-231-1/+9
| | | | | | | | | | | | Glanceclient is trying to create ~/.glanceclient, and crashes if it can't do that. In some environment (for example, when building the package under Jenkins), writing on $HOME is simply not allowed, and Glanceclient can simply ignore it. This patch allows the mkdir() to fail, which fixes the issue. Closes-Bug: #1446096 Change-Id: Ib3591fb4e54ccd2fe63a1a4815551ac10ef5b961 (cherry picked from commit 1686d6aa535562ae2ea6e04b6dfd59b86c998c8a)
* Add release notes for 0.17.1Nikhil Komawar2015-04-221-0/+11
| | | | | | | | | | | $ git log 0.17.0..0.17.1 --no-merges --oneline f9a2a12 Fix client when using no ssl compression e572ec1 Add SSL cert verification regression tests 367bffe Updated from global requirements 7184759 update defaultbranch Change-Id: I325a56310a6261d2343522273bebe3680fa6e324
* Merge "Updated from global requirements" into stable/kilo0.17.1Jenkins2015-04-182-5/+5
|\
| * Updated from global requirementsOpenStack Proposal Bot2015-04-162-5/+5
| | | | | | | | Change-Id: Ie45270d542141d541c3cffed0fe6b55d87771d13
* | Fix client when using no ssl compressionStuart McLaren2015-04-162-0/+49
| | | | | | | | | | | | | | | | | | | | | | | | Since the release of the 0.16.1 client, using the 'no ssl compression' option, whether on the command line, or via the library -- Nova does this by default -- a stack trace was generated. Closes-bug: 1442664 Related-bug: 1357430 Change-Id: I2b8ddcb0a7ae3cfccdfc20d3ba476f3b4f4ec32d (cherry picked from commit c698b4e3227b4767f042e435423fcc307d7f6d5c)
* | Add SSL cert verification regression testsStuart McLaren2015-04-161-21/+108
|/ | | | | | | | | | | | | | | A security bug (1357430) was introduced which meant that SSL certificate verification was not occurring. Add new tests which help prevent the 'requests' part of bug 115260 recurring. Note: Cherry-picking onto the stable branch -- these tests are required for proper testing of one of the SSL related fixes. Change-Id: Iaf56fd8bc34fa8f35c2fd7051f9f8424002352cf Related-bug: 1357430 (cherry picked from commit 64a1a0fdcc563579a8b01d10debfafc4cc160f81)
* update defaultbranchDoug Hellmann2015-04-151-0/+2
| | | | Change-Id: Ie0141fc11a39cac93b32c0e3cd0a107a2496c52f
* Add release notes for 0.17.00.17.0Nikhil Komawar2015-03-181-0/+21
| | | | | | | | | | | | | | | | | | | | | | | $ git log 0.16.1..HEAD --no-merges --oneline db5d729 Updated help for v2 member-update api 3f3066b Extend images CLI v2 with new sorting syntax bbd27d5 Add the ability to specify the sort dir for each key 976fe17 Import sys module fc79467 Adds the ability to sort images with multiple keys f00f769 add examples for properties and doc build script f6f5733 Apply expected patch format when updating tags in v2.images a9a692b v2: read limit for list from --limit in shell 0ab5a78 Fix leaking sockets after v2 list operation f98ab68 Fix leaking sockets after v1 list operation 6e0b1f4 removed excessive call to os.path.exists b47925e Unit tests covering missing username or password b64dba8 Remove duplicate 'a' in the help string of --os-image-url 6d21959 v2: Allow upload from stdin on image-create 4c7c7ad Fix v2 image create --file documentation eeef763 Fix minor typo in version error message Change-Id: I90d7e4a5109d82e25a63135e94193f4c4f7d4f34
* Merge "Updated help for v2 member-update api"Jenkins2015-03-182-1/+8
|\
| * Updated help for v2 member-update apiYamini Sardana2015-03-172-1/+8
| | | | | | | | | | | | | | | | | | | | | | help message for v2 glance member-update api now displays the Valid Values of member status variable. The valid values are: pending, accepted, rejected Change-Id: Ibe6f55c933668451b407ed9a19c520c3fbf1912a Closes-bug: #1420707
* | Merge "add examples for properties and doc build script"Jenkins2015-03-183-0/+103
|\ \ | |/ |/|
| * add examples for properties and doc build scriptAlan Meadows2015-03-133-0/+103
| | | | | | | | | | | | | | * add image property examples for v1 and v2 * add standard sphinx doc build helper Change-Id: I2f8dff884d9f22cc582aabcbbbbaea6d6fe725c0
* | Merge "Extend images CLI v2 with new sorting syntax"Jenkins2015-03-164-22/+140
|\ \
| * | Extend images CLI v2 with new sorting syntaxMike Fedosin2015-03-164-22/+140
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This code enables new syntax for sorting output with multiple keys and directions based on API Working group sorting guidelines. It's a client code to consume API modified in change Ie4ccfefa0492a3ac94cc7e22201f2f2be5c1cdbb Example: glance --os-image-api-version 2 --sort name:desc,size:asc Implements-blueprint: glance-sorting-enhancements DocImpact Depends-On: Ie4ccfefa0492a3ac94cc7e22201f2f2be5c1cdbb Change-Id: I36a9fa9f0508fea1235de2ac3a0d6a093e1af635
* | | Merge "Add the ability to specify the sort dir for each key"Jenkins2015-03-164-19/+92
|\ \ \ | |/ /
| * | Add the ability to specify the sort dir for each keyMike Fedosin2015-03-164-19/+92
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Adds client code to consume API modified in change Ib43b53abfba7cb5789d916a014376cf38fc5245b Extends CLI for v2 with multiple sort dirs Example: glance --os-image-api-version 2 image-list \ --sort-key name --sort-dir asc --sort-key size --sort-dir desc Implements-blueprint: glance-sorting-enhancements DocImpact Depends-On: Ib43b53abfba7cb5789d916a014376cf38fc5245b Change-Id: Ia20716f3c75299f796879299da317b2e81496088
* | | Merge "Adds the ability to sort images with multiple keys"Jenkins2015-03-164-3/+139
|\ \ \ | |/ /
| * | Adds the ability to sort images with multiple keysMike Fedosin2015-03-134-3/+139
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | Adds client code to consume API modified in change Ib7a6aeb2df3bc5d23fe8e070290b5bfcab00c0f5 Extends CLI for v2 with multiple sort keys Example: glance --os-image-api-version 2 image-list --sort-key name --sort-key size Implements-blueprint: glance-sorting-enhancements Change-Id: If79779a4c52c8dc5c4f39192d3d247335a76ba24 DocImpact Closes-Bug: 1221274
* | Merge "Apply expected patch format when updating tags in v2.images"Jenkins2015-03-163-6/+57
|\ \
| * | Apply expected patch format when updating tags in v2.imagesSteve Lewis2015-03-123-6/+57
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Currently, glanceclient.v2.update builds a patch request that does not match glance API. This patch overrides the default behaviour to customize the patch request with the right format for the API. Co-Authored-By: Steve Lewis <steve.lewis@rackspace.com> Fixes bug 1306774 Change-Id: If0739ac285da1e741bfa40b6c719331a5ce49319
* | | Import sys moduleJimmy McCrory2015-03-141-0/+1
| |/ |/| | | | | | | | | | | This module is required by the _is_image_data_provided function. Change-Id: I78265209a2f80aaf61bbe25d69e79c939182516c Closes-Bug: 1432249
* | Merge "Fix leaking sockets after v1 list operation"Jenkins2015-03-111-54/+83
|\ \
| * | Fix leaking sockets after v1 list operationLouis Taylor2015-03-041-54/+83
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Since the move to using the requests library, v1 list operations keep the connection open to the glance server. This is normally closed by the garbage collector if it is not explicitly closed, however the paginate function used by the list method had a circular reference preventing it from ever being collected during the lifecycle of a service consuming glanceclient. This is problematic, since it causes long running nova processes to run out of file descriptors for new connections. This patch makes paginate() non-recursive, which allows the connection to be freed. Change-Id: I16a7b02f2b10e506e91719712cf34ef0aea1afc0 Closes-Bug: 1423939
* | | Merge "Fix minor typo in version error message"Jenkins2015-03-111-1/+1
|\ \ \ | |_|/ |/| |
| * | Fix minor typo in version error messageStuart McLaren2014-11-251-1/+1
| | | | | | | | | | | | | | | Change-Id: Ic6441c6952f89fc41c7f41b1baae3f601c0fc87e Closes-bug: 1396087
* | | Merge "Unit tests covering missing username or password"Jenkins2015-03-101-2/+50
|\ \ \
| * | | Unit tests covering missing username or passwordMichal Dulko2015-02-091-2/+50
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | After fixing message displayed when client is executed without required environment variables exported (OS_USERNAME, OS_PASSWORD, OS_PROJECT_NAME, OS_AUTH_URL) regression tests should be added. I've also fixed an issue causing tests using make_env method to always use FAKE_V2_ENV, even in ShellTestWithKeystoneV3Auth. Change-Id: I800c8fa11ee45d19f179bd030426db86a93d9f6a Closes-Bug: 1419788 Partial-Bug: 1355252