Problem with block storage backstore
by David Costa
Hello,
I am getting the following traceback message after creating a block
storage with the latest targetcli-fb package on Fedora 20. I have been
able to use fileio storage as an alternative with out problem, but it
would be nice to be able to use the block device directly.
Do you have any thoughts as to what the problem might be?
Best regards,
Dave Costa
[root@ban24uut065 ~]# targetcli
targetcli shell version 2.1.fb36
Copyright 2011-2013 by Datera, Inc and others.
For help on commands, type 'help'.
/> backstores/block create fcoe_target /dev/sdc1
Created block storage object fcoe_target using /dev/sdc1.
/> tcm_fc/ create
naa.2000001b213fa52f wwn=
..................wwn|keyword=
/> tcm_fc/ create naa.2000001b213fa52f
Created target naa.2000001b213fa52f.
/> ls
Traceback (most recent call last):
File "/usr/bin/targetcli", line 100, in <module>
main()
File "/usr/bin/targetcli", line 90, in main
shell.run_interactive()
File "/usr/lib/python2.7/site-packages/configshell/shell.py", line
948, in run_interactive
self._cli_loop()
File "/usr/lib/python2.7/site-packages/configshell/shell.py", line
777, in _cli_loop
self.run_cmdline(cmdline)
File "/usr/lib/python2.7/site-packages/configshell/shell.py", line
891, in run_cmdline
self._execute_command(path, command, pparams, kparams)
File "/usr/lib/python2.7/site-packages/configshell/shell.py", line
866, in _execute_command
result = target.execute_command(command, pparams, kparams)
File "/usr/lib/python2.7/site-packages/configshell/node.py", line
1413, in execute_command
return method(*pparams, **kparams)
File "/usr/lib/python2.7/site-packages/configshell/node.py", line
712, in ui_command_ls
tree = self._render_tree(target, depth=depth)
File "/usr/lib/python2.7/site-packages/configshell/node.py", line
863, in _render_tree
+ self._render_tree(children[i], margin, depth)
File "/usr/lib/python2.7/site-packages/configshell/node.py", line
863, in _render_tree
+ self._render_tree(children[i], margin, depth)
File "/usr/lib/python2.7/site-packages/configshell/node.py", line
863, in _render_tree
+ self._render_tree(children[i], margin, depth)
File "/usr/lib/python2.7/site-packages/configshell/node.py", line
767, in _render_tree
(description, is_healthy) = root.summary()
File "/usr/lib/python2.7/site-packages/targetcli/ui_backstore.py",
line 466, in summary
return ("%s (%s) %s%s %s" % (so.udev_path, bytes_to_human(so.size),
File "/usr/lib/python2.7/site-packages/rtslib/tcm.py", line 700, in
_get_size
return get_blockdev_size(self._parse_info('device')) *
int(self._parse_info('SectorSize'))
File "/usr/lib/python2.7/site-packages/rtslib/utils.py", line 131, in
get_blockdev_size
m = re.search(r'^([a-z0-9_-!]+)(\d+)$', name)
File "/usr/lib64/python2.7/re.py", line 142, in search
return _compile(pattern, flags).search(string)
File "/usr/lib64/python2.7/re.py", line 242, in _compile
raise error, v # invalid expression
sre_constants.error: bad character range
[root@ban24uut065 ~]#
9 years, 6 months