Red Hat Bugzilla – Bug 1306471
unable to bring VM out of retirement from details page
Last modified: 2017-06-12 12:10:29 EDT
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):
Steps to Reproduce:
1. retire a VM
2. go to that VMs details page
3. click `Lifecycle`
`Set Retirement Date` is greyed out
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
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.
Fixed in new PR: https://github.com/ManageIQ/manageiq/pull/11151.
The previous one is closed.
*** Bug 1422322 has been marked as a duplicate of this bug. ***
new pr https://github.com/ManageIQ/manageiq/pull/14016
Testing in CFME 126.96.36.199, 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?
I believe the initial failure in verification on CFME 188.8.131.52 was due to a navigation error where the 'Archived' VMs were selected in the accordion pane.
Verified behavior on CFME 184.108.40.206 and CFME 220.127.116.11, the Lifecycle button was available and the 'Set Retirement Date' option enabled for cloud instances and infrastructure VMs retired through CFME.