Description of problem: The default RHEL kickstart template uses rhnreg_ks in the redhat_register snippet to register the newly provisioned host, however this is now deprecated in favour of subscription-manager. A new snippet should be added for rhsm support and the templates updated to use it. The snippet should support enabling non-default repos too. openstack-foreman-installer ships its own kickstart template, so this will also need updating if it's still in use. Version-Release number of selected component (if applicable): How reproducible: Always Steps to Reproduce: 1. provision a new host from Foreman with RHN(S) and activation keys set 2. check if /etc/yum.repos.d/redhat.repo is populated 3. check if /etc/sysconfig/rhn/systemid exists Actual results: redhat.repo doesn't exist systemid exists Expected results: redhat.repo should be present and populated systemid should not exist Additional info:
Please see the documentation in the redhat_register snippet so you know which parameters to set to use RHSM rather than rhnreg_ks: https://github.com/theforeman/community-templates/blob/76bb71b76/snippets/redhat_register.erb#L14-L30
*** Bug 1062709 has been marked as a duplicate of this bug. ***
A bug was found by Jiri that affected the snippet on RHEL 6.4. It's been fixed in 1.3.0.4 with this change: https://github.com/theforeman/community-templates/commit/6a66f3908b2c8729d311507ec5e56ee2f34e01c7
redhat_register snippet contains the described fix, linked above.
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. http://rhn.redhat.com/errata/RHBA-2014-0577.html