Closed suzj801 closed 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.
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.