fence_azure_arm fails to fence with ERROR: Failed: 'ServicePrincipalCredentials' object has no attribute 'get_token'

This document (000020377) is provided subject to the disclaimer at the end of this document.

Environment

SUSE Linux Enterprise Server 15 SP3
SUSE Linux Enterprise Server 15 SP2
SUSE Linux Enterprise Server 15 SP1
SUSE Linux Enterprise Server 12 SP5
SUSE Linux Enterprise Server 12 SP4
 

Situation

During a fatal cluster condition which requires STONITH fencing with Azure's stonith:fence_azure_arm fencing agent, the fencing action fails and reports the following error:

 ERROR: Failed: 'ServicePrincipalCredentials' object has no attribute 'get_token'

Resolution

Update to a fixed fence-agents version and install the the Azure Identity python module if it is missing. 
SLES12 uses python v2 by default whereas SLES15 uses python v3.

SLES15 SP3
Install fence-agents-4.9.0+git.1624456340.8d746be9-3.5.1 or later and python3-azure-identity

SLES15 SP2
Install fence-agents-4.9.0+git.1624456340.8d746be9-7.29.1 or later and python3-azure-identity

SLES15 SP1
Install fence-agents-4.9.0+git.1624456340.8d746be9-7.29.1 or later and python3-azure-identity

SLES12 SP5
Install fence-agents-4.9.0+git.1624456340.8d746be9-3.29.1 or later and python-azure-identity

SLES12 SP4
Install fence-agents-4.9.0+git.1624456340.8d746be9-3.29.1 or later and python-azure-identity
 

 

 

Disclaimer

This Support Knowledgebase provides a valuable tool for SUSE customers and parties interested in our products and solutions to acquire information, ideas and learn from one another. Materials are provided for informational, personal or non-commercial use within your organization and are presented "AS IS" WITHOUT WARRANTY OF ANY KIND.

  • Document ID:000020377
  • Creation Date: 02-Sep-2021
  • Modified Date:10-Sep-2021
    • SUSE Linux Enterprise Server
    • SUSE Linux Enterprise Server for SAP Applications

< Back to Support Search

For questions or concerns with the SUSE Knowledgebase please contact: tidfeedback@suse.com

SUSE Support Forums

Get your questions answered by experienced Sys Ops or interact with other SUSE community experts.

Join Our Community

Support Resources

Learn how to get the most from the technical support you receive with your SUSE Subscription, Premium Support, Academic Program, or Partner Program.


SUSE Customer Support Quick Reference Guide SUSE Technical Support Handbook Update Advisories
Support FAQ

Open an Incident

Open an incident with SUSE Technical Support, manage your subscriptions, download patches, or manage user access.

Go to Customer Center