Reference Guide: Optimizing Backup Strategies for Red Hat OpenShift Virtualization

Canonical OpenStack FAQ

  • Which OpenStack version am I running?
    juju status | grep trilio | grep charm
    juju ssh trilio-wlm/leader "sudo dpkg -l | grep -Ei 'trilio|tvault|workloadmgr|s3|dmapi|dm_api|datamover|data_mover|contego'"
    juju ssh trilio-dm-api/leader "sudo dpkg -l | grep -Ei 'trilio|tvault|workloadmgr|s3|dmapi|dm_api|datamover|data_mover|contego'"
    juju ssh trilio-data-mover/leader "sudo dpkg -l | grep -Ei 'trilio|tvault|workloadmgr|s3|dmapi|dm_api|datamover|data_mover|contego'"
    
  • Where are logs located in OpenStack?
    /var/log/workloadmgr/workloadmgr-api.log # trilio-wlm
    /var/log/workloadmgr/workloadmgr-cron.log # trilio-wlm
    /var/log/workloadmgr/workloadmgr-filesearch.log # trilio-wlm
    /var/log/workloadmgr/workloadmgr-scheduler.log # trilio-wlm
    /var/log/workloadmgr/workloadmgr-workloads.log # trilio-wlm
    /var/log/dmapi/dmapi.log # trilio-dm-api
    /var/log/nova/tvault-contego.log # trilio-data-mover
    /var/log/tvault-object-store/tvault-object-store.log # trilio-wlm, trilio-data-mover
    
  • A restore failed. How do I know which compute host failed to spin up my VM?

    Grab the restore ID:

    workloadmgr snapshot-list --workload_id a0e61dc0-14eb-4e43-8c4f-ae25ac4fa8c0
    workloadmgr restore-list --snapshot_id 546b542a-9fba-4484-848d-da730b4e46c6
    

     In the TVM logs, get the ID of the instance that was trying to spin up:

    sudo cat /var/log/workloadmgr/workloadmgr-workloads.log* | grep CopyBackupImageToVolume.execute.*ENTER | grep <restore_id> | awk '{print $9}' | cut -f1 -d"," | sort | uniq
    

    3. Grab the host from the OpenStack DB (inside the OpenStack controller):

    MYSQLPWD=$(juju exec --unit mysql-innodb-cluster/leader leader-get mysql.passwd)
    juju exec --unit mysql-innodb-cluster/leader "mysql -uroot -p${MYSQLPWD} -e \"select uuid,display_name,node,launched_on,created_at,deleted_at from nova.instances where uuid='a2454040-d4ed-4711-8d5e-6b3637f69aa9'\"\\\G"
    
  • How to enable debug flag for debug level logging for workload mgr on Canonical OpenStack?

    Retrieve the value of verbose and debug flag using following commands:

     juju config trilio-wlm verbose
            juju config trilio-wlm debug
    

     Enable verbose and debug to true, use following commands:

       juju config trilio-wlm verbose=True
           juju config trilio-wlm debug=True
    
  • How to recreate the cloud admin Trust from Trilio Appliance?

    A. On Trilio Appliance source the credentials of cloud administrator

    B. Run this command source /home/stack/myansible/bin/activate

     C. Create cloud admin trust using following command:

    Syntax of command: workloadmgr trust-create [--is_cloud_trust {True,False}] <role_name>
                  Example command:
                  workloadmgr trust-create --is_cloud_trust True admin
                  workloadmgr trust-create --is_cloud_trust True Admin (This command is for canonical based openstack where admin role is Admin)