[PR #437] [MERGED] force delete VM with existing snapshots #655

Closed
opened 2026-02-27 16:40:02 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/retspen/webvirtmgr/pull/437
Author: @Nowaker
Created: 9/20/2014
Status: Merged
Merged: 3/11/2015
Merged by: @retspen

Base: masterHead: feature/force-undefine-domain-with-snapshots


📝 Commits (1)

  • 99c4425 force delete VM with existing snapshots

📊 Changes

1 file changed (+3 additions, -2 deletions)

View changed files

📝 vrtManager/instance.py (+3 -2)

📄 Description

Requested operation is not valid: cannot delete inactive domain with 1 snapshots

Deleting the snapshots manually before being able to delete the VM doesn't much make sense. ;)

But what's more important, external snapshots (not supported by WVM itself) can't be deleted (libvirt #1044691). That said, it's inevitable to pass VIR_DOMAIN_UNDEFINE_SNAPSHOTS_METADATA to successfully delete a VM.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/retspen/webvirtmgr/pull/437 **Author:** [@Nowaker](https://github.com/Nowaker) **Created:** 9/20/2014 **Status:** ✅ Merged **Merged:** 3/11/2015 **Merged by:** [@retspen](https://github.com/retspen) **Base:** `master` ← **Head:** `feature/force-undefine-domain-with-snapshots` --- ### 📝 Commits (1) - [`99c4425`](https://github.com/retspen/webvirtmgr/commit/99c4425c7d755c5330164fe285f23d351b089842) force delete VM with existing snapshots ### 📊 Changes **1 file changed** (+3 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `vrtManager/instance.py` (+3 -2) </details> ### 📄 Description > Requested operation is not valid: cannot delete inactive domain with 1 snapshots Deleting the snapshots manually before being able to delete the VM doesn't much make sense. ;) But what's more important, external snapshots (not supported by WVM itself) can't be deleted ([libvirt #1044691](https://bugzilla.redhat.com/show_bug.cgi?id=1044691#c11)). That said, it's inevitable to pass `VIR_DOMAIN_UNDEFINE_SNAPSHOTS_METADATA` to successfully delete a VM. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-27 16:40:02 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/webvirtmgr#655
No description provided.