Satellite Upgrade Estimated failes with 'TypeError: 'NoneType' object is unsubscriptable' on Red Hat Networks Satellite 5.5 ?

Solution Verified - Updated -

Issue

  • satellite-upgrade-estimates fails with the following traceback:
[root@example ~]#  /etc/sysconfig/rhn/satellite-upgrade/scripts/satellite-upgrade-estimates
Will you be upgrading both the operating system and Red Hat Satellite? [N]   N
Will you be migrating your Red Hat Satellite database from Oracle to PostgreSQL? [N] Y

Computing ...
Traceback (most recent call last):
  File "/etc/sysconfig/rhn/satellite-upgrade/scripts/satellite-upgrade-estimates", line 212, in <module>
    populate_segment_sizes()
  File "/etc/sysconfig/rhn/satellite-upgrade/scripts/satellite-upgrade-estimates", line 84, in populate_segment_sizes
    segment_sizes[segment_name] = h.fetchall_dict()[0]['bytes']
TypeError: 'NoneType' object is unsubscriptable

Environment

  • Red Hat Network (RHN) Satellite or Proxy 5.5
  • Red Hat Network Satellite or Proxy 5.6

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