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 1167302 - virt-v2v: warning: ova hard disk has no parent controller when convert from a ova file
Summary: virt-v2v: warning: ova hard disk has no parent controller when convert from a...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: libguestfs
Version: 7.1
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: rc
: ---
Assignee: Richard W.M. Jones
QA Contact: Virtualization Bugs
URL:
Whiteboard: V2V
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-11-24 12:27 UTC by zhoujunqin
Modified: 2015-03-05 13:47 UTC (History)
7 users (show)

Fixed In Version: libguestfs-1.28.1-1.14.el7
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-03-05 13:47:35 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
test-bug1164853-new.ovf (8.55 KB, text/plain)
2014-11-24 12:27 UTC, zhoujunqin
no flags Details
detail debug info for virt-v2v (484.61 KB, text/plain)
2014-11-28 07:57 UTC, zhoujunqin
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2015:0303 0 normal SHIPPED_LIVE libguestfs bug fix and enhancement update 2015-03-05 17:34:44 UTC

Description zhoujunqin 2014-11-24 12:27:19 UTC
Created attachment 960719 [details]
test-bug1164853-new.ovf

Description of problem:
There a warning message showing when convert guest from 
virt-v2v: warning: ova hard disk has no parent controller, please report 
this as a bug supplying the *.ovf file extracted from the ova file.

Version-Release number of selected component (if applicable):
libguestfs-1.28.1-1.13.el7.x86_64
virt-v2v-1.28.1-1.13.el7.x86_64

How reproducible:
100%

Steps to Reproduce:
1. Export an ova file from vcenter server:
2. Use virt-v2v to convert RHEL image to libvirt image
# virt-v2v -i ova test-bug1164853-new.ova -o local -os /var/tmp -on test-bug1164853-new-test -of raw
[   0.0] Opening the source -i ova test-bug1164853-new.ova
tar: test-bug1164853-new.ovf: time stamp 2014-11-25 14:06:14 is 64229.192894865 s in the future
tar: test-bug1164853-new-disk1.vmdk: time stamp 2014-11-25 14:00:49 is 63891.937766292 s in the future
tar: test-bug1164853-new-file1.iso: time stamp 2014-11-25 14:06:14 is 64125.810109264 s in the future
tar: test-bug1164853-new.mf: time stamp 2014-11-25 14:06:14 is 64125.80225402 s in the future
virt-v2v: warning: ova hard disk has no parent controller, please report 
this as a bug supplying the *.ovf file extracted from the ova
[ 104.0] Creating an overlay to protect the source from being modified
[ 105.0] Opening the overlay
[ 250.0] Initializing the target -o local -os /var/tmp
[ 250.0] Inspecting the overlay
[ 258.0] Checking for sufficient free disk space in the guest
[ 258.0] Estimating space required on target for each disk
[ 258.0] Converting Red Hat Enterprise Linux Server release 6.6 (Santiago) to run on KVM
virt-v2v: This guest has virtio drivers installed.
[ 289.0] Mapping filesystem data to avoid copying unused and blank areas
[ 290.0] Closing the overlay
[ 290.0] Copying disk 1/1 to /var/tmp/test-bug1164853-new-test-sda (raw)
    (100.00/100%)
[ 343.0] Creating output metadata
[ 345.0] Finishing off


Actual results:
As $step2, a warning message showing during conversion:
virt-v2v: warning: ova hard disk has no parent controller, please report 
this as a bug supplying the *.ovf file extracted from the ova


Expected results:
No such warning message showing.

Additional info:
I will attach ova file.

Comment 2 Richard W.M. Jones 2014-11-24 16:02:05 UTC
The current code assumes that every <Item> element that
we read will contain a <Parent> link.  However the floppy
disk in this VM does not:

      <Item ovf:required="false">
        <rasd:AddressOnParent>0</rasd:AddressOnParent>
        <rasd:AutomaticAllocation>false</rasd:AutomaticAllocation>
        <rasd:Description>Floppy Drive</rasd:Description>
        <rasd:ElementName>Floppy drive 1</rasd:ElementName>
        <rasd:InstanceID>10</rasd:InstanceID>
        <rasd:ResourceSubType>vmware.floppy.remotedevice</rasd:ResourceSubType>
        <rasd:ResourceType>14</rasd:ResourceType>
      </Item>

(Note no <rasd:Parent> element)

Patch posted here:

https://www.redhat.com/archives/libguestfs/2014-November/msg00181.html

Comment 4 zhoujunqin 2014-11-28 07:55:22 UTC
Try to verify with new build:
libguestfs-1.28.1-1.14.el7.x86_64
virt-v2v-1.28.1-1.14.el7.x86_64

Steps to Reproduce:
1. Export an ova file from vcenter server:

2. Use virt-v2v to convert RHEL image to libvirt image

# virt-v2v -i ova test-bug1164853-new.ova -o local -os /var/tmp -on test-bug1164853-new-test -of raw -on test-bug1164853-new-test-2
[   0.0] Opening the source -i ova test-bug1164853-new.ova
[ 101.0] Creating an overlay to protect the source from being modified
[ 102.0] Opening the overlay
[ 107.0] Initializing the target -o local -os /var/tmp
[ 107.0] Inspecting the overlay
[ 117.0] Checking for sufficient free disk space in the guest
[ 117.0] Estimating space required on target for each disk
[ 117.0] Converting Red Hat Enterprise Linux Server release 6.6 (Santiago) to run on KVM
virt-v2v: This guest has virtio drivers installed.
[ 148.0] Mapping filesystem data to avoid copying unused and blank areas
[ 149.0] Closing the overlay
[ 149.0] Copying disk 1/1 to /var/tmp/test-bug1164853-new-test-2-sda (raw)
    (100.00/100%)
[ 199.0] Creating output metadata
[ 199.0] Finishing off

Result: There is no warning message showing during conversion, and after that, i can use virsh cmd define guest and guest can boot up correctly.

# virsh define /var/tmp/test-bug1164853-new-test-2.xml 
Domain test-bug1164853-new-test-2 defined from /var/tmp/test-bug1164853-new-test-2.xml

But i found in detail debug log, there are a lot of error message displayed, and i'm not sure whether it matters to verify this bug, please help me have a look, thanks.

Comment 5 zhoujunqin 2014-11-28 07:57:30 UTC
Created attachment 962395 [details]
detail debug info for virt-v2v

Comment 6 zhoujunqin 2014-11-28 07:58:42 UTC
Hi rjones, 
please have check Comment 4 and Comment 5 contents, thanks.

Comment 7 Richard W.M. Jones 2014-11-28 08:45:24 UTC
In general, if the conversion is successful and the guest boots up
and works, then you can ignore the debug log.  Is there anything
in particular in the debug log that you are concerned about?  It
all looks normal to me.

Comment 8 zhoujunqin 2014-11-28 09:22:20 UTC
(In reply to Richard W.M. Jones from comment #7)
> In general, if the conversion is successful and the guest boots up
> and works, then you can ignore the debug log.  Is there anything
> in particular in the debug log that you are concerned about?  It
> all looks normal to me.

Thanks for your quick reply, and according to above comments move this bug from ON_QA to VERIFIED.

Comment 10 errata-xmlrpc 2015-03-05 13:47:35 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/RHBA-2015-0303.html


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