Bug #18924

Unable to destroy content view

Added by John Mitsch about 1 month ago. Updated about 1 month ago.

Status:Duplicate
Priority:Normal
Assigned To:John Mitsch
Category:Content Views
Target version:Team Brad - Iteration 12
Difficulty: Pull request:
Bugzilla link:1418582
Story points-
Velocity based estimate-
ReleaseRecycle BinRelease relationshipAuto

Description

Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1418582

Description of problem:
Content view destroy task(the id of the task is- 2b5f8f01-f53b-4611-ad30-f115cca74b1a and its details are mentioned in the task exported in the file-
tmp/task-export20161228-10341-10cfe3e/2b5f8f01-f53b-4611-ad30-f115cca74b1a.html) is failing with error-

RestClient::ResourceNotFound

404 Resource Not Found

One of a sub task Actions::Pulp::Repository::Destroy is complaining for repo-
LME-Functional_Testing-TST_-_Ken_-_RHEL7

This repo does not exist in pulp db as well as in foreman db's katello_repositories table(in an attempt to resolve another issue, these repo has been removed).

Now original issue which was reported in the case is resolved, we need to remove the old CV.

Now when we try to delete the CV as-

Katello::ContentView.where("name = ?", "<cv-name>").destroy_all

is failing with the below error-

ActiveRecord::ActiveRecordError: can not update on a new record object

OR

NoMethodError: undefined method `extensions' for nil:NilClass

The CV remains visible on the katello webUI.

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

How reproducible:

Steps to Reproduce:
1.
2.
3.

Actual results:
CV cant be deleted

Expected results:

CV should be removed and not be visible on the webUI
Additional info:


Related issues

Duplicates Katello - Bug #15567: Katello 3.0 - Failed to delete a content view Assigned 07/03/2016

History

#1 Updated by John Mitsch about 1 month ago

  • Subject changed from Unable to destroy content view to Unable to destroy content view
  • Target version set to Team Brad - Iteration 12

#2 Updated by John Mitsch about 1 month ago

  • Duplicates Bug #15567: Katello 3.0 - Failed to delete a content view added

#3 Updated by John Mitsch about 1 month ago

  • Status changed from New to Duplicate

#4 Updated by Eric Helms about 1 month ago

  • Release set to Recycle Bin

Also available in: Atom PDF