Registering system to Red Hat Insights fails with ImportError: cannot import name UnrewindableBodyError

Solution Verified - Updated -

Issue

  • Registering system to Red Hat Insights fail with below error:

    # insights-client --register
    Traceback (most recent call last):
     File "/usr/bin/insights-client", line 9, in <module>
       load_entry_point('insights-client==3.0.3', 'console_scripts', 'insights-client')()
     File "/usr/lib/python2.7/site-packages/insights_client/__init__.py", line 135, in _main
       from insights.client import InsightsClient
     File "/etc/insights-client/rpm.egg/insights/client/__init__.py", line 10, in <module>
     File "/etc/insights-client/rpm.egg/insights/client/client.py", line 9, in <module>
     File "/etc/insights-client/rpm.egg/insights/client/auto_config.py", line 6, in <module>
     File "/usr/lib/python2.7/site-packages/requests/__init__.py", line 43, in <module>
       import urllib3
     File "/usr/lib/python2.7/site-packages/urllib3/__init__.py", line 10, in <module>
       from .connectionpool import (
     File "/usr/lib/python2.7/site-packages/urllib3/connectionpool.py", line 31, in <module>
       from .connection import (
     File "/usr/lib/python2.7/site-packages/urllib3/connection.py", line 45, in <module>
       from .util.ssl_ import (
     File "/usr/lib/python2.7/site-packages/urllib3/util/__init__.py", line 4, in <module>
       from .request import make_headers
     File "/usr/lib/python2.7/site-packages/urllib3/util/request.py", line 5, in <module>
       from ..exceptions import UnrewindableBodyError
    ImportError: cannot import name UnrewindableBodyError
    
  • Ansible role to configure Red Hat Insights fails with below error:

    fatal: [client.example.com]: FAILED! => {"changed": false, "msg": "file (/etc/insights-client/machine-id) is absent, cannot continue", "path": "/etc/insights-client/machine-id"}
    

Environment

  • Red Hat Enterprise Linux 7
  • Red Hat Satellite 6.x

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