Problem: after copying server 'mysql01' to 'mysql02' and forgetting to adjust DNS-name for interface 'eth0' I get an error in the WebGUI and an exception in /var/log/cobbler/cobblerd.log. All makes sense to me.
I click System List, and I get the following apache response:
Forbidden You don't have permission to access /cobbler/web/ on this server.
and the following message in /var/log/cobbler/cobblerd.log:
2009-03-28 21:12:43,022 - api - add_system; ['mysql02'] 2009-03-28 21:12:43,022 - api - Exception occured: cobbler.cexceptions.CX 2009-03-28 21:12:43,022 - api - Exception value: "Can't save system mysql02. The dns name (mysql01.dmz.huiser.local) is already used by system mysql01 (eth0)" 2009-03-28 21:12:43,022 - 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 1250, in save_system return self.api.add_system(obj,check_for_duplicate_netinfo=True) File "/usr/lib/python2.4/site-packages/cobbler/api.py", line 388, in add_system rc = self._config.systems().add(ref,check_for_duplicate_names=check_for_duplicate_names,check_for_duplicate_netinfo=check_for_duplicate_netinfo,save=save) File "/usr/lib/python2.4/site-packages/cobbler/collection.py", line 246, in add
self.__duplication_checks(ref,check_for_duplicate_names,check_for_duplicate_netinfo) File "/usr/lib/python2.4/site-packages/cobbler/collection.py", line 364, in __duplication_checks raise CX(_("Can't save system %s. The dns name (%s) is already used by system %s (%s)") % (ref.name, intf["dns_name"], x.name, name))
2009-03-28 21:13:22,434 - api - login attempt; user(admin) 2009-03-28 21:13:22,434 - api - authenticate; ['admin', True] 2009-03-28 21:13:22,435 - api - login succeeded; user(admin) 2009-03-28 21:13:22,437 - api - Exception occured: exceptions.KeyError 2009-03-28 21:13:22,437 - api - Exception value: 'XnwO3JhECw6dUfM1wiqEwdsTEGIKuMn/kw==\n' 2009-03-28 21:13:22,437 - 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 1006, in check_access validated = self.__validate_token(token) File "/usr/lib/python2.4/site-packages/cobbler/remote.py", line 949, in __validate_token self.__invalidate_expired_tokens() File "/usr/lib/python2.4/site-packages/cobbler/remote.py", line 925, in __invalidate_expired_tokens del self.object_cache[token]
OS: RHEL 5.3 x86_64 rpm -q cobbler: cobbler-1.6.1-1
What can be wrong?
Do you need more info?
regards, Stephan
Stephan Huiser wrote:
Your problem appears to lie within the code to delete new objects from cobblerd's internal cache.
'XnwO3JhECw6dUfM1wiqEwdsTEGIKuMn/kw==\n' 2009-03-28 21:13:22,437 - 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 1006, in check_access validated = self.__validate_token(token) File "/usr/lib/python2.4/site-packages/cobbler/remote.py", line 949, in __validate_token self.__invalidate_expired_tokens() File "/usr/lib/python2.4/site-packages/cobbler/remote.py", line 925, in __invalidate_expired_tokens del self.object_cache[token]
Cobblerd has some logic to allow a new object handle to be created, modified, and then saved. This seems to be a bug in this logic (we were fixing other caching bugs Friday, and may have traded one for another)
Anyway, if you restart cobblerd, the WebUI will work again...
Might require a 1.6.2, I'll pound on it fully Monday to see if I can replicate this. I'd be curious to know if you save a system successfully and wait 15 minutes, if you get the same problem, or if it only happens with aborted saves.
Command line additions should not be affected.
2009-03-28 21:12:43,022 - api - Exception value: "Can't save system mysql02. The dns name (mysql01.dmz.huiser.local) is already used by system mysql01 (eth0)"
This is actually a seperate error.
Michael DeHaan wrote:
Stephan Huiser wrote:
Your problem appears to lie within the code to delete new objects from cobblerd's internal cache.
'XnwO3JhECw6dUfM1wiqEwdsTEGIKuMn/kw==\n' 2009-03-28 21:13:22,437 - 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 1006, in check_access validated = self.__validate_token(token) File "/usr/lib/python2.4/site-packages/cobbler/remote.py", line 949, in __validate_token self.__invalidate_expired_tokens() File "/usr/lib/python2.4/site-packages/cobbler/remote.py", line 925, in __invalidate_expired_tokens del self.object_cache[token]
Cobblerd has some logic to allow a new object handle to be created, modified, and then saved. This seems to be a bug in this logic (we were fixing other caching bugs Friday, and may have traded one for another)
Anyway, if you restart cobblerd, the WebUI will work again...
Might require a 1.6.2, I'll pound on it fully Monday to see if I can replicate this. I'd be curious to know if you save a system successfully and wait 15 minutes, if you get the same problem, or if it only happens with aborted saves.
Command line additions should not be affected.
2009-03-28 21:12:43,022 - api - Exception value: "Can't save system mysql02. The dns name (mysql01.dmz.huiser.local) is already used by system mysql01 (eth0)"
This is actually a seperate error.
Just to clarify, this last thing is "normal". We're just logging it for sake of completeness.
The first message is not normal.
Michael DeHaan wrote:
Stephan Huiser wrote:
Your problem appears to lie within the code to delete new objects from cobblerd's internal cache.
'XnwO3JhECw6dUfM1wiqEwdsTEGIKuMn/kw==\n' 2009-03-28 21:13:22,437 - 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 1006, in check_access validated = self.__validate_token(token) File "/usr/lib/python2.4/site-packages/cobbler/remote.py", line 949, in __validate_token self.__invalidate_expired_tokens() File "/usr/lib/python2.4/site-packages/cobbler/remote.py", line 925, in __invalidate_expired_tokens del self.object_cache[token]
Cobblerd has some logic to allow a new object handle to be created, modified, and then saved. This seems to be a bug in this logic (we were fixing other caching bugs Friday, and may have traded one for another)
Anyway, if you restart cobblerd, the WebUI will work again...
Might require a 1.6.2, I'll pound on it fully Monday to see if I can replicate this. I'd be curious to know if you save a system successfully and wait 15 minutes, if you get the same problem, or if it only happens with aborted saves.
I will test this, and let you know
Command line additions should not be affected.
2009-03-28 21:12:43,022 - api - Exception value: "Can't save system mysql02. The dns name (mysql01.dmz.huiser.local) is already used by system mysql01 (eth0)"
This is actually a seperate error.
I understand, I posted it to give the other error message some context. Shouldn't this exception message be sent back to the WebUI?
cobbler mailing list cobbler@lists.fedorahosted.org https://fedorahosted.org/mailman/listinfo/cobbler
2009-03-28 21:12:43,022 - api - Exception value: "Can't save system mysql02. The dns name (mysql01.dmz.huiser.local) is already used by system mysql01 (eth0)"
This is actually a seperate error.
I understand, I posted it to give the other error message some context. Shouldn't this exception message be sent back to the WebUI?
Yes, most definitely.
Possible chance the first was masking the second.
I'll look at this after I get the first item settled.
--Michael
Michael DeHaan wrote:
2009-03-28 21:12:43,022 - api - Exception value: "Can't save system mysql02. The dns name (mysql01.dmz.huiser.local) is already used by system mysql01 (eth0)"
This is actually a seperate error.
I understand, I posted it to give the other error message some context. Shouldn't this exception message be sent back to the WebUI?
Yes, most definitely.
Possible chance the first was masking the second.
I'll look at this after I get the first item settled.
--Michael _______________________________________________ cobbler mailing list cobbler@lists.fedorahosted.org https://fedorahosted.org/mailman/listinfo/cobbler
I just tested this and the error seems to report fine now (after the cobblerd caching fix)
--Michael
cobbler@lists.fedorahosted.org