| Summary: | [rfe] rhn-schema-version crash with db-server stopped | ||
|---|---|---|---|
| Product: | Red Hat Satellite 5 | Reporter: | Konstantin Trufanov <ktrufano> |
| Component: | Monitoring | Assignee: | Grant Gainey <ggainey> |
| Status: | CLOSED WONTFIX | QA Contact: | Red Hat Satellite QA List <satqe-list> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 570 | CC: | snelsond, tlestach |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2016-09-19 15:29:19 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: | |
Given that this exception can only happen if the database you're trying to query is inaccessible, and given that Satellite5 is in Production Phase 3 support, we have no plans to address this request. |
Description of problem: rhn-schema-version crashed when it can't connect to database # /usr/bin/rhn-schema-version Traceback (most recent call last): File "/usr/bin/rhn-schema-version", line 49, in <module> rhnSQL.initDB() File "/usr/lib/python2.6/site-packages/spacewalk/server/rhnSQL/__init__.py", line 151, in initDB closeDB() File "/usr/lib/python2.6/site-packages/spacewalk/server/rhnSQL/__init__.py", line 189, in closeDB __DB.commit() File "/usr/lib/python2.6/site-packages/spacewalk/server/rhnSQL/driver_postgresql.py", line 230, in commit self.dbh.commit() AttributeError: Database instance has no attribute 'dbh' # Version-Release number of selected component (if applicable): 5.7 How reproducible: Every time if db server stopped Steps to Reproduce: 1. Stop the database 2. Run /usr/bin/rhn-schema-version 3. Actual results: /usr/bin/rhn-schema-version crash Expected results: error message without crashing Additional info: