Make a few attempts to umount the libguestfs
mounts, in case other processes are accessing
the mounts (like udev etc.)
If we still can't umount after 5 attempts
(with average delay of about 1s between each),
then initiate a lazy umount so that the mounts
might be automatically cleaned up at some stage.
We wait a further 10s after initiating the lazy
umount, before raising an exception.
Reviewed: https:/ /review. openstack. org/10510 github. com/openstack/ nova/commit/ 3b4ac312b4ba765 8f6ad4d2da67409 2c20e05aeb
Committed: http://
Submitter: Jenkins
Branch: stable/essex
commit 3b4ac312b4ba765 8f6ad4d2da67409 2c20e05aeb
Author: Pádraig Brady <email address hidden>
Date: Wed Jul 11 23:45:28 2012 +0100
ensure libguestfs mounts are cleaned up
Make a few attempts to umount the libguestfs
mounts, in case other processes are accessing
the mounts (like udev etc.)
If we still can't umount after 5 attempts
(with average delay of about 1s between each),
then initiate a lazy umount so that the mounts
might be automatically cleaned up at some stage.
We wait a further 10s after initiating the lazy
umount, before raising an exception.
Addresses the original issue in bug 1013689
Change-Id: Ib5ede9f705c833 825a19308c140f9 9c5bf3a776f dcaba326193bef0 ed75470bb7)
(cherry picked from commit 5eea8879b6f3268