ironic-inspector-rootwrap command not found

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

Introduction

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

ironic-inspector-rootwrap: command not found

or when using sudo you get the following error message

sudo: ironic-inspector-rootwrap: command not found

Solutions to ironic-inspector-rootwrap: command not found

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

In Ubuntu ironic-inspector-rootwrap is provided by python3-ironic-inspector package.

python3-ironic-inspector is:

This is an auxiliary service for discovering hardware properties for a node managed by OpenStack Ironic. Hardware introspection or hardware properties discovery is a process of getting hardware parameters required for scheduling from a bare metal node, given it’s power management credentials (e.g. IPMI address, user name and password).

A special discovery ramdisk is required to collect the information on a node. The default one can be built using diskimage-builder and ironic-inspector-ramdisk element.

This package contains the Python 3 files.

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

sudo apt-get -y install python3-ironic-inspector

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

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

sudo apt -y install python3-ironic-inspector

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

sudo aptitude install python3-ironic-inspector

Summary

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