Bug 1714747

Summary: virt-inspector fails with "error: int_of_string" on a Linux image when /etc/fstab contains a partionless device
Product: Red Hat Enterprise Linux 8 Reporter: Oneata Mircea Teodor <toneata>
Component: libguestfsAssignee: Libvirt Maintainers <libvirt-maint>
Status: CLOSED ERRATA QA Contact: YongkuiGuo <yoguo>
Severity: medium Docs Contact:
Priority: high    
Version: 8.0CC: baydemir, jspanko, knoel, linl, mtessun, mxie, mzhan, ptoscano, rjones, tburke, tzheng, yoguo
Target Milestone: rcKeywords: ZStream
Target Release: 8.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: libguestfs-1.38.4-10.1.module+el8.0.0+3266+2710519b Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1679966 Environment:
Last Closed: 2019-06-18 17:21:19 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1661038, 1679966    
Bug Blocks:    

Comment 3 YongkuiGuo 2019-05-29 10:23:46 UTC
Verified with package:
libguestfs-1.38.4-10.1.module+el8.0.0+3266+2710519b.x86_64

Steps:

1. Download the condor-fedora-24-64-master-2016080801.qcow2 image from the link:
https://platform.swampinabox.org/platform-images/condor-fedora-24-64-master-2016080801.qcow2.gz

2. On rhel8.0.0 host
$ virt-inspector -a condor-fedora-24-64-master-2016080801.qcow2 --no-applications --no-icon
<?xml version="1.0"?>
<operatingsystems>
  <operatingsystem>
    <root>/dev/vg0/lv_root</root>
    <name>linux</name>
    <arch>x86_64</arch>
    <distro>fedora</distro>
    <product_name>Fedora 24 (Twenty Four)</product_name>
    <major_version>24</major_version>
    <minor_version>0</minor_version>
    <package_format>rpm</package_format>
    <package_management>dnf</package_management>
    <hostname>localhost.localdomain</hostname>
    <osinfo>fedora24</osinfo>
    <mountpoints>
      <mountpoint dev="/dev/vg0/lv_root">/</mountpoint>
      <mountpoint dev="/dev/sda2">/boot</mountpoint>
      <mountpoint dev="/dev/sdb">/mnt/in</mountpoint>
      <mountpoint dev="/dev/sdc">/mnt/out</mountpoint>
    </mountpoints>
    <filesystems>
      <filesystem dev="/dev/sda2">
        <type>ext4</type>
        <uuid>4c029e08-3e60-4227-8a5b-de2c500daf08</uuid>
      </filesystem>
      <filesystem dev="/dev/sdb"/>
      <filesystem dev="/dev/sdc"/>
      <filesystem dev="/dev/vg0/lv_root">
        <type>ext4</type>
        <uuid>36ef4986-e9a4-4177-b251-455618165972</uuid>
      </filesystem>
      <filesystem dev="/dev/vg0/lv_swap">
        <type>swap</type>
        <uuid>299e4b2f-4946-4b48-97ce-6b6afd4735e7</uuid>
      </filesystem>
    </filesystems>
  </operatingsystem>
</operatingsystems>

The virt-inspector command can inspect the linux image when /etc/fstab contains a partionless device. Verified this bug.

Comment 5 errata-xmlrpc 2019-06-18 17:21:19 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://access.redhat.com/errata/RHBA-2019:1530