]> git-server-git.apps.pok.os.sepia.ceph.com Git - teuthology.git/commit
nuke: improve stale_kernel_mount() check
authorIlya Dryomov <idryomov@gmail.com>
Fri, 3 Feb 2017 09:59:43 +0000 (10:59 +0100)
committerIlya Dryomov <idryomov@gmail.com>
Fri, 3 Feb 2017 13:47:44 +0000 (14:47 +0100)
commitb853abd070a8d2014eca1296239b38dd384787b9
treef1ce40dcf72c752f1e6d9891ea43bc842c9bd660
parent0e47d0aee295c7e7edc0d27e898acdf630cf9012
nuke: improve stale_kernel_mount() check

Commit 7db9e8b76fd5 ("nuke: bring stale kernel client handling back")
resurrected the check that was removed in commit 1d47a121b385 ("Fix
nuke, redo some cleanup functions").  It isn't sufficient though -- for
example, if a workunit already issued a umount, /etc/mtab won't have
a '^/dev/rbd' entry.

debugfs is enabled and mounted on all distros we care about.

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
teuthology/nuke/actions.py