Description of problem: When you use power operation shutdown guest on RHV VM, the Last Boot Time operation is lost without any good reason. Version-Release number of selected component (if applicable): CFME 5.9.2.3 RHV 4.2.2.5 How reproducible: 100 % Steps to Reproduce: 1. Have a CFME appliance with RHV as infrastructure provider 2. Provision a VM from a template on RHV provider 3. Wait for that VM to be provision and make sure it's up. Take note of Power Management -> Last Boot Time 4. Go to VM's detail page -> Power -> Shutdown Guest. Wait for the VM to be shut down. 5. Refresh VM's details page and inspect Power Management -> Last Boot Time Actual results: The content of Last Boot Time is "N/A". Expected results: Even though VM is not up, there's no reason to lose information about time of VM's last boot. Therefore I'd expect it to be available. Additional info:
Hi, I can still able to reproduce this issue on version: 5.10.6.0 Hence reopening this BZ. Thanks, Ganesh
Discussed with @Roberto, Observations: ============= 1] For rhv43 provider, If Vm is in off state(by shutdown or power off operations) then we lose 'Last Boot Time' always. And it changes to 'N/A' 2] Also checked with VMWare provider, In this case, sometimes we lose 'Last Boot Time' for Vm which is in 'Off' power state. This is not always reproducible.
https://github.com/ManageIQ/manageiq-providers-ovirt/pull/403
New commit detected on ManageIQ/manageiq-providers-ovirt/master: https://github.com/ManageIQ/manageiq-providers-ovirt/commit/45d0ab74b0dfbcf716d50732d3f08a6dc95cf878 commit 45d0ab74b0dfbcf716d50732d3f08a6dc95cf878 Author: Roberto Ciatti <gekorob.github.com> AuthorDate: Fri Aug 30 10:16:16 2019 -0400 Commit: Roberto Ciatti <gekorob.github.com> CommitDate: Fri Aug 30 10:16:16 2019 -0400 Preserving Last Boot time When a vm goes in down status, the start_time info is missing and we can avoid to overwrite with a nil the information we may already have. Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=1571895 app/models/manageiq/providers/redhat/inventory/parser/infra_manager.rb | 14 +- spec/models/manageiq/providers/redhat/infra_manager/refresh/refresher_4_async_graph_spec.rb | 17 + 2 files changed, 27 insertions(+), 4 deletions(-)