Bug 1306471 - unable to bring VM out of retirement from details page
unable to bring VM out of retirement from details page
Product: Red Hat CloudForms Management Engine
Classification: Red Hat
Component: UI - OPS (Show other bugs)
Unspecified Unspecified
high Severity high
: GA
: 5.8.0
Assigned To: Roman Blanco
Mike Shriver
: TestOnly, ZStream
: 1422322 (view as bug list)
Depends On:
Blocks: 1306811 1346967 1427168
  Show dependency treegraph
Reported: 2016-02-10 17:59 EST by Colin Arnott
Modified: 2017-06-12 12:10 EDT (History)
11 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 1306811 1346967 1427168 (view as bug list)
Last Closed: 2017-06-12 12:10:29 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Colin Arnott 2016-02-10 17:59:03 EST
Description of problem:
for retired VMs, on details page the drop-down from Lifecycle shows `Set Retirement Date` greyed out, even for the superadmin. this prevents one from bringing a VM out of retirement.

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

How reproducible:

Steps to Reproduce:
1. retire a VM
2. go to that VMs details page
3. click `Lifecycle`

Actual results:
`Set Retirement Date` is greyed out

Expected results:
for at least the superadmin, this field should not be greyed out, even for retired VMs

the `Set Retirement Date` field is not greyed out, when any instances is selected on the inventory page
1. select the retired VM
2. click `Lifecycle`
3. click `Set Retirement Date`
4. bring VM out of retirement, by setting retirement date in future
Comment 2 Greg McCullough 2016-02-11 09:07:07 EST
Colin - Can you verify if the VM is orphaned or archived?  If either is true then the VM no longer exists on the provider and therefore cannot be un-retired.  Otherwise this is likely just a UI bug.
Comment 3 Colin Arnott 2016-02-11 09:37:28 EST
I do not think that the retirement state machine is fully evoked to remove the VM from the provider. As such, the VM is in a `Retired` state, not `Orphaned` or `Archived`, and thus can be successfully un-retired.
Comment 9 Roman Blanco 2016-06-23 07:29:04 EDT
Comment 10 Roman Blanco 2016-09-09 11:10:27 EDT
Fixed in new PR: https://github.com/ManageIQ/manageiq/pull/11151.
The previous one is closed.
Comment 15 Roman Blanco 2017-02-16 13:22:46 EST
Comment 16 Mike Shriver 2017-02-16 14:02:39 EST
*** Bug 1422322 has been marked as a duplicate of this bug. ***
Comment 18 Satoe Imaishi 2017-02-27 08:56:08 EST
PR: https://github.com/ManageIQ/manageiq-ui-classic/pull/453
Comment 20 Mike Shriver 2017-03-16 13:23:05 EDT
Testing in CFME, I'm seeing the lifecycle button disappear on the details page for retired VM's from rhevm and virtualcenter providers where the VM was completely removed from the provider.  Both details pages show 'Resources: Available' in the Properties table, but the Relationships show 'None'.

I thought the intent was for L:ifecycle->Set Retirement Date to be displayed even in the case where the VM is removed so that an admin can attempt to re-instate the VM.

Please comment on the intended UI behavior here for infrastructure VM's.
Comment 21 Mike Shriver 2017-03-16 15:59:17 EDT
Verification: The lifecycle Dropdown is working as intended/expected for cloud providers, allowing for resuming from retirement on the instance details page.
Comment 23 Roman Blanco 2017-03-22 14:54:13 EDT
> I thought the intent was for Lifecycle->Set Retirement Date to be displayed
> even in the case where the VM is removed so that an admin can attempt to re-instate the VM.

Right, this should be the correct behaviour.

Mike, could you send me steps how to let the "Lifecycle" button disappear, so I could check it?

Thank you,
Comment 24 Mike Shriver 2017-03-23 13:04:54 EDT
I believe the initial failure in verification on CFME was due to a navigation error where the 'Archived' VMs were selected in the accordion pane.

Verified behavior on CFME and CFME, the Lifecycle button was available and the 'Set Retirement Date' option enabled for cloud instances and infrastructure VMs retired through CFME.

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