Bug #23463

YAML rendering of external nodes generates incorrect data if hashes are used

Added by Henry Spanka 3 months ago. Updated 10 days ago.

Status:Duplicate
Priority:Normal
Assignee:-
Category:Smart Variables
Target version:1.17.2
Difficulty: Team Backlog:
Triaged:No Fixed in Releases:
Bugzilla link: Found in Releases:1.17.0
Pull request:

Description

Rendering the external YAML data of a host causes Foreman to generate incorrect data if it includes hashes that are set in parameterised classes.

Generated YAML:

classes:
  easystack:
    ceph_monitors:
    - !ruby/hash:ActiveSupport::HashWithIndifferentAccess
      fqdn: [RETRACTED]
      ip:  [RETRACTED]
      master: true
    - !ruby/hash:ActiveSupport::HashWithIndifferentAccess
      fqdn:  [RETRACTED]
      ip:  [RETRACTED]
      master: true
    - !ruby/hash:ActiveSupport::HashWithIndifferentAccess
      fqdn:  [RETRACTED]
      ip:  [RETRACTED]
      master: true

This seems to be a duplicate of #9240 and was introduced again somewhere between 1.16.1 and 1.17.0.


Related issues

Duplicates Foreman - Bug #23382: Editing Smart Class Parameter of type YAML creates malfor... Closed 04/24/2018

History

#1 Updated by Michael Moll 3 months ago

  • Related to Bug #23382: Editing Smart Class Parameter of type YAML creates malformed value in release 1.17.0 added

#2 Updated by Tomer Brisker 2 months ago

  • Legacy Backlogs Release (now unused) set to 360

#3 Updated by Tomer Brisker about 1 month ago

  • Category changed from API to Smart Variables

#4 Updated by Daniel Lobato Garcia 16 days ago

  • Triaged set to No

Does anyone have a good reproducer for this one? I'm able to get the following hashes right:

classes:
  dhcp:
    bootfiles:
      '00:06': grub2/bootia32.efi
      '00:07': grub2/bootx64.efi
      '00:09': grub2/bootx64.efi

#5 Updated by Daniel Lobato Garcia 15 days ago

  • Status changed from New to Duplicate

This is most certainly a duplicate of #23382

#6 Updated by Daniel Lobato Garcia 15 days ago

  • Related to deleted (Bug #23382: Editing Smart Class Parameter of type YAML creates malformed value in release 1.17.0)

#7 Updated by Daniel Lobato Garcia 15 days ago

  • Duplicates Bug #23382: Editing Smart Class Parameter of type YAML creates malformed value in release 1.17.0 added

Also available in: Atom PDF