System registration to Red Hat Satellite 6 fails while provisioning system using third party provisioning tool via Puppet.

Solution Verified - Updated -

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.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content