Project

General

Profile

Actions

Bug #20290

closed

Discovery kexec does not work due to incorrect JSON format

Added by Lukas Zapletal almost 7 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
High
Category:
Discovery plugin
Target version:
Difficulty:
trivial
Triaged:
Fixed in Releases:
Found in Releases:

Description

The error is HTTP 500:

#<JSON::ParserError: 757: unexpected token at '{"comment"=>"WARNING: Both kernel and initram are not set in preview mode due to http://projects.theforeman.org/issues/19737", "kernel"=>"http://xxxx.redhat.com/pulp/repos/Default_Organization/Library/content/dist/rhel/server/7/7.3/x86_64/kickstart//images/pxeboot/vmlinuz", "initram"=>"http://xxxx.redhat.com/pulp/repos/Default_Organization/Library/content/dist/rhel/server/7/7.3/x86_64/kickstart//images/pxeboot/initrd.img", "append"=>"ks=http://xxxx.redhat.com/unattended/provision?token=6d999547-cxxx2&static=yes inst.ks.sendmac ip=192.168.100.13::192.168.100.1:255.255.255.0:::none nameserver=192.168.100.1 ksdevice=bootif BOOTIF=00-52-54-00-eb-8a-cd nomodeset ", "extra"=>["--args-linux"]}'>

Introduced by #19412 or #19732 where

old.becomes(Host::Discovered).kexec json.to_s

this creates string represantion of Ruby hash instead of valid JSON. This must be:

old.becomes(Host::Discovered).kexec json.to_json
Actions #1

Updated by The Foreman Bot almost 7 years ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/theforeman/foreman_discovery/pull/363 added
Actions #2

Updated by roman plevka almost 7 years ago

  • Bugzilla link set to 1470242
Actions #3

Updated by Anonymous over 6 years ago

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

Also available in: Atom PDF