On 05/04/2013 04:06 AM, Tim Eggleston wrote:
Hi list, On Ubuntu 13.04, running the latest target package and the Ubuntu build of kernel 3.9-rc8 (3.9.0-030900rc8-generic), I get the following targetcli error when attempting to delete a lun: /iscsi/iqn.20...92/tpgt1/luns> delete 5 Traceback (most recent call last): File "/usr/lib/python2.7/dist-packages/configshell/shell.py", line 983, in run_interactive self._cli_loop() File "/usr/lib/python2.7/dist-packages/configshell/shell.py", line 806, in _cli_loop self.run_cmdline(cmdline) File "/usr/lib/python2.7/dist-packages/configshell/shell.py", line 927, in run_cmdline self._execute_command(path, command, pparams, kparams) File "/usr/lib/python2.7/dist-packages/configshell/shell.py", line 902, in _execute_command result = target.execute_command(command, pparams, kparams) File "/usr/lib/python2.7/dist-packages/targetcli/ui_node.py", line 85, in execute_command pparams, kparams) File "/usr/lib/python2.7/dist-packages/configshell/node.py", line 1405, in execute_command result = method(*pparams, **kparams) File "/usr/lib/python2.7/dist-packages/targetcli/ui_target.py", line 804, in ui_command_delete lun_object.delete() File "/usr/lib/python2.7/dist-packages/rtslib/target.py", line 501, in delete [mlun.delete() for mlun in self._list_mapped_luns()] File "/usr/lib/python2.7/dist-packages/rtslib/target.py", line 488, in _list_mapped_luns % (base, nodeacl, mapped_lun)) OSError: [Errno 20] Not a directory: '/sys/kernel/config/target/iscsi/iqn.2003-01.org.linux-iscsi.mckinley.x8664:sn.ef88b84a1e92/tpgt_1/acls//iqn.1998-01.com.vmware:erebus-68727c6e/tag' Sure enough, if I go look at that tag directory, it isn't a directory, it's an empty file. This machine was upgraded from Ubuntu 12.04 and had some hiccups with a temporarily broken Ubuntu rtslib package during the 13.04 beta cycle. Assuming somebody knows what's going on here, is there a clean way to get this working without blowing away my config and rebuilding it?
'tag' is a new attribute, I think it needs to be added to 'xmlun' list, around line 487 in target.py.
Regards -- Andy -- To unsubscribe from this list: send the line "unsubscribe target-devel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html