Bug #1740
Shutdown action only calls delete.sh for system datastore
Status: | Closed | Start date: | 01/25/2013 | |
---|---|---|---|---|
Priority: | High | Due date: | ||
Assignee: | Ruben S. Montero | % Done: | 0% | |
Category: | Drivers - Auth | |||
Target version: | Release 4.0 | |||
Resolution: | fixed | Pull request: | ||
Affected Versions: | OpenNebula 3.8 |
Description
Hi,
I've just upgraded from 3.8.1 to 3.8.3 and I use Xen 4.1 hypervisors. I've developed IBM v7000 SAN datastore drivers for opennebula and I'm now polishing final details. I'm facing a big problem with non-persistent images and I'm pretty sure it was working in 3.8.1.
When I shutdown a VM with opennebula, I see only tm/shared/delete.sh script is called for system DS. My tm/v7000/delete.sh script for storage DS is ignored. As a consequence, non-persistent iscsi volumes are not unmapped and snapshots are not removed from san.
But if I shutdown from inside the VM, then delete the VM in "unknown" state in opennebula, my tm/v7000/delete.sh script is ran just before tm/shared/delete.sh for system DS and everything is fine. Do you have any idea about what is going wrong ?
Cheers,
Laurent
Associated revisions
bug #1740: Use always the Image datastore for DELETE
bug #1740: Use always the Image datastore for DELETE
(cherry picked from commit ef171ebea8c8f516181f5c44c37b319fdba8ac8b)
History
#1 Updated by Laurent Grawet over 8 years ago
Please, replace "delete.sh" by "delete" in previous message.
#2 Updated by Ruben S. Montero over 8 years ago
- Status changed from New to Assigned
- Assignee set to Ruben S. Montero
- Target version set to Release 4.0
Hi Laurent,
It seems that this may be a bug. The epilog scripts are different when you are shutting down the VM, and when you are deleting it. In the first case, persistent disks are move back (MVDS operation) to the datastore, the other disks are removed (DELETE operation). However, when you are deleting the VMs all the disks are deleted.
From the code, DELETE from shutdown use the system datastore scripts, while the DELETE from delete use the image datastore scripts. This is exactly the behavior described in the issue.
I agree that DELETE for persistent and non-persistent images should use the image datastore drivers. Volatile disks, must use the system datastore ones, as volatile images are created in the System DS.
THANKS FOR THE FEEDBACK!
#3 Updated by Laurent Grawet over 8 years ago
Hi Ruben,
I've tested the patch this morning and everything looks fine on my side.
Thanks a lot,
Laurent
#4 Updated by Ruben S. Montero over 8 years ago
OK, closing this one then. Fix available in master and one-3.8 branch.
BTW, let us know if you want to contribute the drivers to the ecosystem...
Ruben
#5 Updated by Ruben S. Montero over 8 years ago
- Status changed from Assigned to Closed
- Resolution set to fixed