Bug #21618
openhostgroup parameter does not show up in the PXE template
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.
Updated by A P about 7 years ago
- Category set to Host groups
- Translation missing: en.field_release set to 240
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
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
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.
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')
- Create host
- Select Hostgroup = Testing
- Click on Parameters Tab
- override the one with empty value to contain some value param2 = SomeValue.
- 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.
- Cancel Build
- 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
Updated by Ewoud Kohl van Wijngaarden almost 7 years ago
- Description updated (diff)
Updated by Anthony Chevalet over 6 years ago
- Related to Bug #20062: Host parameter not rendered in user_data template added
Updated by Tomer Brisker over 6 years ago
- Priority changed from High to Normal
- Triaged set to Yes