Shutdown hang on 16.04 with iscsi targets
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
linux (Ubuntu) |
Fix Released
|
Medium
|
Rafael David Tinoco | ||
Trusty |
Fix Released
|
Medium
|
Rafael David Tinoco | ||
Xenial |
Fix Released
|
Medium
|
Rafael David Tinoco | ||
Artful |
Fix Released
|
Medium
|
Rafael David Tinoco | ||
Bionic |
Fix Released
|
Medium
|
Rafael David Tinoco | ||
open-iscsi (Ubuntu) |
Opinion
|
Medium
|
Rafael David Tinoco | ||
Trusty |
Opinion
|
Medium
|
Rafael David Tinoco | ||
Xenial |
Opinion
|
Medium
|
Rafael David Tinoco | ||
Artful |
Opinion
|
Medium
|
Rafael David Tinoco | ||
Bionic |
Opinion
|
Medium
|
Rafael David Tinoco |
Bug Description
[Impact]
* open-iscsi users might face hangs during OS shutdown.
* hangs can be caused by manual iscsi configuration/
* hangs can also be caused by bad systemd unit ordering.
* if transport layer interface vanishes before lun is
disconnected, then the hang will happen.
* check comment #89 for the fix decision.
[Test Case]
* a simple way of reproducing the kernel hang is to disable
the open-iscsi logouts. this simulates a situation when
a service has shutdown the network interface, used by
the transport layer, before proper iscsi logout was done.
$ log into all iscsi luns
$ systemctl edit --full open-iscsi.service
...
#ExecStop=
...
$ sudo reboot # this will make server to hang forever
# on shutdown
[Regression Potential]
* the regression is low because the change acts on the iscsi
transport layer code ONLY when the server is in shutdown
state.
* any error in logic would only appear during shutdown and
would not cause any harm to data.
[Other Info]
* ORIGINAL BUG DESCRIPTION
I have 4 servers running the latest 16.04 updates from the development branch (as of right now).
Each server is connected to NetApp storage using iscsi software initiator. There are a total of 56 volumes spread across two NetApp arrays. Each volume has 4 paths available to it which are being managed by device mapper.
While logged into the iscsi sessions all I have to do is reboot the server and I get a hang.
I see a message that says:
"Reached target Shutdown"
followed by
"systemd-
and then I see 8 lines that say:
"connection1:0: ping timeout of 5 secs expired, recv timeout 5, last rx 4311815***, last ping 43118164**, now 4311817***"
"connection2:0: ping timeout of 5 secs expired, recv timeout 5, last rx 4311815***, last ping 43118164**, now 4311817***"
"connection3:0: ping timeout of 5 secs expired, recv timeout 5, last rx 4311815***, last ping 43118164**, now 4311817***"
"connection4:0: ping timeout of 5 secs expired, recv timeout 5, last rx 4311815***, last ping 43118164**, now 4311817***"
"connection5:0: ping timeout of 5 secs expired, recv timeout 5, last rx 4311815***, last ping 43118164**, now 4311817***"
"connection6:0: ping timeout of 5 secs expired, recv timeout 5, last rx 4311815***, last ping 43118164**, now 4311817***"
"connection7:0: ping timeout of 5 secs expired, recv timeout 5, last rx 4311815***, last ping 43118164**, now 4311817***"
"connection8:0: ping timeout of 5 secs expired, recv timeout 5, last rx 4311815***, last ping 43118164**, now 4311817***"
NOTE: the actual values of the *'s differ for each line above.
This seems like a bug somewhere but I am unaware of any additional logging that I could turn on to pinpoint the problem.
Note I also have similar setups that are not doing iscsi and they don't have this problem.
Here is a screenshot of what I see on the shell when I try to reboot:
(https:/
This is being tracked in NetApp bug tracker CQ number 860251.
If I log out of all iscsi sessions before rebooting then I do not experience the hang:
iscsiadm -m node -U all
We are wondering if this could be some kind of shutdown ordering problem. Like the network devices have already disappeared and then iscsi tries to perform some operation (hence the ping timeouts).
tags: | added: xenial |
affects: | ubuntu → systemd (Ubuntu) |
Changed in systemd (Ubuntu): | |
status: | Expired → Confirmed |
Changed in systemd (Ubuntu): | |
importance: | Undecided → High |
Changed in systemd (Ubuntu Xenial): | |
assignee: | nobody → Dimitri John Ledkov (xnox) |
importance: | Undecided → High |
Changed in systemd (Ubuntu Xenial): | |
status: | New → Confirmed |
Changed in systemd (Ubuntu Xenial): | |
assignee: | Dimitri John Ledkov (xnox) → nobody |
Changed in systemd (Ubuntu Xenial): | |
assignee: | nobody → Rafael David Tinoco (inaddy) |
status: | Confirmed → In Progress |
Changed in open-iscsi (Ubuntu Xenial): | |
importance: | Undecided → Medium |
status: | New → In Progress |
Changed in open-iscsi (Ubuntu Zesty): | |
importance: | Undecided → Medium |
status: | New → In Progress |
Changed in open-iscsi (Ubuntu Artful): | |
importance: | Undecided → Medium |
status: | New → In Progress |
Changed in linux (Ubuntu Xenial): | |
importance: | Undecided → Medium |
status: | Incomplete → In Progress |
Changed in linux (Ubuntu Zesty): | |
importance: | Undecided → Medium |
status: | Incomplete → In Progress |
Changed in linux (Ubuntu Artful): | |
importance: | Undecided → Medium |
status: | Incomplete → In Progress |
no longer affects: | systemd (Ubuntu) |
Changed in systemd (Ubuntu Xenial): | |
status: | In Progress → Triaged |
Changed in systemd (Ubuntu Zesty): | |
importance: | Undecided → Medium |
status: | New → Triaged |
Changed in systemd (Ubuntu Artful): | |
assignee: | Nish Aravamudan (nacc) → nobody |
importance: | High → Medium |
status: | Confirmed → Triaged |
no longer affects: | systemd (Ubuntu Xenial) |
no longer affects: | systemd (Ubuntu Zesty) |
no longer affects: | systemd (Ubuntu Artful) |
Changed in linux (Ubuntu Xenial): | |
assignee: | nobody → Rafael David Tinoco (inaddy) |
Changed in linux (Ubuntu Zesty): | |
assignee: | nobody → Rafael David Tinoco (inaddy) |
Changed in linux (Ubuntu Artful): | |
assignee: | nobody → Rafael David Tinoco (inaddy) |
Changed in open-iscsi (Ubuntu Xenial): | |
assignee: | nobody → Rafael David Tinoco (inaddy) |
Changed in open-iscsi (Ubuntu Zesty): | |
assignee: | nobody → Rafael David Tinoco (inaddy) |
Changed in open-iscsi (Ubuntu Artful): | |
assignee: | nobody → Rafael David Tinoco (inaddy) |
tags: | added: rls-aa-notfixing |
tags: | added: id-598b6543459f8ccf5dfbc04c |
tags: | added: sts |
description: | updated |
Changed in open-iscsi (Ubuntu Trusty): | |
status: | New → Opinion |
Changed in linux (Ubuntu Trusty): | |
status: | New → In Progress |
assignee: | nobody → Rafael David Tinoco (inaddy) |
importance: | Undecided → Medium |
Changed in open-iscsi (Ubuntu Trusty): | |
assignee: | nobody → Rafael David Tinoco (inaddy) |
importance: | Undecided → Medium |
no longer affects: | open-iscsi (Ubuntu Zesty) |
no longer affects: | linux (Ubuntu Zesty) |
Changed in linux (Ubuntu Bionic): | |
status: | In Progress → Fix Committed |
Changed in linux (Ubuntu Artful): | |
status: | In Progress → Fix Committed |
Changed in linux (Ubuntu Xenial): | |
status: | In Progress → Fix Committed |
Changed in linux (Ubuntu Trusty): | |
status: | In Progress → Fix Committed |
tags: |
added: verification-failed-trusty removed: verification-needed-trusty |
Thank you for taking the time to report this bug and helping to make Ubuntu better. It seems that your bug report is not filed about a specific source package though, rather it is just filed against Ubuntu in general. It is important that bug reports be filed about source packages so that people interested in the package can find the bugs about it. You can find some hints about determining what package your bug might be about at https:/ /wiki.ubuntu. com/Bugs/ FindRightPackag e. You might also ask for help in the #ubuntu-bugs irc channel on Freenode.
To change the source package that this bug is filed about visit https:/ /bugs.launchpad .net/ubuntu/ +bug/1569925/ +editstatus and add the package name in the text box next to the word Package.
[This is an automated message. I apologize if it reached you inappropriately; please just reply to this message indicating so.]