Actions
Bug #20290
closedDiscovery kexec does not work due to incorrect JSON format
Status:
Closed
Priority:
High
Assignee:
Category:
Discovery plugin
Target version:
Difficulty:
trivial
Triaged:
Bugzilla link:
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
Updated by The Foreman Bot over 7 years ago
- Status changed from New to Ready For Testing
- Pull request https://github.com/theforeman/foreman_discovery/pull/363 added
Updated by Anonymous over 7 years ago
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100
Applied in changeset foreman_discovery|8c132b1a4c0f2e0461cd360597dbe93a94dd63a0.
Actions