Red Hat Satellite 6 installer fails with Evaluation error while evaluating lookup options

Solution Verified - Updated -

Environment

  • Red Hat Satellite 6.x

Issue

  • The error can be encountered while upgrading or installing Red Hat Satellite Server if the file /etc/foreman-installer/custom-hiera.yaml is customized inappropriately because it case and indentation sensitive file.

  • The command satellite-installer fails on Red Hat Satellite server with the below error:

    [ERROR 2020-05-19T04:03:03 main]  Evaluation Error: Error while 
    evaluating a Function Call, Lookup of key 'lookup_options' failed: Unable 
    to parse (/tmp/kafo_hiera20200519-51458-istd5q/data/custom.yaml): 
    could not find expected ':' while scanning a simple key at line 29 column 1 
    

Resolution

Note: In the mentioned example error line number is 29 and it may vary as per the configuration file of affected system.

  • Provide the missing whitespace in the syntax of parameter mentioned in line number 29 of /etc/foreman-installer/custom-hiera.yaml file.

    28 # tuning passenger
    29 apache::mod::passenger::passenger_max_pool_size:12         # Missing whitespace between ":" and "12"                  
    

Root Cause

  • Inappropriate syntax of the parameter in /etc/foreman-installer/custom-hiera.yaml

Diagnostic Steps

  • Verify logs in /var/foreman-installer/satellite.log :

    [ERROR 2020-05-19T04:03:03 main]  Evaluation Error: Error while 
    evaluating a Function Call, Lookup of key 'lookup_options' failed: Unable 
    to parse (/tmp/kafo_hiera20200519-51458-istd5q/data/custom.yaml): 
    could not find expected ':' while scanning a simple key at line 29 column 1 
    

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