Project

General

Profile

Actions

Bug #3033

closed

values smart variables not shown correctly under host parameters

Added by Ronny M over 10 years ago. Updated almost 7 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

Foreman 1.2.2

Under host parameters for a host the wrong smart variable value (default value) is shown.

A match on osversion=5 for lv_test is correct in /etc/mcollective/facts.yaml on the host but wrong for lv_test as default value 'notfound' under host parameters.

On host:
egrep "osversion|lv_test" /etc/mcollective/facts.yaml
osversion: "5"
lv_test: ext3

But in host parameters:
lv_test: notfound (attachment host_params.png)

Also the puppet class the smart variable belong too is not shown under menu "smart variables" (attachment: smart_variables.png)

Attachment: Edit Smart Variable.png, shows the smart variable configuration and the class it is assigned to.


Files

smart_variables.png View smart_variables.png 35.7 KB Ronny M, 09/05/2013 06:31 PM
Edit Smart Variable.png View Edit Smart Variable.png 50.5 KB Ronny M, 09/05/2013 06:31 PM
host_params.png View host_params.png 17.3 KB Ronny M, 09/05/2013 06:32 PM
Actions #1

Updated by Greg Sutcliffe over 10 years ago

Does the test host have the osversion fact in Foreman? The smart var will be calculated using the facts uploaded to foreman, so it's worth checking Foreman has the right data....

Actions #2

Updated by Greg Sutcliffe over 10 years ago

Also a pic of the YAML display for this node's ENC data would be useful. Click the YAML button on the host's page.

Actions #3

Updated by Ronny M over 10 years ago

Yes the fact is available in the host. Would be strange if it where not because it also in the /etc/mcollective/facts.yaml on the host with the right value based on os version.

This is the fact in the YAML of the host also the right value:

---
classes:
linux_common:
parameters:
puppetmaster: puppet.ont.cjib.minjus.nl
....
....
lv_test: ext3
environment: production

Actions #4

Updated by Greg Sutcliffe over 10 years ago

So this is just a display problem?

Actions #5

Updated by Ronny M over 10 years ago

yes

Actions #6

Updated by Ronny M over 10 years ago

Although this is cosmetic it's a show stopper for using smartvars in my case because looking at it under a host params, it will show a wrong value which in turn will cause confusion about the real value.

Actions #7

Updated by Anonymous almost 7 years ago

  • Status changed from New to Resolved

a lot of things changed since then...

Actions

Also available in: Atom PDF