I upgraded from cobbler 0.6.3-2 to 0.8.1-1 this afternoon and got the
following error during the cobblerd restart:
[root@radm011p ~]# rpm -Uvh cobbler-0.8.1-1.noarch.rpm
Preparing... ###########################################
[100%]
1:cobbler warning: /var/lib/cobbler/settings created
as /var/lib/cobbler/settings.rpmnew
########################################### [100%]
Since mirror is RHN rhn://rhel-i386-server-5, the repo must also be
named rhel-i386-server-5
Stopping cobbler daemon: [ OK ]
Starting cobbler daemon: Traceback (most recent call last):
File "/usr/bin/cobblerd", line 32, in ?
api = bootapi.BootAPI()
File "/usr/lib/python2.4/site-packages/cobbler/api.py", line 70, in
__init__
self.deserialize()
File "/usr/lib/python2.4/site-packages/cobbler/api.py", line 364, in
deserialize
return self._config.deserialize()
File "/usr/lib/python2.4/site-packages/cobbler/config.py", line 169,
in deserialize
if not serializer.deserialize(x,topological=True):
File "/usr/lib/python2.4/site-packages/cobbler/serializer.py", line
92, in deserialize
rc = storage_module.deserialize(obj,topological)
File
"/usr/lib/python2.4/site-packages/cobbler/modules/serializer_yaml.py",
line 110, in deserialize
obj.from_datastruct(datastruct)
File "/usr/lib/python2.4/site-packages/cobbler/collection.py", line
99, in from_datastruct
self.add(item)
File "/usr/lib/python2.4/site-packages/cobbler/collection.py", line
171, in add
if ref is None or not ref.is_valid():
File "/usr/lib/python2.4/site-packages/cobbler/item_repo.py", line
158, in is_valid
raise CX(_("Since mirror is RHN %(m1)s, the repo must also be named
%(m2)s") % args)
cobbler.cexceptions.CX: 'Since mirror is RHN rhn://rhel-i386-server-5,
the repo must also be named rhel-i386-server-5'
[FAILED]
error: %post(cobbler-0.8.1-1.noarch) scriptlet failed, exit status 1
If I rename the repo in this file to match the rhn mirror name:
[root@radm011p cobbler]# cat /var/lib/cobbler/repos
---
-
arch: ''
createrepo_flags: -c cache
depth: 2
keep_updated: True
mirror: 'rhn://rhel-i386-server-5'
name: rhel5-i386-updates
parent: ''
rpm_list: ''
I get this when I start cobbler:
[root@radm011p cobbler]# service cobblerd start
Starting cobbler daemon: warning: repository not found: rhel5-i386-updates
warning: repository not found: rhel5-i386-updates
warning: repository not found: rhel5-i386-updates
warning: repository not found: rhel5-i386-updates
warning: repository not found: rhel5-i386-updates
warning: repository not found: rhel5-i386-updates
warning: repository not found: rhel5-i386-updates
warning: repository not found: rhel5-i386-updates
warning: repository not found: rhel5-i386-updates
warning: repository not found: rhel5-i386-updates
warning: repository not found: rhel5-i386-updates
warning: repository not found: rhel5-i386-updates
warning: repository not found: rhel5-i386-updates
warning: repository not found: rhel5-i386-updates
warning: repository not found: rhel5-i386-updates
[ OK ]
Is this the best way to solve this problem (updating all references to
the previous repo name), or is there a smarter way to fix this?
Thanks,
Tom
_______________________________________________
et-mgmt-tools mailing list
et-mgmt-tools@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/et-mgmt-tools