summaryrefslogtreecommitdiffstats
path: root/iscsi.py
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2008-11-06 17:19:31 +0100
committerHans de Goede <hdegoede@redhat.com>2008-11-08 13:23:45 +0100
commit61923e1c91b8de98e73f9fb305fed1dbcb1ca41e (patch)
treed80bb6c0fea7a57792dc2310fcbf9545dabfac76 /iscsi.py
parent16e749370862837666ac40252c6f2cdb41037072 (diff)
downloadanaconda-61923e1c91b8de98e73f9fb305fed1dbcb1ca41e.tar.gz
anaconda-61923e1c91b8de98e73f9fb305fed1dbcb1ca41e.tar.xz
anaconda-61923e1c91b8de98e73f9fb305fed1dbcb1ca41e.zip
iscsi.startup should not login to targets as we are already logged in (#470230)
iscsi.startup contains: for t in self.targets: if not t.discover(): continue t.login() However all targets in the self.targets list are added through iscsi.addTarget(), which does: t = iscsiTarget(ipaddr, port, user, pw, user_in, pw_in) if not t.discover(): return if not t.login(): return self.targets.append(t) So we are already logged in to all the targets in self.targets, this relogin attempts are harmless (other then making adding iscsi targets slower then necessary), but do result in these messages on tty5: iscsiadm: could not login to [.......]: iscsiadm: initiator reported error (15 - already exists)
Diffstat (limited to 'iscsi.py')
-rw-r--r--iscsi.py5
1 files changed, 0 insertions, 5 deletions
diff --git a/iscsi.py b/iscsi.py
index f65e0dbb1..51640b58e 100644
--- a/iscsi.py
+++ b/iscsi.py
@@ -459,11 +459,6 @@ class iscsi(object):
self._startIscsiDaemon()
- for t in self.targets:
- if not t.discover():
- continue
- t.login()
-
if intf:
w.pop()