Description of problem: satellite-upgrade-estimates script fails with error "TypeError: 'NoneType' object is unsubscriptable" if no packages available on satellite # /etc/sysconfig/rhn/satellite-upgrade/scripts/satellite-upgrade-estimates Will you be upgrading both the operating system and Red Hat Satellite? [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.org", line 211, in <module> populate_segment_sizes() File "/etc/sysconfig/rhn/satellite-upgrade/scripts/satellite-upgrade-estimates.org", line 84, in populate_segment_sizes segment_sizes[segment_name] = h.fetchall_dict()[0]['bytes'] TypeError: 'NoneType' object is unsubscriptable Version-Release number of selected component (if applicable): rhn-upgrade-5.6.0.38-1.el6sat.noarch How reproducible: always with Red Hat satellite have no packages available Steps to Reproduce: 1. Take freshly installed Satellite v 5.4.1 or 5.5 2. Install latest rhn-upgrade package - rhn-upgrade-5.6.0.38-1.el6sat.noarch 3. Run satellite-upgrade-estimates script Actual results: # /etc/sysconfig/rhn/satellite-upgrade/scripts/satellite-upgrade-estimates Will you be upgrading both the operating system and Red Hat Satellite? [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.org", line 211, in <module> populate_segment_sizes() File "/etc/sysconfig/rhn/satellite-upgrade/scripts/satellite-upgrade-estimates.org", line 84, in populate_segment_sizes segment_sizes[segment_name] = h.fetchall_dict()[0]['bytes'] TypeError: 'NoneType' object is unsubscriptable Expected results: satellite-upgrade-estimates script should through proper error message instead of exception.
*** This bug has been marked as a duplicate of bug 1014986 ***