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
Stephan Huiser wrote:
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 cobbler@lists.fedorahosted.org https://fedorahosted.org/mailman/listinfo/cobbler
Yes,
Do you have steps to reproduce this from a "scratch" setup.
i.e. "add a distro, add a profile, now do this" ?
If anything this seems to imply a system got deleted "out from under" the profile, I think.
I don't think it has any bearing on what field you updated, probably just a result of the change to the profile causing a change to the systems and there being a problem reading the file for the system (perhaps it was deleted by the command line tool?)
--Michael
cobbler@lists.fedorahosted.org