diff options
author | Hans de Goede <hdegoede@redhat.com> | 2008-11-06 17:19:31 +0100 |
---|---|---|
committer | Hans de Goede <hdegoede@redhat.com> | 2008-11-08 13:23:45 +0100 |
commit | 61923e1c91b8de98e73f9fb305fed1dbcb1ca41e (patch) | |
tree | d80bb6c0fea7a57792dc2310fcbf9545dabfac76 /iscsi.py | |
parent | 16e749370862837666ac40252c6f2cdb41037072 (diff) | |
download | anaconda-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.py | 5 |
1 files changed, 0 insertions, 5 deletions
@@ -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() |