[virt-tools-list] [libosinfo] Add more RHEL OS metadata

Zeeshan Ali (Khattak) zeeshanak at gnome.org
Wed Jun 15 17:19:55 UTC 2011


On Wed, Jun 15, 2011 at 7:43 PM, Daniel P. Berrange <berrange at redhat.com> wrote:
> On Sat, Jun 11, 2011 at 01:06:27AM +0300, Zeeshan Ali wrote:
>> From: "Zeeshan Ali (Khattak)" <zeeshanak at gnome.org>
>>
>> Now libosinfo knows every RHEL OS known to python-virtinst.
>> ---
>>  data/oses/rhel.xml |   45 +++++++++++++++++++++++++++++++++++++++++++++
>>  1 files changed, 45 insertions(+), 0 deletions(-)
>>
>> diff --git a/data/oses/rhel.xml b/data/oses/rhel.xml
>> index 67cfc70..ef2a84e 100644
>> --- a/data/oses/rhel.xml
>> +++ b/data/oses/rhel.xml
>> @@ -1,5 +1,19 @@
>>  <libosinfo version="0.0.1">
>>
>> +  <os id="http://redhat.com/rhel/2.1">
>> +    <short-id>rhel-2.1</short-id>
>> +    <name>Red Hat Enterprise Linux 2.1</name>
>> +    <version>2.1</version>
>> +    <vendor>Red Hat, Inc</vendor>
>> +  </os>
>> +
>> +  <os id="http://redhat.com/rhel/3">
>> +    <short-id>rhel-3</short-id>
>> +    <name>Red Hat Enterprise Linux 3</name>
>> +    <version>3</version>
>> +    <vendor>Red Hat, Inc</vendor>
>> +  </os>
>> +
>>    <os id="http://redhat.com/rhel/4.8">
>>      <short-id>rhel-4.8</short-id>
>>      <name>Red Hat Enterprise Linux 4.8</name>
>> @@ -15,6 +29,21 @@
>>      <upgrades id="http://redhat.com/rhel/4.8"/>
>>    </os>
>>
>> +  <os id="http://redhat.com/rhel/4">
>> +    <short-id>rhel-4</short-id>
>> +    <name>Red Hat Enterprise Linux 4</name>
>> +    <version>4</version>
>> +    <vendor>Red Hat, Inc</vendor>
>> +    <clones id="http://redhat.com/rhel/4.9">
>> +  </os>
>
> Ah, interesting idea providing a OS for the
> latest current update. I'm wondering whether
> this is actually needed in the data files
> though.

 It was just an attempt to have the same OS definitions as in python-virtinst.

> I'm not sure it is currently possible, but I'd
> think our APIs ought to allow an application to
> apply a filter to fetch only OS instances, which
> are *not* upgraded by any other OS. Then we
> would not need to explicitly list latest OS
> in the data files.

 Ah OK, I'll remove these clones then..

-- 
Regards,

Zeeshan Ali (Khattak)
FSF member#5124




More information about the virt-tools-list mailing list