insights-client fails to parse non-alphanumeric character in yum repository file

Solution Verified - Updated -

Issue

  • insights-client commands fail with the below error

    Traceback (most recent call last):
     File "/var/lib/insights/last_stable.egg/insights/core/dr.py", line 967, in run
       result = DELEGATES[component].process(broker)
     File "/var/lib/insights/last_stable.egg/insights/core/dr.py", line 686, in process
       return self.invoke(broker)
     File "/var/lib/insights/last_stable.egg/insights/core/plugins.py", line 130, in invoke
       return self.component(dep_value)
     File "/var/lib/insights/last_stable.egg/insights/core/__init__.py", line 598, in __init__
       super(CommandParser, self).__init__(context)
     File "/var/lib/insights/last_stable.egg/insights/core/__init__.py", line 91, in __init__
       self._handle_content(context)
     File "/var/lib/insights/last_stable.egg/insights/core/__init__.py", line 94, in _handle_content
       self.parse_content(context.content)
     File "/var/lib/insights/last_stable.egg/insights/parsers/yum.py", line 152, in parse_content
       raise ParseException('Failed to parser yum repolist: {0}'.format(str(e)))
    insights.parsers.ParseException: Failed to parser yum repolist: Line containing 'repo id' was not found in table
    

Environment

  • Red Hat Insights

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