Project

General

Profile

Actions

Bug #23382

closed

Editing Smart Class Parameter of type YAML creates malformed value in release 1.17.0

Added by Vadim Bulst about 6 years ago. Updated almost 6 years ago.

Status:
Closed
Priority:
Urgent
Category:
Parameters
Target version:
Fixed in Releases:
Found in Releases:

Description

When defining smart class parameter values with type YAML and submitted in GUI an Ruby error message gets prepended for each array entry.

Defining an YAML-Array like:

---
- name: foo
  mount_point: /bar
- name: john
  mount_point: /doe

gets saved as:
- !ruby/hash:ActiveSupport::HashWithIndifferentAccess
  name: foo
  mount_point: "/bar" 
- !ruby/hash:ActiveSupport::HashWithIndifferentAccess
  name: john
  mount_point: "/doe" 

Just a very simple example our YAML are much more complex. This error appears since the upgrade from 1.16.1 to 1.17.0.

As we need this system for production, we can leave this installation like it is for debugging purposes for a maximum of 36hours.

HOSTNAME: urzlxdeploy.rz.uni-leipzig.de
OS: redhat
RELEASE: CentOS Linux release 7.4.1708 (Core)
FOREMAN: 1.17.0
RUBY: ruby 2.0.0p648 (2015-12-16) [x86_64-linux]
PUPPET: 4.10.11
DENIALS: 0


Related issues 2 (0 open2 closed)

Related to Foreman - Bug #23581: Upgrade to Foreman 1.17 converts YAML to JSON HashResolvedActions
Has duplicate Foreman - Bug #23463: YAML rendering of external nodes generates incorrect data if hashes are usedDuplicate04/30/2018Actions
Actions

Also available in: Atom PDF