summaryrefslogtreecommitdiffstats
path: root/iscsi.py
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2008-11-06 17:10:31 +0100
committerHans de Goede <hdegoede@redhat.com>2008-11-08 13:23:45 +0100
commit16e749370862837666ac40252c6f2cdb41037072 (patch)
treec12ad4e836f7fd4ae5840f78cba7a13874461c4c /iscsi.py
parent5e410cd3966b12b71d96f95c98f8425990d7bd9d (diff)
downloadanaconda-16e749370862837666ac40252c6f2cdb41037072.tar.gz
anaconda-16e749370862837666ac40252c6f2cdb41037072.tar.xz
anaconda-16e749370862837666ac40252c6f2cdb41037072.zip
Remove obsolete normally never reached code from _stopIscsiDaemon (#470229)
Januari 2008 _stopIscsiDaemon moved to using "iscsiadm -k 0" instead of using "killall iscsid", but the old code (which also logs out of all targets which the new code does not do) was kept as fallback, since "iscsiadm -k 0" practically always works, and since the old fallback code behaves differently (also logs out of all targets), remove the old code. This patch also fixes the new code not setting iscsidStarted to False when iscsid was successfully stopped.
Diffstat (limited to 'iscsi.py')
-rw-r--r--iscsi.py14
1 files changed, 0 insertions, 14 deletions
diff --git a/iscsi.py b/iscsi.py
index 915e9ca7c..f65e0dbb1 100644
--- a/iscsi.py
+++ b/iscsi.py
@@ -312,20 +312,6 @@ class iscsi(object):
result = iutil.execWithCapture(ISCSIADM, ["-k", "0"])
result.strip()
if result == "":
- return
-
- psout = iutil.execWithCapture("/usr/bin/pidof", ["iscsid"])
- if psout.strip() != "":
- log.info("iSCSI shutdown")
- for t in self.targets:
- t.logout()
-
- for pidstr in psout.split():
- pid = string.atoi(pidstr)
- log.info("killing %s %d" % (ISCSID, pid))
-
- os.kill(pid, signal.SIGKILL)
-
self.iscsidStarted = False
def shutdown(self):