iSCSI Disks gets stuck with deleting
pradeep suresh
32 Posts
March 1, 2024, 10:07 amQuote from pradeep suresh on March 1, 2024, 10:07 amTeam,
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)
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)
admin
2,930 Posts
March 2, 2024, 11:41 amQuote from admin on March 2, 2024, 11:41 amcan you delete it via cli command?
can you delete it via cli command?
pradeep suresh
32 Posts
March 2, 2024, 12:16 pmQuote from pradeep suresh on March 2, 2024, 12:16 pmI 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
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
pradeep suresh
32 Posts
March 2, 2024, 12:21 pmQuote from pradeep suresh on March 2, 2024, 12:21 pmNoticing 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.
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.
admin
2,930 Posts
March 2, 2024, 10:09 pmQuote from admin on March 2, 2024, 10:09 pmif the iSCSI disk is not started in the UI, you can use ceph rbd command to delete image.
if the iSCSI disk is not started in the UI, you can use ceph rbd command to delete image.
iSCSI Disks gets stuck with deleting
pradeep suresh
32 Posts
Quote from pradeep suresh on March 1, 2024, 10:07 amTeam,
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)
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)
admin
2,930 Posts
Quote from admin on March 2, 2024, 11:41 amcan you delete it via cli command?
can you delete it via cli command?
pradeep suresh
32 Posts
Quote from pradeep suresh on March 2, 2024, 12:16 pmI 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
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
pradeep suresh
32 Posts
Quote from pradeep suresh on March 2, 2024, 12:21 pmNoticing 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.
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.
admin
2,930 Posts
Quote from admin on March 2, 2024, 10:09 pmif the iSCSI disk is not started in the UI, you can use ceph rbd command to delete image.
if the iSCSI disk is not started in the UI, you can use ceph rbd command to delete image.