Project

General

Profile

Bug #7074

subscription manager registration fails with undefined method `content_host' for nil:NilClass

Added by Justin Sherrill about 6 years ago. Updated over 2 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
-
Target version:
Difficulty:
Triaged:
Yes
Bugzilla link:
Fixed in Releases:
Found in Releases:

Description

Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1129813
Description of problem:

Without creating a new 'host', attempt to register a system with subscription manager:

undefined method `content_host' for nil:NilClass

traceback:

[ERROR 2014-08-13 18:31:16 cp_proxy #10175] NoMethodError: undefined method `content_host' for nil:NilClass | /opt/rh/ruby193/root/usr/share/gems/gems/katello-1.5.0/app/controllers/katello/api/rhsm/candlepin_proxies_controller.rb:200:in `consumer_create' | /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_controller/metal/implicit_render.rb:4:in `send_action' | /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/abstract_controller/base.rb:167:in `process_action' | /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_controller/metal/rendering.rb:10:in `process_action' | /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/abstract_controller/callbacks.rb:18:in `block in process_action' | /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:560:in `block (3 levels) in run_3799101404101427526__process_action__3835477456718063510__callbacks'

Version-Release number of selected component (if applicable):

How reproducible:
Always

Steps to Reproduce:
1. Without creating a host record, try to register a content host

Actual results:
Fails with error above

Expected results:
registers correctly

Associated revisions

Revision beb01975 (diff)
Added by Justin Sherrill about 6 years ago

fixes #7074 - allow registrations even when there is no host

Revision da56e03b
Added by Justin Sherrill about 6 years ago

Merge pull request #4578 from jlsherrill/7074

fixes #7074 - allow registrations even when there is no host

History

#1 Updated by The Foreman Bot about 6 years ago

  • Status changed from New to Ready For Testing
  • Target version set to 54
  • Pull request https://github.com/Katello/katello/pull/4578 added
  • Pull request deleted ()

#2 Updated by Justin Sherrill about 6 years ago

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

#3 Updated by Eric Helms about 6 years ago

  • Triaged changed from No to Yes

#4 Updated by Eric Helms about 6 years ago

  • Legacy Backlogs Release (now unused) set to 13

Also available in: Atom PDF