Bug 1321939 - Retired vm is deleted on provider
Summary: Retired vm is deleted on provider
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat CloudForms Management Engine
Classification: Red Hat
Component: Automate
Version: 5.5.0
Hardware: Unspecified
OS: Unspecified
unspecified
urgent
Target Milestone: GA
: 5.6.0
Assignee: Tina Fitzgerald
QA Contact: Dave Johnson
URL:
Whiteboard: retirement
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-03-29 12:19 UTC by Taras Lehinevych
Modified: 2016-08-03 01:32 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-03-29 16:33:34 UTC
Category: ---
Cloudforms Team: ---
Target Upstream Version:


Attachments (Terms of Use)
5.5.3.2 (11.60 KB, image/png)
2016-03-29 12:19 UTC, Taras Lehinevych
no flags Details
5.5.2.4 (199.37 KB, image/png)
2016-03-29 12:20 UTC, Taras Lehinevych
no flags Details

Description Taras Lehinevych 2016-03-29 12:19:51 UTC
Created attachment 1141235 [details]
5.5.3.2

Description of problem:
The VM after retirement is deleted and no longer exists. After relation refresh the VM won't apper.

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

How reproducible:
100%

Steps to Reproduce:
1. Choose any VM
2. Go to Lifecycle -> Retire VM now
3. Refresh page and wait

Actual results:
VM no longer exists, take a look at screen shot.

Expected results:
The VM shouldn't be deleted and the status of VM is Retired. 
This behavior is on 5.5.2.4, take a look on the another screen shot.

Additional info:

Comment 2 Taras Lehinevych 2016-03-29 12:20:19 UTC
Created attachment 1141236 [details]
5.5.2.4

Comment 3 Greg McCullough 2016-03-29 13:30:57 UTC
The latest default infrastructure retirement state-machine removes the VM from the provider.  There is also an "Unregister" state-machine provided which will remove the VM from the provider but not delete the backing files.

The state-machine configuration can be overridden to match the user's requirements by either commenting out the states they do not want to run (RemoveFromProvider/CheckRemovedFromProvider/DeleteFromVMDB) or replacing them with different methods.

Comment 4 Taras Lehinevych 2016-03-29 13:41:29 UTC
Hi Greg, 

If now it's gonna be default behavior available out of the box, the BZ could be close as NOTABUG.

Thanks,
-Taras

Comment 5 Tina Fitzgerald 2016-03-29 16:35:15 UTC
It is the default behavior to remove the VM from the provider during retirement.


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