Getting error AttributeError: 'module' object has no attribute 'INFO rhsm.connection = DEBUG rhsm-app = DEBUG rhsm-app.rhsmd = DEBUG while executing yum commands.

Solution Verified - Updated -

Issue

  • While running yum check-update on Red Hat Satellite 6 it fails with the following traceback:

    Traceback (most recent call last):
    File "/bin/yum", line 29, in <module>
    yummain.user_main(sys.argv[1:], exit_code=True)
    File "/usr/share/yum-cli/yummain.py", line 375, in user_main
    errcode = main(args)
    File "/usr/share/yum-cli/yummain.py", line 170, in main
    base.getOptionsConfig(args)
    File "/usr/share/yum-cli/cli.py", line 263, in getOptionsConfig
    self.conf
    File "/usr/lib/python2.7/site-packages/yum/__init__.py", line 1079, in <lambda>
    conf = property(fget=lambda self: self._getConfig(),
    File "/usr/lib/python2.7/site-packages/yum/__init__.py", line 405, in _getConfig
    self.plugins.run('postconfig')
    File "/usr/lib/python2.7/site-packages/yum/plugins.py", line 188, in run
    func(conduitcls(self, self.base, conf, **kwargs))
    File "/usr/lib/yum-plugins/subscription-manager.py", line 167, in postconfig_hook
    logutil.init_logger_for_yum()
    File "/usr/lib64/python2.7/site-packages/subscription_manager/logutil.py", line 170, in init_logger_for_yum
    init_logger()
    File "/usr/lib64/python2.7/site-packages/subscription_manager/logutil.py", line 152, in init_logger
    logger.setLevel(getattr(logging, default_log_level.strip()))
    AttributeError: 'module' object has no attribute 'INFO
    rhsm.connection = DEBUG
    rhsm-app = DEBUG
    rhsm-app.rhsmd = DEBUG'
    

Environment

  • Red Hat Satellite 6.
  • Red Hat Enterprise Linux (RHEL) 6.8

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