Git Product home page Git Product logo

Comments (9)

dillaman avatar dillaman commented on June 30, 2024

Initial guess is that your version of rtslib-fb is too old.

from ceph-iscsi.

dillaman avatar dillaman commented on June 30, 2024

... specifically it's missing this commit: open-iscsi/rtslib-fb@9637223#diff-994836a456b8ff8e93d461b0e27b9adf

from ceph-iscsi.

Allenscript avatar Allenscript commented on June 30, 2024

my rtslib-fb version is 2.1.fb69
i cat the tcm.py
it patch that commit which you point

what others can i do ?

from ceph-iscsi.

mikechristie avatar mikechristie commented on June 30, 2024

Can you attach the /var/log/rbd-target-api/rbd-target-api.log output for the node that hit the problem. In your example above it would be node1's rbd-target-api.log.

from ceph-iscsi.

Allenscript avatar Allenscript commented on June 30, 2024

yes ,i get ther error log when i create the image , in fact ,it create success,but it can't add to lun.

1413 2019-04-12 09:15:46,908 DEBUG [lun.py:862:_add_dev_to_lio_user_rbd()] - control="hw_max_sectors=1024,max_data_area_mb=8"
1414 2019-04-12 09:15:46,908 ERROR [rbd-target-api:114:unhandled_exception()] - Unhandled Exception
1415 Traceback (most recent call last):
1416 File "/usr/lib/python2.7/site-packages/flask/app.py", line 1475, in full_dispatch_request
1417 rv = self.dispatch_request()
1418 File "/usr/lib/python2.7/site-packages/flask/app.py", line 1461, in dispatch_request
1419 return self.view_functionsrule.endpoint
1420 File "/usr/lib/python2.7/site-packages/ceph_iscsi-3.0-py2.7.egg/EGG-INFO/scripts/rbd-target-api", line 107, in decorated
1421 File "/usr/lib/python2.7/site-packages/ceph_iscsi-3.0-py2.7.egg/EGG-INFO/scripts/rbd-target-api", line 1162, in _disk
1422 File "build/bdist.linux-x86_64/egg/ceph_iscsi_config/lun.py", line 668, in allocate
1423 so = self.add_dev_to_lio()
1424 File "build/bdist.linux-x86_64/egg/ceph_iscsi_config/lun.py", line 836, in add_dev_to_lio
1425 new_lun = self._add_dev_to_lio_user_rbd(in_wwn)
1426 File "build/bdist.linux-x86_64/egg/ceph_iscsi_config/lun.py", line 881, in _add_dev_to_lio_user_rbd
1427 wwn=in_wwn, control=control_string)
1428 TypeError: init() got an unexpected keyword argument 'control'
1429 2019-04-12 09:15:46,911 INFO [_internal.py:87:_log()] - ::1 - - [12/Apr/2019 09:15:46] "PUT /api/_disk/cache/mm HTTP/1.1" 500 -
1430 2019-04-12 09:15:46,913 ERROR [rbd-target-api:2419:call_api()] - _disk change on localhost failed with 500
1431 2019-04-12 09:15:46,913 DEBUG [rbd-target-api:2441:call_api()] - failed on node1. Unhandled exception: init() got an unexpected keyword argument 'control'
1432 2019-04-12 09:15:46,914 INFO [_internal.py:87:_log()] - ::1 - - [12/Apr/2019 09:15:46] "PUT /api/disk/cache/mm HTTP/1.1" 500 -

from ceph-iscsi.

mikechristie avatar mikechristie commented on June 30, 2024

That log output seems to confirm we are still missing that patch:

open-iscsi/rtslib-fb@9637223#diff-994836a456b8ff8e93d461b0e27b9adf

referenced before.

Are you sure the rtslib with that patch is installed correctly? There is not some weird thing where you have multiple versions installed (maybe one in /usr/lib/python2.7/site-packages and one in /usr/lib/python3.6/site-packages) and are looking/using the wrong one?

Did you install rtslib using rpm one time but then used the upstream GH code another time and did not remove the rpm installed package?

Did you manually try to patch the code in /usr/lib/python*/site-packages and maybe did not remove the old tcm.pyc/tcm.pyo file so the old code is still being used?

from ceph-iscsi.

mikechristie avatar mikechristie commented on June 30, 2024

Do you have a

/usr/lib/python*/site-packages/rtslib-fb directory but then also have a /usr/lib/python*/site-packages/rtslib-fb-2.1.fb69.egg or multiple rtslib .egg files?

from ceph-iscsi.

Allenscript avatar Allenscript commented on June 30, 2024

yes , i hava /usr/lib/python2.7/site-packages/rtslib and rtslib_fb and rtslib_fb-2.1.fb69-py2.7.egg
Is some thing wrong with tihs ?

from ceph-iscsi.

mikechristie avatar mikechristie commented on June 30, 2024

Maybe. Did you install rtslib with rpm one time then install it by source using the "python setup.py install" command? The older one might be what is getting used so even if you are seeing a updated/patched tcm.py a older tcmy.py will be getting used.

from ceph-iscsi.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.