[Pkg-iscsi-maintainers] Bug#865628: iscsitarget: Starting ... FATAL: Module iscsi_trgt not found in /lib/modules/4.9.0-3-amd64
Stanley Kaleta
stanley at kaleta.sk
Fri Jun 23 10:16:40 UTC 2017
Package: iscsitarget
Version: 1.4.20.3+svn502-1
Severity: important
Dear Maintainer,
*** Reporter, please consider answering these questions, where appropriate ***
* What led up to the situation?
* What exactly did you do (or not do) that was effective (or
ineffective)?
* What was the outcome of this action?
* What outcome did you expect instead?
*** End of the template - remove these template lines ***
-- System Information:
Debian Release: 9.0
APT prefers stable
APT policy: (500, 'stable')
Architecture: amd64 (x86_64)
Kernel: Linux 4.9.0-3-amd64 (SMP w/2 CPU cores)
Locale: LANG=hr_HR.utf8, LC_CTYPE=hr_HR.utf8 (charmap=UTF-8), LANGUAGE=hr_HR.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
Versions of packages iscsitarget depends on:
ii libc6 2.24-11+deb9u1
ii lsb-base 9.20161125
ii procps 2:3.3.12-3
Versions of packages iscsitarget recommends:
ii iscsitarget-dkms 1.4.20.3+svn502-1
iscsitarget suggests no packages.
-- Configuration Files:
/etc/default/iscsitarget changed:
ISCSITARGET_ENABLE=true
ISCSITARGET_MAX_SLEEP=3
ISCSITARGET_OPTIONS=""
/etc/iet/ietd.conf [Errno 13] Pristup odbijen: '/etc/iet/ietd.conf'
/etc/iet/initiators.allow changed:
ALL iqn.1993-08.org.debian:01:b6b2d8abcca1
ALL iqn.1993-08.org.debian:01:8bb093381de
/etc/init.d/iscsitarget changed:
PID_FILE=/var/run/ietd.pid
CONFIG_FILE=/etc/iet/ietd.conf
DAEMON=/usr/sbin/ietd
PATH=/sbin:/bin:/usr/sbin:/usr/bin
. /lib/lsb/init-functions # log_{warn,failure}_msg
ISCSITARGET_OPTIONS=" --debug=2"
ISCSITARGET_ENABLE=false
ISCSITARGET_MAX_SLEEP=3
ISCSITARGET_DEFAULTS_FILE=/etc/default/iscsitarget
if [ -s "$ISCSITARGET_DEFAULTS_FILE" ]; then
. "$ISCSITARGET_DEFAULTS_FILE"
case "x$ISCSITARGET_ENABLE" in
xtrue|xfalse) ;;
*)
log_failure_msg "value of ISCSITARGET_ENABLE must be either 'true' or 'false';"
log_failure_msg "not starting iscsitarget."
exit 1
;;
esac
fi
RETVAL=0
ietd_start()
{
log_daemon_msg "Starting iSCSI enterprise target service"
modprobe -q crc32c
modprobe iscsi_trgt
RETVAL=$?
if [ $RETVAL != "0" ] ; then
log_end_msg 1
exit $RETVAL
fi
start-stop-daemon --start --exec $DAEMON --quiet --oknodo -- $ISCSITARGET_OPTIONS
RETVAL=$?
if [ $RETVAL = "0" ]; then
log_end_msg 0
else
log_end_msg 1
exit $RETVAL
fi
log_end_msg 0
exit 0
}
ietd_stop()
{
log_daemon_msg "Removing iSCSI enterprise target devices: "
pidof ietd >/dev/null 2>&1
RETVAL=$?
if [ $RETVAL = "0" ] ; then
# ugly, but ietadm does not allways provides correct exit values
RETURN=`ietadm --op delete 2>&1`
RETVAL=$?
if [ $RETVAL = "0" ] && [ "$RETURN" != "something wrong" ] ; then
log_end_msg 0
else
log_end_msg 1
log_failure_msg "failed with reason :$RETURN"
exit $RETVAL
fi
log_daemon_msg "Stopping iSCSI enterprise target service: "
start-stop-daemon --stop --quiet --exec $DAEMON --pidfile $PID_FILE --oknodo
RETVAL=$?
if [ $RETVAL = "0" ]; then
log_end_msg 0
else
log_end_msg 1
fi
else
log_end_msg 0
fi
# ugly, but pid file is not removed by ietd
rm -f $PID_FILE
# check if the module is loaded at all
lsmod | grep -q iscsi_trgt
RETVAL=$?
if [ $RETVAL = "0" ] ; then
for i in $(seq $ISCSITARGET_MAX_SLEEP); do
log_daemon_msg "Removing iSCSI enterprise target modules: "
modprobe -r iscsi_trgt
RETVAL=$?
if [ $RETVAL = "0" ]; then
break
fi
# give iet some time to finish processing
sleep 1
done
modprobe -r crc32c 2>/dev/null
if [ $RETVAL = "0" ]; then
log_end_msg 0
else
log_end_msg 1
exit $RETVAL
fi
fi
}
case "$1" in
start)
if [ "$ISCSITARGET_ENABLE" = "true" ]; then
ietd_start
else
log_warning_msg "iscsitarget not enabled in \"$ISCSITARGET_DEFAULTS_FILE\", not starting..."
fi
;;
stop)
ietd_stop
;;
restart|force-reload)
ietd_stop
sleep 1
if [ "$ISCSITARGET_ENABLE" = "true" ]; then
ietd_start
else
log_warning_msg "iscsitarget not enabled in \"$ISCSITARGET_DEFAULTS_FILE\", not starting..."
fi
;;
status)
status_of_proc -p $PID_FILE $DAEMON "iSCSI enterprise target" && exit 0 || exit $?
;;
*)
log_action_msg "Usage: $0 {start|stop|restart|status}"
exit 1
esac
exit 0
-- no debconf information
More information about the Pkg-iscsi-maintainers
mailing list