Project

General

Profile

Actions

Bug #7138

closed

Don't allow users to add iso repos to content views

Added by Partha Aji over 10 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Web UI
Target version:
Difficulty:
Triaged:
Yes
Fixed in Releases:
Found in Releases:

Description

Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1030537
Description of problem:

If you attempt to publish a content view definition and have added an ISO repo, the publish will fail with an error:

NoMethodError: undefined method `[]' for nil:NilClass

Version-Release number of selected component (if applicable):

mdp2/katello 1.4

How reproducible:
always

Steps to Reproduce:
1. Import a manifest
2. Enable one or more ISO repos
3. Create a content view definition
4. Add at least one ISO repo to the content view definition
5. Publish the definition to a content view

Actual results:
Error

Expected results:
Publishes correctly

Additional info:

I'm not sure that we should actually support adding ISOs to a CV, if we should then it should work.

2013-10-23T12:47:50-0500: [Worker(delayed_job host:xio99clinuxmgt2.centric.com pid:22368)] ContentViewDefinition#generate_repos failed with NoMethodError: undefined method `[]' for nil:NilClass - 0 failed attempts
2013-10-23T12:47:50-0500: [Worker(delayed_job host:xio99clinuxmgt2.centric.com pid:22368)] PERMANENTLY removing ContentViewDefinition#generate_repos because of 1 consecutive failures.
undefined method `[]' for nil:NilClass
/usr/share/katello/app/models/glue/pulp/repo.rb:677:in `publish_distributor'
/usr/share/katello/app/models/glue/pulp/repo.rb:667:in `generate_metadata'
/usr/share/katello/app/models/repository.rb:242:in `block in trigger_contents_changed'
/opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/associations/collection_proxy.rb:89:in `each'
/opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/associations/collection_proxy.rb:89:in `flat_map'
/opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/associations/collection_proxy.rb:89:in `method_missing'
/usr/share/katello/app/models/repository.rb:242:in `trigger_contents_changed'
/usr/share/katello/app/models/content_view_version.rb:186:in `trigger_repository_changes'
/usr/share/katello/app/models/content_view_definition.rb:90:in `generate_repos'
/usr/share/katello/app/models/async_operation.rb:57:in `perform'
/opt/rh/ruby193/root/usr/share/gems/gems/delayed_job-3.0.2/lib/delayed/backend/base.rb:94:in `block in invoke_job'
/opt/rh/ruby193/root/usr/share/gems/gems/delayed_job-3.0.2/lib/delayed/lifecycle.rb:60:in `call'
/opt/rh/ruby193/root/usr/share/gems/gems/delayed_job-3.0.2/lib/delayed/lifecycle.rb:60:in `block in initialize'
/opt/rh/ruby193/root/usr/share/gems/gems/delayed_job-3.0.2/lib/delayed/lifecycle.rb:65:in `call'
/opt/rh/ruby193/root/usr/share/gems/gems/delayed_job-3.0.2/lib/delayed/lifecycle.rb:65:in `execute'
/opt/rh/ruby193/root/usr/share/gems/gems/delayed_job-3.0.2/lib/delayed/lifecycle.rb:38:in `run_callbacks'

Actions

Also available in: Atom PDF