ceph / ceph/ceph-iscsi-tools

ValueError when get dm_num

Open
#6 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
12
Forks
9
PR merge metrics
No merged PRs in 30d

Description

ceph version: 12.2.4
kernel :3.10.0-862.el7.x86_64
lun_type="block"

#gwtop
Traceback
file "xxx/gwtop/config/local.py",line 49,in get_device_info
file "xxx/gwtop/config/local.py",line 111,in get_lio_devices
ValueError:invalid literal for init() with base 10: 'image1'

if lun.storage_object.udev_path : /dev/rbd/aaa/image1
so dm_id = image1
dm_num = image1
in local.py 109: pool_id=int(dm_num)
so error

whether
dm_num=iblock_name.split('_')[1] ???

Contributor guide

No contributing guide indexed for this repository

Research direction

Start in gwtop/config/local.py at get_device_info and get_lio_devices, especially lines 109-111, and inspect how /dev/rbd/aaa/image1 is parsed into dm_num. Reproduce the ValueError with the reported block LUN configuration and verify the corrected handling of this device path and pool_id conversion.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
infrastructure
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.