Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira ( If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1729038 - Cloud init template missing redhat_register snippet
Summary: Cloud init template missing redhat_register snippet
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Compute Resources - VMWare
Version: 6.6.0
Hardware: Unspecified
OS: Unspecified
Target Milestone: 6.6.0
Assignee: Lukas Zapletal
QA Contact: Sanket Jagtap
Depends On:
TreeView+ depends on / blocked
Reported: 2019-07-11 09:08 UTC by Sanket Jagtap
Modified: 2019-10-22 19:48 UTC (History)
5 users (show)

Fixed In Version: foreman-
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Last Closed: 2019-10-22 19:48:59 UTC
Target Upstream Version:

Attachments (Terms of Use)

System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 27276 0 Normal Closed Cloud init template missing redhat_register snippet 2020-07-13 21:02:55 UTC
Github theforeman community-templates pull 611 0 None closed Moved redhat_register snippet above puppet snippet 2020-07-13 21:02:55 UTC

Description Sanket Jagtap 2019-07-11 09:08:35 UTC
Description of problem:
We now have cloud init template that helps with provisioning with Vmware using userdata enabled images

Version-Release number of selected component (if applicable):
Satellite 6.6 snap 10

How reproducible:

Steps to Reproduce:
1. Have a cloud init(userdata) enabled as template on Vmware
2. Add it to satellite
3. Provision using the template

Actual results:
The provisioned box is not subscribed to satellite
As the cloud init template is missing redhat_register snippet
Expected results:
The provisioned box should be subscribed to Satellite 

Additional info:
Following this guide to reproduce:

Comment 2 Marek Hulan 2019-07-11 13:11:20 UTC
Created redmine issue from this bug

Comment 3 Lukas Zapletal 2019-07-17 11:02:08 UTC
Upstream patch will take longer due to tests, so doing a MR since this is a simple and tested one liner.

Comment 14 Sanket Jagtap 2019-09-26 06:22:49 UTC
Build: Satellite 6.6 snap 21

Using the latest changes in templates , provisioned successfully using userdata template

2019-09-26 06:05:54,400 -[DEBUG]: [0/11] open 'http://sat-host:8000/unattended/built?token=4ffbcd0b-3c58-44d1-bf98-0fb3ce7b69f1' with {'url': 'http://sat-host:8000/unattended/built?token=4ffbcd0b-3c58-44d1-bf98-0fb3ce7b69f1', 'headers': {'User-Agent': 'Cloud-Init/18.5'}, 'allow_redirects': True, 'method': 'GET', 'timeout': 5.0} configuration
2019-09-26 06:05:55,228 -[DEBUG]: Read from http://sat-host:8000/unattended/built?token=4ffbcd0b-3c58-44d1-bf98-0fb3ce7b69f1 (200, 0b) after 1 attempts
2019-09-26 06:05:55,228 -[DEBUG]: finish: modules-final/config-phone-home: SUCCESS: config-phone-home ran successfully
2019-09-26 06:05:55,228 -[DEBUG]: Ran 5 modules with 0 failures
2019-09-26 06:05:55,230 -[DEBUG]: Creating symbolic link from '/run/cloud-init/result.json' => '../../var/lib/cloud/data/result.json'
2019-09-26 06:05:55,230 -[DEBUG]: Reading from /proc/uptime (quiet=False)

Comment 15 Bryan Kearney 2019-10-22 19:48:59 UTC
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.

Note You need to log in before you can comment on or make changes to this bug.