nova/nova/tests/unit/virt
Corey Bryant 8241b47967 xenapi/agent: Change openssl error handling
Prior to this patch, if the openssl command returned a zero exit code
and wrote details to stderr, nova would raise a RuntimeError exception.
This patch changes the behavior to only raise a RuntimeError exception
when openssl returns a non-zero exit code. Regardless of the exit code
a warning will always be logged with stderr details if stderr is not
None. Note that processutils.execute will now raise a
processutils.ProcessExecutionError exception for any non-zero exit code
since we are passing check_exit_code=True, which we convert to a
Runtime error.

Thanks to Dimitri John Ledkov <xnox@ubuntu.com> and Eric Fried
<openstack@fried.cc> for helping with this patch.

Conflicts:
    nova/virt/xenapi/agent.py

NOTE(coreycb): The conflict is due to
Ibe2f478288db42f8168b52dfc14d85ab92ace74b not being in stable/rocky.

Change-Id: I212ac2b5ccd93e00adb7b9fe102fcb70857c6073
Partial-Bug: #1771506
(cherry picked from commit 1da71fa4ab)
(cherry picked from commit 64793cf6f7)
2019-04-30 08:40:53 -04:00
..
disk Don't use private interface in oslo.service 2018-11-21 16:37:38 -05:00
hyperv hyperv: Cleans up live migration Planned VM 2018-09-14 11:49:17 -06:00
image Use assert(Not)Equal instead of assertTrue(A == X) 2016-06-03 16:53:15 +01:00
ironic Merge "pass endpoint interface to Ironic client" into stable/rocky 2019-03-21 15:59:11 +00:00
libvirt libvirt: set device address tag only if setting disk unit 2019-04-18 15:56:28 +00:00
powervm Merge "Rename recreate to evacuate in driver signatures" 2018-07-21 23:19:40 +00:00
vmwareapi Rename recreate to evacuate in driver signatures 2018-04-19 14:07:47 +01:00
xenapi xenapi/agent: Change openssl error handling 2019-04-30 08:40:53 -04:00
zvm z/VM Driver: add get console output 2018-07-16 11:35:11 +08:00
__init__.py
fakelibosinfo.py
test_block_device.py Override the 'get' method in DriverBlockDevice class 2019-03-26 12:13:56 +09:00
test_configdrive.py
test_driver.py Remove usage of parameter enforce_type 2017-04-17 20:23:19 +08:00
test_events.py
test_fake.py
test_firewall.py remove get_nw_info_for_instance from compute.utils 2017-06-13 13:30:06 +02:00
test_hardware.py hardware: fix memory check usage for small/large pages 2018-09-03 14:45:26 +00:00
test_imagecache.py Remove mox from tests/unit/virt/test_imagecache.py 2016-06-16 23:40:01 +00:00
test_images.py Fix execute mock for test_convert_image_with_errors 2018-06-14 12:33:21 +00:00
test_netutils.py Remove unnecessary code 2017-07-28 06:01:21 +00:00
test_osinfo.py Do not attempt to load osinfo if we do not have os_distro 2017-03-23 22:07:03 -04:00
test_virt.py Rename block_device_info_get_root 2018-01-11 20:46:13 +00:00
test_virt_drivers.py Revert "libvirt: slow live-migration to ensure network is ready" 2018-08-13 06:20:04 +00:00