Bug 1504267 - [RFE] compute resource VM "delete" should allow for alternate definitions of "delete"
Summary: [RFE] compute resource VM "delete" should allow for alternate definitions of ...
Keywords:
Status: CLOSED DUPLICATE of bug 1549761
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Compute Resources
Version: Unspecified
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: Unspecified
Assignee: satellite6-bugs
QA Contact: Lukáš Hellebrandt
URL:
Whiteboard:
: 1310150 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-10-19 20:11 UTC by Anthony Green
Modified: 2019-08-12 14:08 UTC (History)
8 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-01-28 11:27:16 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 22492 0 Normal New Warn about deleting VM disk 2020-11-27 01:06:07 UTC
Red Hat Bugzilla 1549761 0 urgent CLOSED [RFE] Flag to avoid deletion from compute resource of an host associated when it's removed from satellite 2022-03-13 14:44:15 UTC

Internal Links: 1549761

Description Anthony Green 2017-10-19 20:11:02 UTC
Description of problem:

Compute resources are good, but the definition of "delete" should be configurable.  Many enterprise customers don't delete VM disk images when they delete the VM container.  They age out the disk images after the fact.
However, when you delete a VM with Satellite, and that VM is tied to a VMware compute resource, Satellite will tell VMware to delete the on disk image as well.  

Can we allow users to configure the compute resource to keep the disk images instead of deleting them?

It's just too easy to completely delete a VM from the Satellite console.

Even having a warning dialog when you delete to let people know that the VM _including_ the disk image is being deleted, and not just disassociated from the Satellite.


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


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 1 Marek Hulan 2017-10-20 08:51:11 UTC
You could power off the VM from Satellite and then just instead of deleting it, you can disassociate it. Once you do that, you can safely delete host in Satellite and the VM remains untouched. The power off is optional of course. Later you could associate the VM back to Satellite if you want to restore it. 

Would that be a good solution or you prefer to actually delete the VM and just keep the disk? In such case, would it make sense as a global setting (affecting all organizations) or configurable per compute-resource?

Comment 2 Anthony Green 2017-11-14 14:08:49 UTC
I think it's OK to actually delete, but there should be a dialog box that comes up to tell users that it really WILL delete the VM and storage, and if they want to continue, then should be forced to type the name of the VM into a textbox.  It should also suggest that the user disassociate to remove the VM from Satellite but not delete the VM.

Comment 3 Bryan Kearney 2018-01-18 19:31:12 UTC
*** Bug 1310150 has been marked as a duplicate of this bug. ***

Comment 4 Daniel Lobato Garcia 2018-02-02 11:11:32 UTC
Let's mark as triaged and clone the issue upstream. - we don't warn users enough about disk deletion w/ VM deletion.

Comment 5 Daniel Lobato Garcia 2018-02-02 11:12:46 UTC
Created redmine issue http://projects.theforeman.org/issues/22492 from this bug

Comment 6 Marek Hulan 2019-01-28 11:27:16 UTC
We believe this has been implemented as part of BZ 1549761, please reopen if we missed something.

*** This bug has been marked as a duplicate of bug 1549761 ***


Note You need to log in before you can comment on or make changes to this bug.