Bug 1390260

Summary: [RFE] [RHV] VM Reconfigure: Add a "Delete Backing" option to disk Delete
Product: Red Hat CloudForms Management Engine Reporter: Ilanit Stein <istein>
Component: ProvidersAssignee: Moti Asayag <masayag>
Status: CLOSED CURRENTRELEASE QA Contact: Ilanit Stein <istein>
Severity: high Docs Contact:
Priority: unspecified    
Version: 5.7.0CC: cpelland, jfrey, jhardy, obarenbo, oourfali, simaishi
Target Milestone: GAKeywords: FutureFeature, TestOnly
Target Release: 5.8.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: rhev
Fixed In Version: 5.8.0.0 Doc Type: Enhancement
Doc Text:
Previously, there was no option in CloudForms to permanently remove a virtual machine disk from a Red Hat Virtualization provider. The *Delete Backing* option has been added to the *Reconfigure Virtual Machine* screen to specify whether a to delete a disk from the Red Hat Virtualization data store completely, or to detach it from the virtual machine but keep the disk on the data store.
Story Points: ---
Clone Of:
: 1392979 (view as bug list) Environment:
Last Closed: 2017-06-12 17:39:01 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: RHEVM Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1392979    
Attachments:
Description Flags
VMWare delete disk screeshot none

Description Ilanit Stein 2016-10-31 15:06:39 UTC
Description of problem:
On CFME, for RHV, VM Reconfigure->Disk delete action, 
removes the disk from VM (disk detached),
and there is a missing option to remove the disk permanently.
Please add a "Delete Backing" option,
same as exist for VMWare (screen shot attached).

Version-Release number of selected component (if applicable):
CFME-5.7.0.6 Alpha3

Comment 1 Ilanit Stein 2016-10-31 15:07:59 UTC
Created attachment 1215844 [details]
VMWare delete disk screeshot

Comment 2 Ilanit Stein 2016-11-02 13:09:23 UTC
Adding doc text, and this new CFME/RHV UI flag should be documented.
Also same flag exist for CFME/VMWare, and should be documented as well.

Comment 3 Moti Asayag 2016-11-03 18:20:25 UTC
https://github.com/ManageIQ/manageiq/pull/12388

Comment 5 Ilanit Stein 2017-05-04 10:10:07 UTC
Verified on CFME-5.8.0.13/RHV-4.1.1.8:

For a down VM with 2 disks:
Delete 1 disk with Delete Backing: Off => This disk was detached 
Delete 1 disk with Delete Backing: On => This disk was removed

For an up VM with 2 disks:
Delete 1 disk with Delete Backing: Off => This disk was detached 
Delete 1 disk with Delete Backing: On => Operation failed, as expected - when VM is down, it is not possible to remove the disk in a single REST API operation.