Chapter 2. Prerequisites
2.1. Software Requirements
2.1.1. Operating System Requirements
Red Hat Enterprise Linux OpenStack Platform 5 is supported on:
- Red Hat Enterprise Linux 6.7
- Red Hat Enterprise Linux 7.2
For further information on configuring your subscription and the required repositories, see:
For detailed information on installing Red Hat Enterprise Linux, see the corresponding installation guide at:
2.1.2. Software Repository Configuration
2.1.2.1. Customer Portal Subscription Management
Red Hat Enterprise Linux OpenStack Platform requires that each system in the OpenStack environment be running Red Hat Enterprise Linux Server and that all systems be signed up to receive updates from the Customer Portal Subscription Management using Subscription Manager. For further information on managing Red Hat subscriptions, see the Red Hat Subscription Management documentation at the following link:
All steps in this procedure must be executed while logged in to the account of the
root user on the system being registered.
Procedure 2.1. Registering a Red Hat Enterprise Linux system using Subscription Management
- Run the
subscription-manager registercommand to register the system with Customer Portal Subscription Management.#subscription-manager register - Enter your Red Hat Customer Portal user name when prompted.
Username: admin@example.com
Important
Your Red Hat Subscription must have Red Hat Enterprise Linux OpenStack Platform entitlements. If your subscription does not have Red Hat Enterprise Linux OpenStack entitlements then you may register for access to the evaluation program at http://www.redhat.com/products/enterprise-linux/openstack-platform/. - Enter your Red Hat Customer Portal password when prompted.
Password:
- When registration completes successfully the system is assigned a unique identifier.
The system has been registered with id: IDENTIFIER
The system has been registered with Customer Portal Subscription Management and is ready to be attached to specific software subscriptions.
2.1.2.2. RHN/CDN Channels
This section discusses channel and repository settings required for deploying Red Hat Enterprise Linux OpenStack Platform 5.
Warning
Although older Red Hat OpenStack repositories are available, you must ensure that your system can no longer access them before installing Red Hat Enterprise Linux OpenStack Platform 5. For example, for CDN, unsubscribe from or disable the following:
- Red Hat OpenStack 1.0 (Essex) -- rhel-server-ost-6-preview-rpms
- Red Hat OpenStack 2.1 (Folsom) -- rhel-server-ost-6-folsom-rpms
- Red Hat Enterprise Linux OpenStack Platform 3 (Grizzly) -- rhel-server-ost-6-3-rpms
- Red Hat Enterprise Linux OpenStack Platform 4 Beta (Havana) -- rhel-6-server-openstack-beta-rpms
- Red Hat Enterprise Linux OpenStack Platform 4 (Havana) -- rhel-6-server-openstack-4.0-rpms
Note
The Red Hat Common for RHEL Server channel is recommended for use if creating custom Red Hat Enterprise Linux guest images that require cloud-init.
For Red Hat Enterprise Linux 6, run:
#subscription-manager repos \--enable=rhel-6-server-rh-common-rpms
For Red Hat Enterprise Linux 7, run:
#subscription-manager repos \--enable=rhel-7-server-rh-common-rpms
2.1.2.2.1. Content Delivery Network (CDN) Channels
To install Red Hat Enterprise Linux OpenStack Platform 6 through the Content Delivery Network (CDN), configure the correct channels (repositories):
Run the following command to enable a CDN channel:
#subscription-manager repos --enable=[reponame]
Run the following command to disable a CDN channel:
#subscription-manager repos --disable=[reponame]
Red Hat Enterprise Linux 6
The following tables outline the channels for Red Hat Enterprise Linux 6.7.
Table 2.1. Required Channels
| Channel | Repository Name |
|---|---|
| Red Hat Enterprise Linux 6 Server (RPMS) |
rhel-6-server-rpms
|
| Red Hat OpenStack 5.0 (RPMS) for Server 6 |
rhel-6-server-openstack-5.0-rpms
|
Table 2.2. Optional Channels
| Channel | Repository Name |
|---|---|
| RHEL Server Load Balancer (v6 for 64-bit x86_64) |
rhel-lb-for-rhel-6-server-rpms
|
| Red Hat Enterprise Linux 6 Server - Optional |
rhel-6-server-optional-rpms
|
Red Hat Enterprise Linux 7
The following tables outline the channels for Red Hat Enterprise Linux 7.2.
Table 2.3. Required Channels
| Channel | Repository Name |
|---|---|
| Red Hat Enterprise Linux 7 Server (RPMS) |
rhel-7-server-rpms
|
| Red Hat OpenStack 5.0 for Server 7 (RPMS) |
rhel-7-server-openstack-5.0-rpms
|
| Red Hat Enterprise Linux 7 Server - RH Common (RPMs) |
rhel-7-server-rh-common-rpms
|
Table 2.4. Optional Channels
| Channel | Repository Name |
|---|---|
| Red Hat Enterprise Linux 7 Server - Optional |
rhel-7-server-optional-rpms
|
Red Hat Enterprise Linux OpenStack Platform Installer
The following tables outline the channels for the Red Hat Enterprise Linux OpenStack Platform installer.
Table 2.5. Required Channels
| Channel | Repository Name |
|---|---|
| Foreman-RHEL-6 |
rhel-6-server-openstack-foreman-rpms
|
| Red Hat Enterprise Linux 6 Server (RPMS) |
rhel-6-server-rpms
|
| Red Hat Software Collections RPMs for Red Hat Enterprise Linux 6 Server |
rhel-server-rhscl-6-rpms
|
Disable Channels
The following table outlines the channels you must disable to ensure Red Hat Enterprise Linux OpenStack Platform 5 functions correctly.
Table 2.6. Disable Channels
| Channel | Repository Name |
|---|---|
| Red Hat CloudForms Management Engine |
"cf-me-*"
|
| Red Hat CloudForms Tools for RHEL 6 |
"rhel-6-server-cf-*"
|
| Red Hat Enterprise Virtualization |
"rhel-6-server-rhev*"
|
| Red Hat Enterprise Linux 6 Server - Extended Update Support |
"*-eus-rpms"
|
2.1.2.2.2. Red Hat Network (RHN) Channels
You can install Red Hat Enterprise Linux OpenStack Platform 5 through Red Hat Network (RHN).
Run the following to add a channel via RHN:
#rhn-channel --add --channel=[reponame]
Run the following to remove a channel via RHN:
#rhn-channel --remove --channel=[reponame]
Note
Red Hat Network is only available via Red Hat Satellite on Red Hat Enterprise Linux 7.2. For more information on this product, see:
Red Hat Enterprise Linux 6
The following tables outline the channels for Red Hat Enterprise Linux 6.7.
Table 2.7. Required Channels
| Channel | Repository Name |
|---|---|
| Red Hat OpenStack 5.0 for RHEL 6 Server x86_64 |
rhel-x86_64-server-6-ost-5
|
| Red Hat Enterprise Linux Server (v6 for 64-bit AMD64 / Intel64) |
rhel-x86_64-server-6
|
Table 2.8. Optional Channels
| Channel | Repository Name |
|---|---|
| RHEL Server Load Balancer (v6 for 64-bit x86_64) |
rhel-x86_64-server-lb-6
|
| RHEL Server Optional (v. 6 64-bit x86_64) |
rhel-x86_64-server-optional-6
|
| MRG Messaging v2 (for RHEL 6 Server x86_64) |
rhel-x86_64-server-6-mrg-messaging-2
|
Red Hat Enterprise Linux 7
The following tables outline the channels for Red Hat Enterprise Linux 7.2.
Table 2.9. Required Channels
| Channel | Repository Name |
|---|---|
| Red Hat OpenStack 5.0 for Server 7.2 |
rhel-x86_64-server-7-ost-5
|
| Red Hat Enterprise Linux Server (v7 for 64-bit AMD64 / Intel64) |
rhel-x86_64-server-7
|
Table 2.10. Optional Channels
| Channel | Repository Name |
|---|---|
| Red Hat Enterprise MRG Messaging v. 2 (for RHEL 7 Server x86_64) |
rhel-x86_64-server-7-mrg-messaging-2
|
2.1.2.3. Red Hat Enterprise Linux Repository Configuration
Log in as the
root user and follow the steps in this procedure to configure a Red Hat Enterprise Linux system to receive updates from Red Hat Network. Repeat these steps on each system in the OpenStack environment.
Procedure 2.2. Attaching Pool IDs to your subscription
- Use the
subscription-manager listcommand to locate the pool identifier of the Red Hat Enterprise Linux subscription.#subscription-manager list+-------------------------------------------+ Available Subscriptions +-------------------------------------------+ Product Name: Red Hat Enterprise Linux Server Product Id: 69 Pool Id: POOLID Quantity: 1 Service Level: None Service Type: None Multi-Entitlement: No Expires: 01/01/2022 Machine Type: physical ...--availableThe pool identifier is indicated in thePool Idfield associated with theRed Hat Enterprise Linux Serverproduct. The identifier will be unique to your subscription. Take note of this identifier as it will be required to perform the next step.Note
The output displayed in this step has been truncated to conserve space. All other available subscriptions will also be listed in the output of the command. - Use the
subscription-manager attachcommand to attach the subscription identified in the previous step.#subscription-managerSuccessfully attached a subscription for Red Hat Enterprise Linux Server.attach--pool=POOLIDReplace POOLID with the unique identifier associated with your Red Hat Enterprise Linux Server subscription. This is the identifier that was located in the previous step. - Run the
yum repolistcommand. This command ensures that the repository configuration file/etc/yum.repos.d/redhat.repoexists and is up to date.#yumrepolistOnce repository metadata has been downloaded and examined, the list of repositories enabled will be displayed, along with the number of available packages.repo id repo name status rhel-7-server-rpms Red Hat Enterprise Linux 7 Server (RPMs) 8,816 repolist: 8,816
Note
The output displayed in this step may differ from that which appears when you run theyum repolistcommand on your system. In particular the number of packages listed will vary if or when additional packages are added to therhel-7-server-rpmsrepository.
You have successfully configured your system to receive Red Hat Enterprise Linux updates from Red Hat Network.
2.1.2.4. Red Hat Enterprise Linux OpenStack Platform Repository Configuration
Follow the steps in this procedure to configure a Red Hat Enterprise Linux system to receive OpenStack packages and updates from Content Delivery Network or Red Hat Network. Access to a Red Hat software entitlement that includes Red Hat Enterprise Linux OpenStack Platform is required, such entitlements include:
- Red Hat Cloud Infrastructure
- Red Hat Cloud Infrastructure (without Guest OS)
- Red Hat Enterprise Linux OpenStack Platform
- Red Hat Enterprise Linux OpenStack Platform Preview
- Red Hat Enterprise Linux OpenStack Platform (without Guest OS)
Important
Required and optional repository names for each version are listed in Section 2.1.2.2, “RHN/CDN Channels”.
These steps must be run while logged in as the
root user. Repeat these steps on each system in the environment.
Procedure 2.3. Attaching Pool IDs to your subscription
- Use the
subscription-manager listcommand to locate the pool identifier of the relevant Red Hat Cloud Infrastructure or Red Hat Enterprise Linux OpenStack Platform entitlement.#subscription-manager list+-------------------------------------------+ Available Subscriptions +-------------------------------------------+ ... Product Name: ENTITLEMENT Product Id: ID_1 Pool Id: POOLID_1 Quantity: 3 Service Level: None Service Type: None Multi-Entitlement: No Expires: DATE Machine Type: physical Product Name: ENTITLEMENT Product Id: ID_2 Pool Id: POOLID_2 Quantity: unlimited Service Level: None Service Type: None Multi-Entitlement: No Expires: DATE Machine Type: virtual ...--availableLocate the entry in the list where theProduct Namematches the name of the entitlement that will be used to access Red Hat Enterprise Linux OpenStack Platform packages. Take note of the pool identifier associated with the entitlement, this value is indicated in thePool Idfield. The pool identifier is unique to your subscription and will be required to complete the next step.Note
The output displayed in this step has been truncated to conserve space. All other available subscriptions will also be listed in the output of the command. - Use the
subscription-manager attachcommand to attach the subscription identified in the previous step.#subscription-managerSuccessfully attached a subscription for ENTITLEMENT.attach--pool=POOLIDReplace POOLID with the unique identifier associated with your Red Hat Cloud Infrastructure or Red Hat Enterprise Linux OpenStack Platform entitlement. This is the identifier that was located in the previous step. - Use either the
subscription-manageroryum-config-managercommands to enable or disable the appropriate software repositories (channels).For example, to ensure that the repository for Red Hat Enterprise Linux OpenStack Platform 3 (Grizzly) has been disabled, run:#subscription-manager reposLoaded plugins: product-id ==== repo: rhel-server-ost-6-3-rpms ==== [rhel-server-ost-6-3-rpms] bandwidth = 0 base_persistdir = /var/lib/yum/repos/x86_64/6Server baseurl = https://cdn.redhat.com/content/dist/rhel/server/6/6Server/x86_64/openstack/3/os cache = 0 cachedir = /var/cache/yum/x86_64/6Server/rhel-server-ost-6-3-rpms cost = 1000 enabled = False ...--disable rhel-server-ost-6-3-rpmsNote
The valuesTrueand1are equivalent. As a result the output on your system may instead contain this string:enabled = 1 - Run the
yum repolistcommand. This command ensures that the repository configuration file/etc/yum.repos.d/redhat.repoexists and is up to date.#yumrepolistOnce repository metadata has been downloaded and examined, the current list of enabled repositories will be displayed, along with the number of available packages. For example:repo id repo name status rhel-7-server-rpms Red Hat Enterprise Linux 7 Server (RPMs) 11,610+460 rhel-7-server-openstack-5.0-rpms \ Red Hat OpenStack 5.0 for Server 7 (RPMS) 487+143
- Use the
subscription-managercommand to enable the Red Hat Enterprise Linux OpenStack Platform repository.#subscription-manager repos --enable=[reponame]Replace [reponame] with the appropriate repository name. For details, see Section 2.1.2.2, “RHN/CDN Channels”. - Install the yum-plugin-priorities package provided by the
rhel-6-server-optional-rpmschannel for Red Hat Enterprise Linux 6.7 or therhel-7-server-optional-rpmschannel for Red Hat Enterprise Linux 7.2:#yum install yum-plugin-priorities - If not yet installed, use the following to install yum-config-manager:
#yum install yum-utils - Use the
yum-config-managercommand to set the priority of the Red Hat Enterprise Linux OpenStack Platform software repository to1. This is the highest priority value supported by the yum-plugin-priorities plug-in.#yum-config-manager --enable [reponame] --setopt="[reponame].priority=1"For example:#yum-config-manager --enable rhel-7-server-openstack-5.0-rpms \--setopt="rhel-7-server-openstack-5.0-rpms.priority=1"Loaded plugins: product-id ==== repo: rhel-7-server-openstack-5.0-rpms ==== [rhel-7-server-openstack-5.0-rpms] bandwidth = 0 base_persistdir = /var/lib/yum/repos/x86_64/6Server ... cost = 1000 enabled = True ... priority = 1 ... - Run the
yumupdatecommand and reboot to ensure that the most up-to-date packages, including the kernel, are installed and running.#yum update#reboot
You have successfully configured your system to receive Red Hat Enterprise Linux OpenStack Platform packages. You may use the
yum repolist command to confirm the repository configuration again at any time.
2.1.3. Reserved UIDs and GIDs
The reserved range for UIDs and GIDs in Red Hat Enterprise Linux is currently 0-500. Because your organization may need to change one or more of these, the following tables are provided for OpenStack and third-party components that it uses. If you are assigning UIDs and GIDS, it is best to start at a number higher than 1000 (higher than 5000 might be a good strategy).
Table 2.11. OpenStack Daemons
| Component | Code | Reserved UID | Reserved GID |
|---|---|---|---|
|
Identity
|
keystone
|
163
|
163
|
|
Block Storage
|
cinder
|
165
|
165
|
|
Compute
|
nova
|
162
|
162
|
|
Image
|
glance
|
161
|
161
|
|
Object Storage
|
swift
|
160
|
160
|
|
Telemetry
|
ceilometer
|
166
|
166
|
|
Orchestration
|
heat
|
187
|
187
|
Table 2.12. Third-party Components
| Component | Reserved UID | Reserved GID |
|---|---|---|
|
MongoDB
|
184
|
184
|
|
Memcached
|
497
|
496
|
|
MariaDB
|
27
|
27
|
|
Nagios
|
496
|
495
|
|
RabbitMQ
|
103
|
106
|