fence_aliyun fails on RHEL 8 with "NameError: name 'client' is not defined"

Solution Verified - Updated -


  • fence_aliyun commands fail on RHEL 8 with "NameError: name 'client' is not defined".
[root@rhel-8-node1 ~]# fence_aliyun -r us-west-1 -a <access_key> -s <secret_key> -o list
Traceback (most recent call last):
  File "/usr/sbin/fence_aliyun", line 160, in <module>
  File "/usr/sbin/fence_aliyun", line 152, in main
    conn = client.AcsClient(access_key, secret_key, region)
NameError: name 'client' is not defined


  • Red Hat Enterprise Linux (RHEL) 8 with the High Availability Add-on
  • Alibaba Cloud (Aliyun)

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In