Bug 1072926

Summary: libguestfs refuse to mount the root partition
Product: Red Hat Enterprise Linux 6 Reporter: Ulhas Surse <usurse>
Component: libguestfsAssignee: Richard W.M. Jones <rjones>
Status: CLOSED DUPLICATE QA Contact: Virtualization Bugs <virt-bugs>
Severity: medium Docs Contact:
Priority: medium    
Version: 6.0CC: acathrow, iheim, lpeer, mbooth, ptoscano, Rhev-m-bugs, yeylon
Target Milestone: pre-dev-freeze   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-03-06 10:16:33 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:

Description Ulhas Surse 2014-03-05 11:59:03 UTC
- Description of problem:
Libguestfs starts successfully with the backing file. Now the most severe issue is an inability to mount LV with a “/” filesystem.

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

- Actual results:
><fs> list-filesystems 
libguestfs: trace: list_filesystems 
libguestfs: trace: list_devices 
libguestfs: send_to_daemon: 44 bytes: 00 00 00 28 | 20 00 f5 f5 | 00 00 00 04 | 00 00 00 07 | 00 00 00 00 | ... 
guestfsd: main_loop: new request, len 0x28 
guestfsd: main_loop: proc 7 (list_devices) took 0.00 seconds 
libguestfs: recv_from_daemon: 56 bytes: 20 00 f5 f5 | 00 00 00 04 | 00 00 00 07 | 00 00 00 01 | 00 12 34 00 | ... 
libguestfs: trace: list_devices = ["/dev/vda"] 
libguestfs: trace: list_partitions 
libguestfs: send_to_daemon: 44 bytes: 00 00 00 28 | 20 00 f5 f5 | 00 00 00 04 | 00 00 00 08 | 00 00 00 00 | ... 
guestfsd: main_loop: new request, len 0x28 
guestfsd: main_loop: proc 8 (list_partitions) took 0.00 seconds 
libguestfs: recv_from_daemon: 76 bytes: 20 00 f5 f5 | 00 00 00 04 | 00 00 00 08 | 00 00 00 01 | 00 12 34 01 | ... 
libguestfs: trace: list_partitions = ["/dev/vda1", "/dev/vda2"] 
libguestfs: trace: list_md_devices 
libguestfs: send_to_daemon: 44 bytes: 00 00 00 28 | 20 00 f5 f5 | 00 00 00 04 | 00 00 01 2c | 00 00 00 00 | ... 
guestfsd: main_loop: new request, len 0x28 
guestfsd: main_loop: proc 300 (list_md_devices) took 0.00 seconds 
libguestfs: recv_from_daemon: 44 bytes: 20 00 f5 f5 | 00 00 00 04 | 00 00 01 2c | 00 00 00 01 | 00 12 34 02 | ... 
libguestfs: trace: list_md_devices = [] 
libguestfs: trace: part_to_dev "/dev/vda1" 
libguestfs: send_to_daemon: 60 bytes: 00 00 00 38 | 20 00 f5 f5 | 00 00 00 04 | 00 00 01 10 | 00 00 00 00 | ... 
guestfsd: main_loop: new request, len 0x38 
guestfsd: main_loop: proc 272 (part_to_dev) took 0.00 seconds 
libguestfs: recv_from_daemon: 52 bytes: 20 00 f5 f5 | 00 00 00 04 | 00 00 01 10 | 00 00 00 01 | 00 12 34 03 | ... 
libguestfs: trace: part_to_dev = "/dev/vda" 
libguestfs: trace: part_to_dev "/dev/vda2" 
libguestfs: send_to_daemon: 60 bytes: 00 00 00 38 | 20 00 f5 f5 | 00 00 00 04 | 00 00 01 10 | 00 00 00 00 | ... 
guestfsd: main_loop: new request, len 0x38 
guestfsd: main_loop: proc 272 (part_to_dev) took 0.00 seconds 
libguestfs: recv_from_daemon: 52 bytes: 20 00 f5 f5 | 00 00 00 04 | 00 00 01 10 | 00 00 00 01 | 00 12 34 04 | ... 
libguestfs: trace: part_to_dev = "/dev/vda" 
libguestfs: trace: vfs_type "/dev/vda1" 
libguestfs: send_to_daemon: 60 bytes: 00 00 00 38 | 20 00 f5 f5 | 00 00 00 04 | 00 00 00 c6 | 00 00 00 00 | ... 
guestfsd: main_loop: new request, len 0x38 
blkid -c /dev/null -o value -s TYPE /dev/vda1 
libguestfs: recv_from_daemon: 48 bytes: 20 00 f5 f5 | 00 00 00 04 | 00 00 00 c6 | 00 00 00 01 | 00 12 34 05 | ... 
libguestfs: trace: vfs_type = "ext2" 
libguestfs: trace: vfs_type "/dev/vda2" 
libguestfs: send_to_daemon: 60 bytes: 00 00 00 38 | 20 00 f5 f5 | 00 00 00 04 | 00 00 00 c6 | 00 00 00 00 | ... 
guestfsd: main_loop: proc 198 (vfs_type) took 0.00 seconds 
guestfsd: main_loop: new request, len 0x38 
blkid -c /dev/null -o value -s TYPE /dev/vda2 
libguestfs: recv_from_daemon: 56 bytes: 20 00 f5 f5 | 00 00 00 04 | 00 00 00 c6 | 00 00 00 01 | 00 12 34 06 | ... 
libguestfs: trace: vfs_type = "LVM2_member" 
libguestfs: trace: available "lvm2" 
libguestfs: send_to_daemon: 56 bytes: 00 00 00 34 | 20 00 f5 f5 | 00 00 00 04 | 00 00 00 d8 | 00 00 00 00 | ... 
guestfsd: main_loop: proc 198 (vfs_type) took 0.00 seconds 
guestfsd: main_loop: new request, len 0x34 
guestfsd: main_loop: proc 216 (available) took 0.00 seconds 
libguestfs: recv_from_daemon: 40 bytes: 20 00 f5 f5 | 00 00 00 04 | 00 00 00 d8 | 00 00 00 01 | 00 12 34 07 | ... 
libguestfs: trace: available = 0 
libguestfs: trace: lvs 
libguestfs: send_to_daemon: 44 bytes: 00 00 00 28 | 20 00 f5 f5 | 00 00 00 04 | 00 00 00 0b | 00 00 00 00 | ... 
guestfsd: main_loop: new request, len 0x28 
lvm lvs -o vg_name,lv_name --noheadings --separator / 
  Couldn't find device with uuid bmkRlF-QnXW-JOp9-CcG6-nIXO-vZ81-guDc7d. 
guestfsd: main_loop: proc 11 (lvs) took 0.01 seconds 
libguestfs: recv_from_daemon: 100 bytes: 20 00 f5 f5 | 00 00 00 04 | 00 00 00 0b | 00 00 00 01 | 00 12 34 08 | ... 
libguestfs: trace: lvs = ["/dev/vg_kojit/lv_root", "/dev/vg_kojit/lv_swap"] 
libguestfs: trace: vfs_type "/dev/vg_kojit/lv_root" 
libguestfs: send_to_daemon: 72 bytes: 00 00 00 44 | 20 00 f5 f5 | 00 00 00 04 | 00 00 00 c6 | 00 00 00 00 | ... 
guestfsd: main_loop: new request, len 0x44 
/dev/vg_kojit/lv_root: No such file or directory 
guestfsd: error: vfs_type_stub: /dev/vg_kojit/lv_root: No such file or directory 
guestfsd: main_loop: proc 198 (vfs_type) took 0.00 seconds 
libguestfs: recv_from_daemon: 120 bytes: 20 00 f5 f5 | 00 00 00 04 | 00 00 00 c6 | 00 00 00 01 | 00 12 34 09 | ... 
libguestfs: trace: vfs_type = NULL (error) 
libguestfs: trace: vfs_type "/dev/vg_kojit/lv_swap" 
libguestfs: send_to_daemon: 72 bytes: 00 00 00 44 | 20 00 f5 f5 | 00 00 00 04 | 00 00 00 c6 | 00 00 00 00 | ... 
guestfsd: main_loop: new request, len 0x44 
blkid -c /dev/null -o value -s TYPE /dev/vg_kojit/lv_swap 
libguestfs: recv_from_daemon: 48 bytes: 20 00 f5 f5 | 00 00 00 04 | 00 00 00 c6 | 00 00 00 01 | 00 12 34 0a | ... 
libguestfs: trace: vfs_type = "swap" 
libguestfs: trace: list_filesystems = ["/dev/vda1", "ext2", "/dev/vg_kojit/lv_root", "unknown", "/dev/vg_kojit/lv_swap", "swap"] 
/dev/vda1: ext2 
/dev/vg_kojit/lv_root: unknown 
/dev/vg_kojit/lv_swap: swap 
><fs> 
><fs> 
><fs> 
><fs> mount /dev/vg_kojit/lv_root / 
libguestfs: trace: mount "/dev/vg_kojit/lv_root" "/" 
libguestfs: send_to_daemon: 80 bytes: 00 00 00 4c | 20 00 f5 f5 | 00 00 00 04 | 00 00 00 01 | 00 00 00 00 | ... 
guestfsd: main_loop: proc 198 (vfs_type) took 0.00 seconds 
guestfsd: main_loop: new request, len 0x4c 
/dev/vg_kojit/lv_root: No such file or directory 
guestfsd: error: mount_stub: /dev/vg_kojit/lv_root: No such file or directory 
guestfsd: main_loop: proc 1 (mount) took 0.00 seconds 
libguestfs: recv_from_daemon: 116 bytes: 20 00 f5 f5 | 00 00 00 04 | 00 00 00 01 | 00 00 00 01 | 00 12 34 0b | ... 
libguestfs: trace: mount = -1 (error) 
libguestfs: error: mount: mount_stub: /dev/vg_kojit/lv_root: No such file or directory 
><fs> 

Expected results:
No error while mounting root partition

Additional info: