This adds a failing test, which we fix in change I76448196.
An earlier version of this change was previously merged as
change I5619728d. This was later reverted, as it was failing in the
gate. However, on inspection these failures seem to have been simply
timeouts due to load.
Changes from previous version:
- Increase the timeouts which were previously triggering, and
serialise server creation to reduce the chance of this recurring.
- Add an LVM test, which highlights the requirement to flag the
creation of ephemeral and swap disks.
- Add an Qcow2 test, essentially the same as the Flat test but ensures
coverage of the most common backends.
- Each test now uses a separate instances_path allowing for cleanup
without racing against other active tests.
- Some nits addressed.
For the time being this test does not make use of the recently improved
nova.tests.functional.libvirt.base.ServersTestBase class to ease
backports. Future changes should be made to use this class removing some
of the common setUp logic from _LibvirtEvacuateTest.
NOTE(lyarwood): The following changes are required for stable/stein:
* [libvirt]/rbd_user is now set within LibvirtRbdEvacuateTest due to
I361af845d6a733618ecd056aa7df973191184ae9 not being present.
* CinderFixtureNewAttachFlow is used by all tests due to
I6a777b4b7a5729488f939df8c40e49bd40aec3dd not being present.
* _get_vcpu_total is used instead of _get_vcpu_available due to
I98efdc61fd456fc7f9e1a85238c9ef9bc04a1252 not being present.
Co-Authored-By: Lee Yarwood <lyarwood@redhat.com>
Related-Bug: #1550919
Change-Id: I1062b3e74382734edbb2142a09ff0073c66af8db
(cherry picked from commit 90e0e874bd)
(cherry picked from commit 6ccd13f8ae)
(cherry picked from commit 172eb21dee)