博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
为cobbler自动化安装系统工具添加epel源
阅读量:5878 次
发布时间:2019-06-19

本文共 2865 字,大约阅读时间需要 9 分钟。

关于cobbler的安装及部署,参考:CentOS 6.5自动化运维之基于cobbler服务的自动化安装操作系统详解http://blog.csdn.net/reblue520/article/details/51398512

本地源资源有限,可以添加epel源
# cobbler repo add --name=centos6.5-x86_64-epel --mirror=http://epel.mirrors.arminco.com/6Server/x86_64/ --arch=x86_64 --breed=yum
# cobbler reposync

报错:task started: 2016-05-05_173249_reposynctask started (id=Reposync, time=Thu May  5 17:32:49 2016)hello, reposyncrun, reposync, run!running: rsync -rltDv --copy-unsafe-links --delete-after -e ssh --delete --exclude-from=/etc/cobbler/rsync.exclude http://epel.mirrors.arminco.com/6Server/x86_64/ /var/www/cobbler/repo_mirror/centos6.5-x86_64-epelreceived on stdout: received on stderr: ssh: Could not resolve hostname http: Name or service not knownrsync: connection unexpectedly closed (0 bytes received so far) [receiver]rsync error: unexplained error (code 255) at io.c(600) [receiver=3.0.6]Exception occured: 
Exception value: 'cobbler reposync failed'Exception Info: File "/usr/lib/python2.6/site-packages/cobbler/utils.py", line 126, in die raise CX(msg)Exception occured:
Exception value: 'cobbler reposync failed'Exception Info: File "/usr/lib/python2.6/site-packages/cobbler/action_reposync.py", line 126, in run self.sync(repo) File "/usr/lib/python2.6/site-packages/cobbler/action_reposync.py", line 174, in sync return self.rsync_sync(repo) File "/usr/lib/python2.6/site-packages/cobbler/action_reposync.py", line 275, in rsync_sync utils.die(self.logger,"cobbler reposync failed") File "/usr/lib/python2.6/site-packages/cobbler/utils.py", line 134, in die raise CX(msg)reposync failed, tries left: 0Exception occured:
Exception value: 'reposync failed, retry limit reached, aborting'Exception Info: File "/usr/lib/python2.6/site-packages/cobbler/utils.py", line 126, in die raise CX(msg)Exception occured:
Exception value: 'reposync failed, retry limit reached, aborting'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 250, in runner name=None, nofail=nofail, logger=self.logger) File "/usr/lib/python2.6/site-packages/cobbler/api.py", line 820, in reposync return reposync.run(name) File "/usr/lib/python2.6/site-packages/cobbler/action_reposync.py", line 148, in run utils.die(self.logger,"reposync failed, retry limit reached, aborting") File "/usr/lib/python2.6/site-packages/cobbler/utils.py", line 134, in die raise CX(msg)!!! TASK FAILED !!!
通过cobbler repo add --help 可以看出breed支持wget、yum、rsync协议,换成wget后ok
# yum install -y wget
# cobbler repo add --name=centos6.5-x86_64-epel --mirror=http://epel.mirrors.arminco.com/6Server/x86_64/ --arch=x86_64 --breed=wget

转载于:https://www.cnblogs.com/reblue520/p/6239790.html

你可能感兴趣的文章
IE8正式版引发VS2005和VS2008添加变量向导出错的解决方案
查看>>
[BZOJ 2243][SDOI2011] 染色
查看>>
Visual Studio 2010中文旗舰版+大家所关心的
查看>>
LeetCode-78-Subset
查看>>
libtiff.so.3
查看>>
人生感悟
查看>>
CSS transitions深入理解
查看>>
KDTree 板子
查看>>
.NET深入解析LINQ框架2
查看>>
股票新闻速递 隐私声明
查看>>
获取synchronized锁中的阻塞队列中的线程是非公平的
查看>>
在浏览器中输入Google.com并且按下回车之后发生了什么?[转]
查看>>
js刷新页面方法
查看>>
java递归理解
查看>>
工业大数据分析平台的应用价值探讨
查看>>
使用maven引入slf4j、logback时发生冲突
查看>>
课堂作业之找小水王
查看>>
团队编程需求分析
查看>>
Repost: Move semantics and smart pointers by Alex --- learncpp
查看>>
js中的 !! 和 ! 的区别
查看>>