Satellite 5.6 / SAM Enhanced Reporting: spacewalk-splice-checkin fails with "ValueError: need more than 0 values to unpack" error if network name has ";"

Solution Verified - Updated -

Issue

  • When using Red Hat Satellite 5.6 together with Subscription Asset Manager (SAM) 1.3+ for Enhanced Reporting feature, if the network info for a system (as read from spacewalk-report splice-export) contains a ';' character, spacewalk-splice-checkin --spacewalk-sync fails with following error:
Traceback (most recent call last):
  File "/usr/bin/spacewalk-splice-checkin", line 100, in <module>
    checkin.main(opts)
  File "/usr/lib/python2.6/site-packages/spacewalk_splice_tool/checkin.py", line 225, in main
    spacewalk_sync(options)
  File "/usr/lib/python2.6/site-packages/spacewalk_splice_tool/checkin.py", line 171, in spacewalk_sync
    consumers.extend(dt.transform_to_consumers(system_details))
  File "/usr/lib/python2.6/site-packages/spacewalk_splice_tool/transforms.py", line 83, in transform_to_consumers
    facts_data = facts.translate_sw_facts_to_subsmgr(details)
  File "/usr/lib/python2.6/site-packages/spacewalk_splice_tool/facts.py", line 27, in translate_sw_facts_to_subsmgr
    facts.update(network_facts(system_details))
  File "/usr/lib/python2.6/site-packages/spacewalk_splice_tool/facts.py", line 110, in network_facts
    (iface, addrmask, hwaddr) = n.split()
ValueError: need more than 0 values to unpack

Environment

  • Red Hat Satellite 5.6 together with Subscription Asset Manager (SAM) 1.3+, Enhanced Reporting feature

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