openstack-inventory command not found

In this troubleshooting guide we learn how to fix openstack-inventory command not found error message

Introduction

When you run more command in linux terminal / console, you get the following error message

openstack-inventory: command not found

or when using sudo you get the following error message

sudo: openstack-inventory: command not found

Solutions to openstack-inventory: command not found

How To Fix openstack-inventory: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu openstack-inventory is provided by python3-openstacksdk package.

python3-openstacksdk is:

The python-openstacksdk is a collection of libraries for building applications to work with OpenStack clouds. The project aims to provide a consistent and complete set of interactions with OpenStack’s many services, along with complete documentation, examples, and tools.

This SDK is under active development, and in the interests of providing a high-quality interface, the APIs provided in this release may differ from those provided in future release.

This package contains the Python 3.x module.

To fix this problem, we can install more using the command below.

sudo apt-get -y install python3-openstacksdk

This command might take some time to finish depending on your machine internet connection.

You can also use apt command to install python3-openstacksdk.

sudo apt -y install python3-openstacksdk

Or if you have aptitude installed you can use the following command.

sudo aptitude install python3-openstacksdk

Summary

In this tutorial we learn how to fix openstack-inventory command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.