Bug 1873022

Summary: ovirt_vm resource doesn't remove VM disk by default
Product: [oVirt] ovirt-distribution Reporter: Gal Zaidman <gzaidman>
Component: terraform-provider-ovirtAssignee: Gal Zaidman <gzaidman>
Status: CLOSED WONTFIX QA Contact: Lucie Leistnerova <lleistne>
Severity: high Docs Contact: Rolfe Dlugy-Hegwer <rdlugyhe>
Priority: urgent    
Version: 4.4.2CC: lleistne
Target Milestone: ---Flags: sbonazzo: ovirt-4.4?
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-10-01 07:51:49 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Integration RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1872646    

Description Gal Zaidman 2020-08-27 07:52:34 UTC
Description of problem:

When we try to remove a VM with terraform unless that VM was create from a template then the VM disk is not removed from the infrastructure.

This raises 2 problems:
1. It is inconsistent with the oVirt API, when you remove a VM with the oVirt API then unless a flag is specified then the VM disk will be removed.
2. Terraform should leave a clean infrastructure when removing resources, without any "extra" unmanaged resources.

Comment 1 Gal Zaidman 2020-10-01 07:51:49 UTC
The behavior is ok
decided to go in a different direction