Bug#996708: open-iscsi: unusable with default installation

2021-10-21 Thread Ritesh Raj Sarraf
Control: tag -1 +confirmed pending


Thank you for reporting it. It is very rare to get a user bug report
during the development cycle.

On Thu, 2021-10-21 at 23:13 +0800, Yangfl wrote:
> > What do you mean by 'manually' ? Invoking the iscsid binary by hand
> > ?
> 
> Yes, `sudo iscsid`.
> 
> And I guess the issue is probably caused by missing
> /usr/lib/systemd/system/iscsid.service in
> https://packages.debian.org/sid/amd64/open-iscsi/filelist . After I
> manually download the service file from git repo, everything goes
> fine.

That was indeed the case. Something must have changed on the systemd
side of things. The debian specific service file used to get auto
picked during build, previously.

-- 
Ritesh Raj Sarraf | http://people.debian.org/~rrs
Debian - The Universal Operating System


signature.asc
Description: This is a digitally signed message part


Bug#996708: open-iscsi: unusable with default installation

2021-10-21 Thread Yangfl
Ritesh Raj Sarraf  于2021年10月21日周四 下午10:48写道:
>
> Hello,
>
> On Sun, 2021-10-17 at 23:34 +0800, Yangfl wrote:
> > Package: open-iscsi
> > Version: 2.1.4-2
> >
> > Hi,
> >
> > After installing open-iscsi without modifying any configuration,
> > iscsiadm can't do any discovery using `iscsiadm -m discovery -t
> > sendtargets -p `, which seemly caused by failure to start
> > iscsid. Some log:
> >
> >
>
> Was the daemon running at the time when you attempted the discovery  of
> the targets ?

See the status of iscsid.service is 'active (exited)', and no iscsid
is found using `ps`.

> > After stopping those services `systemctl stop iscsid.service;
> > systemctl stop iscsid.socket` and start iscsid manually, `iscsiadm -m
> > discovery` successes as expected.
> >
>
> What do you mean by 'manually' ? Invoking the iscsid binary by hand ?

Yes, `sudo iscsid`.

And I guess the issue is probably caused by missing
/usr/lib/systemd/system/iscsid.service in
https://packages.debian.org/sid/amd64/open-iscsi/filelist . After I
manually download the service file from git repo, everything goes
fine.



Bug#996708: open-iscsi: unusable with default installation

2021-10-21 Thread Ritesh Raj Sarraf
Hello,

On Sun, 2021-10-17 at 23:34 +0800, Yangfl wrote:
> Package: open-iscsi
> Version: 2.1.4-2
> 
> Hi,
> 
> After installing open-iscsi without modifying any configuration,
> iscsiadm can't do any discovery using `iscsiadm -m discovery -t
> sendtargets -p `, which seemly caused by failure to start
> iscsid. Some log:
> 
> 

Was the daemon running at the time when you attempted the discovery  of
the targets ?

> After stopping those services `systemctl stop iscsid.service;
> systemctl stop iscsid.socket` and start iscsid manually, `iscsiadm -m
> discovery` successes as expected.
> 

What do you mean by 'manually' ? Invoking the iscsid binary by hand ?

-- 
Ritesh Raj Sarraf | http://people.debian.org/~rrs
Debian - The Universal Operating System


signature.asc
Description: This is a digitally signed message part


Bug#996708: open-iscsi: unusable with default installation

2021-10-17 Thread Yangfl
Package: open-iscsi
Version: 2.1.4-2

Hi,

After installing open-iscsi without modifying any configuration,
iscsiadm can't do any discovery using `iscsiadm -m discovery -t
sendtargets -p `, which seemly caused by failure to start
iscsid. Some log:

➜  ~  _ systemctl status iscsid.service
● iscsid.service - LSB: iSCSI initiator daemon (iscsid)
 Loaded: loaded (/etc/init.d/iscsid; generated)
 Active: active (exited) since Sun 2021-10-17 23:27:38 CST; 32s ago
TriggeredBy: ● iscsid.socket
   Docs: man:systemd-sysv-generator(8)
Process: 1586 ExecStart=/etc/init.d/iscsid start (code=exited, status=0/SUC>
CPU: 27ms

10月 17 23:27:38 desktop systemd[1]: Starting LSB: iSCSI initiator daemon (iscs>
10月 17 23:27:38 desktop iscsid[1593]: iSCSI logger with pid=1594 started!
10月 17 23:27:38 desktop iscsid[1586]: Starting iSCSI initiator daemon: iscsid
10月 17 23:27:38 desktop systemd[1]: Started LSB: iSCSI initiator daemon (iscsi>
➜  ~  _ systemctl status iscsid.socket
● iscsid.socket - Open-iSCSI iscsid Socket
 Loaded: loaded (/lib/systemd/system/iscsid.socket; enabled; vendor preset:>
 Active: active (running) since Sun 2021-10-17 23:26:35 CST; 1min 44s ago
   Triggers: ● iscsid.service
   Docs: man:iscsid(8)
 man:iscsiadm(8)
 Listen: @ISCSIADM_ABSTRACT_NAMESPACE (Stream)
 CGroup: /system.slice/iscsid.socket

10月 17 23:26:35 desktop systemd[1]: Listening on Open-iSCSI iscsid Socket.
➜  ~  _ systemctl status open-iscsi.service
● open-iscsi.service - Login to default iSCSI targets
 Loaded: loaded (/lib/systemd/system/open-iscsi.service; enabled; vendor pr>
 Active: active (exited) since Sun 2021-10-17 23:26:43 CST; 1min 43s ago
   Docs: man:iscsiadm(8)
 man:iscsid(8)
Process: 745 ExecStart=/sbin/iscsiadm -m node --loginall=automatic (code=ex>
Process: 746 ExecStart=/lib/open-iscsi/activate-storage.sh (code=exited, st>
   Main PID: 746 (code=exited, status=0/SUCCESS)
CPU: 13ms

10月 17 23:26:43 desktop systemd[1]: Starting Login to default iSCSI targets...
10月 17 23:26:43 desktop iscsiadm[745]: iscsiadm: No records found
10月 17 23:26:43 desktop systemd[1]: Finished Login to default iSCSI targets.
➜  ~  ps aux|grep iscsid
user2451  0.0  0.0   6412  2204 pts/0S+   23:33   0:00
grep --color=auto --exclude-dir=.bzr --exclude-dir=CVS
--exclude-dir=.git --exclude-dir=.hg --exclude-dir=.svn
--exclude-dir=.idea --exclude-dir=.tox iscsid

After stopping those services `systemctl stop iscsid.service;
systemctl stop iscsid.socket` and start iscsid manually, `iscsiadm -m
discovery` successes as expected.