nova/nova/virt
Balazs Gibizer 23d3b8fbc9 Remove global state from the FakeDriver
The virt driver FakeDriver used in both the functional and in the unit
test used a global state to configure the host and node names the driver
reports. This was hard to use when more then one compute service is started.
Also global state is dangerous.

It turned out that only a set of unit tests are using multiple nodes per
compute the rest of the tests can simply use host=<hostname>,
nodes=[<hostname>] setup.

So this removes the global state.

On stable/stein:
* Changes in functional/regressions/test_bug_1764556.py just removes the
  usage of the global state as that test was backported before the patch
  being backported was introduced

* Changes in functional/regressions/test_bug_1839560.py is a re-backport
  of If822509e906d5094f13a8700b2b9ed3c40580431 adapted to the current
  patch.

Related-Bug: #1859766

Change-Id: I2cf2fcbaebc706f897ce5dfbff47d32117064f9c
(cherry picked from commit b5666fb492)
2020-01-17 16:04:46 +01:00
..
disk lxc: make use of filter python3 compatible 2019-08-14 19:21:52 +00:00
hyperv Merge "Share snapshot image membership with instance owner" 2019-03-12 18:43:12 +00:00
image libvirt: virtuozzo instance resize support 2016-06-28 22:13:49 +03:00
ironic Fix rebuild of baremetal instance when vm_state is ERROR 2019-09-08 14:57:46 +00:00
libvirt Do not update root_device_name during guest config 2019-12-06 20:27:12 +00:00
powervm Merge "Share snapshot image membership with instance owner" 2019-03-12 18:43:12 +00:00
vmwareapi Merge "Share snapshot image membership with instance owner" 2019-03-12 18:43:12 +00:00
xenapi xenapi/agent: Change openssl error handling 2019-04-29 12:36:01 +00:00
zvm Merge "Share snapshot image membership with instance owner" 2019-03-12 18:43:12 +00:00
__init__.py Declare nova.virt namespace 2016-04-28 15:01:44 +00:00
arch.py Added ability to configure default architecture for ImagePropertiesFilter 2018-05-14 16:55:13 -04:00
block_device.py block_device: Copy original volume_type when missing for snapshot based volumes 2019-12-11 20:43:25 +00:00
configdrive.py Convert configdrive to use processutils. 2018-05-02 21:42:05 +10:00
driver.py Do not perform port update in case of baremetal instance. 2019-04-28 15:47:22 +00:00
event.py Port binding based on events during live migration 2018-07-19 09:09:55 -04:00
fake.py Remove global state from the FakeDriver 2020-01-17 16:04:46 +01:00
firewall.py Merge "Remove translation of log messages" 2017-06-20 21:16:49 +00:00
hardware.py Merge "Improve existing flavor and image metadata validation" 2019-03-05 08:57:41 +00:00
imagecache.py Rename ImageCacheManager._list_base_images to _scan_base_images 2016-05-26 14:45:42 +01:00
images.py Improve libvirt image and snapshot handling 2019-03-05 12:18:34 -06:00
interfaces.template
netutils.py libvirt: add vf_trusted field for network metadata 2018-05-30 15:11:59 -04:00
osinfo.py Stop sending bad values from libosinfo to libvirt 2019-10-11 08:32:12 +00:00
storage_users.py Remove translation of log messages 2017-06-13 11:20:28 +07:00
virtapi.py Remove unused provider firewall rules functionality in nova 2016-02-01 15:50:04 +01:00