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.