Fedora Account System
Red Hat Associate
Red Hat Customer
Created attachment 782861 [details] saveconfig.json - demo configuration that triggers error Description of problem: targetcli returning python errors in CLI Version-Release number of selected component (if applicable): targetcli 2.1.fb26 python-rtslib 2.1.fb35 How reproducible: Always Steps to Reproduce: 1. Create block lun 2. Create iscsi target 3. Create iscsi acl for an initiator 4. cd /iscsi/<target>/tpg1/acls/<iqn> Actual results: get > attribute global parameter auth get parameter > get parameter Traceback (most recent call last): File "/usr/lib/python2.7/site-packages/configshell/shell.py", line 990, in run_interactive self._cli_loop() File "/usr/lib/python2.7/site-packages/configshell/shell.py", line 813, in _cli_loop self.run_cmdline(cmdline) File "/usr/lib/python2.7/site-packages/configshell/shell.py", line 934, in run_cmdline self._execute_command(path, command, pparams, kparams) File "/usr/lib/python2.7/site-packages/configshell/shell.py", line 909, in _execute_command result = target.execute_command(command, pparams, kparams) File "/usr/lib/python2.7/site-packages/targetcli/ui_node.py", line 87, in execute_command pparams, kparams) File "/usr/lib/python2.7/site-packages/configshell/node.py", line 1417, in execute_command result = method(*pparams, **kparams) File "/usr/lib/python2.7/site-packages/configshell/node.py", line 607, in ui_command_get value = group_getter(p_def['name']) File "/usr/lib/python2.7/site-packages/targetcli/ui_target.py", line 867, in ui_getgroup_parameter return self.rtsnode[0].get_parameter(parameter) AttributeError: 'UINodeACL' object has no attribute 'rtsnode' Expected results: targetcli will show the appropriate parameters for the context /iscsi/<target>/ Additional info:
The last part should read: Expected results: targetcli will show the appropriate parameters for the context /iscsi/<target>/tpg1/acls/<iqn> In the context: /iscsi/<target>/tpg1 get parameter works It fails two levels down in the context of the acls/<initiator iqn>
targetcli-2.1.fb28-1.fc18 has been submitted as an update for Fedora 18. https://admin.fedoraproject.org/updates/targetcli-2.1.fb28-1.fc18
targetcli-2.1.fb28-1.fc19 has been submitted as an update for Fedora 19. https://admin.fedoraproject.org/updates/targetcli-2.1.fb28-1.fc19
The two updates for python-rtslib and targetcli have fixed the issue for me under Fedora 19. Thank you.
Package targetcli-2.1.fb28-1.fc19: * should fix your issue, * was pushed to the Fedora 19 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing targetcli-2.1.fb28-1.fc19' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2013-14346/targetcli-2.1.fb28-1.fc19 then log in and leave karma (feedback).
targetcli-2.1.fb28-1.fc19 has been pushed to the Fedora 19 stable repository. If problems still persist, please make note of it in this bug report.
targetcli-2.1.fb28-1.fc18 has been pushed to the Fedora 18 stable repository. If problems still persist, please make note of it in this bug report.