Last active
December 31, 2022 11:18
-
-
Save sayan3296/f47005d19e556fca9d388fbaaf7e70bc to your computer and use it in GitHub Desktop.
satellite-installer fails with parser cache error
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Requirements: | |
| * Satellite 6.10 ( latest minor release ) installed on RHEL 7 | |
| * Organization RedHat and Location GSS | |
| * No Repo content is required to be enabled\synced | |
| Breakfix Playbook: | |
| ~~~ | |
| --- | |
| - name: Creating breakfix for "No Puppet module parser is installed" in Satellite 6.10 | |
| hosts: psi_satellite_610 | |
| gather_facts: false | |
| tasks: | |
| - name: Check the presence of ssl-build directory. | |
| stat: | |
| path: "/root/ssl-build" | |
| register: ssl_build | |
| - name: Create the ssl-build directory is it was not present. | |
| file: | |
| path: /root/ssl-build | |
| state: directory | |
| mode: '0755' | |
| when: ssl_build is defined and not ssl_build.stat.exists | |
| - name: Run installer to generate certs into ssl-build directory. | |
| command: bash -c "satellite-installer -S satellite" | |
| when: ssl_build is defined and not ssl_build.stat.exists | |
| - name: Modify answers file to break a few things | |
| lineinfile: | |
| path: /etc/foreman-installer/scenarios.d/satellite-answers.yaml | |
| firstmatch: true | |
| insertafter: "{{ item.target }}" | |
| line: "{{ item.content }}" | |
| state: present | |
| backup: false | |
| loop: | |
| - { target: 'foreman::compute::vmware: false', content: 'foreman::compute::nutanix: false' } | |
| - { target: 'foreman::plugin::bootdisk: false', content: 'foreman::plugin::docker: false' } | |
| - { target: 'foreman_proxy::plugin::shellhooks: false', content: 'foreman_proxy::plugin::webhooks: false' } | |
| - name: Adjust few parameters for the ssh plugin of foreman-proxy | |
| replace: | |
| path: /etc/foreman-installer/scenarios.d/satellite-answers.yaml | |
| regexp: "{{ item.source }}" | |
| replace: "{{ item.replace }}" | |
| loop: | |
| - { source: '/var/lib/foreman-proxy/ssh', replace: '/root/.ssh' } | |
| - { source: 'id_rsa_foreman_proxy', replace: 'id_rsa' } | |
| - name: Update the timestamp of ssh.pp file to break the installer | |
| command: bash -c "touch /usr/share/foreman-installer/modules/foreman_proxy/manifests/plugin/remote_execution/ssh.pp" | |
| ~~~ | |
| Issue: Installer fails with errors like this: | |
| ~~ | |
| 2: from /opt/theforeman/tfm/root/usr/share/gems/gems/kafo-6.4.0/lib/kafo/configuration.rb:133:in `map' | |
| 1: from /opt/theforeman/tfm/root/usr/share/gems/gems/kafo-6.4.0/lib/kafo/configuration.rb:133:in `block in modules' | |
| /opt/theforeman/tfm/root/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/manifests/compute/nutanix.pp is available. Please check debug logs and install optional dependencies for the parser. (Kafo::ParserError) | |
| ~~ | |
| Task: | |
| * Ensure that satellite-installer execution gets completed successfully without any errors. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment