Project

General

Profile

Actions

Bug #11760

closed

Unable to delete repository if it was included to composite CV

Added by Vladimir Stackov about 9 years ago. Updated 11 months ago.

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

Description

Description of problem:
As a user I'm unable to find which content view is preventing repository from being deleted
if repository is included to removed version of content view which was included into composite
content view (yeah, it was complex, I know :D).

Steps to Reproduce:
1. Create repository X;
2. Create content view A;
3. Include repository X to content view A;
4. Publish content view A to library;
5. Create composite content view B;
6. Include content view A to composite content view B;
7. Publish content view B to library;
8. Remove all versions of content view A;
9. Try to remove repository X.

Actual results:
RuntimeError: Repository cannot be deleted since it has already been included in a published Content View.
Please delete all Content View versions containing this repository before attempting to deleting it.

Expected results:
Either indicate content view id which is preventing repository removal or
prevent content view versions from being deleted if it was included into composite content view.

Additional info:
  1. hammer content-view list
    can't help in this situation as it was not showing repository ids for composite content views.
  1. rpm -qa | grep katello
    katello-installer-base-2.2.2-1.el7.noarch
    katello-service-2.2.1-0.el7.noarch
    katello-debug-2.2.1-0.el7.noarch
    katello-selinux-2.2.1-1.el7.noarch
    katello-common-2.2.1-0.el7.noarch
    katello-server-ca-1.0-2.noarch
    katello-certs-tools-2.0.1-1.el7.noarch
    katello-default-ca-1.0-1.noarch
    katello-agent-2.2.1-1.el7.noarch
    rubygem-hammer_cli_katello-0.0.14-1.el7.noarch
    katello-2.2.1-0.el7.noarch
    ruby193-rubygem-katello-2.2.2-2.el7.noarch
    katello-installer-2.2.2-1.el7.noarch
    pulp-katello-0.4-1.el7.noarch

Related issues 1 (0 open1 closed)

Related to Katello - Feature #35901: Allow searching for composite content views that contain a content viewClosedJeremy LenzActions
Actions #1

Updated by Eric Helms about 9 years ago

  • Translation missing: en.field_release set to 70
  • Triaged changed from No to Yes
Actions #2

Updated by Eric Helms about 9 years ago

  • Translation missing: en.field_release changed from 70 to 86
Actions #3

Updated by Eric Helms over 8 years ago

  • Translation missing: en.field_release changed from 86 to 144
Actions #4

Updated by Eric Helms over 8 years ago

  • Translation missing: en.field_release changed from 144 to 168
Actions #5

Updated by Eric Helms over 8 years ago

  • Translation missing: en.field_release changed from 168 to 114
Actions #6

Updated by Marek Hulán about 2 years ago

  • Bugzilla link set to 2141063
Actions #7

Updated by Julio Entrena almost 2 years ago

  • Related to Feature #35901: Allow searching for composite content views that contain a content view added
Actions #8

Updated by Samir Jha 12 months ago

  • Assignee set to Samir Jha
  • Target version changed from Katello Backlog to Katello 4.11.0
  • Triaged set to No
Actions #9

Updated by The Foreman Bot 12 months ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/Katello/katello/pull/10820 added
Actions #10

Updated by Partha Aji 11 months ago

  • Triaged changed from No to Yes
Actions #11

Updated by The Foreman Bot 11 months ago

  • Fixed in Releases Katello 4.12.0 added
Actions #12

Updated by Samir Jha 11 months ago

  • Status changed from Ready For Testing to Closed
Actions

Also available in: Atom PDF