ceph-iscsi-cli icon indicating copy to clipboard operation
ceph-iscsi-cli copied to clipboard

error on rbd-target-gw restart affects second gateway

Open blballa opened this issue 7 years ago • 1 comments

Jan 27 22:52:52 ceph3 rbd-target-gw[17827]: Processing Gateway configuration Jan 27 22:52:52 ceph3 rbd-target-gw[17827]: (Gateway.create_tpg) created TPG '1' for target iqn 'iqn.2003-01.com.redhat.iscsi-gw:iscsi-igw' Jan 27 22:52:52 ceph3 rbd-target-gw[17827]: (Gateway.create_tpg) created TPG '2' for target iqn 'iqn.2003-01.com.redhat.iscsi-gw:iscsi-igw' Jan 27 22:52:52 ceph3 rbd-target-gw[17827]: (Gateway.create_target) created an iscsi target with iqn of 'iqn.2003-01.com.redhat.iscsi-gw:iscsi-igw' Jan 27 22:52:52 ceph3 rbd-target-gw[17827]: Processing LUN configuration Jan 27 22:52:52 ceph3 rbd-target-gw[17827]: (LUN.add_dev_to_lio) Adding image 'rbd.disk_2' to LIO Jan 27 22:52:52 ceph3 rbd-target-gw[17827]: Removing iSCSI target from LIO Jan 27 22:52:52 ceph3 rbd-target-gw[17827]: Removing LUNs from LIO Jan 27 22:52:52 ceph3 rbd-target-gw[17827]: Traceback (most recent call last): Jan 27 22:52:52 ceph3 rbd-target-gw[17827]: File "/usr/bin/rbd-target-gw", line 5, in Jan 27 22:52:52 ceph3 rbd-target-gw[17827]: pkg_resources.run_script('ceph-iscsi==3.0', 'rbd-target-gw') Jan 27 22:52:52 ceph3 rbd-target-gw[17827]: File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 540, in run_script Jan 27 22:52:52 ceph3 rbd-target-gw[17827]: self.require(requires)[0].run_script(script_name, ns) Jan 27 22:52:52 ceph3 rbd-target-gw[17827]: File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 1462, in run_script Jan 27 22:52:52 ceph3 rbd-target-gw[17827]: exec_(script_code, namespace, namespace) Jan 27 22:52:52 ceph3 rbd-target-gw[17827]: File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 41, in exec_ Jan 27 22:52:52 ceph3 rbd-target-gw[17827]: exec("""exec code in globs, locs""") Jan 27 22:52:52 ceph3 rbd-target-gw[17827]: File "", line 1, in Jan 27 22:52:52 ceph3 rbd-target-gw[17827]: File "/usr/lib/python2.7/site-packages/ceph_iscsi-3.0-py2.7.egg/EGG-INFO/scripts/rbd-target-gw", line 451, in Jan 27 22:52:52 ceph3 rbd-target-gw[17827]: File "/usr/lib/python2.7/site-packages/ceph_iscsi-3.0-py2.7.egg/EGG-INFO/scripts/rbd-target-gw", line 382, in main Jan 27 22:52:52 ceph3 rbd-target-gw[17827]: File "/usr/lib/python2.7/site-packages/ceph_iscsi-3.0-py2.7.egg/EGG-INFO/scripts/rbd-target-gw", line 323, in apply_config Jan 27 22:52:52 ceph3 rbd-target-gw[17827]: File "build/bdist.linux-x86_64/egg/ceph_iscsi_config/lun.py", line 1046, in define_luns Jan 27 22:52:52 ceph3 rbd-target-gw[17827]: File "build/bdist.linux-x86_64/egg/ceph_iscsi_config/lun.py", line 641, in allocate Jan 27 22:52:52 ceph3 rbd-target-gw[17827]: File "build/bdist.linux-x86_64/egg/ceph_iscsi_config/lun.py", line 797, in add_dev_to_lio Jan 27 22:52:52 ceph3 rbd-target-gw[17827]: TypeError: init() got an unexpected keyword argument 'control' Jan 27 22:52:52 ceph3 rbd-target-gw[17827]: Active Ceph iSCSI gateway configuration removed

blballa avatar Jan 28 '19 03:01 blballa

@blballa It sounds like you have an out-of-date version of python-rtslib-fb [1]

[1] https://github.com/open-iscsi/rtslib-fb

dillaman avatar Jan 28 '19 16:01 dillaman