Project

General

Profile

Bug #13337

host subscription status refresh fails with undefined method 'backend_data'

Added by Justin Sherrill almost 4 years ago. Updated over 1 year ago.

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

Description

Running:

Host.all1.subscription_facet.update_subscription_status

which runs as part of the candlepin qpid events will get:

NoMethodError: undefined method `backend_data' for #<Katello::Candlepin::Consumer:0x000000094033b0>
    from /home/vagrant/git/katello/app/lib/katello/lazy_accessor.rb:160:in `instance_eval'
    from /home/vagrant/git/katello/app/lib/katello/lazy_accessor.rb:160:in `run_initializer'
    from /home/vagrant/git/katello/app/lib/katello/lazy_accessor.rb:139:in `lazy_attribute_get'
    from /home/vagrant/git/katello/app/lib/katello/lazy_accessor.rb:60:in `block (2 levels) in lazy_accessor'
    from /home/vagrant/git/katello/app/services/katello/candlepin/consumer.rb:33:in `entitlement_status'
    from /home/vagrant/git/katello/app/models/katello/subscription_status.rb:40:in `to_status'
    from /home/vagrant/git/foreman/app/models/host_status/status.rb:64:in `update_status'
    from /home/vagrant/git/foreman/app/models/host_status/status.rb:48:in `refresh'
    from /home/vagrant/git/foreman/app/models/host_status/status.rb:42:in `refresh!'
    from /home/vagrant/git/katello/app/models/katello/host/subscription_facet.rb:39:in `update_subscription_status'
    from (irb):18
    from /home/vagrant/.rvm/gems/ruby-2.2.4/gems/railties-4.1.5/lib/rails/commands/console.rb:90:in `start'
    from /home/vagrant/.rvm/gems/ruby-2.2.4/gems/railties-4.1.5/lib/rails/commands/console.rb:9:in `start'
    from /home/vagrant/.rvm/gems/ruby-2.2.4/gems/railties-4.1.5/lib/rails/commands/commands_tasks.rb:69:in `console'
    from /home/vagrant/.rvm/gems/ruby-2.2.4/gems/railties-4.1.5/lib/rails/commands/commands_tasks.rb:40:in `run_command!'
    from /home/vagrant/.rvm/gems/ruby-2.2.4/gems/railties-4.1.5/lib/rails/commands.rb:17:in `<top (required)>'
    from bin/rails:4:in `require'


Related issues

Blocks Katello - Feature #11435: Host Unification TrackerNew

Associated revisions

Revision bb41c550 (diff)
Added by Justin Sherrill almost 4 years ago

fixes #13337 - fix error when updating subscription status

Revision 9aa99f07
Added by Justin Sherrill almost 4 years ago

Merge pull request #5723 from jlsherrill/13337

fixes #13337 - fix error when updating subscription status

History

#1 Updated by Justin Sherrill almost 4 years ago

#2 Updated by The Foreman Bot almost 4 years ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/Katello/katello/pull/5723 added

#3 Updated by Justin Sherrill almost 4 years ago

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

Also available in: Atom PDF