commit 0fb67d459baa0fb22391b1b1da3dba5349666bb7
Author: Matt Riedemann <email address hidden>
Date: Wed Aug 2 11:46:16 2017 -0400
Fix AttributeError in api example snippets tests
Change I3f020b6bcb1b9bf6d18a3b4f738c13cccd1bbff8 in
python-troveclient 2.11.0 changed the
troveclient.compat.client._logger variable to be a LOG
variable.
I have no idea how this hasn't been breaking the Trove
API examples CI job since python-troveclient 2.11.0 was
released. Maybe it has an no one has noticed or cared to
fix it.
Anyway, this adds hasattr checking in the test code to
set the log level on the correct variable based on which
version of troveclient is being used.
Also - no idea why setting the log level in the client
for these API tests is even necessary, but this dates back
to a change in 2014 so who knows. Not me.
--
This also fixes bug 1708171 by making nova run in
singleconductor mode so the affinity/anti-affinity
scheduling tests work. Trove CI is blocked by both
changes so they have to go together.
Reviewed: https:/ /review. openstack. org/490061 /git.openstack. org/cgit/ openstack/ trove/commit/ ?id=0fb67d459ba a0fb22391b1b1da 3dba5349666bb7
Committed: https:/
Submitter: Jenkins
Branch: master
commit 0fb67d459baa0fb 22391b1b1da3dba 5349666bb7
Author: Matt Riedemann <email address hidden>
Date: Wed Aug 2 11:46:16 2017 -0400
Fix AttributeError in api example snippets tests
Change I3f020b6bcb1b9b f6d18a3b4f738c1 3cccd1bbff8 in troveclient 2.11.0 changed the .compat. client. _logger variable to be a LOG
python-
troveclient
variable.
I have no idea how this hasn't been breaking the Trove
API examples CI job since python-troveclient 2.11.0 was
released. Maybe it has an no one has noticed or cared to
fix it.
Anyway, this adds hasattr checking in the test code to
set the log level on the correct variable based on which
version of troveclient is being used.
Also - no idea why setting the log level in the client
for these API tests is even necessary, but this dates back
to a change in 2014 so who knows. Not me.
--
This also fixes bug 1708171 by making nova run in anti-affinity
singleconductor mode so the affinity/
scheduling tests work. Trove CI is blocked by both
changes so they have to go together.
Change-Id: Iaf00fc55336a80 49c8303b8fa2849 df2366115e6
Closes-Bug: #1708190
Closes-Bug: #1708171