Bug 1495568
| Summary: | Providing invalid phase in foreman-maintain upgrade run shows undefined method `to_hash' for nil:NilClass | ||||||
|---|---|---|---|---|---|---|---|
| Product: | Red Hat Satellite | Reporter: | Nikhil Kathole <nkathole> | ||||
| Component: | Satellite Maintain | Assignee: | Kavita <kgaikwad> | ||||
| Status: | CLOSED ERRATA | QA Contact: | Nikhil Kathole <nkathole> | ||||
| Severity: | medium | Docs Contact: | |||||
| Priority: | unspecified | ||||||
| Version: | 6.3.0 | CC: | apatel, bbuckingham, inecas, kgaikwad, mmccune, sabnave | ||||
| Target Milestone: | Unspecified | Keywords: | Triaged | ||||
| Target Release: | Unused | ||||||
| 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: | 2018-02-19 17:22:26 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: | 1496794 | ||||||
| Attachments: |
|
||||||
Upstream bug assigned to kgaikwad Moving this bug to POST for triage into Satellite 6 since the upstream issue http://projects.theforeman.org/issues/21211 has been resolved. VERIFIED Version Tested: # rpm -q rubygem-foreman_maintain rubygem-foreman_maintain-0.1.1-1.el7sat.noarch # foreman-maintain upgrade run --phase pre-upgrade Unknown phase pre-upgrade Error handled and showed message as unknown phase. But if --phase not passed, it showed # foreman-maintain upgrade run --phase undefined method `to_sym' for nil:NilClass Verifying this as this will be tracked by https://bugzilla.redhat.com/show_bug.cgi?id=1523933 . 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. https://access.redhat.com/errata/RHBA-2018:0330 |
Created attachment 1330971 [details] log in foreman-maintain.log file Description of problem: While running foreman-maintain upgrade run with option --phase provided invalid phase name shows "undefined method `to_hash' for nil:NilClass". Version-Release number of selected component (if applicable): Foreman-maintain snap 2.0 How reproducible: always Steps to Reproduce: 1. # foreman-maintain upgrade run --phase pre-upgrade Actual results: Error as "undefined method `to_hash' for nil:NilClass" Expected results: Error should get handled and proper message showing phase is invalid. Additional info: