Satellite 6: Content Hosts selection under Hosts is empty after package upgrade

Solution In Progress - Updated -

Environment

  • Satellite 6

Issue

  • The content hosts are missing.
  • Content Hosts page is empty.

Resolution

  • Change foreman::plugin::templates: {} to foreman::plugin::templates: false in /etc/katello-installer/answers.katello-installer.yaml
  • Run katello-installer --upgrade
  • Run foreman-rake katello:reindex
  • Run foreman-rake katello:clean_backend_objects --trace

Root Cause

The installer answer file /etc/katello-installer/answers.katello-installer.yaml contains this katello plugin templates line:

"foreman::plugin::templates": {}

this line should be false if no plugin templates are used.

"foreman::plugin::templates": false

That might happen due to execution of katello-installer -v --templates true on the Satellite instead of capsule-installer -v --templates true on the capsule server.

Diagnostic Steps

$ cat /etc/katello-installer/answers.katello-installer.yaml | grep foreman::plugin::templates
 "foreman::plugin::templates": {}

Check /var/log/foreman/production.log for following error messages:

2016-01-06 15:33:50 [E] Missing template bastion/layouts/application with {:locale=>[:en], :formats=>[:json, :text, "version=2; */*"], :handlers=>[:erb, :builder, :haml, :rabl]}. Searched in:
* "/usr/share/foreman/app/views"
* "/opt/rh/ruby193/root/usr/share/gems/gems/foreman_openscap-0.3.2.10/app/views"
* "/opt/rh/ruby193/root/usr/share/gems/gems/scaptimony-0.3.0.1/app/views"
* "/opt/rh/ruby193/root/usr/share/gems/gems/foreman_bootdisk-4.0.2.14/app/views"
* "/opt/rh/ruby193/root/usr/share/gems/gems/redhat_access-0.2.4/app/views"
* "/opt/rh/ruby193/root/usr/share/gems/gems/katello-2.2.0.77/app/views"
* "/opt/rh/ruby193/root/usr/share/gems/gems/bastion-0.3.0.10/app/views"
* "/opt/rh/ruby193/root/usr/share/gems/gems/foreman_discovery-2.0.0.23/app/views"
* "/opt/rh/ruby193/root/usr/share/gems/gems/foreman-tasks-0.6.15.7/app/views"
* "/opt/rh/ruby193/root/usr/share/gems/gems/foreman_docker-1.2.0.24/app/views"
* "/opt/rh/ruby193/root/usr/share/gems/gems/apipie-rails-0.2.5/app/views"
* "/usr/share/foreman"
* "/"
(ActionView::MissingTemplate)

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