nova/nova/virt/xenapi
Corey Bryant 64793cf6f7 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.

Change-Id: I212ac2b5ccd93e00adb7b9fe102fcb70857c6073
Partial-Bug: #1771506
(cherry picked from commit 1da71fa4ab)
2019-04-29 12:36:01 +00:00
..
image XenAPI: define a new image handler to use vdi streaming 2018-06-13 01:59:07 +00:00
__init__.py Remove vi modelines 2014-02-03 14:19:44 +00:00
agent.py xenapi/agent: Change openssl error handling 2019-04-29 12:36:01 +00:00
driver.py Merge "ironic: check fresh data when sync_power_state doesn't line up" 2019-03-02 02:36:41 +00:00
fake.py Use six.string_types to improve python2/3 compatibility 2018-09-07 17:05:24 +08:00
firewall.py Fix python3 issues with devstack 2016-12-21 22:20:00 -05:00
host.py XenAPI: create vGPU for instance 2017-12-18 08:09:20 -08:00
network_utils.py Fixes dict keys and items references for Python 3 2015-12-07 12:19:59 +02:00
pool.py Remove translation of log messages 2017-06-13 11:20:28 +07:00
pool_states.py Remove vi modelines 2014-02-03 14:19:44 +00:00
vif.py Add missing ws seperator between words 2018-11-26 23:42:18 +00:00
vm_utils.py Remove utils.execute() calls from xenapi. 2018-12-04 16:04:30 +11:00
vmops.py Add missing ws seperator between words 2018-11-26 23:42:18 +00:00
volume_utils.py XenAPI/Stops the migration of volume backed VHDS 2018-03-15 04:19:11 -05:00
volumeops.py Remove translation of log messages 2017-06-13 11:20:28 +07:00