mirror of https://github.com/apache/cloudstack.git
I made the changes to make sure that: 1. ISO will be deleted from the UI, but it is not deleted from the secondary storage as long as it is attached to a VM. 2. The storage cleanup thread will check whether the iso is attached to any vm, if not, it removes the ISO from the secondary storage. 3. Detach operation is now working which was failing before for the vms having attached iso(deleted). Updated the patch for template sync during MS restart. Manually tested the following: setup: upload ISO1 and ISO 2 Attach ISO1 to VM1 and VM2 Attach ISO2 to VM3 set storage.cleanup.interval to 300 test cases: 1. delete ISO1 from UI, gets deleted 2. In VM Details of VM1 and VM2, can see detach ISO option 3. ISO1 exists in secondary storage 4. detach ISO1 from VM1, successful 5. ISO1 still exists in secondary storage. 6. Restart MS, template sync will not delete ISO1. 7. Detach ISO1 from VM2, successfull detached. 8. Wait for storage cleanup thread to execute, ISO1 gets deleted from Secondary storage. 9. Detach ISO2 from VM3 10.ISO2 exists in secondary storage, Delete ISO2 form UI, get deleted from secondary storage. |
||
|---|---|---|
| .. | ||
| conf | ||
| scripts | ||
| src | ||
| test | ||
| pom.xml | ||