RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). 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 "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". 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 rh-issues@redhat.com 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 "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", 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 1733346 - Add support for instance metadata in jinja templates (available in cloud-init 18.4 and newer)
Summary: Add support for instance metadata in jinja templates (available in cloud-init...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: cloud-init
Version: 7.8
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Eduardo Otubo
QA Contact: Huijuan Zhao
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-07-25 19:19 UTC by Andy Goldstein
Modified: 2024-11-20 07:54 UTC (History)
11 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-07-02 17:24:36 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Andy Goldstein 2019-07-25 19:19:22 UTC
Description of problem:
The Kubernetes Cluster API project is unable to use the templating support added in cloud-init 18.4 to access instance metadata. The version of cloud-init included with RHEL is older than 18.4 and as such it does not allow us to do this.


Version-Release number of selected component (if applicable): 18.2


How reproducible: 100%


Steps to Reproduce:
1. Set up cloud-init user data that includes a template reference to instance metadata.
2. Start the server/virtual machine with this user data.

Actual results:
Cloud-init fails because it is not able to interpret the template syntax.

Expected results:
Cloud-init interprets the template syntax and succeeds.


Additional info:
Here is the Cluster API issue related to this: https://github.com/kubernetes-sigs/cluster-api-bootstrap-provider-kubeadm/issues/41.

Here is the cloud-init information about using instance data with templating that was added in 18.4: https://cloudinit.readthedocs.io/en/latest/topics/instancedata.html#using-instance-data.

I believe this is the commit that added this support: https://git.launchpad.net/cloud-init/commit/?h=18.4&id=c7555762f3a30190ce7726b4d013bc3e83c7e4b6.

Comment 5 Rick Barry 2020-07-02 17:24:36 UTC
Current versions of cloud-init provided by RHEL release:

cloud-init 18.4: RHEL 7.7 and RHEL 8.1
cloud-init 19.4: RHEL 7.9 and RHEL 8.2.1

Setting this to CLOSED/CURRENTRELEASE.


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