Bug 566772 - iscsid fails to stop during shutdown
Summary: iscsid fails to stop during shutdown
Keywords:
Status: CLOSED NEXTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: iscsi-initiator-utils
Version: rawhide
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Hans de Goede
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-02-19 16:49 UTC by Dave Allan
Modified: 2016-04-26 16:44 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2010-04-23 13:18:11 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
screenshot of the initiator shutdown (91.03 KB, image/jpeg)
2010-02-19 16:49 UTC, Dave Allan
no flags Details

Description Dave Allan 2010-02-19 16:49:08 UTC
Created attachment 395140 [details]
screenshot of the initiator shutdown

Description of problem:
When the system shuts down, the iscsi init script is correctly called before the network is shutdown, however, iscsid doesn't stop with the message:

Not stopping iscsid: iscsi sessions still active

Version-Release number of selected component (if applicable):
iscsi-initiator-utils-6.2.0.870-13.fc13.i686

How reproducible:
100%

Steps to Reproduce:
1. login to an iSCSI target
2. execute 'poweroff'


Additional info:
No filesystems were mounted from the iSCSI LUs & the sesssions were logged in but idle at the time of the shutdown.  This is a stock rawhide box on a KVM virtual machine with the target on tgtd on F12.  The target is the physical host that the VM runs on.  There is only one session to one target with 5 LUs.

Comment 1 Mike Christie 2010-02-19 18:55:26 UTC
Is the session that is up, used for the root ("/") partition?

It looks like the /etc/init.d/iscsid script is called. Do you know if the /etc/init.d/iscsi script is called before it?

Comment 2 Dave Allan 2010-02-19 19:29:40 UTC
The sessions actually aren't being used for anything--some of the LUs are partitioned and have filesystems on them, but they're not mounted.

The iscsi script isn't being called at all.  I didn't see it in the shutdown output, and just to make sure I hacked both iscsi and iscsid's init scripts to output a debug line before doing anything else, and I see the output from iscsid but not iscsi.  The iscsid script seems to be called twice if the sessions are active, I'm not sure if that's by design.

Comment 3 Hans de Goede 2010-04-23 12:38:42 UTC
Hi Dave,

Sorry for the late response.

The iscsid script being called twice on shutdown is by design (the second time is a retry after most stuff has been shutdown).

Can you check if you have a /var/lock/subsys/iscsi file after starting up?
I've the feeling that /etc/rc.d/init.d/iscsi is failing halfway through, in
a way that it has logged in to (some ?) sessions, but not set its lockfile
(and thus won't be stopped).

Also can you verify there is a K??iscsi under /etc/rc.d/rc0.d and
/etc/rc.d/rc6.d ?

Thanks,

Hans



p.s.

Mike as I've done some extensive surgery lately to the initscripts I'll take this one.

Comment 4 Dave Allan 2010-04-23 13:08:36 UTC
Hi Hans,

Your surgery seems to have made the patient well.  :)  I can no longer reproduce this problem on a fully updated F13 machine.  The sessions appear to be stopped at daemon shutdown as I would expect.  I had gotten into the habit of manually stopping the sessions before shutting down, so I hadn't noticed the fix until now.  Thanks!

Dave

Comment 5 Hans de Goede 2010-04-23 13:18:11 UTC
Hmm,

My changes have already been in place for a while ... ?

Anyways, closing as next release then. Feel free to re-open if it resurfaces.


Note You need to log in before you can comment on or make changes to this bug.