open-iscsi bound to if-*.d in networking kills iSCSI connections
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
open-iscsi (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
OS:
Description: Ubuntu 12.04 LTS
Release: 12.04
open-iscsi:
Installed: 2.0.871-0ubuntu9
Candidate: 2.0.871-
Version table:
2.
500 http://
*** 2.0.871-0ubuntu9 0
500 http://
100 /var/lib/
Hi,
I have found that open-iscsi puts start/stop links into the if-up.d and if-down.d directories under networking. These are unfiltered and will cause all active iSCSI connections to be torn down as soon as _ANY_ interface (in my case a bridge that became unneeded - completely unrelated to iSCSI connections) is brought down, causing possibly catastrophic failures including data loss in processes (VMs in my case) using those iSCSI connections.
PoC:
1. Install open-iscsi, log into some target
2. Create an interface config in /etc/network/
3. "ifup" the new interface, observe the start message of open-iscsi (!)
4. "ifdown" the interface, observe that open-iscsi is stopped, and the block-devices backed by the targets are gone
These links need to be removed ASAP as they pose direct danger of data loss by reacting to all events, even from completely unrelated einterfaces, plus doing that in a completely unacceptable manner. Either they will need to be replaced with filtered scripts to only react to interfaces that they are using AND do that in a proper manner instead of shutting down everything; or they could be dropped altogether, path management can be scripted or done elsewhere.
regards,
--
Jacint
I just got bit by this, HARD. :(
Why should shutting down a random interface cause sessions totally non-dependant on that interface be disconnected??
This is just plain STUPID!
--
Mark.