Bug 1321620

Summary: libguestfs: error: could not parse integer in version number: 7"
Product: [Community] Virtualization Tools Reporter: Richard W.M. Jones <rjones>
Component: libguestfsAssignee: Richard W.M. Jones <rjones>
Status: CLOSED UPSTREAM QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: unspecifiedCC: ptoscano, rbalakri
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-03-30 13:59:36 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:
Attachments:
Description Flags
virt-inspector output none

Description Richard W.M. Jones 2016-03-28 16:12:48 UTC
Created attachment 1140909 [details]
virt-inspector output

Description of problem:

libguestfs inspection fails on CentOS 7.2 images.

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

libguestfs-1.33.16-1.fc24.x86_64

How reproducible:

100%

Steps to Reproduce:
1. virt-builder centos-7.2 --format qcow2
2. Run virt-inspector on the output.

Actual results:

(See attachment)

Inspection doesn't fail, but it does print the message:

  libguestfs: error: could not parse integer in version number: 7"

Strangely, the correct version number is still found.

Expected results:

No message.

Comment 1 Pino Toscano 2016-03-30 13:59:36 UTC
Fixed with commit
https://github.com/libguestfs/libguestfs/commit/ca4516d94ca413f931536029efddcb76e7cbf10d
which is in libguestfs >= 1.33.17.

Note that it was printed so far only for CentOS 7 images, and it did not affect their inspection result since we fallback to centos-release (as os-release does not have more than one number in the version string, see also https://bugs.centos.org/view.php?id=8359 ).