Description of problem:
It seems fix for bug 828681 broke targetcli create.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. service fcoe-target start
2. targetcli /backstores/fileio create disk /tmp/test 10M
Using params size=10M write_back=True sparse=True
Traceback (most recent call last):
File "/usr/bin/targetcli", line 91, in <module>
File "/usr/bin/targetcli", line 74, in main
File "/usr/lib/python2.6/site-packages/configshell/shell.py", line 934, in run_cmdline
self._execute_command(path, command, pparams, kparams)
File "/usr/lib/python2.6/site-packages/configshell/shell.py", line 909, in _execute_command
result = target.execute_command(command, pparams, kparams)
File "/usr/lib/python2.6/site-packages/targetcli/ui_node.py", line 84, in execute_command
File "/usr/lib/python2.6/site-packages/configshell/node.py", line 1405, in execute_command
result = method(*pparams, **kparams)
File "/usr/lib/python2.6/site-packages/targetcli/ui_backstore.py", line 314, in ui_command_create
TypeError: __init__() got an unexpected keyword argument 'write_back'
Using buffered mode.
Created fileio disk with size 10M
Entering new node /backstores/fileio/disk
This works fine in fcoe-target-utils-2.0rc1.fb10-5.el6.noarch, possibly a regression.
Try fcoe-target-utils-2.0rc1.fb16-2.el6 and python-rtslib-2.1.fb21-1.el6, should fix it?
Verified in fcoe-target-utils-2.0rc1.fb16-2.el6 and python-rtslib-2.1.fb21-1.el6.
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory, and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.