用yum方式安装cobbler时,执行cobbler get-loaders有时会报以下错误
[root@cobbler ~]# cobbler get-loaders task started: 2017-08-29_155755_get_loaders task started (id=Download Bootloader Content, time=Tue Aug 29 15:57:55 2017) path /var/lib/cobbler/loaders/README already exists, not overwriting existing content, use --force if you wish to update path /var/lib/cobbler/loaders/COPYING.elilo already exists, not overwriting existing content, use --force if you wish to update path /var/lib/cobbler/loaders/COPYING.yaboot already exists, not overwriting existing content, use --force if you wish to update path /var/lib/cobbler/loaders/COPYING.syslinux already exists, not overwriting existing content, use --force if you wish to update path /var/lib/cobbler/loaders/elilo-ia64.efi already exists, not overwriting existing content, use --force if you wish to update path /var/lib/cobbler/loaders/yaboot already exists, not overwriting existing content, use --force if you wish to update path /var/lib/cobbler/loaders/pxelinux.0 already exists, not overwriting existing content, use --force if you wish to update path /var/lib/cobbler/loaders/menu.c32 already exists, not overwriting existing content, use --force if you wish to update downloading http://cobbler.github.io/loaders/grub-0.97-x86.efi to /var/lib/cobbler/loaders/grub-x86.efi Exception occured: <class ‘urlgrabber.grabber.URLGrabError‘> Exception value: [Errno 14] PYCURL ERROR 56 - "Failure when receiving data from the peer" Exception Info: File "/usr/lib/python2.6/site-packages/cobbler/remote.py", line 87, in run rc = self._run(self) File "/usr/lib/python2.6/site-packages/cobbler/remote.py", line 181, in runner return self.remote.api.dlcontent(self.options.get("force",False), self.logger) File "/usr/lib/python2.6/site-packages/cobbler/api.py", line 751, in dlcontent return grabber.run(force) File "/usr/lib/python2.6/site-packages/cobbler/action_dlcontent.py", line 73, in run urlgrabber.grabber.urlgrab(src, filename=dst, proxies=proxies) File "/usr/lib/python2.6/site-packages/urlgrabber/grabber.py", line 618, in urlgrab return default_grabber.urlgrab(url, filename, **kwargs) File "/usr/lib/python2.6/site-packages/urlgrabber/grabber.py", line 985, in urlgrab return self._retry(opts, retryfunc, url, filename) File "/usr/lib/python2.6/site-packages/urlgrabber/grabber.py", line 886, in _retry r = apply(func, (opts,) + args, {}) File "/usr/lib/python2.6/site-packages/urlgrabber/grabber.py", line 971, in retryfunc fo = PyCurlFileObject(url, filename, opts) File "/usr/lib/python2.6/site-packages/urlgrabber/grabber.py", line 1066, in __init__ self._do_open() File "/usr/lib/python2.6/site-packages/urlgrabber/grabber.py", line 1360, in _do_open self._do_grab() File "/usr/lib/python2.6/site-packages/urlgrabber/grabber.py", line 1490, in _do_grab self._do_perform() File "/usr/lib/python2.6/site-packages/urlgrabber/grabber.py", line 1347, in _do_perform raise err !!! TASK FAILED !!!
解决办法
[root@cobbler ~]# yum -y install syslinux [root@cobbler ~]# cp/usr/share/syslinux/pxelinux.0 /var/lib/cobbler/loaders/ [root@cobbler ~]# cp/usr/share/syslinux/menu.c32 /var/lib/cobbler/loaders/ [root@cobbler ~]# /etc/init.d/cobblerdrestart [root@cobbler ~]# cobbler get-loaders #再次执行则成功
原文地址:http://wn2100.blog.51cto.com/9915310/1960856