Skip to content

Vm Snapshot left in allocated state are not cleaned up #8424

Open
@kiranchavala

Description

@kiranchavala

ISSUE TYPE

Bug

COMPONENT NAME

Component: Bug

CLOUDSTACK VERSION

Cloudstack version 4.18, 4.19 rc1

SUMMARY

Vm Snapshot left in the allocated state are not cleaned up

Steps to reproduce the behaviour

  1. launch a vm with root disk

  2. Take a vm-snapshot

  3. Stop the management server when vm snapshot is in progress

  4. Navigate to the database, and check the snapshots table, the snapshot


*************************** 3. row ***************************
                 id: 3
               uuid: 1b83e2ef-10f6-48ee-a5d6-bed473083f8a
               name: i-2-40-VM_VS_20240102064443
       display_name: cv
        description: cv
              vm_id: 40
         account_id: 2
          domain_id: 1
service_offering_id: 1
   vm_snapshot_type: DiskAndMemory
              state: Allocated
             parent: NULL
            current: NULL
       update_count: 0
            updated: NULL
            created: 2024-01-02 06:44:43
            removed: NULL

  1. Start the Management server

  2. Navigate to the U

Storage > VM Snapshots >

There is no option to delete the vm snapshots which are struck in allocated state

Screenshot 2024-01-02 at 12 24 24 PM

Screenshot 2024-01-02 at 12 22 26 PM

Actual Behaviour

There is no option to delete the VM Snapshots which are in Allocated state

Expected Behaviour

Cloudstack should be able to delete the VM Snapshots in Allocated state or Cloudstack should mark the VMSnapshots in destoryed state and mark them removed so that it's not displayed in the UI

Metadata

Metadata

Type

No type

Projects

Status

Dev In Progress

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions