rposudnevskiy / RBDSR

RBDSR - XenServer/XCP-ng Storage Manager plugin for CEPH
GNU Lesser General Public License v2.1
58 stars 23 forks source link

"Storage_interface.Vdi_does_not_exist" when scan #42

Closed suzj801 closed 7 years ago

suzj801 commented 7 years ago

vdi snapshot may be change or deleted, so vdi update description must after set snapshot-of. Otherwise it may cause error "vdi_not_exists" when scaning

when setting description of vdi, the function will check the vdi's parent. RBDSR.py line 673: base_vdi_uuid = self_vdi_sm_config["snapshot-of"] in fact, the snapshot may be not exists.

suzj801 commented 7 years ago

I found the reason that cause the problem. In my code, i delete vm disk first, then loop delete snapshot, and delete vm finally. So, the snapshot chain was broken. If want delete the vdi of snapshot should rescan the sr first.