Package Details: targetcli-fb 2.1.50-1

Git Clone URL: https://aur.archlinux.org/targetcli-fb.git (read-only, click to copy)
Package Base: targetcli-fb
Description: free branch of the targetcli LIO administration shell (iSCSI + Co)
Upstream URL: https://github.com/open-iscsi/targetcli-fb
Licenses: Apache
Provides: targetcli
Submitter: JonnyJD
Maintainer: mikesd
Last Packager: mikesd
Votes: 12
Popularity: 0.033528
First Submitted: 2012-02-27 01:05
Last Updated: 2019-09-23 10:19

Latest Comments

« First ‹ Previous 1 2 3 4 5 6 Next › Last »

mr_evil commented on 2013-11-15 08:51

Hi,

when i try to start targetcli from this package, i get
"python translate() takes exactly one argument (2 given)"
and the tool will not start.

journal looked like this:

systemd[1]: Starting Restore LIO kernel target configuration...
target[6261]: translate() takes exactly one argument (2 given)
systemd[1]: target.service: main process exited, code=exited, status=255/n/a
systemd[1]: Failed to start Restore LIO kernel target configuration.
systemd[1]: Unit target.service entered failed state.

from what i googled this looks like a unicode problem. Since there is barely any error output, i have no idea where to start looking.

JonnyJD commented on 2013-11-01 17:05

I updated the package and also switched to using Python 3, which is now supported upstream.

TheImperial2004 commented on 2013-09-15 13:31

Working as it should now after applying your fix .

Thank you very much Jonny .

JonnyJD commented on 2013-09-15 12:39

Thank you for the report. I can't reproduce this with my setup, but this looks like an easy fix anyways.

I added a patch in the package https://aur.archlinux.org/packages/python2-rtslib-fb/. Please update that package and report back if that fixes your issue.
I would like to report the fix upstream then.

TheImperial2004 commented on 2013-09-15 10:50

Sorry . This is the full log :

Sep 15 10:04:49 srv1 target[456]: Traceback (most recent call last):
Sep 15 10:04:49 srv1 target[456]: File "/usr/bin/targetcli", line 89, in <module>
Sep 15 10:04:49 srv1 target[456]: main()
Sep 15 10:04:49 srv1 target[456]: File "/usr/bin/targetcli", line 72, in main
Sep 15 10:04:49 srv1 target[456]: shell.run_cmdline(" ".join(sys.argv[1:]))
Sep 15 10:04:49 srv1 target[456]: File "/usr/lib/python2.7/site-packages/configshell/shell.py", line 934, in run_cmdline
Sep 15 10:04:49 srv1 target[456]: self._execute_command(path, command, pparams, kparams)
Sep 15 10:04:49 srv1 target[456]: File "/usr/lib/python2.7/site-packages/configshell/shell.py", line 909, in _execute_command
Sep 15 10:04:49 srv1 target[456]: result = target.execute_command(command, pparams, kparams)
Sep 15 10:04:49 srv1 target[456]: File "/usr/lib/python2.7/site-packages/targetcli/ui_node.py", line 87, in execute_command
Sep 15 10:04:49 srv1 target[456]: pparams, kparams)
Sep 15 10:04:49 srv1 target[456]: File "/usr/lib/python2.7/site-packages/configshell/node.py", line 1417, in execute_command
Sep 15 10:04:49 srv1 target[456]: result = method(*pparams, **kparams)
Sep 15 10:04:49 srv1 target[456]: File "/usr/lib/python2.7/site-packages/targetcli/ui_root.py", line 108, in ui_command_restoreconfig
Sep 15 10:04:49 srv1 target[456]: errors = RTSRoot().restore(json.loads(f.read()), clear_existing)
Sep 15 10:04:49 srv1 target[456]: File "/usr/lib/python2.7/site-packages/rtslib/root.py", line 213, in restore
Sep 15 10:04:49 srv1 target[456]: Target.setup(fm_obj, t, err_func)
Sep 15 10:04:49 srv1 target[456]: File "/usr/lib/python2.7/site-packages/rtslib/target.py", line 130, in setup
Sep 15 10:04:49 srv1 target[456]: TPG.setup(t_obj, tpg, err_func)
Sep 15 10:04:49 srv1 target[456]: File "/usr/lib/python2.7/site-packages/rtslib/target.py", line 418, in setup
Sep 15 10:04:49 srv1 target[456]: NodeACL.setup(tpg_obj, acl, err_func)
Sep 15 10:04:49 srv1 target[456]: File "/usr/lib/python2.7/site-packages/rtslib/target.py", line 955, in setup
Sep 15 10:04:49 srv1 target[456]: MappedLun.setup(tpg_obj, acl_obj, mlun, err_func)
Sep 15 10:04:49 srv1 target[456]: NameError: global name 'MappedLun' is not defined
Sep 15 10:04:49 srv1 systemd[1]: target.service: main process exited, code=exited, status=1/FAILURE
Sep 15 10:04:49 srv1 systemd[1]: Failed to start Restore LIO kernel target configuration.
Sep 15 10:04:49 srv1 systemd[1]: Unit target.service entered failed state.


Thank you .

TheImperial2004 commented on 2013-09-15 10:44

Hi .

Updating to the last version breaks the daemon service :

Sep 15 13:41:45 srv1 target[733]: File "/usr/lib/python2.7/site-packages/rtslib/target.py", line 130, in setup
Sep 15 13:41:45 srv1 target[733]: TPG.setup(t_obj, tpg, err_func)
Sep 15 13:41:45 srv1 target[733]: File "/usr/lib/python2.7/site-packages/rtslib/target.py", line 418, in setup
Sep 15 13:41:45 srv1 target[733]: NodeACL.setup(tpg_obj, acl, err_func)
Sep 15 13:41:45 srv1 target[733]: File "/usr/lib/python2.7/site-packages/rtslib/target.py", line 955, in setup
Sep 15 13:41:45 srv1 target[733]: MappedLun.setup(tpg_obj, acl_obj, mlun, err_func)
Sep 15 13:41:45 srv1 target[733]: NameError: global name 'MappedLun' is not defined
Sep 15 13:41:45 srv1 systemd[1]: target.service: main process exited, code=exited, status=1/FAILURE
Sep 15 13:41:45 srv1 systemd[1]: Failed to start Restore LIO kernel target configuration.
Sep 15 13:41:45 srv1 systemd[1]: Unit target.service entered failed state.

JonnyJD commented on 2013-07-25 08:49

Please note that the license changed from AGPL3 to Apache 2.0 with fb27.

JonnyJD commented on 2013-04-08 10:20

There was a change in targetcli-fb to only show the backends you have the hardware available for:
https://github.com/agrover/targetcli-fb/commit/e302e0b781a38d852d89e4faf3a29689b10f5f0d
So you might be looking at the wrong place to check general support or targetcli-fb can't find your hardware.

These targets were not removed from the code:
https://github.com/agrover/rtslib-fb/blob/master/rtslib/fabric.py#L483


The difference between targetcli and targetcli-fb is that there is not much of development and no community for targetcli, but there are lots of changes and some community patches for targetcli-fb (free branch).
Have a look at https://github.com/agrover/targetcli-fb/network
The "upstream" branch is targetcli. "master" is targetcli-fb.

Risingtidesystems have a commercial product (rtsadmin) and are probably mainly working on that. Targetcli is open source, but not a community project.

quartz64 commented on 2013-04-08 09:55

What is the main difference between targetcli-fb and targetcli? I've noticed that there is no FC target (qla2xxx) and FCoE target (tcm_fc) in targetcli-fb.

TheImperial2004 commented on 2013-04-05 20:13


I edited all the files manually since I had free time .

I'm not in an urgent need for a -git package now .

Thanks .