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

  • Projects assigned

  • Name

  • Scheduling & Retention policy

  • Description

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 retention and scheduler details in the Policy tab

  10. Click create

Using CLI

workloadmgr policy-create --policy-fields <key=key-name>
                        [--hourly interval=<n>,retention=<count>,snapshot_type=<incremental|full>]
                        [--daily backup_time=<time>,retention=<count>,snapshot_type=<incremental|full>]
                        [--weekly backup_day=<days>,retention=<count>,snapshot_type=<incremental|full>]
                        [--monthly month_backup_day=<date>,retention=<count>,snapshot_type=<incremental|full>]
                        [--yearly backup_month=<month>,retention=<count>,snapshot_type=<incremental|full>]
                        [--manual retention=<snapshots count>,retention_days_to_keep=<num of days>]
                        [--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>]
                          [--hourly interval=<n>,retention=<count>,snapshot_type=<incremental|full>]
                          [--daily backup_time=<time>,retention=<count>,snapshot_type=<incremental|full>]
                          [--weekly backup_day=<days>,retention=<count>,snapshot_type=<incremental|full>]
                          [--monthly month_backup_day=<days>,retention=<count>,snapshot_type=<incremental|full>]
                          [--yearly backup_month=<months>,retention=<count>,snapshot_type=<incremental|full>]
                          [--manual retention=<snapshots count>,retention_days_to_keep=<num of days>] 
                          [--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>

Last updated

Was this helpful?