commit ecfcf8653815f658c0399b000e9386adc121312b
Author: Stephen Finucane <email address hidden>
Date: Mon Aug 27 16:28:32 2018 +0100
privsep: Handle ENOENT when checking for direct IO support
We've seen a recent issue that suggest direct IO support checks can fail
in other valid ways than EINVAL, namely, failures with ENOENT or the
FileNotFoundError exception, which is a Python 3-only exception type,
can occur. While we can't test for this without breaking Python 2.7
support, we can mimic this by looking for checking for the errno
attribute of the OSError exception. Do this.
Reviewed: https:/ /review. openstack. org/596815 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=ecfcf865381 5f658c0399b000e 9386adc121312b
Committed: https:/
Submitter: Zuul
Branch: master
commit ecfcf8653815f65 8c0399b000e9386 adc121312b
Author: Stephen Finucane <email address hidden>
Date: Mon Aug 27 16:28:32 2018 +0100
privsep: Handle ENOENT when checking for direct IO support
We've seen a recent issue that suggest direct IO support checks can fail dError exception, which is a Python 3-only exception type,
in other valid ways than EINVAL, namely, failures with ENOENT or the
FileNotFoun
can occur. While we can't test for this without breaking Python 2.7
support, we can mimic this by looking for checking for the errno
attribute of the OSError exception. Do this.
Change-Id: I8aab86bb62cbc8 ad538c706af037a 30437c7964d
Closes-Bug: #1788922