ietd 'config' required argument not used by init script

Bug #933510 reported by Pierre Amadio
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
iscsitarget (Ubuntu)
Triaged
Low
Unassigned

Bug Description

This is related to onerirc:
lsb_release -rd
Description: Ubuntu 11.10
Release: 11.10

ubuntu@iscsi-target:~$ apt-cache policy iscsitarget
iscsitarget:
  Installed: 1.4.20.2-5ubuntu1
  Candidate: 1.4.20.2-5ubuntu1
  Version table:
 *** 1.4.20.2-5ubuntu1 0
        500 http://archive.ubuntu.com/ubuntu/ oneiric/universe amd64 Packages
        100 /var/lib/dpkg/status

I try to make a simple iscsi target but fail to do so with the following steps:

sudo apt-get install iscsitarget
Change /etc/default/iscsitarget so that ISCSITARGET_ENABLE=true
sudo apt-get install iscsitarget-dkms
sudo /etc/init.d/iscsitarget start
sudo touch /etc/ietd.conf

Add a the following in /etc/ietd.conf:

Target iqn.2012-02.org.sxb.iscsi-target:san1
  Lun 0
  Path=/dev/sdb
  Type=blockio
  Alias sanalias

sudo /etc/init.d/iscsitarget restart

I experience no error message, but /proc/net/iet/volume is still empty.

I then look at /etc/init.d/iscsitarget to try to start the service manually

sudo modprobe -q crc32c
sudo modprobe iscsi_trgt
sudo ietd -f -d 7

Still nothing in /proc/net/iet/volume

However, it works if i launched the daemon with the -c option:

sudo ietd -f -d 7 -c /etc/ietd.conf

According to man (8) ietd:
      -c filename, --config=filename
              Specify configuration file, default is /etc/ietd.conf

However, i m afraid there is no actual default set in the code.
Excerpt from ietd.c :

        {"config", required_argument, 0, 'c'},

Looks to me the man page should be changed not to mention any default config option and the init script should start the daemon with the -c /etc/ietd.conf option.

James Page (james-page)
Changed in iscsitarget (Ubuntu):
status: New → Triaged
importance: Undecided → Low
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.