Project

General

Profile

Actions

Bug #21618

open

hostgroup parameter does not show up in the PXE template

Added by A P about 7 years ago. Updated over 6 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Host groups
Target version:
-
Difficulty:
Triaged:
Yes
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 1 (1 open0 closed)

Related to Foreman - Bug #20062: Host parameter not rendered in user_data template NewActions
Actions #1

Updated by A P about 7 years ago

  • Category set to Host groups
  • Translation missing: en.field_release set to 240
Actions #2

Updated by A P about 7 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

Actions #3

Updated by Marek Hulán about 7 years ago

  • Translation missing: en.field_release deleted (240)

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

Actions #4

Updated by A P about 7 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.

Actions #5

Updated by A P about 7 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

Actions #6

Updated by Ewoud Kohl van Wijngaarden almost 7 years ago

  • Description updated (diff)
Actions #7

Updated by Anthony Chevalet over 6 years ago

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

Updated by Tomer Brisker over 6 years ago

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

Also available in: Atom PDF