From 6e893ef62ae5478c4d21f5064f97715dbb9cda66 Mon Sep 17 00:00:00 2001 From: Brian Behlendorf Date: Wed, 11 Oct 2017 09:15:44 -0700 Subject: [PATCH] Fix chattr/cleanup failure The chattr cleanup step may fail to delete the user if there is still an active process running as that user. Retry the userdel when this occurs to eliminate spurious false positves. ERROR: userdel quser1 exited 8 userdel: user quser1 is currently used by process 26814 Reviewed-by: George Melikov Reviewed-by: Giuseppe Di Natale Signed-off-by: Brian Behlendorf Closes #6749 --- tests/zfs-tests/include/libtest.shlib | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/zfs-tests/include/libtest.shlib b/tests/zfs-tests/include/libtest.shlib index 66abfd6968..c88b71f99f 100644 --- a/tests/zfs-tests/include/libtest.shlib +++ b/tests/zfs-tests/include/libtest.shlib @@ -2255,7 +2255,7 @@ function del_user # fi if id $user > /dev/null 2>&1; then - log_must userdel $user + log_must_retry "currently used" 5 userdel $user fi [[ -d $basedir/$user ]] && rm -fr $basedir/$user