Comment 2 for bug 1788922

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova (master)

Reviewed: https://review.openstack.org/596815
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=ecfcf8653815f658c0399b000e9386adc121312b
Submitter: Zuul
Branch: master

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.

    Change-Id: I8aab86bb62cbc8ad538c706af037a30437c7964d
    Closes-Bug: #1788922