38 Commits

Author SHA1 Message Date
Ghanshyam Mann
be8f394ab1 Update python testing as per zed cycle teting runtime
In Zed cycle, we have dropped the python 3.6/3.7[1] testing
and its support. Moving the py36 job to py38 based as well as
updating the python classifier also to reflect the same.

[1] https://governance.openstack.org/tc/reference/runtimes/zed.html

Change-Id: I9b3a05c708d53d1e7775eefdac802392fd18bc24
2022-05-10 19:11:11 -05:00
Abhishek Kekane
ac0324c10d Release notes for 3.6.0
Change-Id: I1b441808672c3e362175d20f1d1f282b7f5d70a9
2022-02-22 20:43:20 +00:00
Rajat Dhasmana
5d714bed0b Correct releasenote path for member-get command
This patch moves the releasenote of member-get command to correct
path.

Closes-Bug: #1944798
Change-Id: Ifa76fc993b0ff47131401ba233e77001cd74107c
2021-09-22 10:15:16 -04:00
Mridula Joshi
1eb0bbbed7 Fix undesirable raw Python error
Using the glanceclient without a subcommand while
passing an optional argument triggers the raw Python
error `ERROR: 'Namespace' object has no attribute
'func'`. This bug can be reproduced by issuing the
command `glance --os-image-api-version 2`.
Added a default value to `func` as placeholder
so that a help message is shown instead of the Python error.

Closes-Bug: #1903727
Change-Id: Ie4288262e408192310cbbc240bd1779b265a64fd
2021-08-03 10:35:40 +00:00
Abhishek Kekane
e0a35a1150 Get tasks associated with image
Add support to get tasks associated with specific image.
bp: messages-api

Change-Id: Ia505cf6f47ca6c628e195be3ca5231d22d53040d
2021-03-02 10:02:14 -08:00
Erno Kuvaja
77eab17cf9 Fixes "stores" property added to the image
"stores" property gets added to the image when
`glance image-create-via-import` is called with --stores

Change-Id: I514e6e3ac2f3a1f56fb7883ed403a04b1e7f13b0
Closes-Bug: #1889666
2020-07-30 18:39:31 +01:00
Erno Kuvaja
bae1d89cc7 Pass Global Request ID on with session client
Closes-bug: #1886650
Change-Id: I3a08c1beb398ba9f2556b6779c925f679bdc2c49
2020-07-13 22:55:23 +01:00
Brian Rosmaita
56186d6d5a Fail gracefully when MD5 is unavailable
The glanceclient currently assumes that MD5 will always be available.
This is not the case, however, in a FIPS-compliant environment.  This
patch enables the glanceclient to fail gracefully in such a case.

Closes-bug: #1871675
Change-Id: Ibd89989e06cc5be7da71f5f21561d73b5abc4104
2020-05-04 08:56:58 -04:00
Erno Kuvaja
3e91562b02 Rename releasenotes to reflect correct version
As python-glanceclient 3.0.0 was released earlier, this release
will be version 3.1.0

Change-Id: I18f4d4e9d61b235ea7896ea97c1b480249d474e2
2020-04-07 11:26:40 +01:00
Abhishek Kekane
7e1460a1d0 Add release note for glanceclient 3.0.0
Change-Id: I4556df86ab501362bdfae2d1457ba14dade52f22
2020-04-06 14:37:07 +00:00
Zuul
cab47f3e9b Merge "Replace git.openstack.org URLs with opendev.org URLs" 2020-03-26 15:44:06 +00:00
Erno Kuvaja
d91bcae8a5 Delete image from specific store
Add support to delete image from specific store.

bp: delete-from-store
Change-Id: Ie57d7de5822264a5ea8a5f4587ab8cfb4afb79de
2020-03-20 07:21:59 +00:00
Abhishek Kekane
2e0396c0c9 Add support for copy-image import method
This change adds support for copy-image import method which will
copy existing images into multiple stores.

Change-Id: I748a8fb3dbaf9c2e4d887a2ecd4325e27a8429c4
bp: copy-image-multiple-stores
2020-02-27 06:49:11 +00:00
Erno Kuvaja
c23d86738f Add support for multi-store import
This change adds support for providing multiple target
stores where image can be imported.

Co-authored-by: Erno Kuvaja <jokke@usr.fi>
Co-authored-by: Abhishek Kekane <akekane@redhat.com>

bp: import-multi-stores
Change-Id: I8730364263f1afd5d11fd56939851bda73a892bb
2020-02-27 05:52:49 +00:00
Ghanshyam Mann
a4465dfc22 Drop python 2.7 support and testing
OpenStack is dropping the py2.7 support in ussuri cycle.

python-glanceclient is ready with python 3 and ok to drop the
python 2.7 support.

Complete discussion & schedule can be found in
- http://lists.openstack.org/pipermail/openstack-discuss/2019-October/010142.html
- https://etherpad.openstack.org/p/drop-python2-support

Ussuri Communtiy-wide goal - https://review.opendev.org/#/c/691178/

Change-Id: I029d10a2860c5ba371ff9c5df9b7e2c645a7dfbb
2020-01-22 02:38:42 +00:00
Brian Rosmaita
baddc063a1 Add release note for glanceclient 2.17.0
Change-Id: Ib5cc95d4faad4847297c62ed6943dbc357a64234
2019-09-12 12:34:17 -04:00
jacky06
e8d554fde7 Replace git.openstack.org URLs with opendev.org URLs
Change-Id: Id02ac765028673ecabcb76d3f3014bbb383bc098
2019-08-24 10:47:42 +08:00
Erno Kuvaja
44a4dbd6ce Release notes for 2.16.0
Change-Id: Icd4dc29d6492053b90944f5a57435fc29c6147f2
2019-03-07 17:38:59 +00:00
Zuul
8b9dc5635e Merge "Embed validation data when adding location" 2019-03-07 16:46:55 +00:00
Brian Rosmaita
4511a445d0 Add image-list filter for multihash
This was missed when multihash support was added to the glanceclient.
The os_hash_value is an indexed field in the API.

Includes a release note.

Closes-bug: #1788271

Change-Id: Ibfe28b8c644967b7e0295dfd3f55c3ae1b0cbb2d
2019-01-17 14:22:48 -05:00
imacdonn
3f7171dc14 Embed validation data when adding location
Add support for embedding of checksum, os_hash_algo and os_hash_value when
adding a location to an image.

Depends-On: https://review.openstack.org/597648
Change-Id: Ibbe2f2bb226f52cc6b2ab591913b1797d2b086c0
2018-10-24 00:16:58 +00:00
Brian Rosmaita
8fd7e8c664 Use "multihash" for data download validation
When the Glance "multihash" is available on an image, the
glanceclient should use it instead of MD5 to validate data
downloads.  For cases in which the multihash specifies an
algorithm not available to the client, an option is added
to the image-download command that will allow fallback to
the legacy MD5 checksum verification.

Change-Id: I4ee6e5071eca08d3bbedceda2acc170e7ed21a6b
Closes-bug: #1788323
2018-09-07 14:50:24 -04:00
Zuul
2c26f2748f Merge "Correct typo in releasenote" 2018-07-25 22:48:38 +00:00
Brian Rosmaita
a978893333 Correct typo in releasenote
A missing space is messing up the html rendering.

Change-Id: If65cae35384995c7dbb138ee3993ee4d99850e64
2018-07-25 18:22:25 -04:00
Erno Kuvaja
4a4de97306 Releasenotes for bugfixes in 2.12.0
Change-Id: I4094fe3e08b418dc6e62b929789cb06379bb368f
2018-07-25 23:09:15 +01:00
Zuul
cd88b8795e Merge "Add release note for hidden images support" 2018-07-25 20:39:52 +00:00
Brian Rosmaita
2b33e6858a Add release note for hidden images support
Related to blueprint hidden-images

Change-Id: Ie915c6af1142b02716aef89d4832cd8e466e5ec9
2018-07-24 22:55:29 -04:00
Zuul
ca34119a34 Merge "Add release note for multi-store support" 2018-07-25 00:39:15 +00:00
Brian Rosmaita
dfccd7bb14 Add release note for multi-store support
Related to blueprint multi-store

Change-Id: I88dbaa3f761519d1d959541a74fdfd760d942b2e
2018-07-24 16:32:41 -04:00
Brian Rosmaita
148d1c080f Add multihash release note.
Related to blueprint multihash

Change-Id: I3dd3c06f970b5d1e9373b3240863e3806e759811
2018-07-24 16:06:07 -04:00
Brian Rosmaita
c918dae2aa Add release note for HTTP headers fix
Change-Id: I08838ff4682290527565e8cf687945307034c5ba
2018-06-06 12:05:22 -04:00
Erno Kuvaja
314a29f6a6 Add releasenotes for 2.11.0
Change-Id: I546711a58b3977dc6302debdea1de978054f1a2b
2018-04-11 14:00:52 +01:00
Rui Yuan Dou
8e862b6018 Remove deprecated ssl options
Old deprecated ssl options block the new keystoneauth parser get the
correct value, should be removed.

Change-Id: Ie080f9a8fa7f4407b1fcbb7fb7c763152c5ec295
Closes-Bug: 1697163
2018-01-17 08:50:57 +08:00
Brian Rosmaita
09f8acb19d Add release note for Pike
This note describes what has been prioritized to land in Pike.

Change-Id: Ia0a7f80cd7dfc4fa4a1126123b6aebb32a459099
2017-07-27 16:02:52 +00:00
Ravi Jethani
610177a779 Add request id to returned objects
Adding two classes RequestIdProxy and GeneratorProxy derived from
wrapt.ObjectProxy to wrap objects returned from the API.

GeneratorProxy class is used to wrap generator objects returned
by cases like images.list() etc. whereas RequestIdProxy class is
used to wrap non-generator object cases like images.create() etc.

In all cases the returned object will have the same behavior as
the wrapped(original) object. However now the returned objects
will have an extra property 'request_ids' which is a list of
exactly one request id.

For generator cases the request_ids property will be an empty list
until the underlying generator is invoked at-least once.

Co-Authored-By: Abhishek Kekane <abhishek.kekane@nttdata.com>

Closes-Bug: #1525259
Blueprint: return-request-id-to-caller
Change-Id: If8c0e0843270ff718a37ca2697afeb8da22aa3b1
2017-01-20 14:50:42 +05:30
Itisha Dewan
a9115b4cd8 switch from keystoneclient to keystoneauth
move glanceclient to keystoneauth as keystoneclient's auth session,
plugins and adapter code has been deprecated.

refer to [1] for more information.

1: 1a84e24fa4

implements bp: use-keystoneauth

Co-Authored-By: Itisha <ishadewan07@gmail.com>
Change-Id: I88fb327628e1bec48dc391f50d66b3deab4a8ab9
2016-09-03 03:22:04 +00:00
Abhishek Kekane
96151efd51 Log request-id for each api call
Added support to log 'X-Openstack-Request-Id' for each api call.
If glanceclient is used from command line then following log will
be logged on console if --debug flag is used.

DEBUG:glanceclient.common.http:GET call to glance-api for
http://172.26.88.20:9292/v2/schemas/image used request id
req-e0c7c97a-8fc0-4ce3-a669-d0b1eb5d7aae

If python-glanceclient is used in applications (e.g. Nova) then
following log message will be logged in service logs.

DEBUG glanceclient.common.http
[req-be074f1e-1c17-4786-b703-2a221751c8f4 demo demo] GET call to
glance-api for
http://172.26.88.20:9292/v1/images/detail?is_public=none&limit=20
used request id req-9b1dd929-df30-46b2-a8f2-dfd6ffbad3fc

DocImpact:
To use this feature user need to set 'default_log_levels' in third
party application. For example nova uses glance then in nova.conf
'default_log_levels' should be set as below:

default_log_levels = glanceclient=DEBUG

Implements: blueprint log-request-id
Change-Id: Ib04a07bac41ad2a5e997348f3b0bccc640169dc9
2016-06-27 11:31:07 +05:30
kairat_kushaev
a49ce80db6 Add reno to glanceclient
Add possibility to generate release notes to glanceclient.
We need this because it helps to prepare good documentation
and provide useful info to Openstack users.

Change-Id: Ifce2df8ac5f3a14518a758d748964e7201a75291
2016-02-11 11:58:19 +00:00