You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ sudo targetcli
targetcli shell version 2.1.fb43
Copyright 2011-2013 by Datera, Inc and others.
For help on commands, type 'help'.
/backstores/block> ls
o- block ...................................................................................................... [Storage Objects: 0]
/backstores/block> create sdcard /dev/mmcblk0
Traceback (most recent call last):
File "/usr/bin/targetcli", line 121, in
main()
File "/usr/bin/targetcli", line 111, in main
shell.run_interactive()
File "/usr/lib/python3/dist-packages/configshell_fb/shell.py", line 894, in run_interactive
self._cli_loop()
File "/usr/lib/python3/dist-packages/configshell_fb/shell.py", line 723, in _cli_loop
self.run_cmdline(cmdline)
File "/usr/lib/python3/dist-packages/configshell_fb/shell.py", line 837, in run_cmdline
self._execute_command(path, command, pparams, kparams)
File "/usr/lib/python3/dist-packages/configshell_fb/shell.py", line 812, in _execute_command
result = target.execute_command(command, pparams, kparams)
File "/usr/lib/python3/dist-packages/configshell_fb/node.py", line 1406, in execute_command
return method(*pparams, **kparams)
File "/usr/lib/python3/dist-packages/targetcli/ui_backstore.py", line 409, in ui_command_create
so = BlockStorageObject(name, dev, readonly=readonly, wwn=wwn)
File "/usr/lib/python3/dist-packages/rtslib_fb/tcm.py", line 672, in init
self._configure(dev, wwn, readonly)
File "/usr/lib/python3/dist-packages/rtslib_fb/tcm.py", line 681, in _configure
if get_blockdev_type(dev) != 0:
File "/usr/lib/python3/dist-packages/rtslib_fb/utils.py", line 200, in get_blockdev_type
disk_type = int(fread("/sys/block/%s/device/type" % os.path.basename(dev)))
ValueError: invalid literal for int() with base 10: 'SD'
I don't know which of the three repos this issue would best be attached to (this one, configshell-fb, or rtslib-fb), so apologies if this is the wrong one.
The text was updated successfully, but these errors were encountered:
$ sudo targetcli
targetcli shell version 2.1.fb43
Copyright 2011-2013 by Datera, Inc and others.
For help on commands, type 'help'.
/backstores/block> ls
o- block ...................................................................................................... [Storage Objects: 0]
/backstores/block> create sdcard /dev/mmcblk0
Traceback (most recent call last):
File "/usr/bin/targetcli", line 121, in
main()
File "/usr/bin/targetcli", line 111, in main
shell.run_interactive()
File "/usr/lib/python3/dist-packages/configshell_fb/shell.py", line 894, in run_interactive
self._cli_loop()
File "/usr/lib/python3/dist-packages/configshell_fb/shell.py", line 723, in _cli_loop
self.run_cmdline(cmdline)
File "/usr/lib/python3/dist-packages/configshell_fb/shell.py", line 837, in run_cmdline
self._execute_command(path, command, pparams, kparams)
File "/usr/lib/python3/dist-packages/configshell_fb/shell.py", line 812, in _execute_command
result = target.execute_command(command, pparams, kparams)
File "/usr/lib/python3/dist-packages/configshell_fb/node.py", line 1406, in execute_command
return method(*pparams, **kparams)
File "/usr/lib/python3/dist-packages/targetcli/ui_backstore.py", line 409, in ui_command_create
so = BlockStorageObject(name, dev, readonly=readonly, wwn=wwn)
File "/usr/lib/python3/dist-packages/rtslib_fb/tcm.py", line 672, in init
self._configure(dev, wwn, readonly)
File "/usr/lib/python3/dist-packages/rtslib_fb/tcm.py", line 681, in _configure
if get_blockdev_type(dev) != 0:
File "/usr/lib/python3/dist-packages/rtslib_fb/utils.py", line 200, in get_blockdev_type
disk_type = int(fread("/sys/block/%s/device/type" % os.path.basename(dev)))
ValueError: invalid literal for int() with base 10: 'SD'
I don't know which of the three repos this issue would best be attached to (this one, configshell-fb, or rtslib-fb), so apologies if this is the wrong one.
The text was updated successfully, but these errors were encountered: