Hi all,
I have a specific requirement to utilize iPXE/gPXE for provisioning and have my DHCP server referring iPXE to the following URL, per the documentation --
http://<cobbler server ip>/cblr/svc/op/gpxe/system/foo
Unfortunately, this URL is returning an Apache 500 Internal Server Error, rather than providing the correct template for iPXE continue to boot from. My Apache error_log contains the following when the host attempts to connect to the above URL --
~~ [Wed Jan 18 10:40:45.885309 2017] [:error] [pid 10824] [remote ip:108] mod_wsgi (pid=10824): Exception occurred processing WSGI script '/var/www/cobbler/svc/services.py'. [Wed Jan 18 10:40:45.885475 2017] [:error] [pid 10824] [remote ip:108] Traceback (most recent call last): [Wed Jan 18 10:40:45.885527 2017] [:error] [pid 10824] [remote ip:108] File "/var/www/cobbler/svc/services.py", line 90, in application [Wed Jan 18 10:40:45.885612 2017] [:error] [pid 10824] [remote ip:108] content = func( **form ) [Wed Jan 18 10:40:45.885641 2017] [:error] [pid 10824] [remote ip:108] File "/usr/lib/python2.7/site-packages/cobbler/services.py", line 88, in gpxe [Wed Jan 18 10:40:45.885687 2017] [:error] [pid 10824] [remote ip:108] data = self.remote.generate_gpxe(profile, system) [Wed Jan 18 10:40:45.885703 2017] [:error] [pid 10824] [remote ip:108] File "/usr/lib64/python2.7/xmlrpclib.py", line 1233, in __call__ [Wed Jan 18 10:40:45.885760 2017] [:error] [pid 10824] [remote ip:108] return self.__send(self.__name, args) [Wed Jan 18 10:40:45.885774 2017] [:error] [pid 10824] [remote ip:108] File "/usr/lib64/python2.7/xmlrpclib.py", line 1587, in __request [Wed Jan 18 10:40:45.885802 2017] [:error] [pid 10824] [remote ip:108] verbose=self.__verbose [Wed Jan 18 10:40:45.885816 2017] [:error] [pid 10824] [remote ip:108] File "/usr/lib64/python2.7/xmlrpclib.py", line 1273, in request [Wed Jan 18 10:40:45.885844 2017] [:error] [pid 10824] [remote ip:108] return self.single_request(host, handler, request_body, verbose) [Wed Jan 18 10:40:45.885865 2017] [:error] [pid 10824] [remote ip:108] File "/usr/lib64/python2.7/xmlrpclib.py", line 1306, in single_request [Wed Jan 18 10:40:45.885892 2017] [:error] [pid 10824] [remote ip:108] return self.parse_response(response) [Wed Jan 18 10:40:45.885906 2017] [:error] [pid 10824] [remote ip:108] File "/usr/lib64/python2.7/xmlrpclib.py", line 1482, in parse_response [Wed Jan 18 10:40:45.885932 2017] [:error] [pid 10824] [remote ip:108] return u.close() [Wed Jan 18 10:40:45.885952 2017] [:error] [pid 10824] [remote ip:108] File "/usr/lib64/python2.7/xmlrpclib.py", line 794, in close [Wed Jan 18 10:40:45.885981 2017] [:error] [pid 10824] [remote ip:108] raise Fault(**self._stack[0]) [Wed Jan 18 10:40:45.886048 2017] [:error] [pid 10824] [remote ip:108] Fault: <Fault 1: "<type 'exceptions.AttributeError'>:'NoneType' object has no attribute 'get_conceptual_parent'"> ~~
My Cobbler instance is running on CentOS 7 and was installed using the packages provided in your repositories.
Cobbler 2.8.0 source: ?, ? build time: Thu Nov 24 20:08:36 2016
Has anyone come across this before and can recommend a fix?
Thanks, Daniel
cobbler@lists.fedorahosted.org