Uploaded image for project: 'Couchbase Server'
  1. Couchbase Server
  2. MB-51768

[TC] [Azure] Improve Azure SDK errors

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Unresolved
    • Major
    • Morpheus
    • 7.1.1
    • tools-common
    • None
    • 1

    Description

      What's the issue?
      The Azure SDK errors are very raw, and not particularly useful to users; where possible we should provide more informative error messages.

      One example of a bad error is the error that we get when trying to authenticate with the Azure blob storage using environment and it we fail:

      Backup repository creation failed: failed to lock remote archive: failed to create lockfile object with key 'lock-fb5f345a-d6be-4aac-98dd-5271f5d243ab.lk': ===== INTERNAL ERROR =====
      DefaultAzureCredential: failed to acquire a token.
      Attempted credentials:
      	EnvironmentCredential: missing environment variable AZURE_CLIENT_ID
      	ManagedIdentityCredential: IMDS token request timed out
      	AzureCLICredential: ERROR: Please run 'az login' to setup account.
      

      In this example ManagedIdentityCredential doesn't seem to provide useful errors and we do not support AzureCLICredential at all.

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              james.lee James Lee
              james.lee James Lee
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty