Ce contenu n'est pas disponible dans la langue sélectionnée.
9.2. Configuring Yum on Node Hosts
exclude directives in the yum configuration files.
exclude directives work around the cases that priorities will not solve. The oo-admin-yum-validator tool consolidates this yum configuration process for specified component types called roles.
oo-admin-yum-validator Tool
After configuring the selected subscription method as described in Section 9.1, “Configuring Node Host Entitlements”, use the oo-admin-yum-validator tool to configure yum and prepare your host to install the node components. This tool reports a set of problems, provides recommendations, and halts by default so that you can review each set of proposed changes. You then have the option to apply the changes manually, or let the tool attempt to fix the issues that have been found. This process may require you to run the tool several times. You also have the option of having the tool both report all found issues, and attempt to fix all issues.
Procedure 9.3. To Configure Yum on Node Hosts:
- Install the latest openshift-enterprise-release package:
yum install openshift-enterprise-release
# yum install openshift-enterprise-releaseCopy to Clipboard Copied! Toggle word wrap Toggle overflow - Run the
oo-admin-yum-validatorcommand with the-ooption for version2.2and the-roption for thenoderole.If you intend to install one or more xPaaS premium cartridge and the relevant subscription(s) are in place as described in Section 9.1, “Configuring Node Host Entitlements”, replacenodewith one or more of thenode-eap,node-amq, ornode-fuseroles as needed for the respective cartridge(s). If you add more than one role, use an-roption when defining each role.The command reports the first detected set of problems, provides a set of proposed changes, and halts.Example 9.5. Finding Problems
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Alternatively, use the--report-alloption to report all detected problems.oo-admin-yum-validator -o 2.2 -r node-eap --report-all
# oo-admin-yum-validator -o 2.2 -r node-eap --report-allCopy to Clipboard Copied! Toggle word wrap Toggle overflow - After reviewing the reported problems and their proposed changes, either fix them manually or let the tool attempt to fix the first set of problems using the same command with the
--fixoption. This may require several repeats of steps 2 and 3.Example 9.6. Fixing Problems
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Alternatively, use the--fix-alloption to allow the tool to attempt to fix all of the problems that are found.oo-admin-yum-validator -o 2.2 -r node-eap --fix-all
# oo-admin-yum-validator -o 2.2 -r node-eap --fix-allCopy to Clipboard Copied! Toggle word wrap Toggle overflow Note
If the host is using Red Hat Network (RHN) Classic, the--fixand--fix-alloptions do not automatically enable any missing OpenShift Enterprise channels as they do when the host is using Red Hat Subscription Management. Enable the recommended channels with therhn-channelcommand. Replacerepo-idin the following command with the repository ID reported in theoo-admin-yum-validatorcommand output.rhn-channel -a -c repo-id
# rhn-channel -a -c repo-idCopy to Clipboard Copied! Toggle word wrap Toggle overflow Important
For either subscription method, the--fixand--fix-alloptions do not automatically install any packages. The tool reports if any manual steps are required. - Repeat steps 2 and 3 until the
oo-admin-yum-validatorcommand displays the following message.No problems could be detected!
No problems could be detected!Copy to Clipboard Copied! Toggle word wrap Toggle overflow