Hi
I have enabled build reporting but at the end of the ks when the post install trigger is run the following occurs in the apache log
[Mon Mar 11 17:18:43 2013] [error] [client 192.168.10.5] mod_wsgi (pid=7347): Exception occurred processing WSGI script '/var/www/cobbler/svc/services.py'. [Mon Mar 11 17:18:43 2013] [error] [client 192.168.10.5] Traceback (most recent call last): [Mon Mar 11 17:18:43 2013] [error] [client 192.168.10.5] File "/var/www/cobbler/svc/services.py", line 83, in application [Mon Mar 11 17:18:43 2013] [error] [client 192.168.10.5] content = func( **form ) [Mon Mar 11 17:18:43 2013] [error] [client 192.168.10.5] File "/usr/lib/python2.6/site-packages/cobbler/services.py", line 152, in trig [Mon Mar 11 17:18:43 2013] [error] [client 192.168.10.5] rc = self.remote.run_install_triggers(mode,"system",system,ip) [Mon Mar 11 17:18:43 2013] [error] [client 192.168.10.5] File "/usr/lib64/python2.6/xmlrpclib.py", line 1199, in __call__ [Mon Mar 11 17:18:43 2013] [error] [client 192.168.10.5] return self.__send(self.__name, args) [Mon Mar 11 17:18:43 2013] [error] [client 192.168.10.5] File "/usr/lib64/python2.6/xmlrpclib.py", line 1489, in __request [Mon Mar 11 17:18:43 2013] [error] [client 192.168.10.5] verbose=self.__verbose [Mon Mar 11 17:18:43 2013] [error] [client 192.168.10.5] File "/usr/lib64/python2.6/xmlrpclib.py", line 1253, in request [Mon Mar 11 17:18:43 2013] [error] [client 192.168.10.5] return self._parse_response(h.getfile(), sock) [Mon Mar 11 17:18:43 2013] [error] [client 192.168.10.5] File "/usr/lib64/python2.6/xmlrpclib.py", line 1392, in _parse_response [Mon Mar 11 17:18:43 2013] [error] [client 192.168.10.5] return u.close() [Mon Mar 11 17:18:43 2013] [error] [client 192.168.10.5] File "/usr/lib64/python2.6/xmlrpclib.py", line 838, in close [Mon Mar 11 17:18:43 2013] [error] [client 192.168.10.5] raise Fault(**self._stack[0]) [Mon Mar 11 17:18:43 2013] [error] [client 192.168.10.5] Fault: <Fault 1: "<type 'exceptions.NameError'>:global name 'config' is not defined">
I get a 500 Internal Server Error on the wget -
This is on cobbler-2.2.3-2.el6.noarch
thanks
On Mon, Mar 11, 2013 at 6:13 PM, Tom Brown tom@ng23.net wrote:
Hi
I have enabled build reporting but at the end of the ks when the post install trigger is run the following occurs in the apache log
[Mon Mar 11 17:18:43 2013] [error] [client 192.168.10.5] mod_wsgi (pid=7347): Exception occurred processing WSGI script '/var/www/cobbler/svc/services.py'. [Mon Mar 11 17:18:43 2013] [error] [client 192.168.10.5] Traceback (most recent call last): [Mon Mar 11 17:18:43 2013] [error] [client 192.168.10.5] File "/var/www/cobbler/svc/services.py", line 83, in application [Mon Mar 11 17:18:43 2013] [error] [client 192.168.10.5] content = func( **form ) [Mon Mar 11 17:18:43 2013] [error] [client 192.168.10.5] File "/usr/lib/python2.6/site-packages/cobbler/services.py", line 152, in trig [Mon Mar 11 17:18:43 2013] [error] [client 192.168.10.5] rc = self.remote.run_install_triggers(mode,"system",system,ip) [Mon Mar 11 17:18:43 2013] [error] [client 192.168.10.5] File "/usr/lib64/python2.6/xmlrpclib.py", line 1199, in __call__ [Mon Mar 11 17:18:43 2013] [error] [client 192.168.10.5] return self.__send(self.__name, args) [Mon Mar 11 17:18:43 2013] [error] [client 192.168.10.5] File "/usr/lib64/python2.6/xmlrpclib.py", line 1489, in __request [Mon Mar 11 17:18:43 2013] [error] [client 192.168.10.5] verbose=self.__verbose [Mon Mar 11 17:18:43 2013] [error] [client 192.168.10.5] File "/usr/lib64/python2.6/xmlrpclib.py", line 1253, in request [Mon Mar 11 17:18:43 2013] [error] [client 192.168.10.5] return self._parse_response(h.getfile(), sock) [Mon Mar 11 17:18:43 2013] [error] [client 192.168.10.5] File "/usr/lib64/python2.6/xmlrpclib.py", line 1392, in _parse_response [Mon Mar 11 17:18:43 2013] [error] [client 192.168.10.5] return u.close() [Mon Mar 11 17:18:43 2013] [error] [client 192.168.10.5] File "/usr/lib64/python2.6/xmlrpclib.py", line 838, in close [Mon Mar 11 17:18:43 2013] [error] [client 192.168.10.5] raise Fault(**self._stack[0]) [Mon Mar 11 17:18:43 2013] [error] [client 192.168.10.5] Fault: <Fault 1: "<type 'exceptions.NameError'>:global name 'config' is not defined">
I get a 500 Internal Server Error on the wget -
This is on cobbler-2.2.3-2.el6.noarch
I believe this was fixed by this patch:
commit 596579e8edf31029bd95c3c1e040550b0a7e0883 Author: James Cammarata jimi@sngx.net Date: Thu Jul 12 23:10:33 2012 -0500
Fix post_report trigger typo
Diff here:
https://github.com/cobbler/cobbler/commit/596579e8edf31029bd95c3c1e040550b0a...
If you want to try and apply that patch to your file (remove the .pyo/.pyc afterward and restart cobblerd).
I believe this was fixed by this patch:
commit 596579e8edf31029bd95c3c1e040550b0a7e0883 Author: James Cammarata jimi@sngx.net Date: Thu Jul 12 23:10:33 2012 -0500
Fix post_report trigger typo
Diff here:
https://github.com/cobbler/cobbler/commit/596579e8edf31029bd95c3c1e040550b0a...
If you want to try and apply that patch to your file (remove the .pyo/.pyc afterward and restart cobblerd).
Thanks - done as requested but the issue remains exactly as first reported.
cheers
On Tue, Mar 12, 2013 at 5:25 AM, Tom Brown tom@ng23.net wrote:
I believe this was fixed by this patch:
commit 596579e8edf31029bd95c3c1e040550b0a7e0883 Author: James Cammarata jimi@sngx.net Date: Thu Jul 12 23:10:33 2012 -0500
Fix post_report trigger typo
Diff here:
https://github.com/cobbler/cobbler/commit/596579e8edf31029bd95c3c1e040550b0a...
If you want to try and apply that patch to your file (remove the .pyo/.pyc afterward and restart cobblerd).
Thanks - done as requested but the issue remains exactly as first reported.
cheers
That's odd, that is definitely the line that was causing the issue, unless it's also in another module but that should not be the case since you only just enabled install reporting.
Can you verify the error is exactly the same, and that when you shut cobblerd down it did in fact terminate the process? Could you also download the install_post_report.py file from the master branch (or the release24 branch) on github and diff them to verify there are no other differences?
That's odd, that is definitely the line that was causing the issue, unless it's also in another module but that should not be the case since you only just enabled install reporting.
Can you verify the error is exactly the same, and that when you shut cobblerd down it did in fact terminate the process? Could you also download the install_post_report.py file from the master branch (or the release24 branch) on github and diff them to verify there are no other differences?
there arnt - but then i looked more closely at the error as i wrongly assumed that the 500 error was due to the same cause - it transpires that once that was fixed it was 500'ing due to a mail routing error and therefore this issue is indeed fixed!
many thanks
cobbler@lists.fedorahosted.org