> For the complete documentation index, see [llms.txt](https://documentation.atempo.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://documentation.atempo.com/tina-4.9.5/tina-4.9.5-en/administration-guide/backup/openstack.md). Agents can also search and read this documentation through its [MCP server](https://documentation.atempo.com/~gitbook/mcp).

# Openstack

## About the Tina OpenStack agent

The OpenStack agent is an application that runs on a host configured as a Tina agent or server. It lets Tina back up and restore virtual machines from an OpenStack infrastructure. This can be useful for administrators who want to centralize backups without having to install a Tina agent on each virtual machine (VM).

This document contains all the information needed to create the OpenStack application required to communicate with the virtualization infrastructure.

### Components

The OpenStack application consists of the following components:

* A Generic Virtualization Agent (GVA).
* An adapter that lets the GVA communicate with the virtualization infrastructure.

The following diagram illustrates the mechanism ([see Figure](https://docs.atempo.com/tina/4.9.4/en/tina-for-openstack/Content/C_Topics_GVA/about_tina_gva.htm?tocpath=_____2#gva_mechanism)):

<figure><img src="https://137371609-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HOI4mniMS7pDfClN83G%2Fuploads%2Fmfck0brfO7Uxr8oNCGpz%2Fimage.png?alt=media&amp;token=295fbe52-300a-4797-a03c-68d531f4160c" alt=""><figcaption><p><strong>Figure</strong>: Tina for OpenStack architecture</p></figcaption></figure>

#### OpenStack backup

For OpenStack backup to work, you must install Python.

### Key features

The key features of the Tina Generic Virtualization Agent are:

* Full VM backup and restore (vault backup and restore).
* Incremental backup of virtual machines.
* Restore of individual components (e.g. a disk) of a VM to a file on the Tina agent.
* Restore of individual infrastructure components (e.g. networks, images, and flavors).

### Tina Web Interface

The Tina Web Interface is available to configure the application and perform backup and restore operations.

## Configure the OpenStack Agent application

The OpenStack Agent application runs on a host configured as a Tina server or agent. No installation is required on the virtualization infrastructure or on the VMs.

### Step 1: Create the application

1. In the navigation pane, click the **Agents** tab.
2. At the bottom of the page, click **Add a new agent**. The new agent configuration wizard is displayed.
3. Select **Declare a new application**, then choose **OpenStack Virtualization Agent.**
4. Click **Next**.
5. Enter the host name.
6. Choose the system host.
7. Select **Enabled** to activate the agent.
8. If necessary, use a comment to describe the host.

### Step 2: Define the application settings

1. Identify the virtualization server:
   1. Enter the name of the virtualization server (FQDN or IP address).
   2. Enter the virtualization user name. This user must have administrator privileges on the virtualization infrastructure.
   3. Enter and confirm the virtualization password.
2. Identify the host that runs the application:
   1. Enter the user name for the OpenStack environment.
   2. Enter the password.
3. Set the required environment variables. You can hover over a variable to see additional information.
4. If your OpenStack server listens on a port other than the default (5000), specify the port number in **Port number for communication between Time Navigator and the virtualization infrastructure.**
5. If necessary, add optional environment variables. See also [Environment Variables. ](#environment-variables)OpenStack supports a wide range of filters, documented here. You can use <kbd>TINA\_GVA\_ FILTER\_VM</kbd> to define any combination of these filters, formatted as a Python dict. For example, if you want to select running VMs whose name contains "compta", set this variable as follows: <kbd>TINA\_GVA\_FILTER\_VM={ "name" : "compta", "vm\_state" : "ACTIVE" }</kbd> In the special case where the variable contains a simple string, it is used as a name filter. <kbd>TINA\_ GVA\_FILTER\_VM=compta</kbd> will select all VMs whose name contains the string "compta". This is equivalent to <kbd>TINA\_GVA\_FILTER\_VM={ "name" : "compta" }</kbd>.

   Note that, as described in the OpenStack documentation, this string is a regular expression, not a fixed string. It follows the rules of the underlying database (typically MySQL or PostgreSQL).
6. Click **Finish** to add the new agent

## Environment variables

This list (<mark style="color:blue;">Table 1</mark>) contains the mandatory and optional environment variables supported by the OpenStack Agent.

<table data-header-hidden><thead><tr><th></th><th width="363"></th><th></th></tr></thead><tbody><tr><td><strong>Environment variable</strong></td><td><strong>Description</strong></td><td><strong>Status</strong></td></tr><tr><td><strong>TINA_APP_LIB_PATH</strong></td><td>Automatically filled in by Tina when the application is created.</td><td>Mandatory</td></tr><tr><td><strong>TINA_GVA_OPENSTACK_PROJECT_ID</strong></td><td>Specifies the OpenStack project ID to use for the connection. For more details, see Obtaining an OpenStack project ID or domain name.</td><td>Mandatory</td></tr><tr><td><strong>TINA_GVA_OPENSTACK_DOMAIN</strong></td><td>Specifies the OpenStack domain to use for the connection. For more details, see Obtaining an OpenStack project ID or domain name.</td><td>Mandatory</td></tr><tr><td><strong>TINA_GVA_OPENSTACK_PROTOCOL</strong></td><td>Specifies the OpenStack protocol. Possible values [Default] are http or [https]. If the protocol is set to https, you must also fill in the OS_CACERT variable with the path to the certificate file.</td><td>Mandatory</td></tr><tr><td><strong>TINA_GVA_PORT</strong></td><td>If necessary, specifies the port number for communication between Tina and the virtualization infrastructure.</td><td>Optional</td></tr><tr><td><strong>TINA_GVA_VIEW</strong></td><td>Specifies the display format of the VM list. The only value currently supported is flat (default).</td><td>Optional</td></tr><tr><td><strong>TINA_GVA_FILTER_VM</strong></td><td>Selects only the VMs that match the given filter. By default, all VMs are selected. The format depends on the virtualization infrastructure; details are provided in each adapter's documentation.</td><td>Optional</td></tr><tr><td><strong>TINA_GVA_REQUEST_SHORT_TIMEOUT</strong></td><td>Specifies the maximum time allowed for the adapter to respond to a request that should run quickly (e.g. getting the VM list). The default time is 5 minutes.</td><td>Optional</td></tr><tr><td><strong>TINA_GVA_REQUEST_LONG_TIMEOUT</strong></td><td>Specifies the maximum time allowed for the adapter to respond to a request that may take longer (e.g. creating a snapshot). The default time is 2 hours.</td><td>Optional</td></tr><tr><td><strong>TINA_GVA_ADAPTER_SHORT_TIMEOUT</strong></td><td>Specifies the maximum time allowed for the virtualization infrastructure to respond to a request that should run quickly (e.g. getting the VM list). The default time is 30 seconds.</td><td>Optional</td></tr><tr><td><strong>TINA_GVA_ADAPTER_LONG_TIMEOUT</strong></td><td>Specifies the maximum time allowed for the virtualization infrastructure to respond to a request that may take longer (e.g. creating a snapshot). The default time is 10 minutes.</td><td>Optional</td></tr><tr><td><strong>TINA_GVA_ADAPTER_VERIFY_SSL</strong></td><td>Set to true if the adapter should enforce SSL verification, or to false to ignore SSL errors.</td><td>Optional</td></tr><tr><td><strong>TINA_GVA_CRYPTO_ENABLED</strong></td><td>Enables or disables encrypted communications with the adapter. Possible values [Default]: [yes] or no.</td><td>Optional</td></tr><tr><td><strong>TINA_GVA_AUTO_RENAME</strong></td><td>Enables automatic renaming of an existing VM or component during restore. Possible values [Default]: 0 [1-999999]</td><td>Optional</td></tr><tr><td><strong>TINA_GVA_VM_RESTORE_NAME</strong></td><td>Specifies the name of the restored VM. Possible values [Default]: String [original name].</td><td>Optional</td></tr><tr><td><strong>TINA_GVA_RESTORE_CACHE_PATH</strong></td><td>Specifies the cache directory for file restore. Possible values: path to a directory.</td><td>Optional</td></tr><tr><td><strong>TINA_GVA_VM_RESTORE_PATH</strong></td><td>Restore to a directory, not to the infrastructure. Possible values [Default]: directory path [original location].</td><td>Optional</td></tr><tr><td><strong>TINA_GVA_OPENSTACK_PROJECT_DOMAIN_NAME</strong></td><td>Specifies the name of the project domain.</td><td>Optional</td></tr><tr><td><strong>TINA_GVA_OPENSTACK_USER_DOMAIN_NAME</strong></td><td>Specifies the name of the user domain.</td><td>Optional</td></tr></tbody></table>

**Obtaining an OpenStack project ID or domain name**

1. Log in to your OpenStack Horizon dashboard
2. In the left-hand panel, click **Identity > Projects**. The project ID and domain name are displayed on the page (<mark style="color:blue;">Figure 3</mark>).

   <figure><img src="https://137371609-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HOI4mniMS7pDfClN83G%2Fuploads%2FXUj0YryFirBM88OR5CF3%2Fimage.png?alt=media&amp;token=0c08870f-3212-4d1c-93e0-ce9b7762a23d" alt=""><figcaption><p><strong>Figure 3</strong>: Project IDs and domain names are visible on the Projects page</p></figcaption></figure>

## Back up

This chapter explains how to perform a backup using the Tina OpenStack agent. Full and incremental backups are supported.

### Configure backup destinations

The first step in configuring a backup is to define a backup destination by adding storage.

### Configure virtual machine backups

To configure a new backup, you must declare a backup strategy on the agent and define a backup selection and a schedule.

A strategy defines when Tina performs a backup of a system or application. There are up to 4 associated strategies, indicated by the letters **A, B, C,** and **D.**

Backup selections specify the directories to back up, as well as the time phases and conditions under which the directories are backed up. If no backup selection is defined, Tina cannot perform any backup.

To schedule backups, the strategy includes a scheduler to define the day and time of full backups.

#### Configure infrastructure backups

You can define a backup selection on the /Infrastructure node. This is useful if you want to back up the Flavors, Keypairs, and Networks defined in the OpenStack infrastructure, independently of the VMs.

#### Backup of database applications

To protect applications running on VMs, you must ensure that:

* The application must be quiesced for the backup to succeed.
* Any restore will be a full VM restore. This is because the backup of a third-party database is a vault backup. This means that if you back up an Exchange server located on a VM, you cannot restore individual databases; you must restore the entire content of the VM. In addition, Exchange databases will not receive the information indicating that they have been backed up, so log truncation can become an issue. If you need such functionality, you should use the Tina application for Exchange Server to back up your Exchange server, or the Tina agent corresponding to your Windows database application.

#### Backup limitations

Before backing up a VM, check the following limitations:

* **VSS-aware applications on virtual machines** The OpenStack environment backs up\
  only the VM; it does not perform any specific action for VSS-compatible applications inside a VM.
* **Virtual machine templates** Backups of VM templates are not supported.
* **Synthetic backups** Synthetic backups are not supported.
* **OpenStack backup strategy** manages a single backup history per VM, so VM backups must be based on a single strategy.

#### Backup selections

By default, a backup selection is defined at the root of the application (i.e., /). Such a selection:

* is associated with all backup strategies.
* is not filtered.
* does not contain any time-phase exclusion.
* does not compress or encode data.

You can use the default backup selection to back up all VMs in your virtualization infrastructure. If you do not need to back up all VMs, browse the GVA application's meta-tree and define your backup selection(s) on each one individually.

### Perform a backup

Running backups does not require the VM to be stopped. Besides the backup wizard, which lets you schedule backups, you can manually launch a backup at any time.

**Step 1: Create backup strategies**

1. In the navigation pane, click the **Agents** tab, then choose the OpenStack agent from the list.
2. In the **Strategies** column, click the + button (<mark style="color:blue;">Figure 4</mark>).

   <figure><img src="https://137371609-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HOI4mniMS7pDfClN83G%2Fuploads%2F3hlRSc6zffC05syUtjJU%2Fimage.png?alt=media&amp;token=92b47177-4413-4037-bbc9-94db9116d5f1" alt=""><figcaption><p><strong>Figure 4</strong>: New backup strategy</p></figcaption></figure>
3. In the wizard, choose a name and a strategy type based on the storage on which you want to keep the backups, and click **Next**.
4. Select a retention pool for full backups and choose whether you want to add a **Full backup schedule** to define backup frequencies (<mark style="color:blue;">Figure 5</mark>).

   <figure><img src="https://137371609-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HOI4mniMS7pDfClN83G%2Fuploads%2FWDRybkRG0yUPttenrsb9%2Fimage.png?alt=media&amp;token=befca1d4-113f-42c5-afaa-35aa550e9509" alt=""><figcaption><p><strong>Figure 5</strong>: Full backup configuration</p></figcaption></figure>

   If you are backing up to tapes or virtual tapes with HSS deduplication, you can select **Enable synthetic full backup mode.** Then choose a strategy used to build the synthetic backup.
5. Repeat step 4 for the incremental backup configuration.

**Step 2: Define the options**

1. Set the **Parallelism index**. This allows the backup to run multiple backup sessions for the backup selection.
2. For backups to tapes or virtual tapes with HSS deduplication, select a data write format.
3. If necessary, set other options.
4. If necessary, configure the advanced options:
   1. Set the job priority.
   2. Set the behavior to adopt when an issue occurs during the backup.
   3. Specify a pre- and post-processing command to be run before and after each backup job.
   4. For backups to tapes or virtual tapes with HSS deduplication:
      1. Choose additional pools for full and incremental backup.
      2. Choose whether the backup should continue even if one of the multiple write sessions fails.
5. Click **Finish**.

**Step 3: Define backup selections**

Now that you have created a backup strategy, you must define backup selections and associate them with the appropriate strategies.

1. In the navigation pane, click the **Agents** tab. In the agent list, you can apply filters (Configured, agent category) to easily locate the agent.
2. Click the agent to view and edit its details.
3. In the left-hand menu, select **Configuration > Backup Selections** (<mark style="color:$primary;">Figure 6</mark>).

   <figure><img src="https://137371609-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HOI4mniMS7pDfClN83G%2Fuploads%2FWeuc4pEjuvjwKAWKzyjm%2Fimage.png?alt=media&amp;token=013517b6-6792-4da9-acfe-dcd24af2e487" alt=""><figcaption><p><strong>Figure 6</strong> : Add a new backup selection</p></figcaption></figure>
4. Click **Add a new backup selection.** The backup selection wizard is displayed.
5. Select the objects to protect. To browse the agent or the VM, enter credentials.
   1. Browse the agent A meta-tree is displayed showing the individual components of the infrastructure and a list of the VMs in the virtualization infrastructure (<mark style="color:blue;">Figure 7</mark>).
   2. Browse the VM The infrastructure components and the VMs in the virtualization infrastructure are displayed as a simple list.
   3. Add a path manually Manually enter a backup path (e.g., <kbd>/Infrastructure</kbd> to back up the Flavors, Keypairs, and Networks).

      <figure><img src="https://137371609-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HOI4mniMS7pDfClN83G%2Fuploads%2FbfjqjlornYsYNLy9tU9F%2Fimage.png?alt=media&amp;token=d2116c1d-5881-4b21-a250-e73da05aedd4" alt=""><figcaption><p><strong>Figure 7:</strong> Meta-tree view when browsing the agent</p></figcaption></figure>
6. Uncheck the strategies you do not want to use.
7. If necessary, set other settings in the options and advanced options, such as filters, time phases, or properties.
8. Click **Finish** to validate the backup selection.

**Step 4: Launch the backup**

If you have defined a backup schedule, Tina will launch backups automatically.

1. In the navigation pane, click the **Agents** tab.
2. In the agent list, choose the OpenStack agent and click the strategy name (e.g., <img src="https://137371609-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HOI4mniMS7pDfClN83G%2Fuploads%2Fgit-blob-02025e413f1631915f7770483cb3244d45dda96e%2Fimage%20(112).png?alt=media" alt="" data-size="line">).
3. In the context menu, select full or incremental backup (<mark style="color:$primary;">Figure 8</mark>).

   <figure><img src="https://137371609-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HOI4mniMS7pDfClN83G%2Fuploads%2Fte4dNPYS1zmJhBNnNJeU%2Fimage.png?alt=media&amp;token=fbe75d23-c95b-4620-821f-4b4d455335f2" alt=""><figcaption><p><strong>Figure 8:</strong> Backup types</p></figcaption></figure>

**About OpenStack**

* [![Topic](https://docs.atempo.com/tina/4.9.4/en/tina-for-nutanix/Skins/Default/Stylesheets/Images/transparent.gif)](https://docs.atempo.com/tina/4.9.4/en/tina-for-nutanix/Default.htm#C_Topics_GVA/about_tina_gva.htm?TocPath=_____2)[About the Tina OpenStack agent](#about-the-tina-openstack-agent)

**Create the OpenStack agent**

* [![Topic](https://docs.atempo.com/tina/4.9.4/en/tina-for-nutanix/Skins/Default/Stylesheets/Images/transparent.gif)](https://docs.atempo.com/tina/4.9.4/en/tina-for-nutanix/Default.htm#C_Topics_GVA/configure_gva_application.htm?TocPath=_____3)[Configure the OpenStack Agent application](#configure-the-openstack-agent-application)

**Back up OpenStack**

* ![Topic](https://docs.atempo.com/tina/4.9.4/en/tina-for-openstack/Skins/Default/Stylesheets/Images/transparent.gif)[Back up](#back-up)

**Environment variables**

* ![Topic](https://docs.atempo.com/tina/4.9.4/en/tina-for-nutanix/Skins/Default/Stylesheets/Images/transparent.gif)[Environment variables](#environment-variables)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://documentation.atempo.com/tina-4.9.5/tina-4.9.5-en/administration-guide/backup/openstack.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
