ceph / ceph-iscsi-tools

Useful tools for a ceph/iscsi gateway environment
GNU General Public License v2.0
12 stars 12 forks source link

ValueError when get dm_num #6

Open MIZZ122 opened 6 years ago

MIZZ122 commented 6 years ago

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=iblockname.split('')[1] ???

mikechristie commented 6 years ago

Were you using the older /dev/rbd style setup on purpose? If so why? Was it for performance reasons?

MIZZ122 commented 6 years ago

You mean why don't I use the tcmu-runner? Some time ago I was also verifying the use of tcmu-runner in our products. But tcmu-runner requires kernel version 7.5,Our products cannot upgrade the kernel temporarily,so we are using the older style(map the block device on the Ceph cluster to the gateway node locally,then export it to /backstores/block)

MIZZ122 commented 6 years ago

the gwtop has two choices in porvider, lio and dm. Is the older style the provider of dm?