Description of problem: When HTTP_PROXY is defined cobbler get-loaders fails and triggers a NameError exception. cobbler/action_dlcontent.py is missing some code from upstream and uses an undefined variable 'var' on line 67: proxies['http'] = os.environ[var] This should be: proxies['http'] = os.environ["HTTP_PROXY"] Version-Release number of selected component (if applicable): cobbler-2.2.3-2.fc17.noarch How reproducible: Steps to Reproduce: 1. export HTTP_PROXY=http://localhost:911 2. cobblerd -F 3. cobbler get-loaders Actual results: task started: 2012-11-18_191845_get_loaders task started (id=Download Bootloader Content, time=Sun Nov 18 19:18:45 2012) Exception occured: <type 'exceptions.NameError'> Exception value: global name 'var' is not defined Exception Info: File "/usr/lib/python2.7/site-packages/cobbler/remote.py", line 89, in run rc = self._run(self) File "/usr/lib/python2.7/site-packages/cobbler/remote.py", line 183, in runner return self.remote.api.dlcontent(self.options.get("force",False), self.logger) File "/usr/lib/python2.7/site-packages/cobbler/api.py", line 689, in dlcontent return grabber.run(force) File "/usr/lib/python2.7/site-packages/cobbler/action_dlcontent.py", line 67, in run proxies['http'] = os.environ[var] !!! TASK FAILED !!! Expected results: Downloads successful. Additional info: Workaround is replace action_dlcontent.py with upstream from github, then download works.
As noted above, this has been fixed upstream and will be included in 2.4.0: https://github.com/cobbler/cobbler/pull/341