How to Install OpenStack Client on CentOS 7/8

OpenStackClient is a command-line client for OpenStack that brings the command set for Compute, Identity, Image, Object Storage and Block Storage APIs together in a single shell with a uniform command structure. The OpenStack client enables you to interact with OpenStack services over the network via API call.

Enable the OpenStack repository

On CentOS, the extras repository provides the RPM that enables the OpenStack repository. CentOS includes the extras repository by default, so you can simply install the package to enable the OpenStack repository. For CentOS 8, you will also need to enable the PowerTools repository.

When installing the Ussuri & Victoria release, run:

# yum install centos-release-openstack-ussuri
# yum config-manager --set-enabled PowerTools

When installing the Train release and earlier (Queens, Rocky, Stein) run:

# yum install centos-release-openstack-train

Download and install the RDO repository RPM to enable the OpenStack repository.

For RHEL/CentOS 7:

# yum install https://rdoproject.org/repos/rdo-release.rpm

For RHEL/CentOS 8:

# dnf install https://www.rdoproject.org/repos/rdo-release.el8.rpm

Upgrade the Packages on Node

# yum upgrade

Install the appropriate OpenStack client for your CentOS version

  • For RHEL/CentOS 7:
# yum install python-openstackclient
  • For RHEL/CentOS 8:
# yum install python3-openstackclient

CentOS enable SELinux by default. Install the openstack-selinux package to automatically manage security policies for OpenStack services:

# yum install openstack-selinux

Update variables to match your OpenStack environment. When done, source the file to start using OpenStack command line tool to administer OpenStack Cloud.

# . keystonerc
# openstack --version
# openstack --help

See other content

References :

--

--

--

Cloud Consultant | RHCSA | RHCE in Red Hat OpenStack | Google Cloud ACE | AWS SAA | LinkedIn: https://www.linkedin.com/in/achchusnulchikam

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

TryHackMe: BP: Networking

How to Override Variables using Terraform CLI

STARTING WITH GIT

Introducing: GraphQL Inspector

All You Need To Build A Simple Rest API using Golang — Part II: Adding MongoDB

World Retro Day — running 12 retrospectives in less than 2 hours

Make Outbound PSTN Call from Custom Web APP using Flowroute and Kazoo with Pivot to fetch callflow…

How to use Termius

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Ach.Chusnul Chikam

Ach.Chusnul Chikam

Cloud Consultant | RHCSA | RHCE in Red Hat OpenStack | Google Cloud ACE | AWS SAA | LinkedIn: https://www.linkedin.com/in/achchusnulchikam

More from Medium

Measure EC2 performance

QR code reader for OS X via Terminal

Setting up iTerm2 & zsh with useful plugins

Explained — DNS & Web Hosting and everything in between