Forums

Home / Forums

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

The iscsi-disk/pool remained in the consul after deleting via web UI

Hello. I encountered this problem
I deleted the disk (00004) via the web interface, no errors were displayed.
Then I deleted the pool (rbd2-ssd) that was only used for this disk. Also without errors.
But now I see messages in the logs that it seems that information about this disk remains in the consul:

03/06/2024 18:33:27 INFO     iSCSIServer : Found pool:rbd2-ssd for disk:00004 via CONSUL 
03/06/2024 18:33:27 ERROR    Error in getting header object  =  rbd: error opening image image-00004: (2) No such file or directory 

03/06/2024 18:33:27 ERROR    Cannot get image meta object from rbd header. 
Traceback (most recent call last): 
 File "/usr/lib/python3/dist-packages/PetaSAN/core/ceph/api.py", line 934, in __get_header_object 
   raise MetadataException("Cannot get image meta object from rbd header.") 
PetaSAN.core.common.CustomException.MetadataException: Cannot get image meta object from rbd header. 
03/06/2024 18:33:27 INFO     --------------------------------- 
03/06/2024 18:33:27 ERROR    iSCSIServer Exception : __acquire_path() : Cannot get metadata.  

03/06/2024 18:33:27 ERROR    Cannot get metadata. 
Traceback (most recent call last): 
 File "/usr/lib/python3/dist-packages/PetaSAN/core/ceph/api.py", line 934, in __get_header_object 
   raise MetadataException("Cannot get image meta object from rbd header.") 
PetaSAN.core.common.CustomException.MetadataException: Cannot get image meta object from rbd header.

How to properly remove information from consul?

P.S. PetaSAN version - 3.3.0

To delete disk 00004 from consul

consul kv delete -recurse PetaSAN/Disks/00004

Maybe consul was down during the deletion, but it is not likely. Can you try to reproduce this ? Do you have any hardware limitations ?

 

Thank you
I ran the command and the problem was solved.

I tried to reproduce the problem, but it didn't happen again.