Bug 1642044

Summary: [RFE] virt-p2v UI should give the option to shutdown after conversion is finished
Product: Red Hat Enterprise Linux 7 Reporter: Eric Lavarde <elavarde>
Component: libguestfsAssignee: Richard W.M. Jones <rjones>
Status: CLOSED ERRATA QA Contact: Virtualization Bugs <virt-bugs>
Severity: low Docs Contact:
Priority: unspecified    
Version: 7.5CC: juzhou, mtessun, mxie, mzhan, ptoscano, tzheng, xiaodwan, zili
Target Milestone: rcKeywords: FutureFeature
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard: P2V
Fixed In Version: libguestfs-1.40.1-1.el7 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-08-06 12:44:27 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:
Bug Depends On: 1621895    
Bug Blocks:    
Attachments:
Description Flags
virt-p2v UI
none
virt-p2v add a new button none

Description Eric Lavarde 2018-10-23 13:13:20 UTC
Description of problem:

Once virt-p2v is finished converting, the UI offers only the choice to do nothing or to reboot. In order to avoid having twice the same server on the network (possibly with same IP, FQDN and/or MAC address), it would be good to have an additional button to shutdown the physical server after conversion, before the converted VM is started.

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

Version     : 1.36.10
Release     : 1.el7

How reproducible:

RFE, always.

Steps to Reproduce:
1. boot from the p2v ISO
2. finish the migration process

Actual results:

There is only a Reboot button, you can press it or not.

Expected results:

Have a shutdown button in addition, to reach a similar approach as with the following kernel parameters:

       p2v.post=poweroff
       p2v.post=reboot

Additional info:

n/a

Comment 3 Pino Toscano 2018-11-05 17:32:20 UTC
Patch series posted:
https://www.redhat.com/archives/libguestfs/2018-November/msg00029.html

Comment 5 Pino Toscano 2019-01-17 11:49:20 UTC
This bug will be fixed by the rebase scheduled for RHEL 7.7, see bug 1621895.

Comment 7 liuzi 2019-03-01 07:54:46 UTC
Created attachment 1539747 [details]
virt-p2v UI

Comment 8 liuzi 2019-03-01 07:55:28 UTC
Verify bug with builds:
virt-p2v-1.40.2-1.el7.iso
libguestfs-1.40.2-1.el7.x86_64
virt-v2v-1.40.2-1.el7.x86_64

Steps:
1. Prepare a guest and boot from the virt-p2v ISO
2. After virt-p2v conversion,check if the UI have an additional button to shutdown the physical server after conversion,before the converted VM is started.

Result:
The UI have an additional button to shutdown the physical server after conversion,before the converted VM is started.pls refer to screenshot:virt-p2v UI.

Comment 9 liuzi 2019-04-23 09:47:11 UTC
Created attachment 1557518 [details]
virt-p2v add a new button

Comment 10 liuzi 2019-04-23 09:51:49 UTC
Verify bug with builds:
virt-p2v-1.40.2-1.el7.iso
virt-v2v-1.40.2-3.el7.x86_64
libguestfs-1.40.2-3.el7.x86_64

Steps:
1. Prepare a guest and boot from the virt-p2v ISO
2. After virt-p2v conversion,check if the UI have an additional button to shutdown the physical server after conversion,
3. Press the shutdown button and choose the shutdown option to check if the server can be turned off. please refer to screenshot2:p2v add a new button.

Result:The UI have an additional button to shutdown the physical server after conversion and the server can be turned off successfully.so change the bug from ON_QA to VERIFIED.

Comment 12 errata-xmlrpc 2019-08-06 12:44:27 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, 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-2019:2096