Bug 1953253

Summary: Add "VM power state" filter to "Select VMs" page of "Migration plan" wizard
Product: Migration Toolkit for Virtualization Reporter: Nandini Chandra <nachandr>
Component: User ExperienceAssignee: vconzola
Status: CLOSED ERRATA QA Contact: Maayan Hadasi <mguetta>
Severity: medium Docs Contact: Avital Pinnick <apinnick>
Priority: medium    
Version: 2.0.0CC: apinnick, fdupont, istein, jortel, mguetta, mturley, vconzola
Target Milestone: ---Keywords: RFE
Target Release: 2.2.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-12-09 19:20:45 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
migration_plan_screenshot none

Description Nandini Chandra 2021-04-25 01:38:00 UTC
Description of problem:
-----------------------
The MTV UI doesn't display VM power status which makes it hard to select running VMs for warm migration.It would be extremely helpful if a new column showing VM power status would be added to the 'Select VMs' page during plan creation. We could then filter VMs on VM power status.


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


How reproducible:
-----------------


Steps to Reproduce:
-------------------
1.
2.
3.

Actual results:
---------------


Expected results:
----------------


Additional info:
----------------

Comment 1 Fabien Dupont 2021-04-27 08:22:17 UTC
A powered off VM would still benefit from warm migration as it allows starting/stopping the VM during the precopy phase.

Comment 2 vconzola 2021-05-11 17:25:27 UTC
This should be an RFE. @fdupont is this something we're adding for 2.1?

Comment 3 vconzola 2021-05-11 17:26:11 UTC
This should be an RFE. @fdupont is this something we're adding for 2.1?

Comment 4 Fabien Dupont 2021-05-11 19:52:49 UTC
It's indeed an RFE. Let's target it to 2.2 and get feedback on the warm migration feature first.

Comment 5 vconzola 2021-09-30 18:44:34 UTC
After talking with @mturley we are going to add the power state everywhere in the UI that we display the VM name.

Comment 6 Mike Turley 2021-09-30 19:04:39 UTC
Implementation thoughts:

We display VM names in these 3 places:
* In the table in the Select VMs step of the wizard
* In the list of VMs on a plan page (VMMigrationDetails)
* In the Plan Details modal, reachable from the actions kebab in the plans table (click on the number of VMs to see VM names in a popover)

I think we should create a reusable <VMNameWithPowerState /> or some such, that takes a VM object and renders both the icon+tooltip and the name. That way we don't have to duplicate the power state icon logic in 3 places.

Comment 7 Fabien Dupont 2021-10-13 06:33:28 UTC
Please verify with mtv-operator-bundle-2.2.0-43 / iib:123020, or later.

Comment 8 Maayan Hadasi 2021-10-17 09:00:29 UTC
Verified with mtv-operator-bundle-2.2.0-43 / iib:123020

UI displays 'Unknown power state' in the 3 places (described in comment #6)
Moving back to ASSIGNED

Comment 9 vconzola 2021-10-18 14:21:13 UTC
@mguetta Are you saying the power state is not being shown along with the VM name in the 3 places listed in comment 6? If so, please include screenshots, because this should be working now.

Comment 10 Mike Turley 2021-10-18 14:38:02 UTC
Vince, @mguetta, Mike and I found the issue here. The power state properties of a VM are not part of the new detail level 1 (stripped-down payload), and we must have been developing this against an older version of the API. @jortel can we add those properties to the VM object in detail=1? (`status` for ovirt VMs, `powerState` for vsphere VMs)

Comment 11 Maayan Hadasi 2021-10-20 08:02:52 UTC
Created attachment 1834974 [details]
migration_plan_screenshot

Thanks Mike for confirming the issue. I also uploaded a screenshot

Comment 12 Ilanit Stein 2021-10-20 09:01:11 UTC
Fixed in MTV-2.2.0-57

Comment 13 Fabien Dupont 2021-10-20 09:42:23 UTC
Vince, Mike, in the description, it was mentioned that it would be great to be able to filter VMs by power state. The PR only adds the power state icon, but not a new filter criteria. How complex would that be?

Comment 14 Mike Turley 2021-10-20 18:53:26 UTC
For posterity, the PR that fixed the Unknown Power State issue was https://github.com/konveyor/forklift-controller/pull/371.

I can add the filter criteria fairly easily, will do so today and run it by Vince.

Comment 15 Mike Turley 2021-10-20 20:44:09 UTC
https://github.com/konveyor/forklift-ui/pull/811

Comment 16 Mike Turley 2021-10-20 20:54:49 UTC
Filter feature has been merged and backported, this is ready to test again.

Comment 17 Maayan Hadasi 2021-11-01 13:21:42 UTC
Verified with MTV 2.2.0-69 / iib:130005

Comment 20 errata-xmlrpc 2021-12-09 19:20:45 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (MTV 2.2.0 Images), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHEA-2021:5066