Public bug reported:

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.

** Affects: iscsitarget (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/933510

Title:
  ietd 'config' required argument not used by init script

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/iscsitarget/+bug/933510/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to