mirror of
https://github.com/openshift/openshift-docs.git
synced 2026-02-05 12:46:18 +01:00
112 lines
2.8 KiB
Plaintext
112 lines
2.8 KiB
Plaintext
// Module included in the following assemblies:
|
|
//
|
|
// * machine_management/adding-rhel-compute.adoc
|
|
// * machine_management/more-rhel-compute.adoc
|
|
// * post_installation_configuration/node-tasks.adoc
|
|
|
|
[id="rhel-preparing-node_{context}"]
|
|
= Preparing a RHEL compute node
|
|
|
|
Before you add a Red Hat Enterprise Linux (RHEL) machine to your {product-title} cluster, you must register each host with Red Hat Subscription Manager (RHSM), attach an active {product-title} subscription, and enable the required repositories.
|
|
|
|
. On each host, register with RHSM:
|
|
+
|
|
[source,terminal]
|
|
----
|
|
# subscription-manager register --username=<user_name> --password=<password>
|
|
----
|
|
|
|
. Pull the latest subscription data from RHSM:
|
|
+
|
|
[source,terminal]
|
|
----
|
|
# subscription-manager refresh
|
|
----
|
|
|
|
. List the available subscriptions:
|
|
+
|
|
[source,terminal]
|
|
----
|
|
# subscription-manager list --available --matches '*OpenShift*'
|
|
----
|
|
|
|
. In the output for the previous command, find the pool ID for an {product-title} subscription and attach it:
|
|
+
|
|
[source,terminal]
|
|
----
|
|
# subscription-manager attach --pool=<pool_id>
|
|
----
|
|
|
|
. Disable all yum repositories:
|
|
.. Disable all the enabled RHSM repositories:
|
|
+
|
|
[source,terminal]
|
|
----
|
|
# subscription-manager repos --disable="*"
|
|
----
|
|
|
|
.. List the remaining yum repositories and note their names under `repo id`, if any:
|
|
+
|
|
[source,terminal]
|
|
----
|
|
# yum repolist
|
|
----
|
|
|
|
.. Use `yum-config-manager` to disable the remaining yum repositories:
|
|
+
|
|
[source,terminal]
|
|
----
|
|
# yum-config-manager --disable <repo_id>
|
|
----
|
|
+
|
|
Alternatively, disable all repositories:
|
|
+
|
|
[source,terminal]
|
|
----
|
|
# yum-config-manager --disable \*
|
|
----
|
|
+
|
|
Note that this might take a few minutes if you have a large number of available repositories
|
|
|
|
. Enable only the repositories required by {product-title} {product-version}.
|
|
|
|
.. For {op-system-base} 7 nodes, you must enable the following repositories:
|
|
+
|
|
[source,terminal]
|
|
----
|
|
# subscription-manager repos \
|
|
--enable="rhel-7-server-rpms" \
|
|
--enable="rhel-7-fast-datapath-rpms" \
|
|
--enable="rhel-7-server-extras-rpms" \
|
|
--enable="rhel-7-server-optional-rpms" \
|
|
--enable="rhel-7-server-ose-4.9-rpms"
|
|
----
|
|
+
|
|
[NOTE]
|
|
====
|
|
Use of {op-system-base} 7 nodes is deprecated and planned for removal in a future release of {product-title} 4.
|
|
====
|
|
|
|
.. For {op-system-base} 8 nodes, you must enable the following repositories:
|
|
+
|
|
[source,terminal]
|
|
----
|
|
# subscription-manager repos \
|
|
--enable="rhel-8-for-x86_64-baseos-rpms" \
|
|
--enable="rhel-8-for-x86_64-appstream-rpms" \
|
|
--enable="rhocp-4.9-for-rhel-8-x86_64-rpms" \
|
|
--enable="fast-datapath-for-rhel-8-x86_64-rpms"
|
|
----
|
|
|
|
. Stop and disable firewalld on the host:
|
|
+
|
|
[source,terminal]
|
|
----
|
|
# systemctl disable --now firewalld.service
|
|
----
|
|
+
|
|
[NOTE]
|
|
====
|
|
You must not enable firewalld later. If you do, you cannot access {product-title} logs on the worker.
|
|
====
|