The following warning appears in the unit test logs a number of times.
This patch fixes the warnings in virt.libvirt.test_driver that come from
driver._get_connection() calls, but there are still a bunch more
warnings in that file.
"UserWarning: This test uses methods that set internal oslo_db
state, but it does not claim to use the database. This will conflict
with the setup of tests that do use the database and cause failures
later."
Note that this warning is only emitted once per unit test worker, so new
offenders will show up in the logs each time you fix a test until they
are all gone.
Reviewed: https:/ /review. openstack. org/311866 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=cf9713f3a4e c583c2035f7b759 5ba96a0b1edcde
Committed: https:/
Submitter: Jenkins
Branch: master
commit cf9713f3a4ec583 c2035f7b7595ba9 6a0b1edcde
Author: Diana Clarke <email address hidden>
Date: Mon May 2 17:42:50 2016 -0400
Fix database poison warnings, part 8
The following warning appears in the unit test logs a number of times. test_driver that come from _get_connection () calls, but there are still a bunch more
This patch fixes the warnings in virt.libvirt.
driver.
warnings in that file.
state, but it does not claim to use the database. This will conflict
with the setup of tests that do use the database and cause failures
later."
Note that this warning is only emitted once per unit test worker, so new
offenders will show up in the logs each time you fix a test until they
are all gone.
Change-Id: Icacce09f8a83cb 4c73d5b6caf5cd3 1b55032c847
Related-Bug: #1568414