Bug 786350

Summary: cronjob doesn't handle not running zfsd well
Product: [Fedora] Fedora Reporter: Tobias Mueller <fedora-bugs>
Component: zfs-fuseAssignee: Gwyn Ciesla <gwync>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 16CC: twaugh, uwe
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-02-28 13:49:14 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Tobias Mueller 2012-02-01 07:38:26 UTC
Description of problem:
I have logwatch and zfs-fuse installed. I am not running any ZFS filesystems at all. Every week I get an angry email about the weekly cronjob in /etc/cron.weekly/98-zfs-fuse-scrub failing:

To: root
Content-Type: text/plain; charset="UTF-8"
Subject: Anacron job 'cron.weekly' on bigbox

/etc/cron.weekly/98-zfs-fuse-scrub:

connect: No such file or directory
Please make sure that the zfs-fuse daemon is running.
internal error: failed to initialize ZFS library


$ sudo cat /etc/cron.weekly/98-zfs-fuse-scrub
#!/bin/bash
#
# This script reads it's configuration from /etc/sysconfig/zfs-fuse
# Please use that file to enable/disable this script or to set the
# type of check you wish performed.

[ -f /etc/sysconfig/zfs-fuse ] || exit 0
. /etc/sysconfig/zfs-fuse

[ "$ZFS_WEEKLY_SCRUB" != "yes" ] && exit 0

zpool=/usr/bin/zpool

pools=`$zpool list -H | cut -f1`

if [ "$pools" != "" ] ; then
    echo Found these pools: $pools

    for pool in $pools; do
	echo "Starting scrub of pool $pool"
	$zpool scrub $pool
    done

    echo "ZFS Fuse automatic scrub start done.  Use '$zpool status' to see progress."
fi
$ zpool list -H 
connect: No such file or directory
Please make sure that the zfs-fuse daemon is running.
internal error: failed to initialize ZFS library
$

Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.
  
Actual results:


Expected results:
I expected to not get an email.

Additional info:

Comment 1 Fedora Admin XMLRPC Client 2012-02-27 20:57:12 UTC
This package has changed ownership in the Fedora Package Database.  Reassigning to the new owner of this component.

Comment 2 Gwyn Ciesla 2012-02-28 13:49:14 UTC

*** This bug has been marked as a duplicate of bug 757488 ***