Bug 1173194
| Summary: | satellite-upgrade-estimates: NameError: global name '__DB2' is not defined | ||
|---|---|---|---|
| Product: | Red Hat Satellite 5 | Reporter: | Jan Hutař <jhutar> |
| Component: | Upgrades | Assignee: | Tomáš Kašpárek <tkasparek> |
| Status: | CLOSED DEFERRED | QA Contact: | Red Hat Satellite QA List <satqe-list> |
| Severity: | low | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | unspecified | CC: | tlestach |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2018-04-09 11:38:15 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: | 1162131 | ||
Same for entitlement-check.py and recognize_guests.py and possibly more. sherr explained me what is going on, so let me rephrase this bug report: Make upgrade related utilities (and possibly more) to nicely say there was a problem connecting to database instead of printing NameError exception. Bug 1165252 is 5.7.0 equivalent. Not a blocker for Upgrades ... we need to wrap up existing bugfixing for upgrades. We have re-reviewed this bug, as part of an ongoing effort to improve Satellite/Proxy feature and bug updates, review and backlog. This is a low priority bug and has no currently open customer cases. While this bug may still valid, we do not see it being implemented prior to the EOL of the Satellite 5.x product. As such, this is being CLOSED DEFERRED. Closing now to help set customer expectations as early as possible. You are welcome to re-open this bug if needed. |
Description of problem: satellite-upgrade-estimates when run on 5.6.0 on RHEL6 with embedded PostgreSQL tracebacks with: NameError: global name '__DB2' is not defined Version-Release number of selected component (if applicable): rhn-upgrade-5.7.0.14-1.el6sat.noarch spacewalk-backend-sql-2.0.3-30.el6sat.noarch How reproducible: always Steps to Reproduce: 1. # /etc/sysconfig/rhn/satellite-upgrade/scripts/satellite-upgrade-estimates 2. Answer "N" Actual results: # /etc/sysconfig/rhn/satellite-upgrade/scripts/satellite-upgrade-estimates Will you be installing Red Hat Satellite 5.7 on a different system and migrating to it? [N] Computing ... Traceback (most recent call last): File "/etc/sysconfig/rhn/satellite-upgrade/scripts/satellite-upgrade-estimates", line 244, in <module> rhnSQL.initDB() File "/usr/lib/python2.6/site-packages/spacewalk/server/rhnSQL/__init__.py", line 142, in initDB del __DB2 NameError: global name '__DB2' is not defined Expected results: Should show estimates Additional info: # grep db_ /etc/rhn/rhn.conf db_backend = postgresql db_user = rhnuser db_password = rhnpw db_name = rhnschema db_host = db_port =