For the complete documentation index, see llms.txt. Markdown versions of documentation pages are available by appending .md to page URLs.
Skip to content

Delete a backup target

Follow the steps below to remove a backup target.

6.2 simplifies the delete flow. Trilio for OpenStack 6.2 deploys a single Dynamic Mount Service server per host instead of one triliovault-object-store-<bt-name> pod per backup target. As a result, deleting a backup target in 6.2 no longer requires deleting per-BT control-plane CRs (tvobackuptarget) or running per-BT data-plane teardown deployments. The procedure below covers the 6.2 flow; the legacy 6.1 steps are preserved at the bottom for reference.


1. Clean Workloads and Backups (Optional)

  • All data related to workloads and the cloud resides on the backup target. The administrator can clean this data from the backup target before deletion, but this step is optional and should not prevent the user from deleting the backup target.

  • Before cleaning up workloads or snapshots, log in to the correct OpenStack project, as each backup target and its workloads belong to that specific project. Select the right project you need before proceeding.

  • Delete all backups stored on the required dynamically added S3 backup target using the UI (Horizon) or Trilio CLI.

Delete Snapshots

Refer to this documentation for detailed steps.

Delete a Workload

Refer to this documentation for detailed steps.

Note: Repeat this procedure for each backup and workload that needs to be deleted from the S3 backup target created earlier.


2. Remove the Backup Target Record

Deleting a backup target removes it from the TrilioVault database. Make sure you do not need this backup target anymore before you delete it.

Using Horizon Dashboard

  • Log in to the OpenStack Horizon Dashboard as an Admin user.

  • Navigate to Admin → Backups-Admin → Backup Targets.

  • Click the button next to the target, and confirm the deletion when prompted.

  • Multiple targets can be deleted by selecting their checkboxes and clicking the button at the top right.

Using CLI

RHOSO18

  1. Identify the WLM API pod in the trilio-openstack namespace:

  2. Exec into the pod and source the admin RC file:

Kolla

  1. Exec into the wlm-api container and source the admin RC file:

Common Steps

  1. List the backup targets to find the ID of the one you want to delete:

    Note the Backup Target ID and the Secret Ref URL (for S3 targets) — you will need the secret ref to clean up the Barbican secret in step 3.

  2. Delete the backup target:

  3. Verify deletion:


3. Delete the Barbican Secret (S3 only)

In 6.2, the S3 access/secret keys for each backup target are stored in an OpenStack Barbican secret. Once the backup target record is gone, the corresponding Barbican secret is no longer referenced and can be removed.

From inside the WLM API pod/container:

Or use the Secret Ref URL captured from workloadmgr backup-target-list in section 2 directly:


4. Verify

DMS unmounts the backup target automatically when the last in-flight job releases it; no manual unmount is required. You can confirm that:

  • The deleted backup target no longer appears in workloadmgr backup-target-list.

RHOSO18

  • The DMS server pods on the controller and compute nodes are still Running:

  • No per-BT triliovault-object-store-<bt-name>-* pods remain in the trilio-openstack namespace (in 6.2 they should never be present):

Kolla

  • The DMS server containers on the controller and compute nodes are still Running:


Deprecated (6.1) — per-BT data-plane teardown and tvobackuptarget CR delete

In Trilio for OpenStack 6.1 and earlier, deleting a backup target also required tearing down a per-BT object-store container on every node. This procedure is preserved for reference; do not run any of these steps on 6.2 or later — there are no per-BT containers or CRs to remove.

3.1] Unmount Backup Target from Data Plane

Delete the per-BT data-plane deployment

  • List OpenStackDataPlaneDeployment resources matching the backup target name:

  • Delete the deployment:

Delete the per-BT data-plane service

  • List the per-BT OpenStackDataPlaneService:

  • Delete it:

Run the cleanup playbook

  • Generate the cleanup YAMLs:

  • Edit trilio-delete-backup-target-service.yaml and set openStackAnsibleEERunnerImage:. Apply:

  • Edit trilio-delete-backup-target-deployment.yaml and add the compute nodeSets where this BT was added. Apply:

  • Tail the runner pod logs:

3.2] Unmount Backup Target from Control Plane

  • List the tvobackuptarget CRs added dynamically:

  • Delete the selected one:

  • Verify the deletion and confirm that the per-BT object-store pods have been cleaned:


In 6.2, none of the resources referenced above (OpenStackDataPlaneDeployment/OpenStackDataPlaneService per BT, create-templates-delete-backup-target.sh, tvobackuptarget CR, per-BT object-store pods) exist — DMS handles unmount on demand and the only steps required are sections 1–3 of this page.

Last updated

Was this helpful?