-
Notifications
You must be signed in to change notification settings - Fork 47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Gateway CLI reports Created bdev ceph<n>: True for non existing rbd image in ceph rbd pool #84
Comments
I believe it is fixed in newer versions of spdk to properly return an error in this case. Here is an output when trying this on wip-spdk-23.01 branch from #79:
I am not happy though that the spdk return "code -1 Operation not permitted", which is misleading. I would expect |
This is fixed in newer version of SPDK
|
When tried to create a bdev with no prior rbd image existence,
[1]gateway server reports below -
INFO:control.grpc:Received request to create bdev ceph16 from rbd/image15 with block size 4096 [2023-03-13 06:12:42.616407] bdev_rbd.c: 323:bdev_rbd_init_context: *ERROR*: Failed to open specified rbd device [2023-03-13 06:12:42.616938] bdev_rbd.c: 360:bdev_rbd_init: *ERROR*: Cannot init rbd context for rbd=0x396a1a0 [2023-03-13 06:12:42.617006] bdev_rbd.c:1253:bdev_rbd_create: *NOTICE*: Add ceph16 rbd disk to lun INFO:control.grpc:create_bdev: ceph16 DEBUG:control.state:omap_key generated: bdev_ceph16
whereas,
[2]Gateway CLI reports as,
`# python3 -m control.cli create_bdev -i image15 -p rbd -b ceph16
INFO:main:Created bdev ceph16: True
`
Ceph rbd pool
[ceph: root@ceph-rlepaksh-nvmeof-luwu0r-node1-installer /]# rbd ls rbd
image10
image11
image12
image13
image14
test_image1
test_image2
test_image3
test_image4
test_image5
test_image6
test_image7
test_image8
test_image9
Gateway CLi should report
False
status on bdev creation for non exisitng rbd image and omap key should not be generated?The text was updated successfully, but these errors were encountered: