Actions
Bug #13337
closedhost subscription status refresh fails with undefined method 'backend_data'
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'
Actions