aliyuncli-ra configure fails with "NameError: name 'reload' is not defined"

Solution Verified - Updated -

Issue

  • aliyuncli-ra configure fails with "NameError: name 'reload' is not defined".
# aliyuncli-ra configure
Traceback (most recent call last):
  File "/usr/bin/aliyuncli-ra", line 12, in <module>
    load_entry_point('aliyuncli==2.1.10', 'console_scripts', 'aliyuncli')()
  File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 476, in load_entry_point
    return get_distribution(dist).load_entry_point(group, name)
  File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 2700, in load_entry_point
    return ep.load()
  File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 2318, in load
    return self.resolve()
  File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 2324, in resolve
    module = __import__(self.module_name, fromlist=['__name__'], level=0)
  File "/usr/lib/resource-agents/bundled/aliyun/aliyuncli/aliyuncli.py", line 22, in <module>
    reload(sys)
NameError: name 'reload' is not defined

Environment

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

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content