_ensure_console_log_for_instance[1] ensures VM console.log existence.
A change[2] updated in order to succeed if the file exists without nova
being able to read it (typically happens when libvirt rewrites uid/gid)
by ignoring EPERM errors.
It seems the method should ignore EACCES errors. Indeed EACCES errors
are raised when an action is not permitted because of insufficient
permissions where EPERM errors when an action is not permitted at all.
Reviewed: https:/ /review. openstack. org/469013 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=9d299ae50ea 52c63811eba11ee 974643c17079ad
Committed: https:/
Submitter: Jenkins
Branch: stable/newton
commit 9d299ae50ea52c6 3811eba11ee9746 43c17079ad
Author: cedric.brandily <email address hidden>
Date: Thu May 18 21:26:09 2017 +0200
Correct _ensure_ console_ log_for_ instance implementation
_ensure_ console_ log_for_ instance[ 1] ensures VM console.log existence.
A change[2] updated in order to succeed if the file exists without nova
being able to read it (typically happens when libvirt rewrites uid/gid)
by ignoring EPERM errors.
It seems the method should ignore EACCES errors. Indeed EACCES errors
are raised when an action is not permitted because of insufficient
permissions where EPERM errors when an action is not permitted at all.
[1] nova.virt. libvirt. driver /review. openstack. org/392643
[2] https:/
Closes-Bug: #1691831 7651fcb306d6439 be5369009b6 f5e72f191525296 cfa2b014cb)
Change-Id: Ifc075a0fd91fc8
(cherry picked from commit 3072b0afbc157ee