Forums

Home / Forums

You need to log in to create posts and topics. Login · Register

iSCSI Disks gets stuck with deleting

Team,
When deleting an iscsi disk , it gets stuck in deleting, and find the error logs in the PEtaSan logs,

consul kv delete -recurse PetaSAN/Disks/00456 to delete the particular disk, but the error pointing to no snapshot for the  image,
How can i fix this ?

File "rbd.pyx", line 2894, in rbd.Image.__init__
rbd.ImageNotFound: [errno 2] RBD image not found (error opening image b'image-00452' at snapshot None)
01/03/2024 03:49:26 ERROR Get ceph image size image-00452 error
01/03/2024 03:49:26 ERROR [errno 2] RBD image not found (error opening image b'image-00452' at snapshot None)
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/PetaSAN/core/ceph/api.py", line 1068, in __get_image_size
size = int(math.ceil(float(rbd.Image(ioctx, image).size()) / float(1024 ** 3)))
File "rbd.pyx", line 2894, in rbd.Image.__init__
rbd.ImageNotFound: [errno 2] RBD image not found (error opening image b'image-00452' at snapshot None)
01/03/2024 03:49:36 ERROR Get ceph image size image-00452 error
01/03/2024 03:49:36 ERROR [errno 2] RBD image not found (error opening image b'image-00452' at snapshot None)
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/PetaSAN/core/ceph/api.py", line 1068, in __get_image_size
size = int(math.ceil(float(rbd.Image(ioctx, image).size()) / float(1024 ** 3)))
File "rbd.pyx", line 2894, in rbd.Image.__init__
rbd.ImageNotFound: [errno 2] RBD image not found (error opening image b'image-00452' at snapshot None)
01/03/2024 03:49:46 ERROR Get ceph image size image-00452 error
01/03/2024 03:49:46 ERROR [errno 2] RBD image not found (error opening image b'image-00452' at snapshot None)
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/PetaSAN/core/ceph/api.py", line 1068, in __get_image_size
size = int(math.ceil(float(rbd.Image(ioctx, image).size()) / float(1024 ** 3)))
File "rbd.pyx", line 2894, in rbd.Image.__init__
rbd.ImageNotFound: [errno 2] RBD image not found (error opening image b'image-00452' at snapshot None)
01/03/2024 03:49:56 ERROR Get ceph image size image-00452 error
01/03/2024 03:49:56 ERROR [errno 2] RBD image not found (error opening image b'image-00452' at snapshot None)
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/PetaSAN/core/ceph/api.py", line 1068, in __get_image_size
size = int(math.ceil(float(rbd.Image(ioctx, image).size()) / float(1024 ** 3)))
File "rbd.pyx", line 2894, in rbd.Image.__init__
rbd.ImageNotFound: [errno 2] RBD image not found (error opening image b'image-00452' at snapshot None)
01/03/2024 03:50:06 ERROR Get ceph image size image-00452 error
01/03/2024 03:50:06 ERROR [errno 2] RBD image not found (error opening image b'image-00452' at snapshot None)
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/PetaSAN/core/ceph/api.py", line 1068, in __get_image_size
size = int(math.ceil(float(rbd.Image(ioctx, image).size()) / float(1024 ** 3)))
File "rbd.pyx", line 2894, in rbd.Image.__init__
rbd.ImageNotFound: [errno 2] RBD image not found (error opening image b'image-00452' at snapshot None)
01/03/2024 03:50:16 ERROR Get ceph image size image-00452 error
01/03/2024 03:50:16 ERROR [errno 2] RBD image not found (error opening image b'image-00452' at snapshot None)

can you delete it via cli command?

I  trigger the python script from /opt/petasan/scripts/util/delete_iscsi_disk.py, but getting similar error.

Is there another way to delete the these disks ?

Pls help

Noticing that , it keeps retrying and deletes the disk finally.

File "/usr/lib/python3/dist-packages/PetaSAN/core/ceph/api.py", line 1068, in __get_image_size
size = int(math.ceil(float(rbd.Image(ioctx, image).size()) / float(1024 ** 3)))
File "rbd.pyx", line 2894, in rbd.Image.__init__
rbd.ImageNotFound: [errno 2] RBD image not found (error opening image b'image-00248' at snapshot None)
02/03/2024 06:45:53 ERROR Get ceph image size image-00248 error
02/03/2024 06:45:53 ERROR [errno 2] RBD image not found (error opening image b'image-00248' at snapshot None)
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/PetaSAN/core/ceph/api.py", line 1068, in __get_image_size
size = int(math.ceil(float(rbd.Image(ioctx, image).size()) / float(1024 ** 3)))
File "rbd.pyx", line 2894, in rbd.Image.__init__
rbd.ImageNotFound: [errno 2] RBD image not found (error opening image b'image-00248' at snapshot None)
02/03/2024 06:46:02 ERROR Get ceph image size image-00248 error
02/03/2024 06:46:02 ERROR [errno 2] RBD image not found (error opening image b'image-00248' at snapshot None)
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/PetaSAN/core/ceph/api.py", line 1068, in __get_image_size
size = int(math.ceil(float(rbd.Image(ioctx, image).size()) / float(1024 ** 3)))
File "rbd.pyx", line 2894, in rbd.Image.__init__
rbd.ImageNotFound: [errno 2] RBD image not found (error opening image b'image-00248' at snapshot None)

02/03/2024 06:46:06 INFO Deleting iSCSI Disk : Deleting disk image-00248 has been done.

if the iSCSI disk is not started in the UI, you can use ceph rbd command to delete image.