Red Hat Bugzilla – Bug 720899
error importing profile
Last modified: 2014-12-07 20:08:41 EST
Cobbler keeps getting stuck importing the PAE version of this distro
on stage F-10/GOLD/Fedora/i386/os.
Traceback (most recent call last):
File "/var/lib/cobbler/triggers/sync/post/osversion.trigger", line 356, in ?
distro = update_comment(distro)
File "/var/lib/cobbler/triggers/sync/post/osversion.trigger", line 287, in update_comment
profile_id = cobbler.get_profile_handle(distro['name'],token)
File "/usr/lib64/python2.4/xmlrpclib.py", line 1096, in __call__
return self.__send(self.__name, args)
File "/usr/lib64/python2.4/xmlrpclib.py", line 1383, in __request
File "/usr/lib64/python2.4/xmlrpclib.py", line 1147, in request
return self._parse_response(h.getfile(), sock)
File "/usr/lib64/python2.4/xmlrpclib.py", line 1286, in _parse_response
File "/usr/lib64/python2.4/xmlrpclib.py", line 744, in close
xmlrpclib.Fault: <Fault 1: "cobbler.cexceptions.CX:'internal error, unknown profile name Fedora-10-PAE_nfs--i386'">
I don't think the cobbler_import.pl script is creating the distro name properly.
I ended up running the following command to remove Fedora-10
[root@lab-stage ~]# /etc/cron.hourly/cobbler_expire_distros.cron Fedora-10
Removing distro Fedora-10_nfs-i386
Removing distro Fedora-10_nfs-PAE-i386
Removing distro Fedora-10_nfs-ppc64
Removing distro Fedora-10-PAE_nfs--i386
Removing distro Fedora-10_nfs-x86_64
Removing distro Fedora-10_nfs-ppc
Its a bit drastic but when you consider F10 has been EOL for quite a while its no big deal.
It does look like there was a one off import of PAE that went wrong. Notice all the other distro names are correct.
FYI - Always use cobbler_expire_distros to remove distros since that will remove them from beaker as well.
This was on beaker-stage.
Ahh yues I didn't read that cron script carefully, missed the 'len(sys.argv) > 1', I thought the only way to expire was to actually remove it...