Comments (9)
Initial guess is that your version of rtslib-fb is too old.
from ceph-iscsi.
... specifically it's missing this commit: open-iscsi/rtslib-fb@9637223#diff-994836a456b8ff8e93d461b0e27b9adf
from ceph-iscsi.
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.
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.
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.
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.
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.
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.
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)
- rbd-target-api / Unable to decode password for iqn.1998-01.com ,,, HOT 19
- Help! The rbd-target-api service of iSCSI gw cannot be started HOT 2
- ceph-iscsi / tcmu-runner bad pefromance with vmware esxi HOT 1
- I can't get return from method _add_dev_to_lio_user_rbd in ARM environment, it seems to be hang HOT 1
- Unable to remove / disassociate a disk from initiator HOT 1
- rbd-target-api will not start on Ubuntu Impish and later
- Failed to deploy iscsi service HOT 1
- Is ceph iscsi still being maintained?Or has it been abandoned? HOT 5
- gwcli error: REST API failure, code: 500
- rbd-target-api: concurrent requests are not supported HOT 6
- About using cephadm to deploy iSCSI Gateway
- Cannot remove a non-existent gatway by confirm=true HOT 1
- rbd-target-api fails to start : error : Failed to run ceph osd blocklist ls HOT 1
- rbd-target-api stuck, tcmu-runner crash / iSCSI Login negotiation failed
- HELP:Failed : disk create/update failed on ceph-2. Unhandled exception: __init__() got an unexpected keyword argument 'control'
- HELP: Failed : disk create/update failed on ceph-2. LUN allocation failure
- rbd-target-api: Disk limit 256 HOT 4
- rtslib_fb: `db_root: cannot be changed because it's in use`
- PSA: Purging ceph-iscsi on Debian rendered system borked
- rbd-target-api bug in centos9 with default python 3.9.18 HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ceph-iscsi.