Red Hat Satellite 6 upgrade fails with `/usr/share/foreman-installer/katello/hooks/pre_commit/13-hiera.rb:20:in `block (4 levels) in load': undefined method `[]' for nil:NilClass (NoMethodError)`

Solution Verified - Updated -

Issue

  • Satellite 6.x upgrade fails with:

    /usr/share/foreman-installer/katello/hooks/pre_commit/13-hiera.rb:20:in `block (4 levels) in load': undefined method `[]' for nil:NilClass (NoMethodError)
        from /usr/share/gems/gems/kafo-4.0.1/lib/kafo/hooking.rb:34:in `instance_eval'
        from /usr/share/gems/gems/kafo-4.0.1/lib/kafo/hooking.rb:34:in `block (4 levels) in load'
        from /usr/share/gems/gems/kafo-4.0.1/lib/kafo/hook_context.rb:16:in `instance_exec'
        from /usr/share/gems/gems/kafo-4.0.1/lib/kafo/hook_context.rb:16:in `execute'
        from /usr/share/gems/gems/kafo-4.0.1/lib/kafo/hooking.rb:51:in `block in execute'
        from /usr/share/gems/gems/kafo-4.0.1/lib/kafo/hooking.rb:49:in `each'
        from /usr/share/gems/gems/kafo-4.0.1/lib/kafo/hooking.rb:49:in `execute'
        from /usr/share/gems/gems/kafo-4.0.1/lib/kafo/kafo_configure.rb:150:in `execute'
        from /usr/share/gems/gems/clamp-1.1.2/lib/clamp/command.rb:63:in `run'
        from /usr/share/gems/gems/kafo-4.0.1/lib/kafo/kafo_configure.rb:118:in `run'
        from /usr/share/gems/gems/clamp-1.1.2/lib/clamp/command.rb:132:in `run'
        from /usr/share/gems/gems/kafo-4.0.1/lib/kafo/kafo_configure.rb:162:in `run'
        from /sbin/satellite-installer:8:in `<main>'
    

Environment

  • Red Hat Satellite 6.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In