Centos minor versions issue

Hi,

Due to the fact that CentOS doesn't use a normal versioning scheme, I
get the following list of operating systems:

Name
<https://deployen.netbulae.mgmt/operatingsystems?order=name+ASC>
Hosts
<https://deployen.netbulae.mgmt/operatingsystems?order=hosts_count+DESC>
	
Centos CentOS 7.0.1406
<https://deployen.netbulae.mgmt/operatingsystems/2-CentOS%207-0-1406/edit>
	0 <https://deployen.netbulae.mgmt/hosts?search=os_id+%3D+2> 	Delete
<https://deployen.netbulae.mgmt/operatingsystems/2-CentOS%207-0-1406>
Centos CentOS 7.0
<https://deployen.netbulae.mgmt/operatingsystems/7-CentOS%207-0/edit>
2 <https://deployen.netbulae.mgmt/hosts?search=os_id+%3D+7> 	Delete
<https://deployen.netbulae.mgmt/operatingsystems/7-CentOS%207-0>
Centos CentOS 7.1.1503
<https://deployen.netbulae.mgmt/operatingsystems/6-CentOS%207-1-1503/edit>
	2 <https://deployen.netbulae.mgmt/hosts?search=os_id+%3D+6> 	Delete
<https://deployen.netbulae.mgmt/operatingsystems/6-CentOS%207-1-1503>
Centos CentOS 7.1
<https://deployen.netbulae.mgmt/operatingsystems/8-CentOS%207-1/edit>
1 <https://deployen.netbulae.mgmt/hosts?search=os_id+%3D+8> 	Delete
<https://deployen.netbulae.mgmt/operatingsystems/8-CentOS%207-1>
Centos CentOS 6.6
<https://deployen.netbulae.mgmt/operatingsystems/1-CentOS%206-6/edit>
1 <https://deployen.netbulae.mgmt/hosts?search=os_id+%3D+1> 	Delete
<https://deployen.netbulae.mgmt/operatingsystems/1-CentOS%206-6>

Any way to do this properly?

Met vriendelijke groet, With kind regards,

Jorick Astrego

Netbulae Virtualization Experts

··· ----------------
Tel: 053 20 30 270 	info@netbulae.eu 	Staalsteden 4-3A 	KvK 08198180
Fax: 053 20 30 271 	www.netbulae.eu 	7547 TA Enschede 	BTW NL821234584B01

> Hi,
>
> Due to the fact that CentOS doesn't use a normal versioning scheme, I
> get the following list of operating systems:
>
> Name
> <https://deployen.netbulae.mgmt/operatingsystems?order=name+ASC>
> Hosts
> <https://deployen.netbulae.mgmt/operatingsystems?order=hosts_count+DESC>
>
> Centos CentOS 7.0.1406
> <https://deployen.netbulae.mgmt/operatingsystems/2-CentOS%207-0-1406/edit>
> 0 <https://deployen.netbulae.mgmt/hosts?search=os_id+%3D+2> Delete
> <https://deployen.netbulae.mgmt/operatingsystems/2-CentOS%207-0-1406>
> Centos CentOS 7.0
> <https://deployen.netbulae.mgmt/operatingsystems/7-CentOS%207-0/edit>
> 2 <https://deployen.netbulae.mgmt/hosts?search=os_id+%3D+7> Delete
> <https://deployen.netbulae.mgmt/operatingsystems/7-CentOS%207-0>
> Centos CentOS 7.1.1503
> <https://deployen.netbulae.mgmt/operatingsystems/6-CentOS%207-1-1503/edit>
> 2 <https://deployen.netbulae.mgmt/hosts?search=os_id+%3D+6> Delete
> <https://deployen.netbulae.mgmt/operatingsystems/6-CentOS%207-1-1503>
> Centos CentOS 7.1
> <https://deployen.netbulae.mgmt/operatingsystems/8-CentOS%207-1/edit>
> 1 <https://deployen.netbulae.mgmt/hosts?search=os_id+%3D+8> Delete
> <https://deployen.netbulae.mgmt/operatingsystems/8-CentOS%207-1>
> Centos CentOS 6.6
> <https://deployen.netbulae.mgmt/operatingsystems/1-CentOS%206-6/edit>
> 1 <https://deployen.netbulae.mgmt/hosts?search=os_id+%3D+1> Delete
> <https://deployen.netbulae.mgmt/operatingsystems/1-CentOS%206-6>
>
>
>
> Any way to do this properly?
>

Sorry, I don't think I follow. Where is this list coming from,
what would you expect?

··· On 04/02, Jorick Astrego wrote: > > > > > > Met vriendelijke groet, With kind regards, > > Jorick Astrego > > Netbulae Virtualization Experts > > ---------------- > > Tel: 053 20 30 270 info@netbulae.eu Staalsteden 4-3A KvK 08198180 > Fax: 053 20 30 271 www.netbulae.eu 7547 TA Enschede BTW NL821234584B01 > > ---------------- > > -- > You received this message because you are subscribed to the Google Groups "Foreman users" group. > To unsubscribe from this group and stop receiving emails from it, 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.


Daniel Lobato Garcia

@eLobatoss
blog.daniellobato.me
daniellobato.me

GPG: http://keys.gnupg.net/pks/lookup?op=get&search=0x7A92D6DD38D6DE30
Keybase: https://keybase.io/elobato

Well CentOS has a versioning number of 7.0.1406 and 7.1.1503. When I
don't use these numbers and use 7.0 and 7.1, the normal Centos
installation source fails as the path cannot be found @
http://mirror.centos.org/centos/$version/os/$arch

The url is http://mirror.centos.org/centos/7.1.1503/

So I used Major 7 and minor 1.1503, but when the servers check in with
their puppet facts the OS is set to 7.1 and the foreman then creates a
new OS 7.1 and assigns the hosts to that. So I end up with Operating
System CentOS 7.0, 7.1, 7.0.1406 and CentOS 7.1.1503. And the hostgroups
I assigned to use Centos 7.1.1503 are assigned to 7.1 wich messes up the
associations.

I could be doing it wrong so that's why I ask :wink: I hope this sheds some
more light on it.

Met vriendelijke groet, With kind regards,

Jorick Astrego

Netbulae Virtualization Experts

··· On 04/13/2015 08:48 AM, Daniel Lobato Garcia wrote: > On 04/02, Jorick Astrego wrote: >> Hi, >> >> Due to the fact that CentOS doesn't use a normal versioning scheme, I >> get the following list of operating systems: >> >> Name >> >> Hosts >> >> >> Centos CentOS 7.0.1406 >> >> 0 Delete >> >> Centos CentOS 7.0 >> >> 2 Delete >> >> Centos CentOS 7.1.1503 >> >> 2 Delete >> >> Centos CentOS 7.1 >> >> 1 Delete >> >> Centos CentOS 6.6 >> >> 1 Delete >> >> >> >> >> Any way to do this properly? >> > Sorry, I don't think I follow. Where is this list coming from, > what would you expect? > ----------------
Tel: 053 20 30 270 	info@netbulae.eu 	Staalsteden 4-3A 	KvK 08198180
Fax: 053 20 30 271 	www.netbulae.eu 	7547 TA Enschede 	BTW NL821234584B01

Are there any insights on this problem? I'm about to start deploying
CentOS 7 VMs and just found the disconnect between what Foreman derives
from facter and what the true OS is. Thanks

··· On Tuesday, April 14, 2015 at 5:40:16 AM UTC-5, Jorick Astrego wrote: > > > > On 04/13/2015 08:48 AM, Daniel Lobato Garcia wrote: > > On 04/02, Jorick Astrego wrote: > >> Hi, > >> > >> Due to the fact that CentOS doesn't use a normal versioning scheme, I > >> get the following list of operating systems: > >> > >> Name > >> > >> Hosts > >> < > https://deployen.netbulae.mgmt/operatingsystems?order=hosts_count+DESC> > >> > >> Centos CentOS 7.0.1406 > >> < > https://deployen.netbulae.mgmt/operatingsystems/2-CentOS%207-0-1406/edit> > >> 0 Delete > > >> < > https://deployen.netbulae.mgmt/operatingsystems/2-CentOS%207-0-1406> > >> Centos CentOS 7.0 > >> < > https://deployen.netbulae.mgmt/operatingsystems/7-CentOS%207-0/edit> > >> 2 Delete > > >> > >> Centos CentOS 7.1.1503 > >> < > https://deployen.netbulae.mgmt/operatingsystems/6-CentOS%207-1-1503/edit> > >> 2 Delete > > >> < > https://deployen.netbulae.mgmt/operatingsystems/6-CentOS%207-1-1503> > >> Centos CentOS 7.1 > >> < > https://deployen.netbulae.mgmt/operatingsystems/8-CentOS%207-1/edit> > >> 1 Delete > > >> > >> Centos CentOS 6.6 > >> < > https://deployen.netbulae.mgmt/operatingsystems/1-CentOS%206-6/edit> > >> 1 Delete > > >> > >> > >> > >> > >> Any way to do this properly? > >> > > Sorry, I don't think I follow. Where is this list coming from, > > what would you expect? > > > Well CentOS has a versioning number of 7.0.1406 and 7.1.1503. When I > don't use these numbers and use 7.0 and 7.1, the normal Centos > installation source fails as the path cannot be found @ > http://mirror.centos.org/centos/$version/os/$arch > > The url is http://mirror.centos.org/centos/7.1.1503/ > > So I used Major 7 and minor 1.1503, but when the servers check in with > their puppet facts the OS is set to 7.1 and the foreman then creates a > new OS 7.1 and assigns the hosts to that. So I end up with Operating > System CentOS 7.0, 7.1, 7.0.1406 and CentOS 7.1.1503. And the hostgroups > I assigned to use Centos 7.1.1503 are assigned to 7.1 wich messes up the > associations. > > I could be doing it wrong so that's why I ask ;-) I hope this sheds some > more light on it. > > > > > > > > > > Met vriendelijke groet, With kind regards, > > Jorick Astrego > > *Netbulae Virtualization Experts * > ------------------------------ > Tel: 053 20 30 270 in...@netbulae.eu Staalsteden 4-3A KvK > 08198180 Fax: 053 20 30 271 www.netbulae.eu 7547 TA Enschede BTW > NL821234584B01 > ------------------------------ > >