Bug 1014986
Summary: | satellite-upgrade-estimates traceback | ||
---|---|---|---|
Product: | Red Hat Satellite 5 | Reporter: | Matej Kollar <mkollar> |
Component: | Upgrades | Assignee: | Milan Zázrivec <mzazrivec> |
Status: | CLOSED ERRATA | QA Contact: | Lukas Pramuk <lpramuk> |
Severity: | medium | Docs Contact: | |
Priority: | high | ||
Version: | 560 | CC: | ahumbe, cperry, ggruner, jminter, lpramuk, marcus.moeller, rjerrido, xdmoon |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
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 11:59:40 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: | |||
Bug Depends On: | |||
Bug Blocks: | 465198, 924189 |
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 |
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