LogoLogo
T4O-4.3
T4O-4.3
  • About Trilio for OpenStack
  • Trilio for OpenStack Architecture
  • Trilio 4.3 Release Notes
    • T4O 4.3.0 (GA)
    • T4O 4.3.1
    • T4O 4.3.2
  • Deployment Guide
    • Compatibility Matrix
    • Requirements
    • Trilio network considerations
    • Preparing the installation
    • Spinning up the Trilio VM
    • Installing Trilio Components
      • Installing on RHOSP
      • Installing on Canonical OpenStack
      • Installing on Kolla Openstack
      • Installing on Ansible Openstack
      • Installing on TripleO Train
    • Configuring Trilio
    • Apply the Trilio license
    • Advanced Ceph configurations
      • Additions for multiple CEPH configurations
      • Additions for multiple Ceph users
    • Post Installation Health-Check
    • Uninstall Trilio
      • Uninstalling from RHOSP
      • Uninstalling from Canonical OpenStack
      • Uninstalling from Kolla OpenStack
      • Uninstalling from Ansible OpenStack
    • Upgrade Trilio
      • Upgrading on RHOSP
      • Upgrading on Canonical OpenStack
      • Upgrading on Kolla OpenStack
      • Upgrading on Ansible OpenStack
      • Upgrading on TripleO Train [CentOS7]
      • Upgrade Trilio Appliance
    • Upgrade OpenStack
      • TrilioVault Upgrade Upon RHOSP cloud Upgrade
    • Workload Encryption with Barbican
    • Multi-IP NFS Backup target mapping file configuration
    • Enabling T4O 4.1 or older backups when using NFS backup target
    • Install workloadmgr CLI client
    • Switch Backup Target on Kolla-ansible
    • Switch NFS Backing file
  • Trilio Appliance Administration Guide
    • Set Trilio GUI login banner
    • Trilio Appliance Dashboard
    • Set network accessibility of Trilio GUI
    • Reconfigure the Trilio Cluster
    • Change the Trilio GUI password
    • Reset the Trilio GUI password
    • Reinitialize Trilio
    • Download Trilio logs
    • Change Certificates used by Trilio
    • Restart Trilio Services
    • Shutdown/Restart the Trilio cluster
    • Clean up Trilio database
  • User Guide
    • Workloads
    • Snapshots
    • Restores
    • File Search
    • Snapshot Mount
    • Schedulers
    • E-Mail Notifications
  • Admin Guide
    • Backups-Admin Area
    • Workload Policies
    • Workload Quotas
    • Managing Trusts
    • Workload Import & Migration
    • Disaster Recovery
      • Example runbook for Disaster Recovery using NFS
    • Migrating encrypted Workloads
    • Rebasing existing workloads
  • Troubleshooting
    • Frequently Asked Questions
    • General Troubleshooting Tips
    • Using the workloadmgr CLI tool on the Trilio Appliance
    • Healthcheck of Trilio
    • Important log files
  • API GUIDE
    • Workloads
    • Snapshots
    • Restores
    • File Search
    • Snapshot Mount
    • Schedulers
    • E-Mail Notification Settings
    • Workload Policies
    • Workload Quotas
    • Managing Trusts
    • Workload Import and Migration
Powered by GitBook
On this page
  • List and showing available Workload policies
  • Using Horizon
  • Using CLI
  • Create a policy
  • Using Horizon
  • Using CLI
  • Edit a policy
  • Using Horizon
  • Using CLI
  • Assign/Remove a policy
  • Using Horizon
  • Using CLI
  • Delete a policy
  • Using Horizon
  • Using CLI

Was this helpful?

Export as PDF
  1. Admin Guide

Workload Policies

Trilio’s tenant driven backup service gives tenants control over backup policies. However, sometimes it may be too much control to tenants and the cloud admins may want to limit what policies are allowed by tenants. For example, a tenant may become overzealous and only uses full backups every 1 hr interval. If every tenant were to pursue this backup policy, it puts a severe strain on cloud infrastructure. Instead, if cloud admin can define predefined backup policies and each tenant is only limited to those policies then cloud administrators can exert better control over backup service.

Workload policy is similar to nova flavor where a tenant cannot create arbitrary instances. Instead, each tenant is only allowed to use the nova flavors published by the admin.

List and showing available Workload policies

Using Horizon

To see all available Workload policies in Horizon follow these steps:

  1. Login to Horizon using admin user.

  2. Click on Admin Tab.

  3. Navigate to Backups-Admin

  4. Navigate to Trilio

  5. Navigate to Policy

The following information are shown in the policy tab for each available policy:

  • Creation time

  • name

  • description

  • status

  • set interval

  • set retention type

  • set retention value

Using CLI

workloadmgr policy-list
workloadmgr policy-show <policy_id>

Create a policy

Using Horizon

To create a policy in Horizon follow these steps:

  1. Login to Horizon using admin user.

  2. Click on Admin Tab.

  3. Navigate to Backups-Admin

  4. Navigate to Trilio

  5. Navigate to Policy

  6. Click new policy

  7. provide a policy name on the Details tab

  8. provide a description on the Details tab

  9. provide the RPO in the Policy tab

  10. Choose the Snapshot Retention Type

  11. provide the Retention value

  12. Choose the Full Backup Interval

  13. Click create

Using CLI

workloadmgr policy-create --policy-fields <key=key-name>
                          [--display-description <display_description>]
                          [--metadata <key=key-name>]
                          <display_name>

Edit a policy

Using Horizon

To edit a policy in Horizon follow these steps:

  1. Login to Horizon using admin user.

  2. Click on Admin Tab.

  3. Navigate to Backups-Admin

  4. Navigate to Trilio

  5. Navigate to Policy

  6. identify the policy to edit

  7. click on "Edit policy" at the end of the line of the chosen policy

  8. edit the policy as desired - all values can be changed

  9. Click "Update"

Using CLI

workloadmgr policy-update [--display-name <display-name>]
                          [--display-description <display-description>]
                          [--policy-fields <key=key-name>]
                          [--metadata <key=key-name>]
                          <policy_id>

Assign/Remove a policy

Using Horizon

To assign or remove a policy in Horizon follow these steps:

  1. Login to Horizon using admin user.

  2. Click on Admin Tab.

  3. Navigate to Backups-Admin

  4. Navigate to Trilio

  5. Navigate to Policy

  6. identify the policy to assign/remove

  7. click on the small arrow at the end of the line of the chosen policy to open the submenu

  8. click "Add/Remove Projects"

  9. Choose projects to add or remove by using the plus/minus buttons

  10. Click "Apply"

Using CLI

workloadmgr policy-assign [--add_project <project_id>]
                          [--remove_project <project_id>]
                          <policy_id>

Delete a policy

Using Horizon

To delete a policy in Horizon follow these steps:

  1. Login to Horizon using admin user.

  2. Click on Admin Tab.

  3. Navigate to Backups-Admin

  4. Navigate to Trilio

  5. Navigate to Policy

  6. identify the policy to assign/remove

  7. click on the small arrow at the end of the line of the chosen policy to open the submenu

  8. click "Delete Policy"

  9. Confirm by clicking "Delete"

Using CLI

workloadmgr policy-delete <policy_id>
PreviousBackups-Admin AreaNextWorkload Quotas

Last updated 1 year ago

Was this helpful?

<policy_id> Id of the policy to show

--policy-fields <key=key-name> Specify following key value pairs for policy fields Specify option multiple times to include multiple keys. 'interval' : '1 hr' 'retention_policy_type' : 'Number of Snapshots to Keep' or 'Number of days to retain Snapshots' 'retention_policy_value' : '30' 'fullbackup_interval' : '-1' (Enter Number of incremental snapshots to take Full Backup between 1 to 999, '-1' for 'NEVER' and '0' for 'ALWAYS')For example --policy-fields interval='1 hr' --policy-fields retention_policy_type='Number of Snapshots to Keep '--policy-fields retention_policy_value='30' --policy- fields fullbackup_interval='2'

--display-description <display_description> Optional policy description. (Default=No description)

--metadata <key=keyname> Specify a key value pairs to include in the workload_type metadata Specify option multiple times to include multiple keys. key=value

<display_name> the name the policy will get

--display-name <display-name>Name of the policy

--display-description <display_description> Optional policy description. (Default=No description)

--policy-fields <key=key-name> Specify following key value pairs for policy fields Specify option multiple times to include multiple keys. 'interval' : '1 hr' 'retention_policy_type' : 'Number of Snapshots to Keep' or 'Number of days to retain Snapshots' 'retention_policy_value' : '30' 'fullbackup_interval' : '-1' (Enter Number of incremental snapshots to take Full Backup between 1 to 999, '-1' for 'NEVER' and '0' for 'ALWAYS')For example --policy-fields interval='1 hr' --policy-fields retention_policy_type='Number of Snapshots to Keep '--policy-fields retention_policy_value='30' --policy- fields fullbackup_interval='2'

--metadata <key=keyname> Specify a key value pairs to include in the workload_type metadata Specify option multiple times to include multiple keys. key=value

<policy_id> the name the policy will get

--add_project <project_id> ID of the project to assign policy to. Use multiple times to assign multiple projects.

--remove_project <project_id> ID of the project to remove policy from. Use multiple times to remove multiple projects.

<policy_id>policy to be assigned or removed

<policy_id> ID of the policy to be deleted

➡️
➡️
➡️
➡️
➡️
➡️
➡️
➡️
➡️
➡️
➡️
➡️
➡️
➡️