Bug #4022

disk snapshots visible in sunstone after Delete(recreate) of a VM

Added by Anton Todorov almost 5 years ago. Updated almost 5 years ago.

Status:ClosedStart date:10/03/2015
Priority:NormalDue date:
Assignee:Ruben S. Montero% Done:

0%

Category:Core & System
Target version:Release 4.14.2
Resolution:fixed Pull request:
Affected Versions:OpenNebula 4.8

Description

How to reproduce:
  • create VM with non-persistent image
  • create disc snapshots
  • issue Delete(recreate) /tested via sunstone/

Result - after VM is recycled, in sunstone there are still snapshots shown but physically the snapshots are deleted. Their size is unknown (-/sizeGB) because they are not reported by vmm/poll either.

Expected behavior: the snapshots should be deleted from gui(database?) when VM is 'recreated'

I am leaving the category empty because do not know where to categorize this bug.

Associated revisions

Revision 5bb39611
Added by Carlos Martín almost 5 years ago

Bug #4022: Delete disk snapshotds for non-persistent images on delete --recreate

(cherry picked from commit 5ba0b121976964ce1f939d7a5f17c5b9182dd921)

Revision 1b991943
Added by Ruben S. Montero almost 5 years ago

bug #4022: Removes snapshots from non-shared persistent disks. Update
Datastore Quota management to deal with bulk updates. Hook on DM & LCM
resubmit and clean_up_vm to remove snapshots

(cherry picked from commit 6f02a240ec8f4be7ef232e8f8c584665e6747233)

Revision 6bcc97bd
Added by Ruben S. Montero almost 5 years ago

bug #4022: Do not set snapshots on persistent images if its TM ln mode
is SYSTEM. Update quota update and snapshot survival after delete
--recreate according to:

-------------------------------------------+
|LN/CLONE|     PERSISTENT    |   NO PERSISTENT |
|        |---------+---------+-----------------+
| TARGET | created |  quota  | created | quota |
---------------+---------+-----------------+ | SYSTEM | system | VM + DS | system | VM | | SELF | image | DS | image | DS | | NONE | image | DS | image | DS |
--------------------------------------------

Snapshots created at system ds (LN_TARGET/TM_TARGET) will be deleted
after a recreate.

(cherry picked from commit c5ad05fc60680cda2763973f5079598c2bf166e7)

Revision 978e1afa
Added by Carlos Martín almost 5 years ago

Bug #4022: Delete disk snapshotds for non-persistent images on delete --recreate

(cherry picked from commit 5ba0b121976964ce1f939d7a5f17c5b9182dd921)

Revision 34c8d17e
Added by Ruben S. Montero almost 5 years ago

bug #4022: Removes snapshots from non-shared persistent disks. Update
Datastore Quota management to deal with bulk updates. Hook on DM & LCM
resubmit and clean_up_vm to remove snapshots

(cherry picked from commit 6f02a240ec8f4be7ef232e8f8c584665e6747233)

Revision 38416b68
Added by Ruben S. Montero almost 5 years ago

bug #4022: Do not set snapshots on persistent images if its TM ln mode
is SYSTEM. Update quota update and snapshot survival after delete
--recreate according to:

-------------------------------------------+
|LN/CLONE|     PERSISTENT    |   NO PERSISTENT |
|        |---------+---------+-----------------+
| TARGET | created |  quota  | created | quota |
---------------+---------+-----------------+ | SYSTEM | system | VM + DS | system | VM | | SELF | image | DS | image | DS | | NONE | image | DS | image | DS |
--------------------------------------------

Snapshots created at system ds (LN_TARGET/TM_TARGET) will be deleted
after a recreate.

(cherry picked from commit c5ad05fc60680cda2763973f5079598c2bf166e7)

History

#1 Updated by Carlos Martín almost 5 years ago

  • Category set to Core & System
  • Status changed from Pending to New
  • Target version set to Release 4.14.2

Confirmed, disk snapshots are deleted from the storage but not from the VM information.

#2 Updated by Ruben S. Montero almost 5 years ago

  • Assignee set to Ruben S. Montero

#3 Updated by Ruben S. Montero almost 5 years ago

  • Status changed from New to Closed
  • Resolution set to fixed
  • Affected Versions OpenNebula 4.8 added

Also available in: Atom PDF