Bug 1072898

Summary: inspect-os fails to find any operating systems
Product: Red Hat Enterprise Linux 6 Reporter: Ulhas Surse <usurse>
Component: libguestfsAssignee: Richard W.M. Jones <rjones>
Status: CLOSED CANTFIX QA Contact: Virtualization Bugs <virt-bugs>
Severity: medium Docs Contact:
Priority: medium    
Version: 6.0CC: acathrow, bfan, dshah, iheim, lpeer, mbooth, ptoscano, Rhev-m-bugs, usurse, 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-06-20 13:23:25 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 10:57:56 UTC
- Description of problem:
Inspection doesn't recognize guest OS.

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

- Actual results:

 inspect-os 
libguestfs: trace: inspect_os 
libguestfs: trace: umount_all 
libguestfs: send_to_daemon: 44 bytes: 00 00 00 28 | 20 00 f5 f5 | 00 00 00 04 | 00 00 00 2f | 00 00 00 00 | ... 
guestfsd: main_loop: new request, len 0x28 
guestfsd: main_loop: proc 47 (umount_all) took 0.00 seconds 
libguestfs: recv_from_daemon: 40 bytes: 20 00 f5 f5 | 00 00 00 04 | 00 00 00 2f | 00 00 00 01 | 00 12 34 00 | ... 
libguestfs: trace: umount_all = 0 
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 01 | ... 
libguestfs: trace: list_devices = ["/dev/vda"] 
libguestfs: trace: vfs_type "/dev/vda" 
libguestfs: send_to_daemon: 56 bytes: 00 00 00 34 | 20 00 f5 f5 | 00 00 00 04 | 00 00 00 c6 | 00 00 00 00 | ... 
guestfsd: main_loop: new request, len 0x34 
blkid -c /dev/null -o value -s TYPE /dev/vda 
libguestfs: recv_from_daemon: 44 bytes: 20 00 f5 f5 | 00 00 00 04 | 00 00 00 c6 | 00 00 00 01 | 00 12 34 02 | ... 
libguestfs: trace: vfs_type = "" 
libguestfs: check_for_filesystem_on: /dev/vda 1 0 () 
libguestfs: trace: mount_ro "/dev/vda" "/" 
libguestfs: send_to_daemon: 64 bytes: 00 00 00 3c | 20 00 f5 f5 | 00 00 00 04 | 00 00 00 49 | 00 00 00 00 | ... 
guestfsd: main_loop: proc 198 (vfs_type) took 0.01 seconds 
guestfsd: main_loop: new request, len 0x3c 
mount -o ro /dev/vda /sysroot/ 
mount: you must specify the filesystem type 
guestfsd: error: /dev/vda on / (options: 'ro'): mount: you must specify the filesystem type 
guestfsd: main_loop: proc 73 (mount_ro) took 0.00 seconds 
libguestfs: recv_from_daemon: 124 bytes: 20 00 f5 f5 | 00 00 00 04 | 00 00 00 49 | 00 00 00 01 | 00 12 34 03 | ... 
libguestfs: trace: mount_ro = -1 (error) 
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 04 | ... 
libguestfs: trace: list_partitions = ["/dev/vda1", "/dev/vda2"] 
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: check_for_filesystem_on: /dev/vda1 0 1 (ext2) 
libguestfs: trace: mount_ro "/dev/vda1" "/" 
libguestfs: send_to_daemon: 68 bytes: 00 00 00 40 | 20 00 f5 f5 | 00 00 00 04 | 00 00 00 49 | 00 00 00 00 | ... 
guestfsd: main_loop: proc 198 (vfs_type) took 0.00 seconds 
guestfsd: main_loop: new request, len 0x40 
mount -o ro /dev/vda1 /sysroot/ 
libguestfs: recv_from_daemon: 40 bytes: 20 00 f5 f5 | 00 00 00 04 | 00 00 00 49 | 00 00 00 01 | 00 12 34 06 | ... 
libguestfs: trace: mount_ro = 0 
libguestfs: trace: is_dir "/etc" 
libguestfs: send_to_daemon: 52 bytes: 00 00 00 30 | 20 00 f5 f5 | 00 00 00 04 | 00 00 00 26 | 00 00 00 00 | ... 
guestfsd: main_loop: proc 73 (mount_ro) took 0.00 seconds 
guestfsd: main_loop: new request, len 0x30 
guestfsd: main_loop: proc 38 (is_dir) took 0.00 seconds 
libguestfs: recv_from_daemon: 44 bytes: 20 00 f5 f5 | 00 00 00 04 | 00 00 00 26 | 00 00 00 01 | 00 12 34 07 | ... 
libguestfs: trace: is_dir = 0 
libguestfs: trace: is_dir "/bin" 
libguestfs: send_to_daemon: 52 bytes: 00 00 00 30 | 20 00 f5 f5 | 00 00 00 04 | 00 00 00 26 | 00 00 00 00 | ... 
guestfsd: main_loop: new request, len 0x30 
guestfsd: main_loop: proc 38 (is_dir) took 0.00 seconds 
libguestfs: recv_from_daemon: 44 bytes: 20 00 f5 f5 | 00 00 00 04 | 00 00 00 26 | 00 00 00 01 | 00 12 34 08 | ... 
libguestfs: trace: is_dir = 0 
libguestfs: trace: is_dir "/share" 
libguestfs: send_to_daemon: 56 bytes: 00 00 00 34 | 20 00 f5 f5 | 00 00 00 04 | 00 00 00 26 | 00 00 00 00 | ... 
guestfsd: main_loop: new request, len 0x34 
guestfsd: main_loop: proc 38 (is_dir) took 0.00 seconds 
libguestfs: recv_from_daemon: 44 bytes: 20 00 f5 f5 | 00 00 00 04 | 00 00 00 26 | 00 00 00 01 | 00 12 34 09 | ... 
libguestfs: trace: is_dir = 0 
libguestfs: trace: is_file "/grub/menu.lst" 
libguestfs: send_to_daemon: 64 bytes: 00 00 00 3c | 20 00 f5 f5 | 00 00 00 04 | 00 00 00 25 | 00 00 00 00 | ... 
guestfsd: main_loop: new request, len 0x3c 
libguestfs: recv_from_daemon: 44 bytes: 20 00 f5 f5 | 00 00 00 04 | 00 00 00 25 | 00 00 00 01 | 00 12 34 0a | ... 
libguestfs: trace: is_file = 0 
libguestfs: trace: is_file "/grub/grub.conf" 
libguestfs: send_to_daemon: 64 bytes: 00 00 00 3c | 20 00 f5 f5 | 00 00 00 04 | 00 00 00 25 | 00 00 00 00 | ... 
guestfsd: main_loop: proc 37 (is_file) took 0.01 seconds 
guestfsd: main_loop: new request, len 0x3c 
guestfsd: main_loop: proc 37 (is_file) took 0.00 seconds 
libguestfs: recv_from_daemon: 44 bytes: 20 00 f5 f5 | 00 00 00 04 | 00 00 00 25 | 00 00 00 01 | 00 12 34 0b | ... 
libguestfs: trace: is_file = 1 
libguestfs: trace: umount_all 
libguestfs: send_to_daemon: 44 bytes: 00 00 00 28 | 20 00 f5 f5 | 00 00 00 04 | 00 00 00 2f | 00 00 00 00 | ... 
guestfsd: main_loop: new request, len 0x28 
umount /sysroot 
libguestfs: recv_from_daemon: 40 bytes: 20 00 f5 f5 | 00 00 00 04 | 00 00 00 2f | 00 00 00 01 | 00 12 34 0c | ... 
libguestfs: trace: umount_all = 0 
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 47 (umount_all) 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 0d | ... 
libguestfs: trace: vfs_type = "LVM2_member" 
libguestfs: check_for_filesystem_on: /dev/vda2 0 2 (LVM2_member) 
libguestfs: trace: mount_ro "/dev/vda2" "/" 
libguestfs: send_to_daemon: 68 bytes: 00 00 00 40 | 20 00 f5 f5 | 00 00 00 04 | 00 00 00 49 | 00 00 00 00 | ... 
guestfsd: main_loop: proc 198 (vfs_type) took 0.00 seconds 
guestfsd: main_loop: new request, len 0x40 
mount -o ro /dev/vda2 /sysroot/ 
mount: unknown filesystem type 'LVM2_member' 
guestfsd: error: /dev/vda2 on / (options: 'ro'): mount: unknown filesystem type 'LVM2_member' 
guestfsd: main_loop: proc 73 (mount_ro) took 0.00 seconds 
libguestfs: recv_from_daemon: 124 bytes: 20 00 f5 f5 | 00 00 00 04 | 00 00 00 49 | 00 00 00 01 | 00 12 34 0e | ... 
libguestfs: trace: mount_ro = -1 (error) 
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 0f | ... 
libguestfs: trace: list_md_devices = [] 
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: 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 10 | ... 
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 11 | ... 
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 12 | ... 
libguestfs: trace: vfs_type = NULL (error) 
libguestfs: check_for_filesystem_on: /dev/vg_kojit/lv_root 0 0 (failed to get vfs type) 
libguestfs: trace: mount_ro "/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 49 | 00 00 00 00 | ... 
guestfsd: main_loop: new request, len 0x4c 
/dev/vg_kojit/lv_root: No such file or directory 
guestfsd: error: mount_ro_stub: /dev/vg_kojit/lv_root: No such file or directory 
guestfsd: main_loop: proc 73 (mount_ro) took 0.00 seconds 
libguestfs: recv_from_daemon: 120 bytes: 20 00 f5 f5 | 00 00 00 04 | 00 00 00 49 | 00 00 00 01 | 00 12 34 13 | ... 
libguestfs: trace: mount_ro = -1 (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 14 | ... 
libguestfs: trace: vfs_type = "swap" 
libguestfs: check_for_filesystem_on: /dev/vg_kojit/lv_swap 0 0 (swap) 
libguestfs: trace: inspect_os = [] 
><fs> 


Expected results:
No errors

Additional info:

Comment 5 Richard W.M. Jones 2014-03-06 10:16:33 UTC
*** Bug 1072926 has been marked as a duplicate of this bug. ***