Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-95791

libguestfs generates the wrong osinfo for SLES 15 guests [rhel-9.6]

Linking RHIVOS CVEs to...Migration: Automation ...Sync from "Extern...XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Undefined Undefined
    • rhel-9.7
    • rhel-9.6
    • libguestfs
    • None
    • libguestfs-1.54.0-9.el9
    • No
    • Low
    • rhel-virt-tools
    • ssg_virtualization
    • None
    • False
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • Unspecified
    • Unspecified
    • Unspecified
    • None

      $ virt-inspector -a ~/tmp/vms/sles-15.qcow2 | grep -i osinfo
      ...
          <osinfo>sles15sp6</osinfo>
      ...
      

      However the actual osinfo shortname for SLES is sle... (without the extra 's'). eg:

      $ osinfo-query os | grep sle15
       sle15                | SUSE Linux Enterprise 15                           | 15       | http://suse.com/sle/15                  
       sle15-unknown        | SUSE Linux Enterprise 15 Unknown                   | 15-unknown | http://suse.com/sle/15-unknown          
       sle15sp1             | SUSE Linux Enterprise 15 SP1                       | 15.1     | http://suse.com/sle/15.1                
       sle15sp2             | SUSE Linux Enterprise 15 SP2                       | 15.2     | http://suse.com/sle/15.2                
       sle15sp3             | SUSE Linux Enterprise 15 SP3                       | 15.3     | http://suse.com/sle/15.3                
       sle15sp4             | SUSE Linux Enterprise 15 SP4                       | 15.4     | http://suse.com/sle/15.4                
       sle15sp5             | SUSE Linux Enterprise 15 SP5                       | 15.5     | http://suse.com/sle/15.5                
       sle15sp6             | SUSE Linux Enterprise 15 SP6                       | 15.6     | http://suse.com/sle/15.6                
      

      NB: This changed with major version >= 15. In previous versions, slesNN was correct.

              rhn-eng-rjones Richard Jones
              rhn-eng-rjones Richard Jones
              virt-maint virt-maint
              Xiang Hua Chen Xiang Hua Chen
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated: