Unable to destroy content view
|Assigned To:||John Mitsch|
|Target version:||Team Brad - Iteration 12|
|Velocity based estimate||-|
|Release||Recycle Bin||Release relationship||Auto|
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-
404 Resource Not Found
One of a sub task Actions::Pulp::Repository::Destroy is complaining for repo-
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
NoMethodError: undefined method `extensions' for nil:NilClass
The CV remains visible on the katello webUI.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
CV cant be deleted
CV should be removed and not be visible on the webUI