nova/nova
Matthew Booth d7a1cb5724 Add functional test for bug 1550919
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)
2020-06-02 15:02:42 +01:00
..
api Merge "Reject boot request for unsupported images" into stable/stein 2020-04-24 17:06:50 +00:00
cells Per aggregate scheduling weight 2019-01-21 11:48:44 +08:00
cmd Add --instance option to heal_allocations 2019-11-21 17:32:21 -05:00
common
compute Update scheduler instance info at confirm resize 2020-05-20 19:48:46 +02:00
conductor Handle get_host_availability_zone error during reschedule 2019-10-02 15:43:40 -04:00
conf Add config option for neutron client retries 2020-04-22 16:47:17 +00:00
console Mask the token used to allow access to consoles 2020-01-23 13:25:18 +01:00
consoleauth Mask the token used to allow access to consoles 2020-01-23 13:25:18 +01:00
db Don't delete compute node, when deleting service other than nova-compute 2019-11-21 10:44:15 +01:00
hacking Add a hacking rule for deprecated assertion methods 2018-10-25 11:49:10 +09:00
image Share snapshot image membership with instance owner 2019-02-08 18:06:27 -05:00
ipv6
keymgr
locale Imported Translations from Zanata 2019-11-03 06:27:01 +00:00
network Add config option for neutron client retries 2020-04-22 16:47:17 +00:00
notifications Remove CellMappingPayload database_connection and transport_url fields 2019-04-04 21:25:52 +00:00
objects Join migration_context and flavor in Migration.instance 2019-11-26 13:40:43 +00:00
pci Add get_instance_pci_request_from_vif 2019-03-07 11:37:53 +02:00
policies Merge "Remove deprecated 'flavors' policy" 2019-02-23 06:13:00 +00:00
privsep Merge "Move slight bonkers IP management to privsep." 2019-03-20 13:21:29 +00:00
scheduler FUP for in-place numa rebuild 2020-01-22 15:06:07 +00:00
servicegroup Fix deprecation warning for threadgroup.add_timer 2019-02-07 09:37:00 -05:00
tests Add functional test for bug 1550919 2020-06-02 15:02:42 +01:00
virt fix scsi disk unit number of the attaching volume when cdrom bus is scsi 2020-05-27 19:57:55 +01:00
vnc Deprecate the nova-xvpvncproxy service 2018-10-15 10:03:13 +01:00
volume Add retry to cinder API calls related to volume detach 2020-04-24 09:26:28 -04:00
__init__.py Eventlet monkey patching should be as early as possible 2019-03-25 09:22:01 +01:00
availability_zones.py AZ list performance optimization: avoid double service list DB fetch 2019-04-29 19:05:05 +00:00
baserpc.py
block_device.py Add method to generate device names universally 2019-01-15 18:55:11 +00:00
cache_utils.py
config.py Configure placement DB context manager for nova-manage/status 2018-09-05 10:29:48 -04:00
context.py Reset the cell cache for database access in Service 2020-04-16 19:55:10 +00:00
crypto.py
debugger.py
exception.py FUP for in-place numa rebuild 2020-01-22 15:06:07 +00:00
exception_wrapper.py Add full traceback to ExceptionPayload in versioned notifications 2018-06-19 16:46:46 +08:00
filters.py
hooks.py
i18n.py
loadables.py
manager.py
monkey_patch.py Eventlet monkey patching should be as early as possible 2019-03-25 09:22:01 +01:00
policy.py Fix target used in nova.policy.check_is_admin 2019-05-21 10:55:14 +01:00
profiler.py
quota.py Make quotas respect instance_list_per_project_cells 2020-05-21 21:56:44 +00:00
rc_fields.py Switch to using os-resource-classes 2019-02-07 11:11:09 +00:00
rpc.py Fix jsonutils.to_primitive UserWarning 2018-12-17 22:56:50 -05:00
safe_utils.py
service.py Reset the cell cache for database access in Service 2020-04-16 19:55:10 +00:00
service_auth.py
test.py Enhance service restart in functional env 2020-01-20 16:56:13 +00:00
utils.py Eventlet monkey patching should be as early as possible 2019-03-25 09:22:01 +01:00
version.py
weights.py Per aggregate scheduling weight 2019-01-21 11:48:44 +08:00
wsgi.py