<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/openstack/python-ironicclient.git, branch stable/stein</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>Fix AttributeError in negotiate_version</title>
<updated>2019-12-04T11:26:01+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=0bd26cc47ed51d19e07280db9e770ad09edd2bf8'/>
<id>0bd26cc47ed51d19e07280db9e770ad09edd2bf8</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 session cert arguments</title>
<updated>2019-10-21T20:55:40+00:00</updated>
<author>
<name>Steve Baker</name>
<email>sbaker@redhat.com</email>
</author>
<published>2019-10-21T01:08:42+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/python-ironicclient.git/commit/?id=42faaabdeeaa45c8916f601ece2ca60f37443a3d'/>
<id>42faaabdeeaa45c8916f601ece2ca60f37443a3d</id>
<content type='text'>
All calls to the deprecated ironic commands are failing because
unsupported cert arguments are being used to create the session
(cafile, certfile, keyfile)

This change switches to using the correct arguments. It is proposed
first on stable/stein because the deprecated ironic commands were
removed in Train.

Change-Id: If0730c0d9c1c3a700cbc6ae16b1c3752d0b681c4
Story: 2006748
Task: 37230
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
All calls to the deprecated ironic commands are failing because
unsupported cert arguments are being used to create the session
(cafile, certfile, keyfile)

This change switches to using the correct arguments. It is proposed
first on stable/stein because the deprecated ironic commands were
removed in Train.

Change-Id: If0730c0d9c1c3a700cbc6ae16b1c3752d0b681c4
Story: 2006748
Task: 37230
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix usage of --owner filter during node list</title>
<updated>2019-09-25T09:01:39+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=4ed5966931a7ad11a73b762addf9df563b1b7664'/>
<id>4ed5966931a7ad11a73b762addf9df563b1b7664</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>Do not try to use /v1/v1 when endpoint_override is used</title>
<updated>2019-05-17T07:39:43+00:00</updated>
<author>
<name>Dmitry Tantsur</name>
<email>divius.inside@gmail.com</email>
</author>
<published>2019-05-16T14:52:36+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/python-ironicclient.git/commit/?id=266a700534cbd166c800999dd92556cb431d2055'/>
<id>266a700534cbd166c800999dd92556cb431d2055</id>
<content type='text'>
In one of the places where endpoint_override is used we did not strip
the /v1 suffix, resulting in doube /v1/v1 sometimes.

This patch also corrects the way we strip this suffix (str.rstrip accepts
a set of symbols, not a substring; use regex instead).

It remains unclear why the breakage passed the gate initially. I assume
it was not on the active code path until some Nova change.

Story: #2005723
Task: #31051
Change-Id: I3b25f4fb170aa93159ffa8074dc74fa6f50671b7
(cherry picked from commit 4565af8ccd8aaa35868fae6ae31216c3e57014f3)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
In one of the places where endpoint_override is used we did not strip
the /v1 suffix, resulting in doube /v1/v1 sometimes.

This patch also corrects the way we strip this suffix (str.rstrip accepts
a set of symbols, not a substring; use regex instead).

It remains unclear why the breakage passed the gate initially. I assume
it was not on the active code path until some Nova change.

Story: #2005723
Task: #31051
Change-Id: I3b25f4fb170aa93159ffa8074dc74fa6f50671b7
(cherry picked from commit 4565af8ccd8aaa35868fae6ae31216c3e57014f3)
</pre>
</div>
</content>
</entry>
<entry>
<title>OpenDev Migration Patch</title>
<updated>2019-04-19T19:29:54+00:00</updated>
<author>
<name>OpenDev Sysadmins</name>
<email>openstack-infra@lists.openstack.org</email>
</author>
<published>2019-04-19T19:29:54+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/python-ironicclient.git/commit/?id=7217d7e8dc780002a7053d6c678dbe39665581fd'/>
<id>7217d7e8dc780002a7053d6c678dbe39665581fd</id>
<content type='text'>
This commit was bulk generated and pushed by the OpenDev sysadmins
as a part of the Git hosting and code review systems migration
detailed in these mailing list posts:

http://lists.openstack.org/pipermail/openstack-discuss/2019-March/003603.html
http://lists.openstack.org/pipermail/openstack-discuss/2019-April/004920.html

Attempts have been made to correct repository namespaces and
hostnames based on simple pattern matching, but it's possible some
were updated incorrectly or missed entirely. Please reach out to us
via the contact information listed at https://opendev.org/ with any
questions you may have.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This commit was bulk generated and pushed by the OpenDev sysadmins
as a part of the Git hosting and code review systems migration
detailed in these mailing list posts:

http://lists.openstack.org/pipermail/openstack-discuss/2019-March/003603.html
http://lists.openstack.org/pipermail/openstack-discuss/2019-April/004920.html

Attempts have been made to correct repository namespaces and
hostnames based on simple pattern matching, but it's possible some
were updated incorrectly or missed entirely. Please reach out to us
via the contact information listed at https://opendev.org/ with any
questions you may have.
</pre>
</div>
</content>
</entry>
<entry>
<title>Use endpoint_override in version negotiation</title>
<updated>2019-04-17T04:26:58+00:00</updated>
<author>
<name>Jason</name>
<email>jasonanderson@uchicago.edu</email>
</author>
<published>2019-03-15T15:57:57+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/python-ironicclient.git/commit/?id=b40630f3b3e747ae4a26d31e8e292554b99713f2'/>
<id>b40630f3b3e747ae4a26d31e8e292554b99713f2</id>
<content type='text'>
Change [1] introduced the usage of endpoint_filter when deciding which
endpoint to use during version negotiation. This requires properly
setting interface/region/service_type in order to properly pick the
endpoint. But, sometimes (for example in Kolla-ansible), the endpoint
url is explicitly defined. In the event of the endpoint being explicitly
defined, it should take priority here.

It should be noted that even though SessionClient extends from
keystoneauth1's adapter.LegacyJsonAdapter, the `request` function within
_make_simple_request is being called on the nested Session object, not
the Adapter itself. If it was called on the Adapter this problem
wouldn't exist, as the `endpoint_override` (or `endpoint`) kwarg passed
in to the constructor of the SessionClient would already take
precedence.

Additionally: Adds a release note to the older branch as this is a
fix that needs to be released and is worthy of change visibility
in release notes.

[1]: I42b66daea1f4397273a3f4eb1638abafb3bb28ce

Change-Id: I69dc2c88648ba1d09a9ad3ab3435662e8d1ea6ff
Related-Bug: #1818295
(cherry picked from commit 8071d5de57c728ce09d25d04c8c9fe48cd7db42e)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Change [1] introduced the usage of endpoint_filter when deciding which
endpoint to use during version negotiation. This requires properly
setting interface/region/service_type in order to properly pick the
endpoint. But, sometimes (for example in Kolla-ansible), the endpoint
url is explicitly defined. In the event of the endpoint being explicitly
defined, it should take priority here.

It should be noted that even though SessionClient extends from
keystoneauth1's adapter.LegacyJsonAdapter, the `request` function within
_make_simple_request is being called on the nested Session object, not
the Adapter itself. If it was called on the Adapter this problem
wouldn't exist, as the `endpoint_override` (or `endpoint`) kwarg passed
in to the constructor of the SessionClient would already take
precedence.

Additionally: Adds a release note to the older branch as this is a
fix that needs to be released and is worthy of change visibility
in release notes.

[1]: I42b66daea1f4397273a3f4eb1638abafb3bb28ce

Change-Id: I69dc2c88648ba1d09a9ad3ab3435662e8d1ea6ff
Related-Bug: #1818295
(cherry picked from commit 8071d5de57c728ce09d25d04c8c9fe48cd7db42e)
</pre>
</div>
</content>
</entry>
<entry>
<title>Run jobs under python2 and python3</title>
<updated>2019-04-10T08:58:57+00:00</updated>
<author>
<name>Iury Gregory Melo Ferreira</name>
<email>imelofer@redhat.com</email>
</author>
<published>2019-03-11T14:36:35+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/python-ironicclient.git/commit/?id=cdd4b8c046f5902f515d782fa19fbf738d376549'/>
<id>cdd4b8c046f5902f515d782fa19fbf738d376549</id>
<content type='text'>
-Switch functional job to run under python3
-Create a functional job to run under python2
-Create a tempest job to run under python2
-Create tox env to run functional tests under python3
-Validate if `USE_PYTHON3` is set to `True` to call
the correct env for tests
-Remove hardcoded path for client when running functional tests
- Update tests failures to work for python2 and python3

Change-Id: I96d418f08c46add8bf61bf8d1b4e45b6083b8d84
(cherry picked from commit 9b881cb973bc2219df90c2b71e2a1d0e18dcd98a)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
-Switch functional job to run under python3
-Create a functional job to run under python2
-Create a tempest job to run under python2
-Create tox env to run functional tests under python3
-Validate if `USE_PYTHON3` is set to `True` to call
the correct env for tests
-Remove hardcoded path for client when running functional tests
- Update tests failures to work for python2 and python3

Change-Id: I96d418f08c46add8bf61bf8d1b4e45b6083b8d84
(cherry picked from commit 9b881cb973bc2219df90c2b71e2a1d0e18dcd98a)
</pre>
</div>
</content>
</entry>
<entry>
<title>Move to zuulv3</title>
<updated>2019-03-26T16:02:04+00:00</updated>
<author>
<name>Iury Gregory Melo Ferreira</name>
<email>imelofer@redhat.com</email>
</author>
<published>2019-01-24T15:00:21+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/python-ironicclient.git/commit/?id=bab647771b2b4e37f76309ae017ed279ec7af1b7'/>
<id>bab647771b2b4e37f76309ae017ed279ec7af1b7</id>
<content type='text'>
To move ironicclient legacy jobs to zuulv3 the the following changes
were necessary:

- Change `tox.ini` to pass envrioment variables
- Clean `post_test_hook.sh` to avoid legacy variables (`$USER` and
`$BASE`), removing `generate_testr_results` function since we only
get `testrepository.subunit` in logs and the results of the tests
are present in job-output file.
- Convert `post_test_hook.sh` and `run_functional.sh` into
`playbooks/functional/run.yaml` to run after the setup.

Also includes the changes from commit
9cd6ce7eb2d96a8f58a4d00f85b405babf67d28f

Change-Id: I6a5b3f82c238083b66bdf6f379092260d367d82d
(cherry picked from commit 2c349cc8930897052e66d29a70e1e7f1c4d40d79)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
To move ironicclient legacy jobs to zuulv3 the the following changes
were necessary:

- Change `tox.ini` to pass envrioment variables
- Clean `post_test_hook.sh` to avoid legacy variables (`$USER` and
`$BASE`), removing `generate_testr_results` function since we only
get `testrepository.subunit` in logs and the results of the tests
are present in job-output file.
- Convert `post_test_hook.sh` and `run_functional.sh` into
`playbooks/functional/run.yaml` to run after the setup.

Also includes the changes from commit
9cd6ce7eb2d96a8f58a4d00f85b405babf67d28f

Change-Id: I6a5b3f82c238083b66bdf6f379092260d367d82d
(cherry picked from commit 2c349cc8930897052e66d29a70e1e7f1c4d40d79)
</pre>
</div>
</content>
</entry>
<entry>
<title>Replace openstack.org git:// URLs with https://</title>
<updated>2019-03-24T20:35:51+00:00</updated>
<author>
<name>Ian Wienand</name>
<email>iwienand@redhat.com</email>
</author>
<published>2019-03-24T20:35:51+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/python-ironicclient.git/commit/?id=1665244caa29f2e583c2e082e77ab4507d78a55d'/>
<id>1665244caa29f2e583c2e082e77ab4507d78a55d</id>
<content type='text'>
This is a mechanically generated change to replace openstack.org
git:// URLs with https:// equivalents.

This is in aid of a planned future move of the git hosting
infrastructure to a self-hosted instance of gitea (https://gitea.io),
which does not support the git wire protocol at this stage.

This update should result in no functional change.

For more information see the thread at

 http://lists.openstack.org/pipermail/openstack-discuss/2019-March/003825.html

Change-Id: Ia27139cf22ac11803855bd6c52cae8a8a2fbc3ba
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This is a mechanically generated change to replace openstack.org
git:// URLs with https:// equivalents.

This is in aid of a planned future move of the git hosting
infrastructure to a self-hosted instance of gitea (https://gitea.io),
which does not support the git wire protocol at this stage.

This update should result in no functional change.

For more information see the thread at

 http://lists.openstack.org/pipermail/openstack-discuss/2019-March/003825.html

Change-Id: Ia27139cf22ac11803855bd6c52cae8a8a2fbc3ba
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge "Update .gitreview for stable/stein" into stable/stein</title>
<updated>2019-03-21T14:36:40+00:00</updated>
<author>
<name>Zuul</name>
<email>zuul@review.openstack.org</email>
</author>
<published>2019-03-21T14:36:40+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/python-ironicclient.git/commit/?id=8d198c936e471856270546d73afd8e1cb5327e33'/>
<id>8d198c936e471856270546d73afd8e1cb5327e33</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
