加入收藏 | 设为首页 | 会员中心 | 我要投稿 桂林站长网 (https://www.0773zz.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 云计算 > 正文

保护企业私有云 创建Openstack yum 源操作示例

发布时间:2022-05-26 12:04:10 所属栏目:云计算 来源:互联网
导读:对于企业的 Openstack 私有云,出于安全和某些因素的考虑,有些服务器无法访问公网,导致服务器无法更新某些 RPM 包,同时内部常有 Openstack 新特性开发需求、版本的维护与升级,因此非常有必要构建企业私有的 openstack yum 源。 构建 openstack yum 源有

 
4. 解决依赖关系,创建仓库:
 
[root@yumserver updates]# ls
 
repodata x86_64
 
[root@yumserver updates]# pwd
 
yum-repo/openstack/openstack-icehouse/updates
 
[root@yumserver updates]# createrepo x86_64
 
5. repo 更新 RPM 包:
 
createrepo x86_64 --update
 
**********************************************************************************************************************************
 
编译后的rpm源码包示例:
 
new-rdo-release-havana-8.0.src.rpm
new-rdo-release-icehouse-4.0.src.rpm

troubleshooting:
 
yum repolist 出现
 
[root@controller yum.repos.d]# yum repolist
Loaded plugins: axelget, fastestmirror, security
Loading mirror speeds from cached hostfile
 
http://openstack-yum-server/ceph/el6/x86_64/repodata/repomd.xml: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 403 Forbidden"
Trying other mirror.
http://openstack-yum-server/ceph/el6/noarch/repodata/repomd.xml: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 403 Forbidden"
Trying other mirror.
.....
 
解决方案:
1)
每个 repo 配置新增 proxy=None
[openstack-havana-updates]
 
.....
_proxy_=None
2)
 
关闭防火墙, service iptables stop

(编辑:桂林站长网)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!