Project

General

Profile

Actions

Bug #13671

closed

Missing node state variable expansion in directive

Added by Thomas CAILHE over 5 years ago. Updated almost 2 years ago.

Status:
Released
Priority:
N/A
Category:
Web - Config management
Target version:
Severity:
Major - prevents use of part of Rudder | no simple workaround
UX impact:
User visibility:
Operational - other Techniques | Rudder settings | Plugins
Effort required:
Very Small
Priority:
100
Name check:
Fix check:
Regression:

Description

Oyabi
@Thomas CAILHE
15:46

I try to play with variable so I set a custom tiny custom motd:

${rudder.param.rudder_file_edit_header}
Bienvenue sur ${rudder.node.hostname}
Policy mode: ${rudder.node.policyMode}
${rudder.param.rudder_file_edit_header}

But my policies does not update => Unknow interpolated variable ${node.policyMode}.
However, policyMode is in the API (GET nodes/nodeID) and set to "policyMode": "enforce",.
Francois Armand
@fanf
15:52
@Thomas CAILHE unfortunatly, you don't have access to all inventory variables in rules, see: https://www.rudder-project.org/redmine/issues/3112
Rudder Chatbot
@rudderbot
15:53
Helmsman User story #3112: Allow to get informations from the node inventory to use them in Directives ( New issue assigned to no one. URL: https://www.rudder-project.org/redmine//issues/3112 )
Francois Armand
@fanf
15:53
(yes, that old)
(we are really commited to find a solution for that one. It's hard with the constraint to not have abysmal performances)
Oyabi
@Thomas CAILHE
15:55
:) ok that fine. Thanks
Francois Armand
@fanf
15:58
hum
@Thomas CAILHE in fact for node state and policy mode, it should works because that's no inventory info, but node info
so would you mind opening a bug for that? (marking it "related to #3112" would be extremelly kind)


Subtasks 1 (0 open1 closed)

Bug #13841: Missing node policy mode in variable expansion in directiveReleasedFrançois ARMANDActions

Related issues 2 (0 open2 closed)

Related to Rudder - User story #3112: Allow to get informations from the node inventory to use them in Directives and ncf techniquesReleasedFrançois ARMANDActions
Related to Rudder - Bug #13915: Missing documentation for "state" and "policymode" parameter expansionReleasedAlexis MoussetActions
Actions #1

Updated by Alexis Mousset over 5 years ago

  • Related to User story #3112: Allow to get informations from the node inventory to use them in Directives and ncf techniques added
Actions #2

Updated by Alexis Mousset over 5 years ago

  • Category set to Web - Config management
Actions #3

Updated by François ARMAND over 5 years ago

  • Subject changed from Get information from variable in directives to Missing node policy mode and node state variable expansion in directive
  • Effort required set to Very Small
Actions #4

Updated by François ARMAND over 5 years ago

  • Translation missing: en.field_tag_list set to Sponsored, community
  • Severity set to Major - prevents use of part of Rudder | no simple workaround
  • User visibility set to Operational - other Techniques | Rudder settings | Plugins
Actions #5

Updated by François ARMAND over 5 years ago

  • Priority changed from 0 to 113

(save again to update priority)

Actions #6

Updated by Vincent MEMBRÉ over 5 years ago

  • Target version set to 4.3.7
Actions #7

Updated by Vincent MEMBRÉ over 5 years ago

  • Status changed from New to In progress
  • Assignee set to Vincent MEMBRÉ
Actions #8

Updated by Vincent MEMBRÉ over 5 years ago

  • Status changed from In progress to Pending technical review
  • Assignee changed from Vincent MEMBRÉ to François ARMAND
  • Pull Request set to https://github.com/Normation/rudder/pull/2059
Actions #9

Updated by Vincent MEMBRÉ over 5 years ago

  • Status changed from Pending technical review to Pending release
Actions #10

Updated by François ARMAND over 5 years ago

  • Subject changed from Missing node policy mode and node state variable expansion in directive to Missing node state variable expansion in directive
  • Priority changed from 113 to 112
Actions #11

Updated by Vincent MEMBRÉ over 5 years ago

  • Status changed from Pending release to Released
This bug has been fixed in Rudder 4.3.7 and 5.0.3 which were released today.
Changelog
Changelog
Actions #12

Updated by François ARMAND over 5 years ago

  • Related to Bug #13915: Missing documentation for "state" and "policymode" parameter expansion added
Actions #13

Updated by Alexis Mousset almost 2 years ago

  • Priority changed from 112 to 100
Actions

Also available in: Atom PDF