centos系统openstack服务器,RHEL和CentOS的OpenStack软件包

RHEL和CentOS的OpenStack软件包¶

由于不同的发布日程,发行版发布 OpenStack 的包作为发行版的一部分,或使用其他方式。请在所有节点上执行这些程序。

警告

Starting with the Ussuri release, you will need to use either CentOS8

or RHEL 8. Previous OpenStack releases will need to use either CentOS7

or RHEL 7. Instructions are included for both distributions and

versions where different.

注解

这里所描述的OpenStack包设置需要在所有节点进行:控制节点、计算节点和块存储节点。

警告

在你进行更多步骤前,你的主机必须包含最新版本的基础安装软件包。

注解

禁用或移除所有自动更新的服务,因为它们会影响到您的 OpenStack 环境。

先决条件¶

警告

当使用RDO包时,我们推荐禁用EPEL,原因是EPEL中的更新破坏向后兼容性。或者使用``yum-versionlock``插件指定包版本号。

注解

The following steps apply to RHEL only. CentOS does not require these

steps.

When using RHEL, it is assumed that you have registered your system using

Red Hat Subscription Management and that you have the

rhel-7-server-rpms or rhel-8-for-x86_64-baseos-rpms repository

enabled by default depending on your version.

For more information on registering a RHEL 7 system, see the

Red Hat Enterprise Linux 7 System Administrator’s Guide.

In addition to rhel-7-server-rpms on a RHEL 7 system, you also need to

have the rhel-7-server-optional-rpms, rhel-7-server-extras-rpms,

and rhel-7-server-rh-common-rpms repositories enabled:

#subscription-manager repos --enable=rhel-7-server-optional-rpms \

--enable=rhel-7-server-extras-rpms --enable=rhel-7-server-rh-common-rpms

For more information on registering a RHEL 8 system, see the

Red Hat Enterprise Linux 8 Installation Guide.

In addition to rhel-8-for-x86_64-baseos-rpms on a RHEL 8 system, you

also need to have the rhel-8-for-x86_64-appstream-rpms,

rhel-8-for-x86_64-supplementary-rpms, and codeready-builder-for-rhel-8-x86_64-rpms

repositories enabled:

#subscription-manager repos --enable=rhel-8-for-x86_64-appstream-rpms \

--enable=rhel-8-for-x86_64-supplementary-rpms --enable=codeready-builder-for-rhel-8-x86_64-rpms

启用OpenStack库¶

On CentOS, the extras repository provides the RPM that enables the

OpenStack repository. CentOS includes the extras repository by

default, so you can simply install the package to enable the OpenStack

repository. For CentOS8, you will also need to enable the PowerTools

repository.

When installing the Victoria release, run:

#yum install centos-release-openstack-victoria

#yum config-manager --set-enabled PowerTools

When installing the Ussuri release, run:

#yum install centos-release-openstack-ussuri

#yum config-manager --set-enabled PowerTools

When installing the Train release, run:

#yum install centos-release-openstack-train

When installing the Stein release, run:

#yum install centos-release-openstack-stein

When installing the Rocky release, run:

#yum install centos-release-openstack-rocky

When installing the Queens release, run:

#yum install centos-release-openstack-queens

When installing the Pike release, run:

#yum install centos-release-openstack-pike

在RHEL上,下载和安装RDO仓库RPM来启用OpenStack仓库。

On RHEL 7:

#yum install https://rdoproject.org/repos/rdo-release.rpm

On RHEL 8:

#dnf install https://www.rdoproject.org/repos/rdo-release.el8.rpm

The RDO repository RPM installs the latest available OpenStack release.

完成安装¶

Upgrade the packages on all nodes:

#yum upgrade

注解

如果更新了一个新内核,重启主机来使用新内核。

Install the appropriate OpenStack client for your version.

For CentOS 7 and RHEL 7

#yum install python-openstackclient

For CentOS 8 and RHEL 8

#yum install python3-openstackclient

RHEL和 CentOS 默认启用 SELinux 。安装 openstack-selinux 包实现对OpenStack服务的安全策略进行自动管理:

#yum install openstack-selinux

你可能感兴趣的:(centos系统openstack服务器,RHEL和CentOS的OpenStack软件包)