Cobbler repositories --priorities problem

Will McDonald wmcdonald at gmail.com
Mon Dec 19 15:48:30 UTC 2011


 Hi List.

I wonder if anyone's seen this problem or can explain what's going on. I've
updated a couple of repository's priorities using:

[root at buildhost ~]# cobbler repo edit --name=$repo --priorities=N

When I check the repo that I've altered it LOOKS like the edit has
succeeded, but when I look at the .repo Cobbler's dynamically building,
it's still pegged at '99'

[root at buildhost ~]# cobbler profile report
--name=centos56-x86_64-oradb11202-wls1034 | grep Repo
Repos                          : ['centos56-repo-x86_64']

[root at buildhost ~]# cobbler repo report --name=centos56-repo-x86_64 | grep
Prio
Priority                       : 1

[root at buildhost ~]# wget -q "
http://192.168.0.102/cblr/svc/op/yum/profile/centos56-x86_64-oradb11202-wls1034"
-O /tmp/test.repo
[root at buildhost ~]# cat /tmp/test.repo
[centos56-repo-x86_64]
name=centos56-repo-x86_64
baseurl=http://192.168.0.102/cobbler/repo_mirror/centos56-repo-x86_64
enabled=1
priority=99
gpgcheck=0

This problem seems to manifest across all repos and associated profiles.
The value in the JSON for each repo is being updated, it's just the
dynamically built repo that isn't.

I've tried 'cobbler sync|reposync' and 'service cobblerd restart' the
problem remains the same. If it's of any bearing, the repos are hardlinked
mirrors of the corresponding kickstart trees.

I've attached a full 'cobbler report' too in case that's of any use. Am I
just doing something fundamentally wrong? This is cobbler-2.0.11-2.el5 from
EPEL on CentOS 5.7.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://fedorahosted.org/pipermail/cobbler/attachments/20111219/3e3d5334/attachment-0001.html>
-------------- next part --------------
distros:
==========
Name                           : centos56-dist-x86_64
Architecture                   : x86_64
Breed                          : redhat
Comment                        :
Initrd                         : /var/www/cobbler/ks_mirror/centos56-dist-x86_64/images/pxeboot/initrd.img
Kernel                         : /var/www/cobbler/ks_mirror/centos56-dist-x86_64/images/pxeboot/vmlinuz
Kernel Options                 : {}
Kernel Options (Post Install)  : {}
Kickstart Metadata             : {'tree': 'http://@@server@@/cobbler/ks_mirror/centos56-dist-x86_64'}
Management Classes             : []
OS Version                     : generic26
Owners                         : ['admin']
Red Hat Management Key         : <<inherit>>
Red Hat Management Server      : <<inherit>>
Template Files                 : {}

Name                           : centos57-dist-x86_64
Architecture                   : x86_64
Breed                          : redhat
Comment                        :
Initrd                         : /var/www/cobbler/ks_mirror/centos57-dist-x86_64/images/pxeboot/initrd.img
Kernel                         : /var/www/cobbler/ks_mirror/centos57-dist-x86_64/images/pxeboot/vmlinuz
Kernel Options                 : {}
Kernel Options (Post Install)  : {}
Kickstart Metadata             : {'tree': 'http://@@server@@/cobbler/ks_mirror/centos57-dist-x86_64'}
Management Classes             : []
OS Version                     : generic26
Owners                         : ['admin']
Red Hat Management Key         : <<inherit>>
Red Hat Management Server      : <<inherit>>
Template Files                 : {}

Name                           : centos54-dist-x86_64
Architecture                   : x86_64
Breed                          : redhat
Comment                        :
Initrd                         : /var/www/cobbler/ks_mirror/centos54-dist-x86_64/images/pxeboot/initrd.img
Kernel                         : /var/www/cobbler/ks_mirror/centos54-dist-x86_64/images/pxeboot/vmlinuz
Kernel Options                 : {}
Kernel Options (Post Install)  : {}
Kickstart Metadata             : {'tree': 'http://@@server@@/cobbler/ks_mirror/centos54-dist-x86_64'}
Management Classes             : []
OS Version                     : generic26
Owners                         : ['admin']
Red Hat Management Key         : <<inherit>>
Red Hat Management Server      : <<inherit>>
Template Files                 : {}


profiles:
==========
Name                           : centos54-x86_64-oradb11107-was7007
Comment                        :
DHCP Tag                       : default
Distribution                   : centos54-dist-x86_64
Enable PXE Menu?               : 1
Kernel Options                 : {}
Kernel Options (Post Install)  : {}
Kickstart                      : /var/lib/cobbler/kickstarts/el5/x86_64/centos54-x86_64-oradb11107-was7007.ks
Kickstart Metadata             : {}
Management Classes             : []
Name Servers                   : []
Name Servers Search Path       : []
Owners                         : ['admin']
Parent Profile                 :
Red Hat Management Key         : <<inherit>>
Red Hat Management Server      : <<inherit>>
Repos                          : ['centos54-repo-x86_64']
Server Override                : <<inherit>>
Template Files                 : {}
Virt Auto Boot                 : 0
Virt Bridge                    : xenbr0
Virt CPUs                      : 1
Virt File Size(GB)             : 5
Virt Path                      :
Virt RAM (MB)                  : 512
Virt Type                      : xenpv

Name                           : centos54-x86_64-oradb11107
Comment                        :
DHCP Tag                       : default
Distribution                   : centos54-dist-x86_64
Enable PXE Menu?               : 1
Kernel Options                 : {}
Kernel Options (Post Install)  : {}
Kickstart                      : /var/lib/cobbler/kickstarts/el5/x86_64/centos54-x86_64-oradb11107.ks
Kickstart Metadata             : {}
Management Classes             : []
Name Servers                   : []
Name Servers Search Path       : []
Owners                         : ['admin']
Parent Profile                 :
Red Hat Management Key         : <<inherit>>
Red Hat Management Server      : <<inherit>>
Repos                          : ['centos54-repo-x86_64']
Server Override                : <<inherit>>
Template Files                 : {}
Virt Auto Boot                 : 0
Virt Bridge                    : xenbr0
Virt CPUs                      : 1
Virt File Size(GB)             : 5
Virt Path                      :
Virt RAM (MB)                  : 512
Virt Type                      : xenpv

Name                           : centos54-x86_64-oradb11106
Comment                        :
DHCP Tag                       : default
Distribution                   : centos54-dist-x86_64
Enable PXE Menu?               : 1
Kernel Options                 : {}
Kernel Options (Post Install)  : {}
Kickstart                      : /var/lib/cobbler/kickstarts/el5/x86_64/centos54-x86_64-oradb11106.ks
Kickstart Metadata             : {}
Management Classes             : []
Name Servers                   : []
Name Servers Search Path       : []
Owners                         : ['admin']
Parent Profile                 :
Red Hat Management Key         : <<inherit>>
Red Hat Management Server      : <<inherit>>
Repos                          : ['centos54-repo-x86_64']
Server Override                : <<inherit>>
Template Files                 : {}
Virt Auto Boot                 : 0
Virt Bridge                    : xenbr0
Virt CPUs                      : 1
Virt File Size(GB)             : 5
Virt Path                      :
Virt RAM (MB)                  : 512
Virt Type                      : xenpv

Name                           : centos54-x86_64-oradb10204
Comment                        :
DHCP Tag                       : default
Distribution                   : centos54-dist-x86_64
Enable PXE Menu?               : 1
Kernel Options                 : {}
Kernel Options (Post Install)  : {}
Kickstart                      : /var/lib/cobbler/kickstarts/el5/x86_64/centos54-x86_64-oradb10204.ks
Kickstart Metadata             : {}
Management Classes             : []
Name Servers                   : []
Name Servers Search Path       : []
Owners                         : ['admin']
Parent Profile                 :
Red Hat Management Key         : <<inherit>>
Red Hat Management Server      : <<inherit>>
Repos                          : ['centos54-repo-x86_64']
Server Override                : <<inherit>>
Template Files                 : {}
Virt Auto Boot                 : 0
Virt Bridge                    : xenbr0
Virt CPUs                      : 1
Virt File Size(GB)             : 5
Virt Path                      :
Virt RAM (MB)                  : 512
Virt Type                      : xenpv

Name                           : centos56-x86_64-oradb11202-wls1034
Comment                        :
DHCP Tag                       : default
Distribution                   : centos56-dist-x86_64
Enable PXE Menu?               : 1
Kernel Options                 : {}
Kernel Options (Post Install)  : {}
Kickstart                      : /var/lib/cobbler/kickstarts/el5/x86_64/centos56-x86_64-oradb1202-wls1034.ks
Kickstart Metadata             : {}
Management Classes             : []
Name Servers                   : []
Name Servers Search Path       : []
Owners                         : ['admin']
Parent Profile                 :
Red Hat Management Key         : <<inherit>>
Red Hat Management Server      : <<inherit>>
Repos                          : ['centos56-repo-x86_64']
Server Override                : <<inherit>>
Template Files                 : {}
Virt Auto Boot                 : 1
Virt Bridge                    : xenbr0
Virt CPUs                      : 1
Virt File Size(GB)             : 5
Virt Path                      :
Virt RAM (MB)                  : 512
Virt Type                      : xenpv

Name                           : centos54-x86_64-oradb10204-wls923
Comment                        :
DHCP Tag                       : default
Distribution                   : centos54-dist-x86_64
Enable PXE Menu?               : 1
Kernel Options                 : {}
Kernel Options (Post Install)  : {}
Kickstart                      : /var/lib/cobbler/kickstarts/el5/x86_64/centos54-x86_64-oradb10204-wls923.ks
Kickstart Metadata             : {}
Management Classes             : []
Name Servers                   : []
Name Servers Search Path       : []
Owners                         : ['admin']
Parent Profile                 :
Red Hat Management Key         : <<inherit>>
Red Hat Management Server      : <<inherit>>
Repos                          : ['centos54-repo-x86_64']
Server Override                : <<inherit>>
Template Files                 : {}
Virt Auto Boot                 : 0
Virt Bridge                    : xenbr0
Virt CPUs                      : 1
Virt File Size(GB)             : 5
Virt Path                      :
Virt RAM (MB)                  : 512
Virt Type                      : xenpv

Name                           : centos54-x86_64-oradb11107-wls1031
Comment                        :
DHCP Tag                       : default
Distribution                   : centos54-dist-x86_64
Enable PXE Menu?               : 1
Kernel Options                 : {}
Kernel Options (Post Install)  : {}
Kickstart                      : /var/lib/cobbler/kickstarts/el5/x86_64/centos54-x86_64-oradb11107-wls1031.ks.ks
Kickstart Metadata             : {}
Management Classes             : []
Name Servers                   : []
Name Servers Search Path       : []
Owners                         : ['admin']
Parent Profile                 :
Red Hat Management Key         : <<inherit>>
Red Hat Management Server      : <<inherit>>
Repos                          : ['centos54-repo-x86_64']
Server Override                : <<inherit>>
Template Files                 : {}
Virt Auto Boot                 : 0
Virt Bridge                    : xenbr0
Virt CPUs                      : 1
Virt File Size(GB)             : 5
Virt Path                      :
Virt RAM (MB)                  : 512
Virt Type                      : xenpv

Name                           : centos54-x86_64-oradb10201
Comment                        :
DHCP Tag                       : default
Distribution                   : centos54-dist-x86_64
Enable PXE Menu?               : 1
Kernel Options                 : {}
Kernel Options (Post Install)  : {}
Kickstart                      : /var/lib/cobbler/kickstarts/el5/x86_64/centos54-x86_64-oradb10201.ks
Kickstart Metadata             : {}
Management Classes             : []
Name Servers                   : []
Name Servers Search Path       : []
Owners                         : ['admin']
Parent Profile                 :
Red Hat Management Key         : <<inherit>>
Red Hat Management Server      : <<inherit>>
Repos                          : ['centos54-repo-x86_64']
Server Override                : <<inherit>>
Template Files                 : {}
Virt Auto Boot                 : 0
Virt Bridge                    : xenbr0
Virt CPUs                      : 1
Virt File Size(GB)             : 5
Virt Path                      :
Virt RAM (MB)                  : 512
Virt Type                      : xenpv

Name                           : centos54-x86_64-oradb10201-oradb11107-wls815-wls1031
Comment                        :
DHCP Tag                       : default
Distribution                   : centos54-dist-x86_64
Enable PXE Menu?               : 1
Kernel Options                 : {}
Kernel Options (Post Install)  : {}
Kickstart                      : /var/lib/cobbler/kickstarts/el5/x86_64/centos54-x86_64-oradb10201-oradb11107-wls815-wls1031.ks
Kickstart Metadata             : {}
Management Classes             : []
Name Servers                   : []
Name Servers Search Path       : []
Owners                         : ['admin']
Parent Profile                 :
Red Hat Management Key         : <<inherit>>
Red Hat Management Server      : <<inherit>>
Repos                          : ['centos54-repo-x86_64']
Server Override                : <<inherit>>
Template Files                 : {}
Virt Auto Boot                 : 0
Virt Bridge                    : xenbr0
Virt CPUs                      : 1
Virt File Size(GB)             : 5
Virt Path                      :
Virt RAM (MB)                  : 512
Virt Type                      : xenpv

Name                           : centos54-x86_64-oradb11107-wls1032
Comment                        :
DHCP Tag                       : default
Distribution                   : centos54-dist-x86_64
Enable PXE Menu?               : 1
Kernel Options                 : {}
Kernel Options (Post Install)  : {}
Kickstart                      : /var/lib/cobbler/kickstarts/el5/x86_64/centos54-x86_64-oradb11107-wls1032.ks
Kickstart Metadata             : {}
Management Classes             : []
Name Servers                   : []
Name Servers Search Path       : []
Owners                         : ['admin']
Parent Profile                 :
Red Hat Management Key         : <<inherit>>
Red Hat Management Server      : <<inherit>>
Repos                          : ['centos54-repo-x86_64']
Server Override                : <<inherit>>
Template Files                 : {}
Virt Auto Boot                 : 0
Virt Bridge                    : xenbr0
Virt CPUs                      : 1
Virt File Size(GB)             : 5
Virt Path                      :
Virt RAM (MB)                  : 512
Virt Type                      : xenpv

Name                           : centos54-x86_64-wls923
Comment                        :
DHCP Tag                       : default
Distribution                   : centos54-dist-x86_64
Enable PXE Menu?               : 1
Kernel Options                 : {}
Kernel Options (Post Install)  : {}
Kickstart                      : /var/lib/cobbler/kickstarts/el5/x86_64/centos54-x86_64-wls923.ks
Kickstart Metadata             : {}
Management Classes             : []
Name Servers                   : []
Name Servers Search Path       : []
Owners                         : ['admin']
Parent Profile                 :
Red Hat Management Key         : <<inherit>>
Red Hat Management Server      : <<inherit>>
Repos                          : ['centos54-repo-x86_64']
Server Override                : <<inherit>>
Template Files                 : {}
Virt Auto Boot                 : 0
Virt Bridge                    : xenbr0
Virt CPUs                      : 1
Virt File Size(GB)             : 5
Virt Path                      :
Virt RAM (MB)                  : 512
Virt Type                      : xenpv

Name                           : centos54-x86_64-minimal
Comment                        :
DHCP Tag                       : default
Distribution                   : centos54-dist-x86_64
Enable PXE Menu?               : 1
Kernel Options                 : {}
Kernel Options (Post Install)  : {}
Kickstart                      : /var/lib/cobbler/kickstarts/el5/x86_64/centos54-x86_64-minimal.ks
Kickstart Metadata             : {}
Management Classes             : []
Name Servers                   : []
Name Servers Search Path       : []
Owners                         : ['admin']
Parent Profile                 :
Red Hat Management Key         : <<inherit>>
Red Hat Management Server      : <<inherit>>
Repos                          : ['centos54-repo-x86_64']
Server Override                : <<inherit>>
Template Files                 : {}
Virt Auto Boot                 : 0
Virt Bridge                    : xenbr0
Virt CPUs                      : 1
Virt File Size(GB)             : 5
Virt Path                      :
Virt RAM (MB)                  : 512
Virt Type                      : xenpv

Name                           : centos54-x86_64-wls1031
Comment                        :
DHCP Tag                       : default
Distribution                   : centos54-dist-x86_64
Enable PXE Menu?               : 1
Kernel Options                 : {}
Kernel Options (Post Install)  : {}
Kickstart                      : /var/lib/cobbler/kickstarts/el5/x86_64/centos54-x86_64-wls1031.ks
Kickstart Metadata             : {}
Management Classes             : []
Name Servers                   : []
Name Servers Search Path       : []
Owners                         : ['admin']
Parent Profile                 :
Red Hat Management Key         : <<inherit>>
Red Hat Management Server      : <<inherit>>
Repos                          : ['centos54-repo-x86_64']
Server Override                : <<inherit>>
Template Files                 : {}
Virt Auto Boot                 : 0
Virt Bridge                    : xenbr0
Virt CPUs                      : 1
Virt File Size(GB)             : 5
Virt Path                      :
Virt RAM (MB)                  : 512
Virt Type                      : xenpv

Name                           : centos54-x86_64-oradb10203-wls815-wls923
Comment                        :
DHCP Tag                       : default
Distribution                   : centos54-dist-x86_64
Enable PXE Menu?               : 1
Kernel Options                 : {}
Kernel Options (Post Install)  : {}
Kickstart                      : /var/lib/cobbler/kickstarts/el5/x86_64/centos54-x86_64-oradb10203-wls815-wls923.ks
Kickstart Metadata             : {}
Management Classes             : []
Name Servers                   : []
Name Servers Search Path       : []
Owners                         : ['admin']
Parent Profile                 :
Red Hat Management Key         : <<inherit>>
Red Hat Management Server      : <<inherit>>
Repos                          : ['centos54-repo-x86_64']
Server Override                : <<inherit>>
Template Files                 : {}
Virt Auto Boot                 : 0
Virt Bridge                    : xenbr0
Virt CPUs                      : 1
Virt File Size(GB)             : 5
Virt Path                      :
Virt RAM (MB)                  : 512
Virt Type                      : xenpv


systems:
==========

repos:
==========
Name                           : centos56-repo-x86_64
Arch                           : x86_64
Breed                          : yum
Comment                        :
Createrepo Flags               : <<inherit>>
Environment Variables          : {}
Keep Updated                   : False
Mirror                         : http://192.168.0.102/cobbler/ks_mirror/centos56-dist-x86_64
Mirror locally                 : True
Owners                         : ['admin']
Priority                       : 1
RPM List                       : []
Yum Options                    : {}

Name                           : centos57-repo-x86_64
Arch                           : x86_64
Breed                          : yum
Comment                        :
Createrepo Flags               : <<inherit>>
Environment Variables          : {}
Keep Updated                   : True
Mirror                         : http://192.168.0.102/cobbler/ks_mirror/centos57-dist-x86_64
Mirror locally                 : True
Owners                         : ['admin']
Priority                       : 1
RPM List                       : []
Yum Options                    : {}

Name                           : centos5updates-repo-x86_64
Arch                           : x86_64
Breed                          : yum
Comment                        :
Createrepo Flags               : <<inherit>>
Environment Variables          : {}
Keep Updated                   : True
Mirror                         : http://www.mirrorservice.org/sites/mirror.centos.org/5/updates/x86_64/
Mirror locally                 : True
Owners                         : ['admin']
Priority                       : 99
RPM List                       : []
Yum Options                    : {}

Name                           : epel5-repo-x86_64
Arch                           : x86_64
Breed                          : yum
Comment                        :
Createrepo Flags               : <<inherit>>
Environment Variables          : {}
Keep Updated                   : True
Mirror                         : http://www.mirrorservice.org/sites/download.fedora.redhat.com/pub/epel/5/x86_64
Mirror locally                 : True
Owners                         : ['admin']
Priority                       : 99
RPM List                       : []
Yum Options                    : {}

Name                           : centos54-repo-x86_64
Arch                           : x86_64
Breed                          : yum
Comment                        :
Createrepo Flags               : <<inherit>>
Environment Variables          : {}
Keep Updated                   : True
Mirror                         : http://192.168.0.102/cobbler/ks_mirror/centos54-dist-x86_64
Mirror locally                 : True
Owners                         : ['admin']
Priority                       : 5
RPM List                       : []
Yum Options                    : {}


images:
==========


More information about the cobbler mailing list