Project

General

Custom queries

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 7 years ago. Updated almost 7 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
#1

Updated by Anonymous about 7 years ago

  • Related to Bug #23463: YAML rendering of external nodes generates incorrect data if hashes are used added
#2

Updated by Anonymous about 7 years ago

  • Translation missing: en.field_release changed from 296 to 297
#4

Updated by Tomer Brisker almost 7 years ago

  • Translation missing: en.field_release changed from 297 to 360
#9

Updated by Tomer Brisker almost 7 years ago

  • Related to Bug #23581: Upgrade to Foreman 1.17 converts YAML to JSON Hash added
#10

Updated by Daniel Lobato Garcia almost 7 years ago

  • Triaged set to No
#13

Updated by The Foreman Bot almost 7 years ago

  • Status changed from New to Ready For Testing
  • Assignee set to Daniel Lobato Garcia
  • Pull request https://github.com/theforeman/foreman/pull/5769 added
#14

Updated by Daniel Lobato Garcia almost 7 years ago

  • Related to deleted (Bug #23463: YAML rendering of external nodes generates incorrect data if hashes are used)
#15

Updated by Daniel Lobato Garcia almost 7 years ago

  • Has duplicate Bug #23463: YAML rendering of external nodes generates incorrect data if hashes are used added
#16

Updated by Daniel Lobato Garcia almost 7 years ago

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

Updated by The Foreman Bot almost 7 years ago

  • Pull request https://github.com/theforeman/foreman/pull/5786 added
#18

Updated by The Foreman Bot almost 7 years ago

  • Pull request https://github.com/theforeman/foreman/pull/5787 added
Actions

Also available in: Atom PDF