Bug 720899 - error importing profile
Summary: error importing profile
Keywords:
Status: CLOSED DEFERRED
Alias: None
Product: Fedora
Classification: Fedora
Component: cobbler
Version: 15
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Bill Peck
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-07-13 07:44 UTC by Raymond Mancy
Modified: 2014-12-08 01:08 UTC (History)
10 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-09-15 17:57:21 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Raymond Mancy 2011-07-13 07:44:08 UTC
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
    verbose=self.__verbose
  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
    return u.close()
  File "/usr/lib64/python2.4/xmlrpclib.py", line 744, in close
    raise Fault(**self._stack[0])
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.

Comment 2 Bill Peck 2011-07-13 13:22:57 UTC
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.

Comment 3 Raymond Mancy 2011-07-13 13:40:21 UTC
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...


Note You need to log in before you can comment on or make changes to this bug.