Description of problem: Obtaining upgrade estimates with satellite-upgrade-estimates produces traceback when both questions are answered positively (y). Version-Release number of selected component: rhn-upgrade-5.6.0.38-1.el6sat How reproducible: always/deterministic Steps to Reproduce: 1. Follow instructions in doc/preparations.txt up to point where you are requested to run satellite-upgrade-estimates. 2. Run it. 3. Answer "y" to both questions. Actual results: > 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 Expected results: Upgrade estimates
This is reproducible only when upgrading / migrating from Satellite 5.5
*** Bug 1014999 has been marked as a duplicate of this bug. ***
VERIFIED. rhn-upgrade-5.6.0.39-1.el6sat.noarch # /etc/sysconfig/rhn/satellite-upgrade/scripts/satellite-upgrade-estimates Will you be upgrading both the operating system and Red Hat Satellite? [N] y Will you be migrating your Red Hat Satellite database from Oracle to PostgreSQL? [N] y Computing ... * Approximate disk space size required for PostgreSQL database: 4 - 6 GB satellite-and-os-upgrade-postgresql.txt, point 1: * Creating database schema export should take approximately 00:30 (HH:MM) satellite-and-os-upgrade-postgresql.txt, point 3: * OS and Red Hat Satellite installation should take approximately: 02:00 (HH:MM) satellite-and-os-upgrade-postgresql.txt, point 4: * Import of Red Hat Satellite schema should take approximately: 00:30 (HH:MM) # /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 ... * Approximate disk space size required for PostgreSQL database: 4 - 6 GB satellite-upgrade-postgresql.txt, point 1: * Command line part of Red Hat Satellite upgrade should take approximately: 00:45 (HH:MM) * Migration of database data from Oracle to PostgreSQL should take approximately: 00:30 (HH:MM)
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. http://rhn.redhat.com/errata/RHBA-2013-1417.html