Project

General

Profile

Bug #18418

undefined method [] on promoting content view versions

Added by John Mitsch over 5 years ago. Updated almost 4 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Content Views
Target version:
Difficulty:
Triaged:
Bugzilla link:
Pull request:
Fixed in Releases:
Found in Releases:
Red Hat JIRA:

Description

Unsure how to reproduce, but I got this after:
1) creating a content view
2) adding 4 yum repos to it
3) publishing a version
4) promoting that version
5) publishing a new version

2017-02-07T20:50:21 7ce96954 [katello/cp_rest] [D] {"owner":{"id":"4028f9d159f100520159f104dbd40001","key":"Default_Organization","displayName":"Default Organization","href":"/owners/Default_Organization"},"name":"Library/everything","description":null,"id":"1-4","environmentContent":[{"id":"4028f9d159f10052015a1a4f82160942","contentId":"1485875977838","enabled":null,"created":"2017-02-07T20:41:42.678+0000","updated":"2017-02-07T20:41:42.678+0000"},{"id":"4028f9d159f10052015a1a4f82090940","contentId":"2472","enabled":null,"created":"2017-02-07T20:41:42.665+0000","updated":"2017-02-07T20:41:42.665+0000"},{"id":"4028f9d159f10052015a1a4f82110941","contentId":"2456","enabled":null,"created":"2017-02-07T20:41:42.673+0000","updated":"2017-02-07T20:41:42.673+0000"},{"id":"4028f9d159f10052015a1a4f821c0943","contentId":"4831","enabled":null,"created":"2017-02-07T20:41:42.684+0000","updated":"2017-02-07T20:41:42.684+0000"}],"created":"2017-02-07T20:38:50.136+0000","updated":"2017-02-07T20:38:50.136+0000"}
2017-02-07T20:50:21 7ce96954 [foreman-tasks/action] [E] undefined method `[]' for nil:NilClass (NoMethodError) | /home/vagrant/katello/app/lib/actions/candlepin/environment/set_content.rb:13:in `block in existing_ids' | /home/vagrant/katello/app/lib/actions/candlepin/environment/set_content.rb:12:in `map' | /home/vagrant/katello/app/lib/actions/candlepin/environment/set_content.rb:12:in `existing_ids' | /home/vagrant/katello/app/lib/actions/candlepin/environment/set_content.rb:18:in `run' | /home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.19/lib/dynflow/action.rb:506:in `block (3 levels) in execute_run' | /home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.19/lib/dynflow/middleware/stack.rb:26:in `call' | /home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.19/lib/dynflow/middleware/stack.rb:26:in `pass' | /home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.19/lib/dynflow/middleware.rb:17:in `pass' | /home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.19/lib/dynflow/middleware.rb:30:in `run' | /home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.19/lib/dynflow/middleware/stack.rb:22:in `call' | /home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.19/lib/dynflow/middleware/stack.rb:26:in `pass' | /home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.19/lib/dynflow/middleware.rb:17:in `pass' | /home/vagrant/katello/app/lib/actions/middleware/propagate_candlepin_errors.rb:9:in `block in run' | /home/vagrant/katello/app/lib/actions/middleware/propagate_candlepin_errors.rb:19:in `propagate_candlepin_errors' | /home/vagrant/katello/app/lib/actions/middleware/propagate_candlepin_errors.rb:9:in `run' | /home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.19/lib/dynflow/middleware/stack.rb:22:in `call' | /home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.19/lib/dynflow/middleware/stack.rb:26:in `pass' | /home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.19/lib/dynflow/middleware.rb:17:in `pass' | /home/vagrant/katello/app/lib/actions/middleware/remote_action.rb:16:in `block in run' | /home/vagrant/katello/app/lib/actions/middleware/remote_action.rb:40:in `block in as_remote_user' | /home/vagrant/katello/app/models/katello/concerns/user_extensions.rb:21:in `cp_config' | /home/vagrant/katello/app/lib/actions/middleware/remote_action.rb:27:in `as_cp_user' | /home/vagrant/katello/app/lib/actions/middleware/remote_action.rb:39:in `as_remote_user' | /home/vagrant/katello/app/lib/actions/middleware/remote_action.rb:16:in `run' | /home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.19/lib/dynflow/middleware/stack.rb:22:in `call' | /home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.19/lib/dynflow/middleware/stack.rb:26:in `pass' | /home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.19/lib/dynflow/middleware.rb:17:in `pass' | /home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.19/lib/dynflow/action/progress.rb:30:in `with_progress_calculation' | /home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.19/lib/dynflow/action/progress.rb:16:in `run' | /home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.19/lib/dynflow/middleware/stack.rb:22:in `call' | /home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.19/lib/dynflow/middleware/stack.rb:26:in `pass' | /home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.19/lib/dynflow/middleware.rb:17:in `pass'

History

#1 Updated by John Mitsch over 5 years ago

I think this was an issue on my dev environment from using candlepin 2.0 and not changing the environment

#2 Updated by Eric Helms over 5 years ago

  • Legacy Backlogs Release (now unused) set to 166

#3 Updated by Eric Helms over 5 years ago

  • Status changed from New to Closed

Also available in: Atom PDF