targetcli saveconfig crashes on Ubuntu 16.04.2 LTS
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
targetcli (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
I installed targetcli (1:3.0~
DISTRIB_ID=Ubuntu
DISTRIB_
DISTRIB_
DISTRIB_
and got this error after entering 'saveconfig':
/> saveconfig
Save configuration? [Y/n]: y
Saving new startup configuration
Traceback (most recent call last):
File "/usr/lib/
self.
.......
File "/usr/local/
ret = func(*args[
File "/usr/lib/
ref_path = " ".join(
AttributeError: 'list' object has no attribute 'asList'
same error occurred when I tried to run targetcli-ng from console.
Workaround:
After some investigation, I found that the problem was in the pyparsing python library version:
root@adUntu:
....
pyparsing==2.1.10
....
Everything is fine after downgrade it to the version 2.0.3:
root@adUntu:
Collecting pyparsing==2.0.3
Downloading pyparsing-
Installing collected packages: pyparsing
Found existing installation: pyparsing 2.1.10
Uninstalling pyparsing-2.1.10:
Successfully uninstalled pyparsing-2.1.10
Successfully installed pyparsing-2.0.3
Status changed to 'Confirmed' because the bug affects multiple users.