ironic command not found

In this troubleshooting guide we learn how to fix ironic command not found error message

Introduction

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

ironic: command not found

or when using sudo you get the following error message

sudo: ironic: command not found

Solutions to ironic: command not found

How To Fix ironic: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu ironic is provided by python3-ironic package.

python3-ironic is:

Ironic is an Incubated OpenStack project which aims to provision bare metal machines instead of virtual machines, forked from the Nova Baremetal driver. It is best thought of as a bare metal hypervisor API and a set of plugins which interact with the bare metal hypervisors. By default, it will use PXE and IPMI in concert to provision and turn on/off machines, but Ironic also supports vendor-specific plugins which may implement additional functionality.

This package contains the Python 3 libraries.

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

sudo apt-get -y install python3-ironic

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

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

sudo apt -y install python3-ironic

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

sudo aptitude install python3-ironic

Summary

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