Bug #19962
closed
500 Internal Error - Candlepin
Added by Clayton Cowart over 7 years ago.
Updated over 6 years ago.
Description
Virt-who fails with 500 Internal Error when trying to send to candlepin.
Production.log shows:
2017-06-07 03:21:42 8d7636c6 [katello/cp_proxy] [E] NoMethodError: undefined method `string' for #<PhusionPassenger::Utils::TeeInput:0x007fd38f5fcdb8>
| /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.4.0.2/app/controllers/katello/api/rhsm/candlepin_proxies_controller.rb:117:in `async_hypervisors_update'
Files
- Description updated (diff)
- Related to Bug #19963: Hypervisor can't report to katello added
fixed with this patch
diff --git a/app/controllers/katello/api/rhsm/candlepin_proxies_controller.rb b/app/controllers/katello/api/rhsm/candlepin_proxies_controller.rb
index 0d53b1c..5dd509b 100644
--- a/app/controllers/katello/api/rhsm/candlepin_proxies_controller.rb
+++ b/app/controllers/katello/api/rhsm/candlepin_proxies_controller.rb
@ -114,7 +114,7
@ module Katello
# Note that this request comes in as content-type 'text/plain' so that
# tomcat won't parse the json. Here we just pass the plain body through to candlepin
def async_hypervisors_update
- raw_json = request.body.string
+ raw_json = request.body.read
task = Katello::Resources::Candlepin::Consumer.async_hypervisors(params[:owner], raw_json)
async_task(::Actions::Katello::Host::Hypervisors, nil, :task_id => task['id'])
- Status changed from New to Duplicate
Should this be a duplicate of #19963? It looks like the same error. I'm closing it as dupe just in case, feel free to reopen if they are different.
Also available in: Atom
PDF