Bug 1124109 - Can't delete a Content View
Summary: Can't delete a Content View
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Configuration Management
Version: 6.0.4
Hardware: Unspecified
OS: Unspecified
high vote
Target Milestone: Unspecified
Assignee: David Davis
QA Contact: Corey Welton
URL: http://projects.theforeman.org/issues...
Depends On:
Blocks: 1049399
TreeView+ depends on / blocked
Reported: 2014-07-29 01:56 UTC by Mike McCune
Modified: 2019-09-25 20:48 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2014-09-11 12:24:37 UTC
Target Upstream Version:

Attachments (Terms of Use)

System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 6845 0 None None None 2016-04-22 16:51:54 UTC

Description Mike McCune 2014-07-29 01:56:16 UTC
1) import RH Manifest
2) enable:

* "Red Hat Enterprise Virtualization Agents for RHEL 6 Client RPMs x86_64 6Client"
* "Red Hat Enterprise Virtualization Agents for RHEL 6 Client RPMs i386 6Client"
* "Red Hat Enterprise Virtualization Agents for RHEL 6 Client RPMs x86_64 6.5"

3) sync them all
4) create a Content View with all the above repos
5) publish a version of that view
6) Try to delete the top level Content View, go to confirm dialog to delete the version 1
7) Note error in Tasks list:








NoMethodError: undefined method `puppet_env' for nil:NilClass


/opt/rh/ruby193/root/usr/share/gems/gems/katello-1.5.0/app/lib/katello/foreman.rb:24:in `update_puppet_environment'
/opt/rh/ruby193/root/usr/share/gems/gems/katello-1.5.0/app/lib/actions/katello/foreman/content_update.rb:32:in `finalize'
/opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.2/lib/dynflow/action.rb:465:in `block (2 levels) in execute_finalize'
/opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.2/lib/dynflow/middleware/stack.rb:26:in `call'
/opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.2/lib/dynflow/middleware/stack.rb:26:in `pass'
/opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.2/lib/dynflow/middleware.rb:16:in `pass'

Full Trace:


Comment 2 David Davis 2014-07-30 17:04:26 UTC
You can simply reproduce by having a content view with a repo that you remove from an environment.

1. Create a custom product with a custom repo. Can use a small repo like https://partha.fedorapeople.org/test-repos/zoo-lander/
2. Create a content view with the repository.
3. Publish the content view
4. Remove its version

Comment 3 Partha Aji 2014-07-30 17:05:21 UTC
Created redmine issue http://projects.theforeman.org/issues/6845 from this bug

Comment 4 David Davis 2014-07-30 17:23:56 UTC

Comment 5 Bryan Kearney 2014-07-30 22:04:41 UTC
Moving to POST since upstream bug http://projects.theforeman.org/issues/6845 has been closed
David Davis
Applied in changeset commit:katello|943f1efec9b82cfb9f43360cfd58ff71f16b3506.

Comment 8 Corey Welton 2014-08-12 18:37:05 UTC
Verified in Satellite-6.0.4-RHEL-6-20140806.0

Comment 9 Bryan Kearney 2014-09-11 12:24:37 UTC
This was delivered with Satellite 6.0 which was released on 10 September 2014.

Note You need to log in before you can comment on or make changes to this bug.