Bug 1014986 - satellite-upgrade-estimates traceback
satellite-upgrade-estimates traceback
Status: CLOSED ERRATA
Product: Red Hat Satellite 5
Classification: Red Hat
Component: Upgrades (Show other bugs)
560
Unspecified Unspecified
high Severity medium
: ---
: ---
Assigned To: Milan Zázrivec
Lukas Pramuk
:
: 1014999 (view as bug list)
Depends On:
Blocks: 465198 sat560-triage
  Show dependency treegraph
 
Reported: 2013-10-03 05:23 EDT by Matej Kollar
Modified: 2013-10-10 07:59 EDT (History)
8 users (show)

See Also:
Fixed In Version: rhn-upgrade-5.6.0.39-1
Doc Type: Bug Fix
Doc Text:
Cause: A bug in one of satellite upgrade helper scripts. Consequence: satellite-upgrade-estimates script would throw a traceback when ran on Satellite 5.5 Fix: Result: no more traceback when running the mentioned script on Satellite 5.5 (i.e. when upgrading from Satellite 5.5)
Story Points: ---
Clone Of:
Environment:
Last Closed: 2013-10-10 07:59:40 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Matej Kollar 2013-10-03 05:23:42 EDT
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
Comment 1 Milan Zázrivec 2013-10-03 05:28:28 EDT
This is reproducible only when upgrading / migrating from Satellite 5.5
Comment 2 Milan Zázrivec 2013-10-03 05:47:27 EDT
*** Bug 1014999 has been marked as a duplicate of this bug. ***
Comment 8 Lukas Pramuk 2013-10-06 15:39:39 EDT
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)
Comment 10 errata-xmlrpc 2013-10-10 07:59:40 EDT
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

Note You need to log in before you can comment on or make changes to this bug.