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.
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 ).