OpenStack CLI returns ImportError: No module named oslo_log

Solution Verified - Updated -

Issue

  • After installing the python-openstackclient, I get the following error:

    # openstack endpoint list
    Traceback (most recent call last):
      File "/usr/bin/openstack", line 6, in <module>
        from openstackclient.shell import main
      File "/usr/lib/python2.7/site-packages/openstackclient/shell.py", line 30, in <module>
        from openstackclient.common import clientmanager
      File "/usr/lib/python2.7/site-packages/openstackclient/common/clientmanager.py", line 256, in <module>
        'openstack.cli.extension',
      File "/usr/lib/python2.7/site-packages/openstackclient/common/clientmanager.py", line 223, in get_plugin_modules
        __import__(ep.module_name)
      File "/usr/lib/python2.7/site-packages/saharaclient/osc/plugin.py", line 17, in <module>
        from oslo_log import log as logging
    ImportError: No module named oslo_log
    

Environment

  • Red Hat Enterprise Linux 7
  • python-openstackclient

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