ceph / ceph/ceph-iscsi

HELP:Failed : disk create/update failed on ceph-2. Unhandled exception: __init__() got an unexpected keyword argument 'control'

Open
#268 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
68
Forks
58
PR merge metrics
No merged PRs in 30d

Description

/disks> create pool=rbd image=disk_1 size=1G
CMD: /disks/ create pool=rbd image=disk_1 size=1G count=1
pool 'rbd' is ok to use
Creating/mapping disk rbd/disk_1
Issuing disk create request
Failed : disk create/update failed on ceph-2. Unhandled exception: __init__() got an unexpected keyword argument 'control'

log:
(LUN.add_dev_to_lio) Adding image 'rbd/disk_1' to LIO backstore user:rbd
Sep 30 16:21:41 ceph-2 journal: Unhandled Exception#012Traceback (most recent call last):#012 File "/usr/lib/python2site-packages/flask/app.py", line 1475, in full_dispatch_request#012 rv = self.dispatch_request()#012 File "/usr//python2.7/site-packages/flask/app.py", line 1461, in dispatch_request#012 return self.view_functions[rule.endpoin**req.view_args)#012 File "/usr/lib/python2.7/site-packages/ceph_iscsi-3.4-py2.7.egg/EGG-INFO/scripts/rbd-target-apiline 106, in decorated#012 File "/usr/lib/python2.7/site-packages/ceph_iscsi-3.4-py2.7.egg/EGG-INFO/scripts/rbd-targapi", line 1208, in _disk#012 File "build/bdist.linux-x86_64/egg/ceph_iscsi_config/lun.py", line 691, in allocate#01 so = self.add_dev_to_lio(in_wwn)#012 File "build/bdist.linux-x86_64/egg/ceph_iscsi_config/lun.py", line 859, in adev_to_lio#012 new_lun = self._add_dev_to_lio_user_rbd(in_wwn)#012 File "build/bdist.linux-x86_64/egg/ceph_iscsi_cig/lun.py", line 904, in _add_dev_to_lio_user_rbd#012 wwn=in_wwn, control=control_string)#012TypeError: __init__()t an unexpected keyword argument 'control'

All the service in the cluster is normal,I tried difference version of ceph-iscsi,but it not works。

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with ceph_iscsi_config/lun.py, especially allocate and _add_dev_to_lio_user_rbd, using the traceback's /disks create pool=rbd image=disk_1 size=1G reproduction. Trace the LIO backstore construction and the unexpected control argument; done means the disk create request completes without the exception.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
infrastructure
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.