Satellite installer failing with error "did not find expected key while parsing a block mapping at line 19 column 1 at /usr/share/gems/gems/kafo-0.7.6.1/modules/kafo_configure/manifests/init.pp:14"

Solution Verified - Updated -

Environment

  • Red Hat Satellite 6

Issue

  • Satellite installer failing with following error:
[DEBUG 2018-08-17 12:59:31 main] Exit with status code: 1 (signal was 1)
[ERROR 2018-08-17 12:59:31 main] Errors encountered during run:
[ERROR 2018-08-17 12:59:31 main]  (<unknown>): did not find expected key while parsing a block mapping at line 19 column 1 at /usr/share/gems/gems/kafo-0.7.6.1/modules/kafo_configure/manifests/init.pp:14 on node satellite.example.com
[ERROR 2018-08-17 12:59:31 main]  (<unknown>): did not find expected key while parsing a block mapping at line 19 column 1 at /usr/share/gems/gems/kafo-0.7.6.1/modules/kafo_configure/manifests/init.pp:14 on node satellite.example.com
[ERROR 2018-08-17 12:59:31 main] Upgrade failed during the installation phase. Fix the error and re-run the upgrade.
[DEBUG 2018-08-17 12:59:31 main] Cleaning /etc/foreman-installer/scenarios.d/d20180817-26405-1g28fqf

Resolution

  • Check if there are any custom configurations added in custom-hiera.yaml :
# cat /etc/foreman-installer/custom-hiera.yaml
  • Validate the entries added in custom-hiera.yaml and re-run the installer.

Root Cause

  • custom configurations added in custom-hiera.yaml having syntax error.
  • Please validate the configuration before adding to custom-hiera.yaml

Diagnostic Steps

  • Try removing the entries in custom-hiera.yaml and re-run the installer.
  • satellite.log:
[ INFO 2018-08-14 10:33:28 main] Upgrade Step: Running installer...
[DEBUG 2018-08-14 10:33:28 main] Hook /usr/share/katello-installer-base/hooks/pre/30-upgrade.rb returned [<Logging::Logger:0x159d890 name="main">, <Logging::Logger:0x15a70e8 name="fatal">]
[ INFO 2018-08-14 10:33:28 main] All hooks in group pre finished
[DEBUG 2018-08-14 10:33:28 main] Merging existing Hiera config file from /usr/share/foreman-installer/config/foreman-hiera.conf
[DEBUG 2018-08-14 10:33:28 main] Writing Hiera config file to /tmp/kafo_hiera20180814-1620-5ljd4b/hiera.conf
[DEBUG 2018-08-14 10:33:28 main] Copying Hiera data files from /usr/share/foreman-installer/config/foreman.hiera to /tmp/kafo_hiera20180814-1620-5ljd4b/data
[DEBUG 2018-08-14 10:33:28 main] echo '$kafo_config_file="/etc/foreman-installer/scenarios.d/satellite.yaml" $kafo_add_progress=true include kafo_configure' | RUBYLIB=/usr/share/gems/gems/kafo-0.7.6.1/lib/kafo/../..//modules: puppet apply --verbose --debug --trace --color=false --show_diff --detailed-exitcodes --hiera_config=/tmp/kafo_hiera20180814-1620-5ljd4b/hiera.conf --modulepath /usr/share/katello-installer-base/modules:/usr/share/foreman-installer/modules:/usr/share/gems/gems/kafo-0.7.6.1/modules 

DEBUG 2018-08-14 10:33:31 main]  importing '/usr/share/gems/gems/kafo-0.7.6.1/modules/kafo_configure/manifests/init.pp' in environment production
[DEBUG 2018-08-14 10:33:31 main]  Automatically imported kafo_configure from kafo_configure into production
[DEBUG 2018-08-14 10:33:31 main]  hiera(): Hiera YAML backend starting
[DEBUG 2018-08-14 10:33:31 main]  hiera(): Looking up classes in YAML backend
[DEBUG 2018-08-14 10:33:31 main]  hiera(): Looking for data source custom
[ERROR 2018-08-14 10:33:31 main]  (<unknown>): did not find expected key while parsing a block mapping at line 19 column 1 at /usr/share/gems/gems/kafo-0.7.6.1/modules/kafo_configure/manifests/init.pp:14 on node satellite.example.com
[ INFO 2018-08-14 10:33:31 main] /usr/share/ruby/vendor_ruby/puppet/util/command_line.rb:92:in `execute'
[ INFO 2018-08-14 10:33:31 main] /usr/bin/puppet:8:in `<main>'
[ERROR 2018-08-14 10:33:31 main]  (<unknown>): did not find expected key while parsing a block mapping at line 19 column 1 at /usr/share/gems/gems/kafo-0.7.6.1/modules/kafo_configure/manifests/init.pp:14 on node satellite.example.com
[ INFO 2018-08-14 10:33:31 main] /usr/share/gems/gems/psych-2.0.0/lib/psych.rb:248:in `parse

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.

Comments