Bug 1432488 - [RFE] please use libosinfo/osinfo-db instead of osinfo-defaults.properties
Summary: [RFE] please use libosinfo/osinfo-db instead of osinfo-defaults.properties
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: ovirt-engine
Classification: oVirt
Component: General
Version: future
Hardware: Unspecified
OS: Unspecified
medium
low
Target Milestone: ---
: ---
Assignee: bugs@ovirt.org
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-03-15 13:59 UTC by Pino Toscano
Modified: 2022-06-27 07:36 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2018-11-20 20:08:07 UTC
oVirt Team: Virt
Embargoed:
sbonazzo: ovirt-4.3-


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 1341161 0 low CLOSED [RFE] Add "Other Linux (kernel 4.x)" to OS types 2021-12-10 14:41:09 UTC
Red Hat Issue Tracker RHV-46534 0 None None None 2022-06-27 07:36:32 UTC

Internal Links: 1341161

Description Pino Toscano 2017-03-15 13:59:37 UTC
It looks like ovirt-engine has an own file defining OSes, and properties available in each of them.

OTOH, there is already a project called osinfo-db [1], which is an independent set of data files describing OSes, platforms, devices, and install scripts. There is also a GObject-based C library to interface with this data, libosinfo [2], which used to embed the data until an year ago or so.
This data is in use for years at least by virt-manager, to determine the default hardware to add to new guests, and in libguestfs, to identify ISOs.

Since osinfo-db is well maintained and generally kept up-to-date, it would be a better idea for ovirt-engine to switch over to it for OS information.
There are only two caveats:
- the need for compatibility mappings for numeric and string IDs
- manually carrying extra information not present in osinfo-db: they could be provided in the same format as XMLs, see the "ENTITY-NAME.d" part in the osinfo-db layout specification [3].

[1] https://gitlab.com/libosinfo/osinfo-db
[2] https://gitlab.com/libosinfo/libosinfo
[3] https://gitlab.com/libosinfo/libosinfo/blob/master/docs/database-layout.txt

Comment 1 Pino Toscano 2017-11-03 14:54:05 UTC
(In reply to Pino Toscano from comment #0)
> - manually carrying extra information not present in osinfo-db: they could
> be provided in the same format as XMLs, see the "ENTITY-NAME.d" part in the
> osinfo-db layout specification [3].
> 
> https://gitlab.com/libosinfo/libosinfo/blob/master/docs/database-layout.txt

Just to expand a bit more on this: gnome-boxes makes use of this system to set the logo for some types of guests, providing own XML data for them.  And since gnome-boxes uses libosinfo (via gnome-introspection), then the library already supports this kind of extra properties.

Comment 2 Ryan Barry 2018-11-20 20:08:07 UTC
See https://bugzilla.redhat.com/show_bug.cgi?id=1341161#c29

Moving to osinfo-db is unlikely and impractical given the current codebase. Let's investigate alternative solutions to update the operating system list.


Note You need to log in before you can comment on or make changes to this bug.