<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/openstack/python-cinderclient.git/cinderclient/v3/client.py, branch stable/train</title>
<subtitle>opendev.org: openstack/python-cinderclient.git
</subtitle>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/openstack/python-cinderclient.git/'/>
<entry>
<title>Remove initialization of logger if logger is None</title>
<updated>2018-06-26T09:16:30+00:00</updated>
<author>
<name>Neha Alhat</name>
<email>neha.alhat@nttdata.com</email>
</author>
<published>2018-06-06T09:44:23+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/openstack/python-cinderclient.git/commit/?id=ebb3b675ade348f52d3e0260bda3c0df843108c9'/>
<id>ebb3b675ade348f52d3e0260bda3c0df843108c9</id>
<content type='text'>
If default_log_level=keystoneauth=WARN is enabled in nova.conf,
then these log messages [1][2][3] are logged using cinderclient.v3.client
logger name instead of keystoneauth.session. This is because cinderclient
initializes logger if not passed by nova and since debug=True is set in
nova.conf it’s uses root logger log level.

This patch removes initialization of logger code to ensure log
messages[1][2][3] are logged only when keystoneauth=DEBUG is enabled
in nova.conf. This will also enable us to consume split_logger config
option [4] when enabled in nova without making any additional changes
in client code.

[1] REQ: https://review.openstack.org/#/c/505764/8/keystoneauth1/session.py@391
[2] RESP: https://review.openstack.org/#/c/505764/8/keystoneauth1/session.py@422
[3] RESP BODY: https://review.openstack.org/#/c/505764/8/keystoneauth1/session.py@454
[4] https://review.openstack.org/#/c/568878/

Change-Id: I937c6ac2f6e254c438ee2f36eb6c291f62c0f411
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
If default_log_level=keystoneauth=WARN is enabled in nova.conf,
then these log messages [1][2][3] are logged using cinderclient.v3.client
logger name instead of keystoneauth.session. This is because cinderclient
initializes logger if not passed by nova and since debug=True is set in
nova.conf it’s uses root logger log level.

This patch removes initialization of logger code to ensure log
messages[1][2][3] are logged only when keystoneauth=DEBUG is enabled
in nova.conf. This will also enable us to consume split_logger config
option [4] when enabled in nova without making any additional changes
in client code.

[1] REQ: https://review.openstack.org/#/c/505764/8/keystoneauth1/session.py@391
[2] RESP: https://review.openstack.org/#/c/505764/8/keystoneauth1/session.py@422
[3] RESP BODY: https://review.openstack.org/#/c/505764/8/keystoneauth1/session.py@454
[4] https://review.openstack.org/#/c/568878/

Change-Id: I937c6ac2f6e254c438ee2f36eb6c291f62c0f411
</pre>
</div>
</content>
</entry>
<entry>
<title>Add service cleanup command</title>
<updated>2017-10-03T09:03:28+00:00</updated>
<author>
<name>Gorka Eguileor</name>
<email>geguileo@redhat.com</email>
</author>
<published>2016-08-26T11:56:18+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/openstack/python-cinderclient.git/commit/?id=45eb51eb995240120f437bb5ac61ccee22f9dc6b'/>
<id>45eb51eb995240120f437bb5ac61ccee22f9dc6b</id>
<content type='text'>
Cinder volume services will perform cleanup on start, but when we have
multiple volume services grouped in a cluster, we may want to trigger
cleanup of services that are down.

This patch adds command `work-cleanup` to trigger server cleanups and
prints service nodes that will be cleaned and those that didn't have an
alternative service in the cluster to do the cleanup.

This command will only work on servers supporting API version 3.24 or
higher.

New command:

cinder work-cleanup [--cluster &lt;cluster-name&gt;] [--host &lt;hostname&gt;]
                    [--binary &lt;binary&gt;]
                    [--is-up &lt;True|true|False|false&gt;]
                    [--disabled &lt;True|true|False|false&gt;]
                    [--resource-id &lt;resource-id&gt;]
                    [--resource-type &lt;Volume|Snapshot&gt;]

Specs: https://specs.openstack.org/openstack/cinder-specs/specs/newton/ha-aa-cleanup.html

Change-Id: I1c33ffbffcb14f34ee2bda9042e706937b1147d7
Depends-On: If336b6569b171846954ed6eb73f5a4314c6c7e2e
Implements: blueprint cinder-volume-active-active-support
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Cinder volume services will perform cleanup on start, but when we have
multiple volume services grouped in a cluster, we may want to trigger
cleanup of services that are down.

This patch adds command `work-cleanup` to trigger server cleanups and
prints service nodes that will be cleaned and those that didn't have an
alternative service in the cluster to do the cleanup.

This command will only work on servers supporting API version 3.24 or
higher.

New command:

cinder work-cleanup [--cluster &lt;cluster-name&gt;] [--host &lt;hostname&gt;]
                    [--binary &lt;binary&gt;]
                    [--is-up &lt;True|true|False|false&gt;]
                    [--disabled &lt;True|true|False|false&gt;]
                    [--resource-id &lt;resource-id&gt;]
                    [--resource-type &lt;Volume|Snapshot&gt;]

Specs: https://specs.openstack.org/openstack/cinder-specs/specs/newton/ha-aa-cleanup.html

Change-Id: I1c33ffbffcb14f34ee2bda9042e706937b1147d7
Depends-On: If336b6569b171846954ed6eb73f5a4314c6c7e2e
Implements: blueprint cinder-volume-active-active-support
</pre>
</div>
</content>
</entry>
<entry>
<title>Enable H306</title>
<updated>2017-08-01T20:23:49+00:00</updated>
<author>
<name>Eric Harney</name>
<email>eharney@redhat.com</email>
</author>
<published>2017-08-01T19:16:22+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/openstack/python-cinderclient.git/commit/?id=60d00b0a035f5d6e0c436dee50719238cdf119cc'/>
<id>60d00b0a035f5d6e0c436dee50719238cdf119cc</id>
<content type='text'>
Enforce ordering of imports with H306.

For tests, this is mostly done by grouping test
imports after other cinderclient imports.

Change-Id: Ie40fda014d1aedb057e5b4ea1f27f999c84e6373
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Enforce ordering of imports with H306.

For tests, this is mostly done by grouping test
imports after other cinderclient imports.

Change-Id: Ie40fda014d1aedb057e5b4ea1f27f999c84e6373
</pre>
</div>
</content>
</entry>
<entry>
<title>Support generalized resource filter in client</title>
<updated>2017-05-31T11:32:49+00:00</updated>
<author>
<name>TommyLike</name>
<email>tommylikehu@gmail.com</email>
</author>
<published>2017-05-16T09:22:08+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/openstack/python-cinderclient.git/commit/?id=a6affea92157a5656ba4beae6ffd059d12e23bdc'/>
<id>a6affea92157a5656ba4beae6ffd059d12e23bdc</id>
<content type='text'>
Introduce new command 'list-filters' to retrieve
enabled resource filters.

```
command: cinder list-filters --resource=volume

output:
+----------------+-------------------------------+
| Resource       | Filters                       |
+----------------+-------------------------------+
| volume         | name, status, image_metadata  |
+----------------+-------------------------------+

```

Also Added new option '--filters' to these list commands:
1. list
2. snapshot-list
3. backup-list
4. attachment-list
5. message-list
6. group-list
7. group-snapshot-list
8. get-pools

Change-Id: I062e6227342ea0d940a8333e84014969c33b49df
Partial: blueprint generalized-filtering-for-cinder-list-resource
Depends-On: 04bd22c1eb371805a3ce9f6c8915325bc0da2d36
Depends-On: 7fdc4688fea373afb85d929e649d311568d1855a
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Introduce new command 'list-filters' to retrieve
enabled resource filters.

```
command: cinder list-filters --resource=volume

output:
+----------------+-------------------------------+
| Resource       | Filters                       |
+----------------+-------------------------------+
| volume         | name, status, image_metadata  |
+----------------+-------------------------------+

```

Also Added new option '--filters' to these list commands:
1. list
2. snapshot-list
3. backup-list
4. attachment-list
5. message-list
6. group-list
7. group-snapshot-list
8. get-pools

Change-Id: I062e6227342ea0d940a8333e84014969c33b49df
Partial: blueprint generalized-filtering-for-cinder-list-resource
Depends-On: 04bd22c1eb371805a3ce9f6c8915325bc0da2d36
Depends-On: 7fdc4688fea373afb85d929e649d311568d1855a
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix client `retries` default value.</title>
<updated>2017-05-02T11:09:57+00:00</updated>
<author>
<name>Georgy Dyuldin</name>
<email>g.dyuldin@gmail.com</email>
</author>
<published>2017-04-20T11:03:44+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/openstack/python-cinderclient.git/commit/?id=85b56e1d88710453b3f2d5ceba1ad5a8715eb842'/>
<id>85b56e1d88710453b3f2d5ceba1ad5a8715eb842</id>
<content type='text'>
In case of constructing Client with session without specifying `retries`
value, `cinderclient.client.Client.retries` value become to None,
instead of 0. This raises TypeError on python 3 during comparison
`attempts &gt; self.retries` on
`cinderclient.client.SessionClient._cs_request`

Closes-Bug: #1684787
Change-Id: If1ac36acb0d1c92e9779e3e8995606c9b34f2cde
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
In case of constructing Client with session without specifying `retries`
value, `cinderclient.client.Client.retries` value become to None,
instead of 0. This raises TypeError on python 3 during comparison
`attempts &gt; self.retries` on
`cinderclient.client.SessionClient._cs_request`

Closes-Bug: #1684787
Change-Id: If1ac36acb0d1c92e9779e3e8995606c9b34f2cde
</pre>
</div>
</content>
</entry>
<entry>
<title>Attach/Detach V2</title>
<updated>2017-01-26T22:08:40+00:00</updated>
<author>
<name>John Griffith</name>
<email>john.griffith8@gmail.com</email>
</author>
<published>2016-10-17T23:21:03+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/openstack/python-cinderclient.git/commit/?id=22c3693f8c03ba4b9a22697656a519370d6b5eaf'/>
<id>22c3693f8c03ba4b9a22697656a519370d6b5eaf</id>
<content type='text'>
Add an attachments API
This includes a new attachment controller and shell
commands.  To use you'll need to set your api version
    `export OS_VOLUME_API_VERSION=3.27`

Now you can do things like attach a volume (cinders part at least):
    `cinder attachment-create --connect True ......`

List/show/delete existing attachments:
    `cinder attachment-list`
    `cinder attachment-show &lt;attachment-id&gt;`
    `cinder attachment-delete &lt;attachemnt-id&gt;`

Change-Id: I2c463f0910b6c9e37502869b7ec33073f12939f1
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Add an attachments API
This includes a new attachment controller and shell
commands.  To use you'll need to set your api version
    `export OS_VOLUME_API_VERSION=3.27`

Now you can do things like attach a volume (cinders part at least):
    `cinder attachment-create --connect True ......`

List/show/delete existing attachments:
    `cinder attachment-list`
    `cinder attachment-show &lt;attachment-id&gt;`
    `cinder attachment-delete &lt;attachemnt-id&gt;`

Change-Id: I2c463f0910b6c9e37502869b7ec33073f12939f1
</pre>
</div>
</content>
</entry>
<entry>
<title>Add v3 user messages with pagination</title>
<updated>2016-09-01T12:21:57+00:00</updated>
<author>
<name>Alex Meade</name>
<email>mr.alex.meade@gmail.com</email>
</author>
<published>2016-03-30T01:28:01+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/openstack/python-cinderclient.git/commit/?id=1c87b6fa71a4414831fc4b56e3543c1131081496'/>
<id>1c87b6fa71a4414831fc4b56e3543c1131081496</id>
<content type='text'>
GET /messages
GET /messages/{id}
DELETE /message/{id}

Partially-Implements: blueprint summarymessage
Depends-On: I398cbd02b61f30918a427291d1d3ae00435e0f4c
Change-Id: Ic057ab521c048a376d2a6bed513b8eb8118810d1
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
GET /messages
GET /messages/{id}
DELETE /message/{id}

Partially-Implements: blueprint summarymessage
Depends-On: I398cbd02b61f30918a427291d1d3ae00435e0f4c
Change-Id: Ic057ab521c048a376d2a6bed513b8eb8118810d1
</pre>
</div>
</content>
</entry>
<entry>
<title>Add support for group snapshots</title>
<updated>2016-07-19T20:35:45+00:00</updated>
<author>
<name>xing-yang</name>
<email>xing.yang@emc.com</email>
</author>
<published>2016-05-21T12:09:00+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/openstack/python-cinderclient.git/commit/?id=f7928c405824691013428177455c8257814316f5'/>
<id>f7928c405824691013428177455c8257814316f5</id>
<content type='text'>
This patch adds support for group snapshots.

Server side API patch was merged:
    https://review.openstack.org/#/c/361369/

Current microversion is 3.14. The following CLI's are supported:
cinder --os-volume-api-version 3.14 group-create-from-src
    --name my_group --group-snapshot &lt;group snapshot uuid&gt;
cinder --os-volume-api-version 3.14 group-create-from-src
    --name my_group --source-group &lt;source group uuid&gt;
cinder --os-volume-api-version 3.14 group-snapshot-create
    --name &lt;name&gt; &lt;group uuid&gt;
cinder --os-volume-api-version 3.14 group-snapshot-list
cinder --os-volume-api-version 3.14 group-snapshot-show
    &lt;group snapshot uuid&gt;
cinder --os-volume-api-version 3.14 group-snapshot-delete
    &lt;group snapshot uuid&gt;

Depends-on: I2e628968afcf058113e1f1aeb851570c7f0f3a08
Partial-Implements: blueprint generic-volume-group
Change-Id: I5c311fe5a6aeadd1d4fca60493f4295dc368944c
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This patch adds support for group snapshots.

Server side API patch was merged:
    https://review.openstack.org/#/c/361369/

Current microversion is 3.14. The following CLI's are supported:
cinder --os-volume-api-version 3.14 group-create-from-src
    --name my_group --group-snapshot &lt;group snapshot uuid&gt;
cinder --os-volume-api-version 3.14 group-create-from-src
    --name my_group --source-group &lt;source group uuid&gt;
cinder --os-volume-api-version 3.14 group-snapshot-create
    --name &lt;name&gt; &lt;group uuid&gt;
cinder --os-volume-api-version 3.14 group-snapshot-list
cinder --os-volume-api-version 3.14 group-snapshot-show
    &lt;group snapshot uuid&gt;
cinder --os-volume-api-version 3.14 group-snapshot-delete
    &lt;group snapshot uuid&gt;

Depends-on: I2e628968afcf058113e1f1aeb851570c7f0f3a08
Partial-Implements: blueprint generic-volume-group
Change-Id: I5c311fe5a6aeadd1d4fca60493f4295dc368944c
</pre>
</div>
</content>
</entry>
<entry>
<title>Add generic volume groups</title>
<updated>2016-07-19T04:37:36+00:00</updated>
<author>
<name>xing-yang</name>
<email>xing.yang@emc.com</email>
</author>
<published>2016-05-16T10:22:29+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/openstack/python-cinderclient.git/commit/?id=6c5a764c77b3ac8a16b7f8cb16486f02d3099c3a'/>
<id>6c5a764c77b3ac8a16b7f8cb16486f02d3099c3a</id>
<content type='text'>
This patch adds support to generic volume groups.

Server patch is here: https://review.openstack.org/#/c/322459/

Current microversion is 3.13. The following CLI's are supported:
cinder --os-volume-api-version 3.13 group-create --name my_group
    &lt;group type uuid&gt; &lt;volume type uuid&gt;
cinder --os-volume-api-version 3.13 group-list
cinder --os-volume-api-version 3.13 create --group-id &lt;group uuid&gt;
    --volume-type &lt;volume type uuid&gt; &lt;size&gt;
cinder --os-volume-api-version 3.13 group-update &lt;group uuid&gt;
    --name new_name  description new_description
    --add-volumes &lt;uuid of volume to add&gt;
    --remove-volumes &lt;uuid of volume to remove&gt;
cinder --os-volume-api-version 3.13 group-show &lt;group uuid&gt;
cinder --os-volume-api-version 3.13 group-delete
    --delete-volumes &lt;group uuid&gt;

Depends-on: I35157439071786872bc9976741c4ef75698f7cb7
Change-Id: Icff2d7385bde0a7c023c2ca38fffcd4bc5460af9
Partial-Implements: blueprint generic-volume-group
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This patch adds support to generic volume groups.

Server patch is here: https://review.openstack.org/#/c/322459/

Current microversion is 3.13. The following CLI's are supported:
cinder --os-volume-api-version 3.13 group-create --name my_group
    &lt;group type uuid&gt; &lt;volume type uuid&gt;
cinder --os-volume-api-version 3.13 group-list
cinder --os-volume-api-version 3.13 create --group-id &lt;group uuid&gt;
    --volume-type &lt;volume type uuid&gt; &lt;size&gt;
cinder --os-volume-api-version 3.13 group-update &lt;group uuid&gt;
    --name new_name  description new_description
    --add-volumes &lt;uuid of volume to add&gt;
    --remove-volumes &lt;uuid of volume to remove&gt;
cinder --os-volume-api-version 3.13 group-show &lt;group uuid&gt;
cinder --os-volume-api-version 3.13 group-delete
    --delete-volumes &lt;group uuid&gt;

Depends-on: I35157439071786872bc9976741c4ef75698f7cb7
Change-Id: Icff2d7385bde0a7c023c2ca38fffcd4bc5460af9
Partial-Implements: blueprint generic-volume-group
</pre>
</div>
</content>
</entry>
<entry>
<title>Add group types and group specs</title>
<updated>2016-07-14T07:36:39+00:00</updated>
<author>
<name>xing-yang</name>
<email>xing.yang@emc.com</email>
</author>
<published>2016-05-14T21:36:13+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/openstack/python-cinderclient.git/commit/?id=37ac58cc62447d463d1977c79f9bba49e02523b2'/>
<id>37ac58cc62447d463d1977c79f9bba49e02523b2</id>
<content type='text'>
This patch adds support for group types and group specs
in the client.

Server patch is merged: https://review.openstack.org/#/c/320165/

Current microversion is 3.11. The following CLI's are supported.
cinder --os-volume-api-version 3.11 group-type-create my_test_group
cinder --os-volume-api-version 3.11 group-type-list
cinder --os-volume-api-version 3.11 group-type-show my_test_group
cinder --os-volume-api-version 3.11 group-type-key my_test_group
    set test_key=test_val
cinder --os-volume-api-version 3.11 group-specs-list
cinder --os-volume-api-version 3.11 group-type-key my_test_group
    unset test_key
cinder --os-volume-api-version 3.11 group-type-update &lt;group type uuid&gt;
    --name "new_group" --description "my group type"
cinder --os-volume-api-version 3.11 group-type-delete new_group

Change-Id: I161a96aa53208e78146cb115d500fd6b2c42d046
Partial-Implements: blueprint generic-volume-group
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This patch adds support for group types and group specs
in the client.

Server patch is merged: https://review.openstack.org/#/c/320165/

Current microversion is 3.11. The following CLI's are supported.
cinder --os-volume-api-version 3.11 group-type-create my_test_group
cinder --os-volume-api-version 3.11 group-type-list
cinder --os-volume-api-version 3.11 group-type-show my_test_group
cinder --os-volume-api-version 3.11 group-type-key my_test_group
    set test_key=test_val
cinder --os-volume-api-version 3.11 group-specs-list
cinder --os-volume-api-version 3.11 group-type-key my_test_group
    unset test_key
cinder --os-volume-api-version 3.11 group-type-update &lt;group type uuid&gt;
    --name "new_group" --description "my group type"
cinder --os-volume-api-version 3.11 group-type-delete new_group

Change-Id: I161a96aa53208e78146cb115d500fd6b2c42d046
Partial-Implements: blueprint generic-volume-group
</pre>
</div>
</content>
</entry>
</feed>
