RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1229386 - virt-p2v in non-GUI mode doesn't show any conversion progress or status
Summary: virt-p2v in non-GUI mode doesn't show any conversion progress or status
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: libguestfs
Version: 7.2
Hardware: x86_64
OS: Unspecified
high
high
Target Milestone: rc
: ---
Assignee: Richard W.M. Jones
QA Contact: Virtualization Bugs
URL:
Whiteboard: P2V
Depends On:
Blocks: 1288337
TreeView+ depends on / blocked
 
Reported: 2015-06-08 15:02 UTC by Richard W.M. Jones
Modified: 2016-11-03 17:53 UTC (History)
9 users (show)

Fixed In Version: libguestfs-1.32.5-10.el7
Doc Type: Bug Fix
Doc Text:
Clone Of: 1229262
Environment:
Last Closed: 2016-11-03 17:53:53 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
screenshot (1.40 MB, image/png)
2016-06-28 05:58 UTC, mxie@redhat.com
no flags Details
virt-p2v-1.32.5-10-no-gui (260.21 KB, image/jpeg)
2016-07-13 02:41 UTC, mxie@redhat.com
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2016:2576 0 normal SHIPPED_LIVE Moderate: libguestfs and virt-p2v security, bug fix, and enhancement update 2016-11-03 12:06:51 UTC

Description Richard W.M. Jones 2015-06-08 15:02:49 UTC
Description of problem:

When using no GUI mode, there is no visible indication that
conversion is happening (or has failed).

You have to run 'systemctl status p2v -l' to see the
state of conversion.

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

virt-p2v from git, or RHEL 7.1

How reproducible:

100%

Steps to Reproduce:

Please see my reproducer steps here:
https://bugzilla.redhat.com/show_bug.cgi?id=1229262#c2

Actual results:

virt-p2v runs invisibly (or fails invisibly), unless you study the log
files on the conversion server or use the systemctl command.

Expected results:

virt-p2v progress should be visible on screen.

Comment 2 Richard W.M. Jones 2015-06-09 19:25:47 UTC
I guess we're not going to be able to fix this for RHEL 7.2.
However I have updated the /etc/issue documentation to show
how the user can follow the progress of virt-p2v.  The
commit for that is:

154251b3f0312864c460533ae28a09483fb70051

Comment 4 Richard W.M. Jones 2016-06-17 12:16:14 UTC
Fixed in commit 762f24c1f3ffabe7412a08f4ca302c5f614aaa9c.

Comment 6 mxie@redhat.com 2016-06-28 05:57:12 UTC
I can reproduce the bug on build:
virt-p2v-1.28.1-1.49.1.el7

Try to verify the bug with builds
virt-p2v-1.32.5-6.el7
virt-v2v-1.32.5-6.el7.x86_64
libguestfs-1.32.5-6.el7.x86_64

Steps
1.Prepare virt-p2v-1.32.5-6.el7-no-gui boot file on pxe
2.Boot the source machine to the p2v no gui file, then the conversion could be start automatically
3.Will load some conversion info at the convert interface, but the conversion showing will stop at "perf interrupt...." after waiting for a long time, pls refer to screenshot, there is no complete percentage like p2v GUI mode
4.the conversion could finished successfully

Hi rjones,

As step3's result, I think p2v conversion has no complete percentage at no gui mode will confuse customer whether the conversion is started or not, could you help to fix this problem

Comment 7 mxie@redhat.com 2016-06-28 05:58:50 UTC
Created attachment 1173246 [details]
screenshot

Comment 8 Richard W.M. Jones 2016-06-28 08:16:23 UTC
We're never going to have an overall percentage.  However there should
be a lot more output than is shown in the screenshot.

On a serial console I see extra messages like:

[   44.254435] launch-virt-p2v[772]: virt-p2v: Opening data connection for sdb ...
[   44.255421] launch-virt-p2v[772]: virt-p2v: remote log directory location: /tmp/virt-p2v-20160628-8h5khs0m
[   44.257227] launch-virt-p2v[772]: virt-p2v: Setting up the control connection ...
[   44.257975] launch-virt-p2v[772]: virt-p2v: Doing conversion ...
[   44.259635] launch-virt-p2v[772]: [   0.0] Opening the source -i libvirtxml physical.xml
[   44.262383] launch-virt-p2v[772]: virt-v2v: warning: <target dev='sr0'> was ignored because the device name
[   44.263235] launch-virt-p2v[772]: could not be recognized
[   44.263919] launch-virt-p2v[772]: [   0.0] Creating an overlay to protect the source from being modified

etc etc

Does it eventually show any further messages on the console?  It
might just be a bit slow.

Anyway I will try without a serial console later.

Comment 9 Richard W.M. Jones 2016-06-28 11:31:09 UTC
I see this is a bug with the messages not being flushed properly.
I have pushed the following commit to fix it:

https://github.com/libguestfs/libguestfs/commit/cc38d62fdfff9dd72ecb379038e99727077f639d

Comment 12 mxie@redhat.com 2016-07-13 02:39:05 UTC
Verify the bug again with build:
virt-p2v-1.32.5.10-el7

Steps:
1.Prepare virt-p2v-1.32.5-10.el7-no-gui boot file on pxe
2.Boot the source machine to the p2v no gui file, then the conversion could be start automatically
3.At the conversion interface,below info was added in conversion info

virt-p2v:Doing conversion...


4.After conversion was finished,below info was added in end of conversion info, details pls refer to screenshot

Conversion finished successfully


Result now:
There is clear conversion info at p2v no GUI mode now, so the bug has been fixed


So move the bug from ON_QA to VERIFIED

Comment 13 mxie@redhat.com 2016-07-13 02:41:15 UTC
Created attachment 1179043 [details]
virt-p2v-1.32.5-10-no-gui

Comment 15 errata-xmlrpc 2016-11-03 17:53:53 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://rhn.redhat.com/errata/RHSA-2016-2576.html


Note You need to log in before you can comment on or make changes to this bug.