Open maugsburger opened 8 years ago
+1 iblock In official document: http://linux-iscsi.org/wiki/Targetcli targetcli 2.0rc1-2 (Ubuntu 12.04) targetcli 2.1-1 (Ubuntu 14.04) targetcli 1:3.0~pre4.1~ga55d018-2 (Ubuntu 16.04)
block targetcli 0:2.1.fb41-3.el7 (CentOS Linux 7)
Need use case for different OS.
It'd be better to test the targetcli version. Even better would be to somehow list available backstore types.
This is interesting, I think we may be affected by this...
I have tried this method,but iSCSILogicalUnit still doesn't work!!!
Hi,
I'm not sure if this is a problem with incompatible changes between targetcli versions, but I always got a Traceback
ERROR: Traceback (most recent call last): File "/usr/bin/targetcli", line 89, in <module> main() File "/usr/bin/targetcli", line 78, in main shell.run_cmdline(" ".join(sys.argv[1:])) File "/usr/lib/python2.7/dist-packages/configshell/shell.py", line 934, in run_cmdline self._execute_command(path, command, pparams, kparams) File "/usr/lib/python2.7/dist-packages/configshell/shell.py", line 899, in _execute_command self.log.error(msg) File "/usr/lib/python2.7/dist-packages/configshell/log.py", line 159, in error self._log('error', msg) File "/usr/lib/python2.7/dist-packages/configshell/log.py", line 112, in _log self.con.display(msg) File "/usr/lib/python2.7/dist-packages/configshell/console.py", line 153, in display self.raw_write(text) File "/usr/lib/python2.7/dist-packages/configshell/console.py", line 141, in raw_write self._stdout.write(text) TypeError: expected a string or other character buffer object
and after some debugging found out the problem is
targetcli /backstores/block create
vstargetcli /backstores/iblock create
, and after applying the following diff everything worked fine:versions: