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:
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