Project

General

Profile

Actions

Bug #27209

open

Unknown function 'kafo_configure::dump_variables'

Added by малъ скрылевъ over 5 years ago. Updated over 5 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Difficulty:
Triaged:
No
Fixed in Releases:
Found in Releases:

Description

Hello,

I've got an error saying to refuse using an unknow function, when I trying to use "foreman-installer" with the "kafo" version 3.0.0:

Error: Evaluation Error: Unknown function: 'kafo_configure::dump_variables'. (file: /usr/lib/ruby/gems/2.5.0/gems/kafo-3.0.0/modules/kafo_configure/manifests/dump_values.pp, line: 15, column: 18) on node vm15
[ERROR 2019-07-02T18:48:10 main] Could not get default values, cannot continue

I've grepped the foreman-installer sources and its modules to match the function and it hadn't find this one. I've stubbed the code as follows,

  $dumped_vars = [] # kafo_configure::dump_variables($variables)
  $dumped_lookups = [] #kafo_configure::dump_lookups($lookups)
  $dumped = "--- []\n" # kafo_configure::to_yaml($dumped_vars, $dumped_lookups)

But it seems that is the crutch. So the question it how to fix it correctly?

Actions #1

Updated by Ewoud Kohl van Wijngaarden over 5 years ago

Can you give a bit more context about your deployment? Are you running it on Debian? As part of our installer or your own project?

Actions #2

Updated by малъ скрылевъ over 5 years ago

No, Im trying to add another linux configuration for ALTLinux.

Actions #3

Updated by Ewoud Kohl van Wijngaarden over 5 years ago

On Debian we have the issue that the kafo modules path is incorrect due to packaging. That's why we explicitly pass it in our scenario. I'd try to do the same because that code is fragile. Haven't found a good solution though.

Actions

Also available in: Atom PDF