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): cfme-5.5.2.4-1.el7cf.x86_64 How reproducible: very 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 Workaround: 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
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.
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.
https://github.com/ManageIQ/manageiq/pull/7707
Fixed in new PR: https://github.com/ManageIQ/manageiq/pull/11151. The previous one is closed.
https://github.com/ManageIQ/manageiq/pull/13947
*** Bug 1422322 has been marked as a duplicate of this bug. ***
closing https://github.com/ManageIQ/manageiq/pull/13947 new pr https://github.com/ManageIQ/manageiq/pull/14016
PR: https://github.com/ManageIQ/manageiq-ui-classic/pull/453
Testing in CFME 5.8.0.4, 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.
Verification: The lifecycle Dropdown is working as intended/expected for cloud providers, allowing for resuming from retirement on the instance details page.
> 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, Roman
I believe the initial failure in verification on CFME 5.8.0.4 was due to a navigation error where the 'Archived' VMs were selected in the accordion pane. Verified behavior on CFME 5.8.0.7 and CFME 5.8.0.4, the Lifecycle button was available and the 'Set Retirement Date' option enabled for cloud instances and infrastructure VMs retired through CFME.