Red Hat Satellite engineering is moving the tracking of its product development work on Satellite 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 "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 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 "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-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 1648963 - Add an upgrade note for 6.4 about host params
Summary: Add an upgrade note for 6.4 about host params
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Documentation
Version: 6.4
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: Unspecified
Assignee: Melanie Corr
QA Contact: Sergei Petrosian
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-11-12 15:18 UTC by Lukas Zapletal
Modified: 2019-09-26 17:24 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-11-13 09:50:04 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 1572980 0 unspecified CLOSED [sat64] Error rendering the Satellite Kickstart Default Finish template: undefined method '#params' for Host::Managed::J... 2023-10-06 17:47:12 UTC

Internal Links: 1572980

Description Lukas Zapletal 2018-11-12 15:18:29 UTC
Hey,

Satellite 6.4 upgrade process automatically tries to find macros which has been deprecated and convert them into new syntax for all templates, parameters and lookup keys and values.

  @host.params["parameter1"] -> host_param("parameter1")
  @host.param_true?("parameter1") -> host_param_true?("parameter1")
  @host.param_false?("parameter1") -> host_param_false?("parameter1")

The process uses simple text replacement which will not work in all cases, e.g. when host is assigned to a variable:

  myhost = @host
  myhost.params["wont_work"]

After upgrade to 6.4 please verify all templates, parameters and lookup keys and values for the old-syntax and replace manually. The error that can be thrown for old syntax is:

  undefined method '#params' for Host::Managed::Jail

Changing provisioning template to the new syntax helps to avoid the error.

Comment 2 Melanie Corr 2018-11-12 15:31:08 UTC
Thanks for raising this bug!


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