System registration to Red Hat Satellite 6 fails while provisioning system using third party provisioning tool via Puppet.
Issue
- When attempting to provision a system using third party provisioning tool which contains the module for Red Hat Enterprise Linux system registration, the Puppet run would fail with error :
(/Stage[main]/Rhsm/Exec[RHSM-register]/returns) change from notrun to 0 failed: subscription-manager register --name='abc.example.com' --org='Example' --activationkey='Example_Key' returned 1 instead of one of [0]
- During the server build process, if “subscription-manager register” command has return code of 1, then Puppet and Ansible believe the server has failed to register to the Satellite server.
- The build process will be stopped and server will be decommissioned.
Environment
- Red Hat Satellite 6.x
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.