On 13/04/2021 15:05, Christian Ehrhardt  wrote:
> This is a transient setup, but it should run the same hooks shouldn't it?
> In any case it does not have the same hang, the guest shuts down even it 
> failing.
> To be fair the finalrd has issues, but not a full hang.
> 
> ...
> [  OK  ] Reached target Power-Off.
> Unexpected iSCSI Connection State, forcing iSCSI logout.
> Logging out of session [sid: 1, target: tgt-boot-test-reTuhW, portal: 
> 10.0.12.2,3260]
> [  250.977777] sd-execu[1727]: 
> /usr/lib/systemd/system-shutdown/open-iscsi.finalrd failed with exit status 
> 141.

It looks as though you happen to be hitting an error condition, and the 
error handler (in iscsid?) happens to attempt to clear the error by 
logging out from the target, which entirely coincidentally happens to be 
the desired action from the finalrd script.  But this is happening by 
coincidence rather than by design.

On a "real" iSCSI-booted system, I do see the 30 second delay.

I was testing 20.04.

Thanks,

Michael

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

Title:
  iscsid fails to log out from target on shutdown

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/open-iscsi/+bug/1922976/+subscriptions

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

Reply via email to