Bug 1828289 - virt-v2v: error: libguestfs error: mountpoints: stat: /dev/centos/home: No such file or directory
Summary: virt-v2v: error: libguestfs error: mountpoints: stat: /dev/centos/home: No su...
Keywords:
Status: NEW
Alias: None
Product: Virtualization Tools
Classification: Community
Component: libguestfs
Version: unspecified
Hardware: x86_64
OS: Linux
unspecified
unspecified
Target Milestone: ---
Assignee: Richard W.M. Jones
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-04-27 14:06 UTC by savvy
Modified: 2020-05-11 08:50 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)
new set of logs. (948.97 KB, text/plain)
2020-05-08 01:53 UTC, savvy
no flags Details
attached the zip files of all the logs. (227.49 KB, application/zip)
2020-05-11 06:19 UTC, savvy
no flags Details

Description savvy 2020-04-27 14:06:38 UTC
Description of problem:
I had encountered the bug https://bugzilla.redhat.com/show_bug.cgi?id=1659211, as per the workaround mentioned I tried disabling/unselecting sda and selected sdb and sdc with resulted in "virt-v2v: error: libguestfs error: mountpoints: stat: /dev/centos/home: No such file or directory"

versions are detailed in the snapshot. 
Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 1 Pino Toscano 2020-04-27 14:14:43 UTC
As mentioned in the other bug, please provide all the details about the conversion:
- the version of virt-v2v
- the version of virt-p2v
- the hardware of the machine being converted
- the OS on the machine being converted
- the complete logs of the conversion

You can find more details in the documentation of virt-p2v:
http://libguestfs.org/virt-p2v.1.html
see the "HOW VIRT-P2V WORKS" section about which files to fetch from the conversion server after a failed conversion.

Comment 2 savvy 2020-04-27 14:29:40 UTC
I have shared it on mail as I couldn't attach all the details here.

Comment 3 Richard W.M. Jones 2020-04-27 14:46:17 UTC
I don't think I received the email; however if you cannot attach it,
then you can send (not huge) messages to libguestfs, referencing
this bug so we know what it refers to.  Note this is a public mailing list
and anything you send there will be seen by the whole world.

Comment 4 savvy 2020-04-27 15:00:25 UTC
I forward it to libguestfs with the bug id mentioned.

Comment 5 savvy 2020-05-08 01:53:52 UTC
Created attachment 1686368 [details]
new set of logs.

Added new set of logs.

Comment 6 Pino Toscano 2020-05-11 06:13:53 UTC
(In reply to savvy from comment #5)
> Created attachment 1686368 [details]
> new set of logs.
> 
> Added new set of logs.

This is only the virt-v2v conversion logs, and it shows:

+ lvm pvscan --cache --activate ay
  Couldn't find device with uuid qYh5Q0-zM9p-LLqV-tfqL-YN5a-z7Nt-BLzI7a.
  WARNING: Device for PV qYh5Q0-zM9p-LLqV-tfqL-YN5a-z7Nt-BLzI7a not found or rejected by a filter.
  Refusing refresh of partial LV centos/home. Use '--activationmode partial' to override.
  Refusing refresh of partial LV centos/home. Use '--activationmode partial' to override.
  Refusing refresh of partial LV centos/home. Use '--activationmode partial' to override.
  Refusing refresh of partial LV centos/home. Use '--activationmode partial' to override.
  Refusing refresh of partial LV centos/home. Use '--activationmode partial' to override.
  centos: refresh before autoactivation failed.
  Refusing activation of partial LV centos/home.  Use '--activationmode partial' to override.
  2 logical volume(s) in volume group "centos" now active
  centos: autoactivation failed.

Which explains why later the mount fails:

libguestfs: trace: v2v: mountpoints
guestfsd: <= mountpoints (0x93) request length 40 bytes
command: lvm 'lvs' '-o' 'vg_name,lv_name' '-S' 'lv_role=public && lv_skip_activation!=yes' '--noheadings' '--separator' '/'
command: lvm returned 0
command: lvm: stdout:
  centos/home
  centos/root
  centos/swap
command: lvm: stderr:
  WARNING: Device for PV qYh5Q0-zM9p-LLqV-tfqL-YN5a-z7Nt-BLzI7a not found or rejected by a filter.
  Couldn't find device with uuid qYh5Q0-zM9p-LLqV-tfqL-YN5a-z7Nt-BLzI7a.
guestfsd: error: stat: /dev/centos/home: No such file or directory

A possible explanation is that not all the disks are passed to virt-v2v. Sadly, we need the complete set of virt-p2v logs.
Please check http://libguestfs.org/virt-p2v.1.html#how-virt-p2v-works out and create a tarball with *all* the files in the directory on the conversion host after a failed migration.

Comment 7 savvy 2020-05-11 06:19:26 UTC
Created attachment 1687148 [details]
attached the zip files of all the logs.

attached the zip files of all the logs.

Comment 8 Pino Toscano 2020-05-11 07:45:56 UTC
OK, the additional data give more details now, although I still cannot figure out why one of the PV devices is not found.

Can you please boot the OS that you are try to convert, and paste the result of the following commands as root:
- vgs -v
- pvs -v
- lvs -v
- mdadm --examine
- ls -lh /dev
- ls -lh /dev/centos

Also, did you create the virt-p2v disk image on your own? It looks like you installed virt-p2v-maker on CentOS, then ran virt-p2v-make-disk -- is it correct?

Thanks again for the additional information.

Comment 9 savvy 2020-05-11 08:50:56 UTC
Pino, 

I just sent it in a mail, Let me know if not received. 

Regards,
Savitha


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