当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. .net第四章内容总结

    4.2)   mdi 多文档界面 创建子窗体的childForm.text书上的做法childformnumber不存在 于是我自定义一个childforNumber起始为1: 在窗体下面显示所有已经 ...

  2. Exp2 后门原理与实践 毛瀚逸 20164318

    Exp2 后门原理与实践 20164318 毛瀚逸 一.实验内容 基础问题回答: 1.例举你能想到的一个后门进入到你系统中的可能方式? 答:下载奇怪的文件并运行,通过操作系统的漏洞来获取电脑的高级权限 ...

  3. new Date().getTime()和System.currentTimeMillis()对比

    我在工作中,看项目组的代码时,在代码中会发现一个有趣的现象,有使用new Date().getTime()来获取时间戳的, 也有使用System.currentTimeMillis()来获取时间戳的, ...

  4. 脚本添加crontab任务

    #!/bin/bash export LANG=en_US.utf8 cur_dir=$(cd ``;pwd) job_cmd_info="\n# 每天凌晨5点运行定时删除工具\n" ...

  5. 蓝桥第八届省赛 javaB组承压计算

    X星球的高科技实验室中整齐地堆放着某批珍贵金属原料. 每块金属原料的外形.尺寸完全一致,但重量不同.金属材料被严格地堆放成金字塔形. 7 5 8 7 8 8 9 2 7 2 8 1 4 9 1 8 1 ...

  6. SQL脚本--总耗CPU最多的前个SQL --平均耗CPU最多的前个SQL

    --总耗CPU最多的前个SQL SELECT TOP 20 total_worker_time/1000 AS [总消耗CPU 时间(ms)],execution_count [运行次数], qs.t ...

  7. python基础知识1---python相关介绍

    阅读目录 一 编程与编程语言 二 编程语言分类 三 主流编程语言介绍 四 python介绍 五 安装python解释器 六 第一个python程序 七 变量 八 用户与程序交互 九 基本数据类型 十 ...

  8. 2018-2019-20175334实验一《Java开发环境的熟悉》实验报告

    2018-2019-20175334实验一<Java开发环境的熟悉>实验报告 一.实验内容及步骤 实验一Java开发环境的熟悉-1 建立"自己学号exp1"的目录 在& ...

  9. spring4学习笔记

    IOC public class IServiceImpl implements IService { public void IserviceImpl(){} @Override public vo ...

  10. [WebService].net中WebService的使用实例

    .net中WebService的使用实例 一.创建一个Webwebservice 1.新建一个项目WebserverDemo 2.在项目处添加新建项,添加一个web服务 3.编辑TestServer. ...