File and Object Storage

Resolving OpenStack dependencies required by the Object protocol in versions 5.1 and higher

By Brian Nelson posted Tue December 15, 2020 11:46 PM

  
Starting in the 5.1 release of the Spectrum Scale Object protocol, many of the OpenStack Swift and Keystone  packages and their associated dependencies are no longer shipped along with the Spectrum Scale installation image.  Instead, the necessary repositories for these dependent packages will need to be pre-configured on the CES protocol nodes before attempting the installation of the Object protocol.  Without the necessary repositories configured, these types of installation errors may be seen:

- nothing provides crudini needed by spectrum-scale-object...
- nothing provides python3-swiftclient needed by spectrum-scale-object...
- nothing provides openstack-keystone > 16 needed by spectrum-scale-object...
- nothing provides openstack-selinux >= 0.8.20 needed by spectrum-scale-object...
- nothing provides python3-cliff >= 2.8.0-1 needed by spectrum-scale-object...
- nothing provides python3-keystone > 16 needed by spectrum-scale-object...
...


The necessary packages can be resolved through a variety of different repositories.  Instructions on how to resolve them through the following repositories will be described below.  Repo installation instructions can also be found in the OpenStack guide at OpenStack packages for RHEL and CentOS.


RHOSP through Red Hat Subscription Manager

All of the necessary dependencies can be resolved with the subscription "Red Hat OpenStack Platform (RHOSP)".   Provided your systems have this RHOSP subscription, either through Red Hat directly or a Red Hat Satellite , configure the necessary repos using the following commands:


subscription-manager attach --pool=1234...   # Set to the pool id of the subscription with the OpenStack packages (see below)
subscription-manager repos --enable=openstack-16-for-rhel-8-x86_64-rpms
subscription-manager repos --enable=codeready-builder-for-rhel-8-x86_64-rpms

As the OpenStack packages are not part of the base subscription, it will likely be necessary to attach to a subscription pool which explicitly provides the OpenStack packages.   A list of all the subscription pools you have access to can be shown with the command "subscription-manager list --all --available".  Look through the list and find which pool id is associated with the subscription with OpenStack packages.

CentOS OpenStack repos used with a Red Hat basic subscription

Systems using Red Hat subscription manager but without the RHOSP subscription can access the necessary packages through a combination of Red Hat and CentOS repositories.


  • Enable the codeready repo, which is available through the Red Hat subscription manager:

    subscription-manager repos --enable=codeready-builder-for-rhel-8-x86_64-rpms
  • Manually download and install the CentOS OpenStack Train repo package with the commands:

    wget -O /tmp/centos-release-openstack-train-2-1.el8.noarch.rpm http://mirror.centos.org/centos/8/extras/x86_64/os/Packages/centos-release-openstack-train-2-1.el8.noarch.rpm
    rpm -i --nodeps /tmp/centos-release-openstack-train-2-1.el8.noarch.rpm
     

CentOS Systems

Systems built upon CentOS can enable the necessary OpenStack repositories using the following commands:


  • Install the OpenStack Train repos:

     dnf install centos-release-openstack-train
  • Enable the PowerTools repository.  Depending on the CentOS level, this repo may be spelled as "PowerTools" or "powertools":

    dnf config-manager --set-enabled PowerTools
    dnf config-manager --set-enabled powertools


RDO OpenStack repos used with a Red Hat basic subscription

Systems using Red Hat subscription manager but without the RHOSP subscription can access the necessary packages through a combination of Red Hat and RDO repositories.


  • Enable the codeready repo, which is available through the Red Hat subscription manager:

    subscription-manager repos --enable=codeready-builder-for-rhel-8-x86_64-rpms
  • Manually download and install the RDO OpenStack Train repo package with the commands:

    dnf install https://repos.fedorapeople.org/repos/openstack/openstack-train/rdo-release-train-3.el8.noarch.rpm



Installing Spectrum Scale Object

Once the OpenStack repos have been configured with the above commands, the install of Spectrum Scale Object can proceed as usual with either the mmobj command or the spectrumscale toolkit installer.
​​
1 comment
25 views

Permalink

Comments

Mon February 01, 2021 03:26 AM

This information is very helpful because I hit the exact same problem.
I wish this information were written on K.Center.

Another thing is, I spent some time to figure out where I should get "pool" id. I hope you should add that information as well.
--pool=1234...

Best regards,
Kazu Ozeki