Open top-secrett opened 1 month ago
Now the error looks like this
@top-secrett , clearing the secondary storage for removal should definately be easier. This is probably going to give similar issues with ISOs as well and maybe volumes as well. the respective data links need to be cleared to be able to remove the secstore...
What did you do to get to this second phase (I imagine removing templates from the zone)?
@DaanHoogland the only thing I did pdate snapshots SET status="Destroyed" where id=576; to remove stucked snapshots in db
@top-secrett you also need to look at snapshot_store_ref. These direct DB operations are a bit dangerous. also you need to set removed = now() maintaining secstores is not well supported, we really need to look at that.
@top-secrett , do you have a workable workaround atm?
ISSUE TYPE
CLOUDSTACK VERSION
OS / ENVIRONMENT
Oracle Linux 8
SUMMARY
I added second secstore to one zone, and some images and templates were copied to it automatically. Now I want to delete it and an error occurs. There is no any mechanism in Cloudstack for removing templates from specific secstore or forcibly deleting a secstore. Of course I can modify some records in DB like in https://github.com/apache/cloudstack/issues/8540 https://github.com/apache/cloudstack/issues/7347 but it's not a solution
Templates on this secstore Some of them are downloaded, some are not.