In 'Hosts', Windows hosts under 'Operating system' are displaying 'kernelmajversion'

While this works for our CentOS hosts, the Windows hosts give us 6.1 or 6.0.

For Windows 7 & 2008.

I believe that it should be displaying 'operatingsystemrelease' which will
also give the correct value for our CentOS hosts.

Under Foreman 1.6.2 this was ok.

I do not remember what we got for Foreman 1.7 but the error is in Foreman
1.8.4 & 1.9.2.

Regards, Mike.

> While this works for our CentOS hosts, the Windows hosts give us 6.1 or 6.0.
>
> For Windows 7 & 2008.
>
> I believe that it should be displaying 'operatingsystemrelease' which
> will also give the correct value for our CentOS hosts.

It was changed as not all Windows versions are numeric, e.g. Vista, XP,
2008R2 and our OS model only accepts numeric major/minor versions.

Bug #7819: Windows facts should be returned from kernelrelease - Foreman is the ticket,
https://tickets.puppetlabs.com/browse/FACT-341 has info too.

Perhaps the operatingsystemrelease or another fact could be set in the
OS description field, which is suitable for more human-readable version
strings. I'd suggest filing a ticket in Redmine if that interests you,
and if you can identify the fact(s) to do it, it'll make it easier for
somebody to implement.

(For Linux/LSB OSes we use the lsbdistdescription fact in the OS
description field.)

> Under Foreman 1.6.2 this was ok.
>
> I do not remember what we got for Foreman 1.7 but the error is in
> Foreman 1.8.4 & 1.9.2.

The change was made in 1.7.0.

··· On 26/10/15 17:53, Michael Hurn wrote:


Dominic Cleal
dominic@cleal.org

Thank you for the feedback.
I only have few Windows & CentOS hosts but it looks like using
operatingsystem /
operatingsystemrelease in the OS description field would work for me.

Using that would also help with 'sorting' on that field. As when I try and
'sort' on the OS description filed it tends to be a bit out-of-wack :wink:

Regards, Mike.

··· On Tue, Oct 27, 2015 at 5:00 AM, Dominic Cleal wrote:

On 26/10/15 17:53, Michael Hurn wrote:

While this works for our CentOS hosts, the Windows hosts give us 6.1 or
6.0.

For Windows 7 & 2008.

I believe that it should be displaying ‘operatingsystemrelease’ which
will also give the correct value for our CentOS hosts.

It was changed as not all Windows versions are numeric, e.g. Vista, XP,
2008R2 and our OS model only accepts numeric major/minor versions.

Bug #7819: Windows facts should be returned from kernelrelease - Foreman is the ticket,
https://tickets.puppetlabs.com/browse/FACT-341 has info too.

Perhaps the operatingsystemrelease or another fact could be set in the
OS description field, which is suitable for more human-readable version
strings. I’d suggest filing a ticket in Redmine if that interests you,
and if you can identify the fact(s) to do it, it’ll make it easier for
somebody to implement.

(For Linux/LSB OSes we use the lsbdistdescription fact in the OS
description field.)

Under Foreman 1.6.2 this was ok.

I do not remember what we got for Foreman 1.7 but the error is in
Foreman 1.8.4 & 1.9.2.

The change was made in 1.7.0.


Dominic Cleal
dominic@cleal.org


You received this message because you are subscribed to a topic in the
Google Groups “Foreman users” group.
To unsubscribe from this topic, visit
https://groups.google.com/d/topic/foreman-users/k0nrCHF3wLg/unsubscribe.
To unsubscribe from this group and all its topics, send an email to
foreman-users+unsubscribe@googlegroups.com.
To post to this group, send email to foreman-users@googlegroups.com.
Visit this group at http://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/d/optout.