iscsi configuration unable to save python error “ValueError: 'Implict and Explict' is not in list”
/> ls
o- / ......................................................................................................................... [...]o- backstores .............................................................................................................. [...]| o- block .................................................................................................. [Storage Objects: 1]| | o- db_lun ..................................................... [/dev/mapper/db (10.0GiB) write-thru activated]| | o- alua ................................................................................................... [ALUA Groups: 1]| | o- default_tg_pt_gp ....................................................................... [ALUA state: Active/optimized]| o- fileio ................................................................................................. [Storage Objects: 0]| o- pscsi .................................................................................................. [Storage Objects: 0]| o- ramdisk ................................................................................................ [Storage Objects: 0]o- iscsi ............................................................................................................ [Targets: 1]| o- iqn.2017-10.dbserver.com:server ................................................................................... [TPGs: 1]| o- tpg1 ............................................................................................... [no-gen-acls, no-auth]| o- acls .......................................................................................................... [ACLs: 1]| | o- iqn.2017-10.dbserver.com:client ...................................................................... [Mapped LUNs: 1]| | o- mapped_lun0 ................................................................................ [lun0 block/db_lun (rw)]| o- luns .......................................................................................................... [LUNs: 1]| | o- lun0 ................................................ [block/db_lun (/dev/mapper/db) (default_tg_pt_gp)]| o- portals .................................................................................................... [Portals: 1]| o- 0.0.0.0:3260 ..................................................................................................... [OK]o- loopback ......................................................................................................... [Targets: 0]
/>/> saveconfig
Last 10 configs saved in /etc/target/backup.
Traceback (most recent call last):File "/usr/bin/targetcli", line 121, in
ValueError: 'Implict and Explict' is not in list
The issue is caused by the fact that these parameters were renamed in Linux kernel:
Implict
→Implicit
Explict
→Explicit
(Note that the i
between the c
and the final t
, which had been omitted, is now present. Here is link to the corresponding kernel commit https://github.com/torvalds/linux/commit/125d0119d158180eb38580adfbc1a83d56120709
Solution: upgrade kernel to the latest version.