satellite-maintain restore fails with '/usr/share/foreman-installer/modules/foreman_proxy/manifests/plugin/remote_execution/ssh.pp' is available

Solution Verified - Updated

Environment

Red Hat Satellite 6.12

Issue

  • Running "satellite-maintain restore" gives the error output below:

    Failed executing yes | satellite-installer -v --reset-data --disable-system-checks , exit status 1:
     /usr/share/gems/gems/kafo-6.4.0/lib/kafo/puppet_module.rb:70:in `parse': No Puppet module parser is installed and no cache of the file /usr/share/foreman-installer/modules/foreman_proxy/manifests/plugin/remote_execution/ssh.pp is available. Please check debug logs and install optional dependencies for the parser. (Kafo::ParserError)
            from /usr/share/gems/gems/kafo-6.4.0/lib/kafo/configuration.rb:133:in `block in modules'
            from /usr/share/gems/gems/kafo-6.4.0/lib/kafo/configuration.rb:133:in `map'
            from /usr/share/gems/gems/kafo-6.4.0/lib/kafo/configuration.rb:133:in `modules'
            from /usr/share/gems/gems/kafo-6.4.0/lib/kafo/kafo_configure.rb:253:in `modules'
            from /usr/share/gems/gems/kafo-6.4.0/lib/kafo/kafo_configure.rb:257:in `module'
            from /usr/share/gems/gems/kafo-6.4.0/lib/kafo/hook_context.rb:113:in `module_present?'
            from /usr/share/foreman-installer/hooks/boot/20-certs_update.rb:2:in `block (4 levels) in load'
            from /usr/share/gems/gems/kafo-6.4.0/lib/kafo/hooking.rb:36:in `instance_eval'
            from /usr/share/gems/gems/kafo-6.4.0/lib/kafo/hooking.rb:36:in `block (4 levels) in load'
            from /usr/share/gems/gems/kafo-6.4.0/lib/kafo/hook_context.rb:19:in `instance_eval'
            from /usr/share/gems/gems/kafo-6.4.0/lib/kafo/hook_context.rb:19:in `execute'
            from /usr/share/gems/gems/kafo-6.4.0/lib/kafo/hooking.rb:67:in `block in execute'
            from /usr/share/gems/gems/kafo-6.4.0/lib/kafo/hooking.rb:65:in `each'
            from /usr/share/gems/gems/kafo-6.4.0/lib/kafo/hooking.rb:65:in `execute'
            from /usr/share/gems/gems/kafo-6.4.0/lib/kafo/kafo_configure.rb:140:in `initialize'
            from /usr/share/gems/gems/clamp-1.1.2/lib/clamp/command.rb:132:in `new'
            from /usr/share/gems/gems/clamp-1.1.2/lib/clamp/command.rb:132:in `run'
            from /usr/share/gems/gems/kafo-6.4.0/lib/kafo/kafo_configure.rb:50:in `run'
            from /usr/sbin/satellite-installer:8:in `<main>'
    

Resolution

  1. Make a backup copy of /etc/foreman-installer/scenarios.d/satellite-answers.yaml
  2. If /etc/foreman-installer/scenarios.d/satellite-answers.yaml has an entry "foreman_proxy::plugin::remote_execution::ssh:" remove it as well as inner parameters.
foreman_proxy::plugin::remote_execution::ssh:
  enabled: true
  listen_on: https
  generate_keys: "********"
  install_key: "********"
  ssh_identity_dir: "/var/lib/foreman-proxy/ssh"
  ssh_identity_file: id_rsa_foreman_proxy
  ssh_keygen: "********"
  local_working_dir: "/var/tmp"
  remote_working_dir: "/var/tmp"
  ssh_kerberos_auth: false
  async_ssh: false
  1. Re run "satellite-maintain restore" command

For more KB articles/solutions related to Red Hat Satellite 6.x backup issues, please refer to the Consolidated Troubleshooting Article for Red Hat Satellite 6.x backup-related Issues

Root Cause

  • Error message showing the maintenance script is looking for the files and folder which is mentioned in /etc/foreman-installer/scenarios.d/satellite-answers.yaml and unable to fetch it.

Diagnostic Steps

  • Verify the configuration files are correct no manual change is made which is not there in the product documentation.
  • Contact Red Hat Technical Support if you need help with verifying configuration files.
SBR
Product(s)
Components
Category

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.