Skip to content

Commit

Permalink
Merge pull request #1148 from tbzatek/udisks-iscsi-2
Browse files Browse the repository at this point in the history
iscsi ibft and auth algs fixes
  • Loading branch information
vojtechtrefny committed Aug 1, 2023
2 parents 616b058 + f66778c commit ecbc4b4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion blivet/iscsi.py
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ def _login(self, node_info, extra=None):
if extra is None:
extra = dict()
extra["node.startup"] = GLib.Variant("s", "automatic")
extra["node.session.auth.chap_algs"] = GLib.Variant("s", "SHA3-256,SHA256,SHA1,MD5")
extra["node.session.auth.chap_algs"] = GLib.Variant("s", "SHA1,MD5")

args = GLib.Variant("(sisisa{sv})", node_info.conn_info + (extra,))
self._call_initiator_method("Login", args)
Expand Down Expand Up @@ -313,6 +313,10 @@ def _start_ibft(self):
if not flags.ibft:
return

# Make sure iscsi_ibft is loaded otherwise any atttempts will fail with
# 'Could not get list of targets from firmware. (err 21)'
util.run_program(['modprobe', '-a', 'iscsi_ibft'])

args = GLib.Variant("(a{sv})", ([], ))
try:
found_nodes, _n_nodes = self._call_initiator_method("DiscoverFirmware", args)
Expand Down

0 comments on commit ecbc4b4

Please sign in to comment.