nova/nova/virt/libvirt
cedric.brandily 9d299ae50e 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
[2] https://review.openstack.org/392643

Closes-Bug: #1691831
Change-Id: Ifc075a0fd91fc87651fcb306d6439be5369009b6
(cherry picked from commit 3072b0afbc)
2017-05-30 08:17:26 +00:00
..
storage Fix issue with not removing rbd rescue disk 2016-10-13 11:49:51 +00:00
volume Fixed indentation 2016-08-31 18:02:02 +02:00
__init__.py Remove vi modelines 2014-02-03 14:19:44 +00:00
blockinfo.py libvirt: Delete the lase_device of find_disk_dev_for_disk_bus 2016-11-28 10:45:08 +00:00
compat.py Replace deprecated LOG.warn with LOG.warning 2016-03-15 11:57:56 +00:00
config.py libvirt: Use the mirror element to detect job completion 2017-01-31 16:47:16 +00:00
designer.py libvirt: conditionally set script path for ethernet vif types 2017-03-21 15:32:35 -04:00
driver.py Correct _ensure_console_log_for_instance implementation 2017-05-30 08:17:26 +00:00
firewall.py libvirt: ignore conflict when defining network filters 2016-09-30 20:48:23 +00:00
guest.py Merge "libvirt: Use the mirror element to detect job completion" into stable/newton 2017-02-16 06:30:51 +00:00
host.py libvirt: cleanup baselineCPU return value checking 2016-06-15 17:35:47 +08:00
imagebackend.py Fix resizing in imagebackend.cache() 2016-09-09 18:36:23 +00:00
imagecache.py Fix imagecache.get_cache_fname() to work in python3 2016-06-07 05:36:08 -04:00
instancejobtracker.py Replace deprecated LOG.warn with LOG.warning 2016-03-15 11:57:56 +00:00
migration.py libvirt: prepare domain XML update for serial ports 2017-01-03 10:24:48 +00:00
utils.py Catch error and log warning when not able to update mtimes 2017-02-03 14:09:08 +00:00
vif.py libvirt: conditionally set script path for ethernet vif types 2017-03-21 15:32:35 -04:00