Ansible roles associated with the hostgroups are not automatically applied after new system deployments are completed in Red Hat Satellite 6.10

Solution Verified - Updated -

Environment

  • Red Hat Satellite 6.10.1
  • Red Hat Satellite 6.10.2

Issue

  • After provisioning a new machine , the Ansible roles assigned to the host group are not automatically installed.

Resolution

  • This issue has been reported to the Red Hat Engineering team via Bugzilla 2043701 and has been fixed in Red Hat Satellite 6.10.3 and later.

  • If updating the satellite server to 6.10.3 is not possible, then the following workaround can be applied.

    • Edit line 112 of the following file :

      /opt/theforeman/tfm/root/usr/share/gems/gems/katello-4.1*/app/models/katello/concerns/host_managed_extensions.rb
      
      From :
      
      refresh_global_status!
      
      to: 
      
      refresh_global_status
      
    • Restart all the services of the satellite server :

      # satellite-maintain service restart
      # hammer ping
      
    • Provision a new machine that uses a hostgroup where Ansible roles are assigned to perform a test system build.

 

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