How To Install openstack-resource-agents on Ubuntu 18.04
Introduction
In this tutorial we learn how to install openstack-resource-agents
on Ubuntu 18.04.
What is openstack-resource-agents
openstack-resource-agents is:
This package contains resource agents to run most of the OpenStack components inside a pacemaker-controlled high availability cluster. Agents for the following OpenStack components are included:
- glance-api
- glance-registry
- keystone
- nova-api
- nova-cert
- nova-consoleauth
- nova-network
- nova-novnc
- nova-objectstore
- nova-scheduler
- nova-volume
- quantum-server
Install this package if you want this computer to act as member of a pacemaker HA cluster running OpenStack components.
There are three methods to install openstack-resource-agents
on Ubuntu 18.04. We can use apt-get
, apt
and aptitude
. In the following sections we will describe each method. You can choose one of them.
Install openstack-resource-agents Using apt-get
Update apt database with apt-get
using the following command.
sudo apt-get update
After updating apt database, We can install openstack-resource-agents
using apt-get
by running the following command:
sudo apt-get -y install openstack-resource-agents
Install openstack-resource-agents Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install openstack-resource-agents
using apt
by running the following command:
sudo apt -y install openstack-resource-agents
Install openstack-resource-agents Using aptitude
If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Ubuntu. Update apt database with aptitude
using the following command.
sudo aptitude update
After updating apt database, We can install openstack-resource-agents
using aptitude
by running the following command:
sudo aptitude -y install openstack-resource-agents
How To Uninstall openstack-resource-agents on Ubuntu 18.04
To uninstall only the openstack-resource-agents
package we can use the following command:
sudo apt-get remove openstack-resource-agents
Uninstall openstack-resource-agents And Its Dependencies
To uninstall openstack-resource-agents
and its dependencies that are no longer needed by Ubuntu 18.04, we can use the command below:
sudo apt-get -y autoremove openstack-resource-agents
Remove openstack-resource-agents Configurations and Data
To remove openstack-resource-agents
configuration and data from Ubuntu 18.04 we can use the following command:
sudo apt-get -y purge openstack-resource-agents
Remove openstack-resource-agents configuration, data, and all of its dependencies
We can use the following command to remove openstack-resource-agents
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge openstack-resource-agents
References
Summary
In this tutorial we learn how to install openstack-resource-agents
package on Ubuntu 18.04 using different package management tools: apt
, apt-get
and aptitude
.