ceph / ceph-iscsi-cli

NOTICE: moved to https://github.com/ceph/ceph-iscsi
GNU General Public License v3.0
25 stars 25 forks source link

gwcli fails on creating disk #150

Closed deckardbsd closed 5 years ago

deckardbsd commented 5 years ago

I have installed two gateways on centos 7.5 with patched kernel: 4.15.0-ceph-g1c778f43da52 and tcmu-runner: tcmu-runner-1.3.0-0.2rc4.el7.x86_64 I'm trying to create a disk using gwcli, but it fails with the following error msg: Failed : disk create/update failed on iscsi-gw1. Unhandled exception: __init__() got an unexpected keyword argument 'control'

dillaman commented 5 years ago

You need to update your python-rtslib-fb packages -- they are out-of-date.

deckardbsd commented 5 years ago

I do have this packages installed:

python2-rtslib                     noarch           2.1.fb67-3.fc28                   installed           685 k
 ceph-iscsi-cli                     noarch           2.7-105.g4802654.el7              installed           376 k
 ceph-iscsi-config                  noarch           2.6-76.g179cbf4.el7               installed           321 k
 libtcmu-devel                      x86_64           1.3.0-0.2rc4.el7                  installed            14 k
 targetcli                          noarch           2.1.fb46-7.el7                    @base               230 k
 tcmu-runner                        x86_64           1.3.0-0.2rc4.el7                  installed           167 k
 tcmu-runner-handler-glfs           x86_64           1.3.0-0.2rc4.el7                  installed            16 k
dillaman commented 5 years ago

You need this [1] so if you are getting an error about the missing control keyword, you don't have the updated version. 1.fb67-3.fc28 is not the most up-to-date version -- you need at least fb68.

[1] https://github.com/open-iscsi/rtslib-fb/blob/master/rtslib/tcm.py#L811

deckardbsd commented 5 years ago

Thanks, it works !