OpenStack Horizon Plugin

Overview

Integration with the Openstack interface is our second plugin alongside the oVirt/RHV virtualization family. Thanks to it, you can perform most of the basic operations without logging into the Storware Backup & Recovery dashboard.

After installation (which is described at the end of this article) you will see a new tab "Backup & Recovery" in the OpenStack menu. This consists of several sub-tabs that allow you to perform basic actions such as backup, restore or create a new schedule.

Dashboard

Divided into a few sections, it makes it possible to view and set the most vital options related to management, monitoring, and reporting.

Reporting

Reporting allow users to view statistics, especially for backup and restore tasks. They also provide the possibility to view what has happened lately in the Storware Backup & Recovery environment.

Virtual Environments

Instances

This tab shows all inventoried instances in your OpenStack environment.

Besides, you can also perform basic backup operations.

Backup SLAs

Our plugin also allows you to create or manage backup policies

and schedules.

Mounted Backups

Finally, you can also browse your mounted backups from the OpenStack dashboard. You only need to enter the backup details using the menu on the right.

From here we can see the basic information about the backup and start browsing the files using the "Browse" button on the right.

Just select a folder or file and then click on the "download selected" button to have the files on your computer.

Task Console

Basic information about current tasks performed by Storware Backup & Recovery.

Settings

Mailing

It allows you to create a mailing list that can be used for sending group report e-mails.

Installation

circle-info

Minimal supported Horizon version: 17

Service account creation

Create a service account user with all permissions (e.g., belonging to the Global Administrators group) in Storware Backup & Recovery with API access restriction enabled:

Installing a plugin in a non-containerized deployment

You can find the add-on in the GitHub repositoryarrow-up-right. Extract the provided archive onto your Horizon host and execute python install.py STORWARE_API_URL USER PASSWORD

Example: python install.py http://localhost:8080/api admin vprotect.

circle-info

Note: you need to restart your Horizon HTTP server after this

The above-mentioned script will copy the plug-in files to the following folders:

  • /usr/share/openstack-dashboard/openstack_dashboard/dashboards/vprotect - plugin files

  • /usr/share/openstack-dashboard/openstack_dashboard/enabled - file to enable the plugin

In order to uninstall it, remove the vprotect subfolder and enabled/_50_vprotect.py file and restart your Horizon HTTP server.

Installing a plugin in a Kolla-based deployment

This guide describes how to install, uninstall, and update the Horizon plugin for OpenStack environments deployed with Kolla.

The installation script has been tested on the following OpenStack releases:

  • Bobcat

  • Caracal

  • Dalmatian

  • Epoxy

In the following example, we assumed podman command for container management, but it should also work with docker .

Requirements

Before installing the plugin, ensure the following prerequisites are met:

  1. Storware Server uses a valid SSL certificate Follow the steps in: Storware Backup & Recovery Server (when using own certificate)

  2. Horizon container can resolve the Storware Server FQDN

    Verify DNS resolution from the Horizon container. If DNS is not configured, add an entry in /etc/hosts on the OpenStack host.


Installation on OpenStack with Internet access

  1. Download the installation script. Run on the OpenStack controller host:

  2. Copy script into Horizon container:

  3. Run installation interactively or not:

    1. Interactive mode:

    2. Non-interactive mode (specify your version):

Installation on OpenStack without Internet access

  1. Download the installer script manually:

    1. Copy the file to the OpenStack host and make it executable:

  2. Copy script into Horizon container:

  3. Download static plugin package:

    1. Copy it to the OpenStack host and then into the Horizon container:

  4. Run installation:

Uninstallation

To remove the Storware Horizon plugin, run this command on your OpenStack controller:

Update

To update the Horizon plugin:

  1. Uninstall the current version

  2. Install the new version using the steps above

Script Help

The installer supports a --help flag to display all available options:

Available options:

Examples

Installing a plugin in an LXC-based deployment

Requirements:

  • git, python3-yaml packages

  • internet connection

  1. Check the name of the horizon container:

  2. Enter horizon container:

  3. Install requirements packages:

  4. Clone from github installations files:

  5. Change owner of the plugin directory to horizon:horizon

  6. Enter plugin directory:

  7. Optionally you can ping Storware Backup & Recovery server by ping

  8. Next, install the plugin

    When the installation process is completed, plugin files should be placed in /usr/share/openstack-dashboard/openstack_dashboard directory. If your path to the dashboard directory is different, create symbolic links from plugin install directories to non-standard directories.

    Example:

  9. Edit /etc/apache2/sites-available/openstack-dashboard.conf file:

    • Add alias for static files

    • Directory tag informs you, where dashboards directories should be placed.

    • Second Directory tag informs where static directory from plugin should be placed.

    Example: configuration file should look like this:

  10. Restart httpd service

  11. After refreshing the dashboard site, you should see Storware Backup & Recovery tab in the Openstack menu.

Installing Horizon Plugin in a Juju Deployment

This guide provides detailed instructions for installing the Horizon plugin in a Juju-deployed OpenStack environment.

Prerequisites

Before you begin, make sure you have the following:

  • Access to the Juju controller and the model where the OpenStack services are deployed.

  • The IP address of the Storware Backup & Recovery server

Installation

  1. SSH into the leader unit of the openstack-dashboard application:

  2. Clone the Horizon plugin repository from GitHub:

  3. Change into the cloned directory:

  4. Install the required Python packages using pip:

  5. Run the plugin installer script with the following command:

    • Replace http://SBR_SERVER_IP:8080 with the actual address of your Storware Backup & Recovery server.

    • admin is the username.

    • vPr0tect is the password.

  6. Navigate to the static files directory of the OpenStack Dashboard:

  7. Create a symbolic link to the Storware Backup & Recovery static files:

  8. Check if the following aliases are present in the Apache configuration file:

    Ensure the file contains the following aliases:

  9. Edit the default Apache site configuration to add a rewrite rule:

    Add the following lines under DocumentRoot /var/www:

circle-info
  1. Edit the urls.py file to include a specific path:

  2. Add the following line to the urlpatterns section:

  3. Restart the Apache service to apply the changes:

The Horizon plugin should now be installed and configured in your Juju-deployed OpenStack environment. Verify that the plugin appears in the OpenStack Dashboard and is functioning correctly.

Last updated