Installing 3.5 OCP fails due to openvswitch missing from repository

Solution Verified - Updated -

Environment

  • Openshift Container Platform 3.5

Issue

Installing 3.5 OCP fails due to openvswitch missing from repository:

TASK [openshift_node : Install sdn-ovs package] ********************************
fatal: [xxx]: FAILED! => {
    "changed": true,
    "failed": true,
    "rc": 1,
    "results": [
        "Loaded plugins: package_upload, product-id, search-disabled-repos, subscription-\n              : manager\nResolving Dependencies\n--> Running transaction check\n---> Package atomic-openshift-sdn-ovs.x86_64 0:3.5.5.5-1.git.0.f2e87ab.el7 will be installed\n--> Processing Dependency: openvswitch >= 2.3.1 for package: atomic-openshift-sdn-ovs-3.5.5.5-1.git.0.f2e87ab.el7.x86_64\n--> Finished Dependency Resolution\nError: Package: atomic-openshift-sdn-ovs-3.5.5.5-1.git.0.f2e87ab.el7.x86_64 (rhel-7-server-ose-3.5-rpms)\n           Requires: openvswitch >= 2.3.1\n**********************************************************************\nyum can be configured to try to resolve such errors by temporarily enabling\ndisabled repos and searching for missing dependencies.\nTo enable this functionality please set 'notify_only=0' in /etc/yum/pluginconf.d/search-disabled-repos.conf\n**********************************************************************\n\n You could try using --skip-broken to work around the problem\n You could try running: rpm -Va --nofiles --nodigest\n"
    ]
}

MSG:

Error: Package: atomic-openshift-sdn-ovs-3.5.5.5-1.git.0.f2e87ab.el7.x86_64 (rhel-7-server-ose-3.5-rpms)
           Requires: openvswitch >= 2.3.1

Resolution

Make sure the rhel-7-fast-datapath repository is enabled by doing the following:

subscription-manager repos --enable="rhel-7-fast-datapath-rpms"

If you find any issue when trying to enable this repository please check:
Error: 'rhel-7-fast-datapath-rpms' does not match a valid repository ID.

Root Cause

Starting from OCP 3.5 openvswitch 2.6 is used from rhel-7-fast-datapath repository instead of the former rhel-7-server-ose-3.X-rpms one.

Diagnostic Steps

Check whether rhel-7-fast-datapath-rpms repository is enabled by doing the following:

yum repolist

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