[cobbler] Problems in "cobber get-loaders" logic

Eldred, Doug doug.eldred at hp.com
Wed Nov 7 15:42:25 UTC 2012


There appear to be two problems in the Cobbler "get-loaders" logic, resulting in failure if you need to use a proxy server:

downloading http://dgoodwin.fedorapeople.org/loaders/grub-0.97-x86_64.efi to /var/lib/cobbler/loaders/grub-x86_64.efi
Exception occured: <class 'urlgrabber.grabber.URLGrabError'>
Exception value: [Errno 14] PYCURL ERROR 7 - "Failed to connect to 2610:28:3090:3001:5054:ff:fedb:7f5a: Network is unreachable"

Note the odd connect-to address, there COULD be a third problem here.  But for sure:

(1) Around line 65 of action_dlcontent.py, if either an HTTP or an FTP proxy is in the environment, we'll try to reference an undefined "var" value

(2) The reason this does NOT cause a runtime Python error due to the missing "var" is that the environment is EXTREMELY tiny during execution of this code, and specifically doesn't contain any proxies:

os.environ: {'LANG': 'en_US.UTF-8', 'TERM': 'xterm', 'SHLVL': '2', 'PWD': '/', 'PATH': '/sbin:/usr/sbin:/bin:/usr/bin', '_': '/usr/bin/cobblerd'}

The terminal session calling "cobbler get-loaders" DOES have the proxies defined, both upper and lower case, and including HTTP, HTTPS, and FTP.

Regards,
Doug
----
MC Linux Infrastructure, 970-898-0411, Fort Collins 3UR8 (MS 57)
"Imagination is more important than knowledge." -- Albert Einstein



More information about the cobbler mailing list