Project

General

Profile

Actions

Bug #13337

closed

host subscription status refresh fails with undefined method 'backend_data'

Added by Justin Sherrill about 8 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Normal
Category:
-
Target version:
Difficulty:
trivial
Triaged:
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 1 (1 open0 closed)

Blocks Katello - Feature #11435: Host Unification TrackerNewActions
Actions #1

Updated by Justin Sherrill about 8 years ago

Actions #2

Updated by The Foreman Bot about 8 years ago

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

Updated by Justin Sherrill about 8 years ago

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

Also available in: Atom PDF