Project

General

Profile

Actions

Bug #15297

closed

[upgrade]content-view publish on a upgraded setup fails with error: undefined method `[]' for nil:NilClass (NoMethodError)

Added by Brad Buckingham almost 8 years ago. Updated almost 6 years ago.

Status:
Closed
Priority:
Normal
Category:
Content Views
Target version:
Fixed in Releases:
Found in Releases:

Description

Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1342490
Description of problem:I've upgrade sat6.1.9 -> sat6.2 GA snap14.1. Upgrade was successfully completed. Later, I tried to create a new repo on upgraded setup and added the newly created repo in existing CV. when I publish the CV it failed with error:

> /var/log/foreman/production.log <
2016-06-03 07:28:35 [foreman-tasks/action] [E] undefined method `[]' for nil:NilClass (NoMethodError) | /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.0.0.42/app/lib/actions/pulp/repository/distributor_publish.rb:24:in `distributor_id' | /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.0.0.42/app/lib/actions/pulp/repository/distributor_publish.rb:16:in `invoke_external_task' | /opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.11/lib/dynflow/action/polling.rb:83:in `initiate_external_action' | /opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.11/lib/dynflow/action/polling.rb:18:in `run' | /opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.11/lib/dynflow/action/cancellable.rb:9:in `run' | /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.0.0.42/app/lib/actions/pulp/abstract_async_task.rb:45:in `run' | /opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.11/lib/dynflow/action.rb:506:in `block (3 levels) in execute_run' | /opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.11/lib/dynflow/middleware/stack.rb:26:in `call' | /opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.11/lib/dynflow/middleware/stack.rb:26:in `pass' | /opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.11/lib/dynflow/middleware.rb:17:in `pass' | /opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.11/lib/dynflow/middleware.rb:30:in `run' | /opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.11/lib/dynflow/middleware/stack.rb:22:in `call' | /opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.11/lib/dynflow/middleware/stack.rb:26:in `pass' | /opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.11/lib/dynflow/middleware.rb:17:in `pass' | /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.0.0.42/app/lib/actions/middleware/remote_action.rb:16:in `block in run' | /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.0.0.42/app/lib/actions/middleware/remote_action.rb:40:in `block in as_remote_user' | /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.0.0.42/app/models/katello/concerns/user_extensions.rb:20:in `cp_config' | /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.0.0.42/app/lib/actions/middleware/remote_action.rb:27:in `as_cp_user' | /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.0.0.42/app/lib/actions/middleware/remote_action.rb:39:in `as_remote_user' | /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.0.0.42/app/lib/actions/middleware/remote_action.rb:16:in `run'

Version-Release number of selected component (if applicable):
upgrade sat6.1.9 -> sat6.2 GA snap14.1 on rhel7

How reproducible:

Steps to Reproduce:
1. add a new repo on upgraded 6.2 satellite
2. add that repo to an existing CV
3. publish the CV

Actual results:
error: undefined method `[]' for nil:NilClass (NoMethodError)

Expected results:
cv publish should work

Additional info:

Actions #1

Updated by The Foreman Bot almost 8 years ago

  • Status changed from New to Ready For Testing
  • Assignee set to Brad Buckingham
  • Pull request https://github.com/Katello/katello/pull/6105 added
Actions #2

Updated by The Foreman Bot almost 8 years ago

  • Pull request https://github.com/Katello/katello-installer/pull/355 added
Actions #3

Updated by Brad Buckingham almost 8 years ago

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

Updated by Justin Sherrill almost 8 years ago

  • translation missing: en.field_release set to 144
Actions #5

Updated by Eric Helms almost 8 years ago

  • translation missing: en.field_release changed from 144 to 86
Actions

Also available in: Atom PDF