How To Install trove-guestagent on Ubuntu 18.04

In this tutorial we learn how to install trove-guestagent on Ubuntu 18.04. trove-guestagent is Database as a Service for OpenStack - guest agent

Introduction

In this tutorial we learn how to install trove-guestagent on Ubuntu 18.04.

What is trove-guestagent

trove-guestagent is:

Trove is Database as a Service for Openstack. It’s designed to run entirely on OpenStack, with the goal of allowing users to quickly and easily utilize the features of a relational database without the burden of handling complex administrative tasks. Cloud users and database administrators can provision and manage multiple database instances as needed. Initially, the service will focus on providing resource isolation at high performance while automating complex administrative tasks including deployment, configuration, patching, backups, restores, and monitoring. Trove is designed to support a single-tenant database within a Nova instance. There is no restrictions on how Nova is configured, since Trove interacts with other OpenStack components purely through the API.

This package provides the Trove guest agent. The guestagent is a service that runs within the guest instance, responsible for managing and performing operations on the Database itself. The Guest Agent listens for RPC messages through the message bus and performs the requested operation.

There are three methods to install trove-guestagent 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 trove-guestagent Using apt-get

Update apt database with apt-get using the following command.

sudo apt-get update

After updating apt database, We can install trove-guestagent using apt-get by running the following command:

sudo apt-get -y install trove-guestagent

Install trove-guestagent Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install trove-guestagent using apt by running the following command:

sudo apt -y install trove-guestagent

Install trove-guestagent 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 trove-guestagent using aptitude by running the following command:

sudo aptitude -y install trove-guestagent

How To Uninstall trove-guestagent on Ubuntu 18.04

To uninstall only the trove-guestagent package we can use the following command:

sudo apt-get remove trove-guestagent

Uninstall trove-guestagent And Its Dependencies

To uninstall trove-guestagent and its dependencies that are no longer needed by Ubuntu 18.04, we can use the command below:

sudo apt-get -y autoremove trove-guestagent

Remove trove-guestagent Configurations and Data

To remove trove-guestagent configuration and data from Ubuntu 18.04 we can use the following command:

sudo apt-get -y purge trove-guestagent

Remove trove-guestagent configuration, data, and all of its dependencies

We can use the following command to remove trove-guestagent configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge trove-guestagent

References

Summary

In this tutorial we learn how to install trove-guestagent package on Ubuntu 18.04 using different package management tools: apt, apt-get and aptitude.