当Openstack EOL,网上的yum源无法安装openstack版本和rdo  ,则无法正常通过yum源直接安装openstack和rdo ,只是直接安装openstack后,也无法通过yum源获得rpm安装包。

正常的镜像服务器中,已经没有EOL的包。http://mirror.centos.org/centos/7/cloud/x86_64/

实际上并非所有的服务器都删除EOL版本openstack的包。

在这个服务器http://vault.centos.org/有EOL版本的openstack yum包源归档

但是路径已经发生变化。 需要修改本地相应的源路径才能进行安装。

如果要经常使用,建议制作本地安装源:

制作本地安装源步骤(以下mitaka版本为例)

yum install http://vault.centos.org/7.3.1611/cloud/Source/openstack-mitaka/centos-release-openstack-mitaka-1-5.el7.src.rpm

yum install https://repos.fedorapeople.org/repos/openstack/EOL/openstack-mitaka/rdo-release-mitaka-7.noarch.rpm

yum install   yum-utils   createrepo   yum-plugin-priorities –y

#yum -y install reposync   # reposync 包含在yum-utils中

#yum install -y createrepo.noarch

Yum clean all

修改yum源文件,根据vault.centos.org网站资源路径,修改CentOS-Vault.repo文件。

# C7.3.1611

[C7.3.1611-base]

name=CentOS-7.3.1611 - Base

baseurl=http://vault.centos.org/7.3.1611/os/$basearch/

gpgcheck=0

gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7

enabled=1

[C7.3.1611-updates]

name=CentOS-7.3.1611 - Updates

baseurl=http://vault.centos.org/7.3.1611/updates/$basearch/

gpgcheck=0

gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7

enabled=1

[C7.3.1611-extras]

name=CentOS-7.3.1611 - Extras

baseurl=http://vault.centos.org/7.3.1611/extras/$basearch/

gpgcheck=0

gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7

enabled=1

[C7.3.1611-centosplus]

name=CentOS-7.3.1611 - CentOSPlus

baseurl=http://vault.centos.org/7.3.1611/centosplus/$basearch/

gpgcheck=0

gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7

enabled=1

[C7.3.1611-fasttrack]

name=CentOS-7.3.1611 - CentOSPlus

baseurl=http://vault.centos.org/7.3.1611/fasttrack/$basearch/

gpgcheck=0

gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7

enabled=1

修改rdo文件

[root@localhost yum.repos.d]# cat rdo-release.repo

[openstack-mitaka]

name=OpenStack Mitaka Repository

baseurl=http://vault.centos.org/7.3.1611/cloud/x86_64/openstack-mitaka/

gpgcheck=0

enabled=1

gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-SIG-Cloud

其它yum源文件全部mv到bak目录中。在/etc/yum.repos.d下,mkdir bak

修改完源文件后 yum list一下,检查yum源是否正常。

Yum list

reposync -p <存放目录>       #我这里直接把同步下来的目录放在了/var/www/html目录,这样就不需要更改httpd的配置文件了  ,执行命令reposync –p /var/www/html

同步好的文件夹下,都要执行createrepo .  生成repoxml文件。

createrepo .

同步好文件的目录:

[root@localhost html]# ls -al

总用量 96

drwxr-xr-x. 9 root root  4096 11月 29 11:53 .

drwxr-xr-x. 4 root root    33 11月 21 21:36 ..

-rw-r--r--. 1 root root   117 4月  12 2016 00README.txt

drwxr-xr-x. 4 root root    38 11月 29 11:18 C7.3.1611-base

drwxr-xr-x. 3 root root    22 11月 29 03:59 C7.3.1611-centosplus

drwxr-xr-x. 4 root root    38 11月 29 11:18 C7.3.1611-extras

drwxr-xr-x. 3 root root    22 11月 29 11:23 C7.3.1611-fasttrack

drwxr-xr-x. 4 root root    38 11月 29 11:21 C7.3.1611-updates

drwxr-xr-x. 2 root root     6 11月 29 06:03 centos-openstack-mitaka-source

drwxr-xr-x. 4 root root 57344 11月 29 11:14 openstack-mitaka

createrepo .              #在同步下来的目录都需要执行 生成repo文件。

yum -y install httpd

systemctl start httpd

systemctl enable httpd

systemctl stop firewalld

systemctl disable firewalld

setenforce 0

以下为安装EOL Mitaka Openstack关于源部分的过程:

安装系统的时候,需要确定好软件的版本,如果版本太新的话,会导致很多依赖的lib包太新,无法安装旧的程序,导致openstack无法安装。

在安装好系统后。按照正常的安装步骤。

在执行yum install -y centos-release-openstack-mitaka之前,需要修改本地的安装源。把本地的yum源文件,按照惯例,全部mvbak目录中。然后创建一个rdo-release.repo的文件。然后添加本地yum源。

 

[root@localhost yum.repos.d]# ls -al

总用量 20

drwxr-xr-x.   3 root root   41 11月 28 22:43 .

drwxr-xr-x. 107 root root 8192 11月 29 02:08 ..

drwxr-xr-x    2 root root 4096 11月 28 22:21 bak

-rw-r--r--    1 root root  697 11月 28 23:11 rdo-release.repo

[root@localhost yum.repos.d]# cat rdo-release.repo

[base]

name=CentOS-$releasever - Base

baseurl=http://192.168.0.201/C7.3.1611-base/

gpgcheck=0

enabled=1

[updates]

name=CentOS-$releasever - Updates

baseurl=http://192.168.0.201/C7.3.1611-updates/

gpgcheck=0

enabled=1

[extras]

name=CentOS-$releasever - Extras

baseurl=http://192.168.0.201/C7.3.1611-extras/

gpgcheck=0

enabled=1

[openstack-mitaka]

name=OpenStack Pike Repository

baseurl=http://192.168.0.201/openstack-mitaka/

gpgcheck=0

enabled=1

[fasttrack]

name=CentOS-7.3.1611 - CentOSPlus

baseurl=http://192.168.0.201/C7.3.1611-fasttrack/

gpgcheck=0

enabled=1

[centosplus]

name=CentOS-7.3.1611 - CentOSPlus

baseurl=http://192.168.0.201//C7.3.1611-centosplus/Packages

gpgcheck=0

enabled=1

[root@localhost yum.repos.d]#

设置好本地yum源后,需要清楚本地的yum源缓存信息。

Yum clean all

Yum list

然后就可以开始正常的openstack安装过程

#yum install -y centos-release-openstack-mitaka

# yum update -y

# reboot

#yum install -y openstack-packstack

Openstack EOL 版本离线安装源的更多相关文章

  1. python使用pip 18以上版本离线安装package

    在内网办公环境,常常需要使用离线安装python的软件包. 一般都会先在互联网的电脑上下载,再拷贝到内网办公机器上进行离线安装. 一般来说,我是这样做的: 1.拷贝和外网电脑上版本一致,且32位或64 ...

  2. 部署openstack(N)版本-本地yum源(1)

    部署本地openstack yum源,原因主要是我想安装老版本,N版(newton),部署本地yum源,安装速度可以更快. 1. 使用apache提供yum服务 yum install -y http ...

  3. openstack ocata版本简化安装

    Network Time Protocol (NTP) Controller Node apt install chrony Edit the /etc/chrony/chrony.conf 添加如下 ...

  4. win8以上版本离线安装.NET

    方法一.C盘自带.NET 3.5,安装系统以后直接安装.NET 3.5.     1.按下:win+x,点击“命令提示符(管理员),     2.输入或复制以下代码(不可漏空格):dism.exe / ...

  5. Visual Studio 2019 社区版本离线安装

    官方指导 :https://docs.microsoft.com/en-us/visualstudio/install/create-an-offline-installation-of-visual ...

  6. 运维笔记--Debian/Ubuntu系统离线安装pymssql,连接SqlServer

    场景描述: 开始之前,先对Debian和Ubuntu操作系统做个了解,两者都是Linux阵营中很有影响力的发行版本,可以简单理解成“Ubuntu源自Debian,两者系统操作命令基本相同,相比Ubun ...

  7. Ubuntu离线安装Sogou拼音(附老版本安装&输入法自启动)

    跨平台系列汇总:http://www.cnblogs.com/dunitian/p/4822808.html#linux 离线安装的基础可以看看这篇文章的 前期准备工作 http://www.cnbl ...

  8. devstack安装openstack newton版本

    准备使用devstack安装openstack N版,搞一套开发环境出来.一连整了4天,遇到各种问题,各种错误,一直到第4天下午4点多才算完成. 在这个过程中感觉到使用devstack搭建openst ...

  9. Devstack 安装OpenStack Pike版本(单机环境)

    问题背景 最近在研究OpenStack的时候,需要对其源代码进行调试,公司服务器上部署的OpenStack环境又不能随意的进行折腾,为了研究的持续性和方便性,就决定再自己的虚拟机上面使用Devstac ...

随机推荐

  1. Spock - Document -01- introduction & Getting Started

    Introduction Peter Niederwieser, The Spock Framework TeamVersion 1.1 Spock is a testing and specific ...

  2. Django 数据迁移

    在1.6之前, Django只支持添加新的model到数据库, 而无法编辑或修改已经存在的model. 在当时, 这些Django缺失的功能可以通过South实现. 1. 新的命令 Django 1. ...

  3. 利用Python中的for循环和while循环,打印各种方向的九九乘法表。

    哈喽大家好,今天,可乐来给大家分享一下Python中用for循环和while循环打印九九乘法表的操作.由于本人也是刚刚接触Python不长时间,代码也是自己编写的,所以有什么不足之处还请大家多多指教. ...

  4. bugku 密码学一些题的wp

    ---恢复内容开始--- 1.滴答滴 摩斯密码,http://tool.bugku.com/mosi/ 2.聪明的小羊 从提示猜是栅栏密码,http://tool.bugku.com/jiemi/ 3 ...

  5. 将 windows 目录结构 复制到 linux 上

    思路:生成目录结构文件,复制到linux上,然后建立每个文件即可 借助unix_utils( https://sourceforge.net/projects/unxutils/) 1. window ...

  6. routeros DDNS 动态域名更新IP

    :local ednsuser "账号":local ednspass "密码":local ednshost "域名":local edn ...

  7. 自己实现一个jQuery插件

    <script src="https://cdn.staticfile.org/jquery/2.0.3/jquery.min.js"></script> ...

  8. SMD 自动点料机维修

    SMD 自动点料机维修 这个工具是一个好帮手,但是过完年回来发现坏了. 设置了数量不会自动停,按停止键没有反应,一定要按打印键才能停止. 这可愁死我了. 正常情况下开机设置好数量,然后开始点数,点到数 ...

  9. NFC 大电池 高性价比手机

    NFC 大电池 高性价比手机三星 Galaxy A60元气版 黑瞳全视屏 3200万超广角拍照手机 骁龙675 6GB+64GB 丹宁黑 全网通4G 双卡双待 1499 https://item.jd ...

  10. 【转】百度UEditor控件中的map组件不支持https使用的问题解决

    原文地址:https://blog.csdn.net/stacy06/article/details/82626363 最近项目部署到了https环境下,使用的UEditor富文本编辑器中的map组件 ...