Project

General

Profile

Bug #21618

hostgroup parameter does not show up in the PXE template

Added by A P almost 3 years ago. Updated over 2 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Host groups
Target version:
-
Difficulty:
Triaged:
Yes
Bugzilla link:
Pull request:
Fixed in Releases:
Found in Releases:

Description

Create a hostgroup with some parameter with at-least one with empty value. For e.g.,
Hostgroup name "Testing"
param1=Hello
param2=

PXE template that references host_param('param1') and host_param('param2')

Create host
  • Hostgroup = Testing
  • Parameters, override the one with empty value to contain some value param2 = SomeValue.
  • Submit

Generated PXE template does not contain the value of param2. However, YAML in the web UI shows correct values.


Related issues

Related to Foreman - Bug #20062: Host parameter not rendered in user_data template New

History

#1 Updated by A P almost 3 years ago

  • Legacy Backlogs Release (now unused) set to 240
  • Category set to Host groups

#2 Updated by A P almost 3 years ago

This behavior exists on 1.15.4, 1.15.5,1.15.6,1.16.RC2

It works fine with 1.11 releases which is what we have in the production

#3 Updated by Marek Hulán almost 3 years ago

  • Legacy Backlogs Release (now unused) deleted (240)

Without the patch, I don't think we can expect this in 1.16

#4 Updated by A P almost 3 years ago

Marek Hulán wrote:

Without the patch, I don't think we can expect this in 1.16

So the last release it worked was on 1.11.3. I haven't tried in-between releases.

If someone suggests me where to look I can provide a patch.

#5 Updated by A P almost 3 years ago

Anand Patel wrote:

Create a hostgroup with some parameter with at-least one with empty value. For e.g.,
Hostgroup name "Testing"
param1=Hello
param2=

PXE template that references host_param('param1') and host_param('param2')

Create host
  • Hostgroup = Testing
  • Parameters, override the one with empty value to contain some value param2 = SomeValue.
  • Submit

Generated PXE template does not contain the value of param2. However, YAML in the web UI shows correct values.

For some reason my original description eat newlines so I am re-writing it again.

Create a hostgroup with some parameter with at-least one with empty value. For e.g.,
Hostgroup name "Testing"
param1=Hello
param2=

PXE template that references host_param('param1') and host_param('param2')

  1. Create host
  2. Select Hostgroup = Testing
  3. Click on Parameters Tab
  4. override the one with empty value to contain some value param2 = SomeValue.
  5. Click Submit

Generated PXE template does not contain the value of param2. However, YAML in the web UI shows correct values.

Now, go through following steps (work around) to generate correct PXE file.

  1. Cancel Build
  2. Build

Generated PXE file contains correct values.

Last known version that works correctly is 1.11.3.
Last known versions that it does not work are 1.15.6 and 1.16.RC2

#6 Updated by Ewoud Kohl van Wijngaarden over 2 years ago

  • Description updated (diff)

#7 Updated by Anthony Chevalet over 2 years ago

  • Related to Bug #20062: Host parameter not rendered in user_data template added

#8 Updated by Tomer Brisker over 2 years ago

  • Triaged set to Yes
  • Priority changed from High to Normal

Also available in: Atom PDF