<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/openstack/python-ironicclient.git, branch train-em</title>
<subtitle>opendev.org: openstack/python-ironicclient.git
</subtitle>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/python-ironicclient.git/'/>
<entry>
<title>Provide a clear error message when using client.Client without a session</title>
<updated>2020-02-10T12:58:54+00:00</updated>
<author>
<name>Dmitry Tantsur</name>
<email>dtantsur@protonmail.com</email>
</author>
<published>2020-02-10T10:02:09+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/python-ironicclient.git/commit/?id=1220d7685723b8235135d2d02c11008c7f7fb18a'/>
<id>1220d7685723b8235135d2d02c11008c7f7fb18a</id>
<content type='text'>
Currently we fail with _construct_http_client() takes at least 1 argument.
This change provides a proper TypeError and updates documentation to make
it clear where a session is required. Also provided are explicit unit
tests on passing a session via various means.

Change-Id: I96073dc80d225a9b88fdc12bb058c0145aca623b
(cherry picked from commit e8914a7ef9eb582441a7067f2663e19209f32822)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Currently we fail with _construct_http_client() takes at least 1 argument.
This change provides a proper TypeError and updates documentation to make
it clear where a session is required. Also provided are explicit unit
tests on passing a session via various means.

Change-Id: I96073dc80d225a9b88fdc12bb058c0145aca623b
(cherry picked from commit e8914a7ef9eb582441a7067f2663e19209f32822)
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix AttributeError in negotiate_version</title>
<updated>2019-12-04T11:25:39+00:00</updated>
<author>
<name>Mark Goddard</name>
<email>mark@stackhpc.com</email>
</author>
<published>2019-08-12T15:19:37+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/python-ironicclient.git/commit/?id=8188c01489f63b5fd10702ebccbd742b62488d6e'/>
<id>8188c01489f63b5fd10702ebccbd742b62488d6e</id>
<content type='text'>
Seen in kolla-ansible CI, if ironic inspector starts up before ironic
API is properly up, we see the following error:

The PXE filter DnsmasqFilter, state=initialized encountered an
exception: StrictVersion instance has no attribute 'version'; resetting
the filter: AttributeError: StrictVersion instance has no attribute
'version'

Example: http://paste.openstack.org/show/756342/

The usual cause of this error is when StrictVersion is initialised with
a version of None. This suggests to me that max_ver is None.

This leads to an exception being raised that circumvents the client's
retry mechanisms.

In the particular case of kolla-ansible CI, Ironic API is behind a load
balancer, and all backends are down resulting in a 503. The lack of a
retry caused ironic inspector to fail on startup.

This patch catches the case where we get a 4xx or 5xx return code when
checking the version, and raises an error that works with the client's
retry mechanisms.

Change-Id: Ib62ca3ee4626084e5e9b90e93e4fa97938023457
Story: 2006393
Task: 36266
(cherry picked from commit 0e9bf337f1f6aa41f67df2966dacf9e8e897b7da)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Seen in kolla-ansible CI, if ironic inspector starts up before ironic
API is properly up, we see the following error:

The PXE filter DnsmasqFilter, state=initialized encountered an
exception: StrictVersion instance has no attribute 'version'; resetting
the filter: AttributeError: StrictVersion instance has no attribute
'version'

Example: http://paste.openstack.org/show/756342/

The usual cause of this error is when StrictVersion is initialised with
a version of None. This suggests to me that max_ver is None.

This leads to an exception being raised that circumvents the client's
retry mechanisms.

In the particular case of kolla-ansible CI, Ironic API is behind a load
balancer, and all backends are down resulting in a 503. The lack of a
retry caused ironic inspector to fail on startup.

This patch catches the case where we get a 4xx or 5xx return code when
checking the version, and raises an error that works with the client's
retry mechanisms.

Change-Id: Ib62ca3ee4626084e5e9b90e93e4fa97938023457
Story: 2006393
Task: 36266
(cherry picked from commit 0e9bf337f1f6aa41f67df2966dacf9e8e897b7da)
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix usage of --owner filter during node list</title>
<updated>2019-09-24T14:52:17+00:00</updated>
<author>
<name>Gaëtan Trellu</name>
<email>gaetan.trellu@incloudus.com</email>
</author>
<published>2019-09-17T14:42:15+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/python-ironicclient.git/commit/?id=04ef2d7b04caad162e299c52542b2cb581552ea3'/>
<id>04ef2d7b04caad162e299c52542b2cb581552ea3</id>
<content type='text'>
When using --owner filter during node list, the CLI returns
this error:

  list() got an unexpected keyword argument 'owner'

Change-Id: Id751336d8d8cb99e62e465e17114e610f619c520
Story: 2006563
Task: 36660
(cherry picked from commit 89088e2aaa8329bbb98380748e5d9716734e0db6)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
When using --owner filter during node list, the CLI returns
this error:

  list() got an unexpected keyword argument 'owner'

Change-Id: Id751336d8d8cb99e62e465e17114e610f619c520
Story: 2006563
Task: 36660
(cherry picked from commit 89088e2aaa8329bbb98380748e5d9716734e0db6)
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge "Remove the requirement on either endpoint_override or os_ironic_api_version" into stable/train</title>
<updated>2019-09-24T14:12:58+00:00</updated>
<author>
<name>Zuul</name>
<email>zuul@review.opendev.org</email>
</author>
<published>2019-09-24T14:12:58+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/python-ironicclient.git/commit/?id=3705fe13ea074a61bb6050dc596210181de26857'/>
<id>3705fe13ea074a61bb6050dc596210181de26857</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Make it clear that a Session is required for v1.client.Client</title>
<updated>2019-09-24T13:33:04+00:00</updated>
<author>
<name>Dmitry Tantsur</name>
<email>dtantsur@protonmail.com</email>
</author>
<published>2019-09-24T11:31:43+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/python-ironicclient.git/commit/?id=4420811710d0ad2b5e245b4b48369b7313e08df8'/>
<id>4420811710d0ad2b5e245b4b48369b7313e08df8</id>
<content type='text'>
Change-Id: Icfb5f11a59a6b7cc65dcda0b87240c57c120e228
(cherry picked from commit 66a9c87c39a08727e3a3b8c18ba3281c9999b528)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Change-Id: Icfb5f11a59a6b7cc65dcda0b87240c57c120e228
(cherry picked from commit 66a9c87c39a08727e3a3b8c18ba3281c9999b528)
</pre>
</div>
</content>
</entry>
<entry>
<title>Remove the requirement on either endpoint_override or os_ironic_api_version</title>
<updated>2019-09-24T13:01:53+00:00</updated>
<author>
<name>Dmitry Tantsur</name>
<email>dtantsur@protonmail.com</email>
</author>
<published>2019-09-23T13:09:05+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/python-ironicclient.git/commit/?id=fbbbf35d98a7257b3317b73a4db9d655d9fe1805'/>
<id>fbbbf35d98a7257b3317b73a4db9d655d9fe1805</id>
<content type='text'>
It makes zero sense from a caller's perspective. We only use it for efficient
caching of API versions, which can safely be bypassed.

Change-Id: I00508d36ec1679cdcc9c9d1ec744d818dee74e0b
(cherry picked from commit c3e490800aaeb1f814aa0af25a9155fa6f794215)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
It makes zero sense from a caller's perspective. We only use it for efficient
caching of API versions, which can safely be bypassed.

Change-Id: I00508d36ec1679cdcc9c9d1ec744d818dee74e0b
(cherry picked from commit c3e490800aaeb1f814aa0af25a9155fa6f794215)
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge "Fix TypeError when using endpoint_override with SessionClient" into stable/train</title>
<updated>2019-09-24T12:38:03+00:00</updated>
<author>
<name>Zuul</name>
<email>zuul@review.opendev.org</email>
</author>
<published>2019-09-24T12:38:03+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/python-ironicclient.git/commit/?id=c5767bbddcd06e18c4837750336ed429c99f9209'/>
<id>c5767bbddcd06e18c4837750336ed429c99f9209</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Make the dependency on oslo.config explicit</title>
<updated>2019-09-24T11:20:39+00:00</updated>
<author>
<name>Dmitry Tantsur</name>
<email>dtantsur@protonmail.com</email>
</author>
<published>2019-09-23T13:17:33+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/python-ironicclient.git/commit/?id=eb3e54a063e7b39e1007f65ecd763e7c0a82da87'/>
<id>eb3e54a063e7b39e1007f65ecd763e7c0a82da87</id>
<content type='text'>
The code in ironicclient.client that uses session_loader.get_conf_options
requires oslo.config to operate. This patch makes the dependency explicit.

Story: #2006601
Task: #36764
Change-Id: I472896ddd0ced8535d71d807fb5e01d1471571eb
(cherry picked from commit 7c27668ed6f60062f7ad512388caf65fac87cd79)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The code in ironicclient.client that uses session_loader.get_conf_options
requires oslo.config to operate. This patch makes the dependency explicit.

Story: #2006601
Task: #36764
Change-Id: I472896ddd0ced8535d71d807fb5e01d1471571eb
(cherry picked from commit 7c27668ed6f60062f7ad512388caf65fac87cd79)
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix TypeError when using endpoint_override with SessionClient</title>
<updated>2019-09-24T11:20:25+00:00</updated>
<author>
<name>Dmitry Tantsur</name>
<email>dtantsur@protonmail.com</email>
</author>
<published>2019-09-23T12:26:37+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/python-ironicclient.git/commit/?id=cbd4418e09774098ed1d003faf7a1adcd42aec3a'/>
<id>cbd4418e09774098ed1d003faf7a1adcd42aec3a</id>
<content type='text'>
First, when endpoint cannot be detected from a session None is returned
from get_endpoint, causing subsequent code to fail. This changes fixes it.

Second, endpoint_override is not passed to a Session (it's an Adapter)
property, doing it has no effect. Use get_endpoint from Adapter instead.

Change-Id: Ia942858abe980abf95c1ca136767983e7a0a285e
Story: #2006600
Task: #36763
(cherry picked from commit 7f003e1e045e3e20b824a94676310315f8fef9fc)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
First, when endpoint cannot be detected from a session None is returned
from get_endpoint, causing subsequent code to fail. This changes fixes it.

Second, endpoint_override is not passed to a Session (it's an Adapter)
property, doing it has no effect. Use get_endpoint from Adapter instead.

Change-Id: Ia942858abe980abf95c1ca136767983e7a0a285e
Story: #2006600
Task: #36763
(cherry picked from commit 7f003e1e045e3e20b824a94676310315f8fef9fc)
</pre>
</div>
</content>
</entry>
<entry>
<title>Update TOX/UPPER_CONSTRAINTS_FILE for stable/train</title>
<updated>2019-09-10T17:06:45+00:00</updated>
<author>
<name>OpenStack Release Bot</name>
<email>infra-root@openstack.org</email>
</author>
<published>2019-09-10T17:06:45+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/python-ironicclient.git/commit/?id=646838c8d8ecf92260cf984565a66f029eab796b'/>
<id>646838c8d8ecf92260cf984565a66f029eab796b</id>
<content type='text'>
Update the URL to the upper-constraints file to point to the redirect
rule on releases.openstack.org so that anyone working on this branch
will switch to the correct upper-constraints list automatically when
the requirements repository branches.

Until the requirements repository has as stable/train branch, tests will
continue to use the upper-constraints list on master.

Change-Id: I447b0ff53abd202abcb2a6699d31ac7e94577f66
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Update the URL to the upper-constraints file to point to the redirect
rule on releases.openstack.org so that anyone working on this branch
will switch to the correct upper-constraints list automatically when
the requirements repository branches.

Until the requirements repository has as stable/train branch, tests will
continue to use the upper-constraints list on master.

Change-Id: I447b0ff53abd202abcb2a6699d31ac7e94577f66
</pre>
</div>
</content>
</entry>
</feed>
