On 06/13/2014 02:34 PM, Leonid Flaks wrote:
On 06/13/2014 09:36 AM, [email protected] wrote:
Hi,

I am running cobbler-2.4.4-1.el6.noarch on a Centos 6 system. The last time
I used the system it worked as expected. Today, when I run cobbler sync
I get the following error:

Exception occured: <class 'cexceptions.CX'>
Exception value: 'system sp-router.mydomain.com references a missing
profile router-centos6-mini-itx-x86_64'
Exception Info:
   File "/usr/lib/python2.6/site-packages/cobbler/remote.py", line 87,
in run
     rc = self._run(self)
    File "/usr/lib/python2.6/site-packages/cobbler/remote.py", line 186,
in runner
     return
self.remote.api.sync(self.options.get("verbose",False),logger=self.logger)
    File "/usr/lib/python2.6/site-packages/cobbler/api.py", line 767, in
sync
     return sync.run()
    File "/usr/lib/python2.6/site-packages/cobbler/action_sync.py", line
114, in run
     self.tftpd.sync(self.verbose)
    File
"/usr/lib/python2.6/site-packages/cobbler/modules/manage_in_tftpd.py",
line 191, in sync
     self.pxegen.write_all_system_files(x, menu_items)
    File "/usr/lib/python2.6/site-packages/cobbler/pxegen.py", line 190,
in write_all_system_files
     raise CX("system %(system)s references a missing profile
%(profile)s" % { "system" : system.name, "profile" : system.profile})

!!! TASK FAILED !!!
(dover pts3) #

If I login to the web interface, I cannot see any distros or profiles. I
only
see the systems.

If I look in /var/lib/cobbler/config/distros.d, I see the distro files as
expected.  the modification times indicate that nothing has changed
since Feb.

If I look in /var/lib/cobbler/config/profiles.d I also see the profiles as
expected and again mod times show nothing has changed since Feb.

The one thing that has changed, is that cobbler was upgraded since the last use. Is there something I have to do when the system gets upgraded to allow
previously working profiles and distro file to work again?

Does anyone know how to troubleshoot and repair this problem. My Google foo
is not turning up anything useful.

Regards,

I suggest you try to restart cobbler daemon. It helped me in similar situations in the past.


I'd check if the referenced profile's JSON file exists in /var/lib/cobbler/config/profiles.d/ . If it is there, restarting cobbler daemon should work as mentioned. If not, you'll need to recreate it (via Cobbler web UI, XML-RPC interface or manually creating a JSON file
+ restarting cobbler daemon).


Regards,
Alan Evangelista

_______________________________________________
cobbler mailing list
[email protected]
https://lists.fedorahosted.org/mailman/listinfo/cobbler

Reply via email to