Catch error and log warning when not able to update mtimes
When we launch an instance, nova updates the mtime for the _base image
to let the image cache manager know the image is actively used. This
can lead to unexpected I/O errors when launching a large amount of
instances at once coming from the same _base image.
This commit puts the execute call in a try, except block to catch
possible errors. It also logs a warning with the path and error message.
With this, at least once the update will succeed.
Closes-Bug: #1621818
Co-Authored-By: Matt Riedemann <email address hidden>
Reviewed: https:/ /review. openstack. org/391091 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=68402ae5443 fd811b3dcb41537 b621935d23f4ad
Committed: https:/
Submitter: Jenkins
Branch: stable/newton
commit 68402ae5443fd81 1b3dcb41537b621 935d23f4ad
Author: Joris S'heeren <email address hidden>
Date: Fri Sep 9 15:40:58 2016 +0200
Catch error and log warning when not able to update mtimes
When we launch an instance, nova updates the mtime for the _base image
to let the image cache manager know the image is actively used. This
can lead to unexpected I/O errors when launching a large amount of
instances at once coming from the same _base image.
This commit puts the execute call in a try, except block to catch
possible errors. It also logs a warning with the path and error message.
With this, at least once the update will succeed.
Closes-Bug: #1621818
Co-Authored-By: Matt Riedemann <email address hidden>
Change-Id: I2fd1700aa4563a 906eb574cbbe16c aa63abae0d6 1df75119ca0e8f8 57e7b2909c)
Signed-off-by: Joris S'heeren <email address hidden>
(cherry picked from commit 53da313a86e81bf