OpenShift error: rhel-7-server-ose-3.1-rpms is not a valid repository ID

Solution In Progress - Updated -

Environment

  • Red Hat OpenShift Enterprise 3.1

Issue

  • In OpenShift 3.1, the command subscription-manager repos --enable="rhel-7-server-ose-3.1-rpms" is failing
  • Error message reads Error: rhel-7-server-ose-3.1-rpms is not a valid repository ID. Use --list option to see valid repositories.
  • Acccess to certain repositories may need to be enabled via `subscription-manager'

Resolution

List available subscriptions running:

subscription-manager list --available

Note the pool ID associated with an OpenShift subscription and run:

subscription-manager attach --pool=<OpenShift-Subscription-Pool-ID>

Now running the following should work without error:

subscription-manager repos --enable="rhel-7-server-ose-3.1-rpms"

Diagnostic Steps

One can check which subscriptions are in use on a system by running:

subscription-manager list --installed
subscription-manager list --consumed

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.

Comments