Hi,

I'm working on Cobbler / Puppet integration.

- I set 'Management Classes' of profile 'centos-5.2-xen-x86_64' to 'base'.

- After clicking Save button, I get the following message: 'Error while 
saving profile'

- I found the error below in cobblerd.log :

2009-04-02 01:39:40,840 - api - save_profile; user(admin); 
object_id(profile::centos-5.2-xen-x86_64)
2009-04-02 01:39:40,840 - api - calling authorize for resource 
['save_profile', <cobbler.item_profile.Profile instance at 0xb7c14d0>, 
None]; user(admin)
2009-04-02 01:39:40,840 - api - authorization result: True; user(?)
2009-04-02 01:39:40,840 - api - add_profile; ['centos-5.2-xen-x86_64']
2009-04-02 01:39:40,840 - api - saving profile centos-5.2-xen-x86_64
2009-04-02 01:39:40,845 - api - Exception occured: cobbler.cexceptions.CX
2009-04-02 01:39:40,845 - api - Exception value: 'error in system lookup 
for web01'
2009-04-02 01:39:40,845 - api - Exception Info:
  File "/usr/lib/python2.4/site-packages/cobbler/remote.py", line 1566, 
in _dispatch
    return method_handle(*params)
   File "/usr/lib/python2.4/site-packages/cobbler/remote.py", line 1238, 
in save_profile
    return self.api.add_profile(obj)
   File "/usr/lib/python2.4/site-packages/cobbler/api.py", line 383, in 
add_profile
    rc = 
self._config.profiles().add(ref,check_for_duplicate_names=check_for_duplicate_names,save=save)
   File "/usr/lib/python2.4/site-packages/cobbler/collection.py", line 
276, in add
    self.lite_sync.add_single_profile(ref.name)
   File "/usr/lib/python2.4/site-packages/cobbler/action_litesync.py", 
line 112, in add_single_profile
    self.add_single_profile(k.name, rebuild_menu=False)
   File "/usr/lib/python2.4/site-packages/cobbler/action_litesync.py", 
line 114, in add_single_profile
    self.add_single_system(k.name)
   File "/usr/lib/python2.4/site-packages/cobbler/action_litesync.py", 
line 137, in add_single_system
    raise CX(_("error in system lookup for %s") % name)

- When I do a 'cobbler system dumpvars --name=web01.dmz.huiser.local | 
grep mgmt_classes', I see that the system (via profile 
'centos-5.2-xen-x86_64' -> 'web-server') actually has a management class 
'base'.

- message "Exception value: 'error in system lookup for web01'" shows 
cobbler is looking for info on 'web01', which is the name of te system 
before I renamed it to 'web01.dmz.huiser.local' ....

- After a 'service cobbler restart' it works fine. Altering 'base' to 
'base test' works as it should be ...

I suspect there's still a cache problem. Do you need more info?

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

Reply via email to