Project

General

Profile

Actions

Bug #16830

closed

HighLine::String inside arrays not replaced in parameter values

Added by Yama Kasi over 8 years ago. Updated over 8 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

I'm not sure but is the installer here failing on the same bug as #14568 ?

[ERROR 2016-10-07 11:56:20 verbose] Evaluation Error: Error while evaluating a Function Call, undefined class/module HighLine:: at /usr/share/gems/gems/kafo-0.9.2/modules/kafo_configure/manifests/init.pp:14:3 on node foreman-01.my.domain

This happens on 1.12.3 as 1.13 as well.


Files

foreman-answers.yaml foreman-answers.yaml 14 KB Yama Kasi, 10/07/2016 06:27 AM

Related issues 1 (0 open1 closed)

Related to Kafo - Bug #15111: "!ruby/string:HighLine::String" in answers when using interactive modeClosedDominic Cleal05/20/2016Actions
Actions #1

Updated by Dominic Cleal over 8 years ago

  • Status changed from New to Need more information
  • Difficulty deleted (easy)

Please provide more information to reproduce the bug, such attaching your answers file (with credentials redacted) and precisely how you created the answers file (commands, whether you used interactive mode).

Actions #2

Updated by Yama Kasi over 8 years ago

The answersfile is generated from scratch using foreman-installer -i

Actions #3

Updated by Dominic Cleal over 8 years ago

Please attach your answers file (with credentials redacted).

Actions #4

Updated by Yama Kasi over 8 years ago

Added generated foreman-answers.yaml

Actions #5

Updated by Dominic Cleal over 8 years ago

  • Related to Bug #15111: "!ruby/string:HighLine::String" in answers when using interactive mode added
Actions #6

Updated by Dominic Cleal over 8 years ago

  • Project changed from Installer to Kafo
  • Subject changed from Foreman-installer failing on Kafo to HighLine::String inside arrays not replaced in parameter values
  • Category deleted (foreman-installer script)
  • Status changed from Need more information to New
  • Priority changed from High to Normal

The HighLine string class isn't replaced in this entry, as it's inside an array:

foreman::plugin::memcache:
  hosts:
  - !ruby/string:HighLine::String |-
    V1d0ak5XRnNiRmhsUnpscFRUQTBkdz09
  expires_in: 86400
  namespace: foreman
  compress: true

#15111 only fixes instances where the value is a HighLine::String. The same probably applies to hashes.

As a workaround, run foreman-installer --foreman-plugin-memcache-hosts=example.com replacing example.com with the hostname of your memcached server. It should reset the stored value. Else, replace the section of the answers file above with:

foreman::plugin::memcache:
  hosts:
  - example.com
  expires_in: 86400
  namespace: foreman
  compress: true
Actions #7

Updated by Yama Kasi over 8 years ago

Indeed, I saw that and didn't mention it, sorry for that!

Thanks!

Actions #8

Updated by The Foreman Bot over 8 years ago

  • Status changed from New to Ready For Testing
  • Assignee set to Dominic Cleal
  • Pull request https://github.com/theforeman/kafo/pull/183 added
Actions #9

Updated by Dominic Cleal over 8 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100
Actions

Also available in: Atom PDF