Red Hat Bugzilla – Bug 1012110
libguestfs fails to parse /var/lib/rpm/Name during inspection
Last modified: 2013-10-19 17:52:04 EDT
Created attachment 802985 [details]
Description of problem:
While trying to convert a RHEL 6.4 server using virt-p2v , the following error is noticed:
virt-v2v: Died at /usr/bin/virt-p2v-server line 404, <> line 7.
Uploading the debug log of this process.
The error seems to be:
libguestfs: read_db_dump command: db_dump -k '/tmp/libguestfsLahEFY/3-rpm_Name'
libguestfs: trace: inspect_list_applications = NULL (error)
(from parsing /var/lib/rpm/Name from the disk image). Actually
there are two problems here, firstly that this fails and secondly
that there is no error message set by libguestfs.
Setting to NEEDINFO because Anitha has promised to
get the /var/lib/rpm/Name file from the origin.
(In reply to Richard W.M. Jones from comment #1)
> Setting to NEEDINFO because Anitha has promised to
> get the /var/lib/rpm/Name file from the origin.
I haven't heard back from the Customer yet on this request. Will upload the data as soon as they send it across.
I'm baffled by what could cause this bug. I suspect the actual
libguestfs error is being hidden somewhere.
What versions of the following packages does the customer
have installed on the v2v conversion server?
(Do we have a sosreport?)
It would also be cool if they could run the following
commands on the conversion server. Note that 'Name' is
the Name file that they supplied to us (also attached to
db_dump -k Name > /tmp/output
and note down the exit code ($?) and send us the output file.
This request was not resolved in time for the current release.
Red Hat invites you to ask your support representative to
propose this request, if still desired, for consideration in
the next release of Red Hat Enterprise Linux.
Upstream commit d6e5a6546afeb1554e676e5a4197002559f6cde7
uses AC_PATH_PROG(S) so that the paths to db_dump etc are
encoded in the binary. This should mean this kind of bug
cannot happen (in libguestfs >= 1.25).