Bug 1252959
Summary: | ActiveRecord::InvalidForeignKey error when removing a custom repository | ||
---|---|---|---|
Product: | Red Hat Satellite | Reporter: | Matthew Taylor <mataylor> |
Component: | Content Management | Assignee: | Katello Bug Bin <katello-bugs> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | Sachin Ghai <sghai> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | 6.0.8 | CC: | sghai |
Target Milestone: | Unspecified | ||
Target Release: | Unused | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2015-08-17 07:29:45 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Matthew Taylor
2015-08-12 15:25:46 UTC
Verified with Latest snap16. The reported issue is no longer reproducible. Steps taken: 1 Created a new custom repo 2 sync the repo 3 created a new CV and added the repo created in step1 4 created a new package filter 4. Go to products page, click the product -> repo (created in step1) and remove the repo. With above steps. I was able to delete the repo as below: -- 2015-08-17 03:08:44 [I] Processing by Katello::Api::V2::RepositoriesController#destroy as JSON 2015-08-17 03:08:44 [I] Parameters: {"organization_id"=>"1", "api_version"=>"v2", "id"=>"17"} 2015-08-17 03:08:47 [I] Rendered /opt/rh/ruby193/root/usr/share/gems/gems/katello-2.2.0.66/app/views/katello/api/v2/common/destroy.json.rabl within katello/api/v2/layouts/resource (1.0ms) 2015-08-17 03:08:47 [I] Completed 200 OK in 2433ms (Views: 3.9ms | ActiveRecord: 0.0ms) -- I tried bulk remove repository with above step.. and not able to reproduce the reported issue. 2015-08-17 03:01:54 [I] Processing by Katello::Api::V2::RepositoriesBulkActionsController#destroy_repositories as JSON 2015-08-17 03:01:54 [I] Parameters: {"ids"=>[16], "organization_id"=>"1", "api_version"=>"v2", "repositories_bulk_action"=>{"ids"=>[16]}} 2015-08-17 03:01:54 [I] Rendered /opt/rh/ruby193/root/usr/share/gems/gems/katello-2.2.0.66/app/views/katello/api/v2/common/bulk_async.json.rabl within katello/api/v2/layouts/resource (38.2ms) 2015-08-17 03:01:54 [I] Completed 202 Accepted in 637ms (Views: 39.8ms | ActiveRecord: 1.2ms) 2015-08-17 03:01:55 [I] Processing by ForemanTasks::Api::TasksController#bulk_search as JSON 2015-08-17 03:01:55 [I] Parameters: {"searches"=>[{"type"=>"task", "task_id"=>"745e24db-fef8-4b1a-b1b2-9a6ccc72de38", "search_id"=>"1"}], "task"=>{}} 2015-08-17 03:01:55 [I] Completed 200 OK in 52ms (Views: 1.7ms | ActiveRecord: 2.2ms) 2015-08-17 03:01:57 [I] Processing by ForemanTasks::Api::TasksController#bulk_search as JSON 2015-08-17 03:01:57 [I] Parameters: {"searches"=>[{"type"=>"task", "task_id"=>"745e24db-fef8-4b1a-b1b2-9a6ccc72de38", "search_id"=>"1"}], "task"=>{}} 2015-08-17 03:01:57 [I] Completed 200 OK in 56ms (Views: 1.8ms | ActiveRecord: 2.3ms) 2015-08-17 03:01:58 [I] Processing by Katello::Api::V2::RepositoriesController#index as JSON 2015-08-17 03:01:58 [I] Parameters: {"enabled"=>"true", "full_result"=>"true", "library"=>"true", "organization_id"=>"1", "page"=>"1", "product_id"=>"128", "search"=>"", "api_version"=>"v2"} 2015-08-17 03:01:58 [I] Rendered /opt/rh/ruby193/root/usr/share/gems/gems/katello-2.2.0.66/app/views/katello/api/v2/repositories/index.json.rabl within katello/api/v2/layouts/collection (2.7ms) 2015-08-17 03:01:58 [I] Completed 200 OK in 36ms (Views: 6.8ms | ActiveRecord: 3.2ms) 2015-08-17 03:01:59 [I] Processing by ForemanTasks::Api::TasksController#bulk_search as JSON 2015-08-17 03:01:59 [I] Parameters: {"searches"=>[{"type"=>"task", "task_id"=>"745e24db-fef8-4b1a-b1b2-9a6ccc72de38", "search_id"=>"1"}], "task"=>{}} 2015-08-17 03:02:00 [I] Completed 200 OK in 55ms (Views: 1.8ms | ActiveRecord: 2.3ms) 2015-08-17 03:02:38 [I] Processing by Katello::Api::V2::RepositoriesController#index as JSON 2015-08-17 03:02:38 [I] Parameters: {"enabled"=>"true", "full_result"=>"true", "library"=>"true", "organization_id"=>"1", "page"=>"1", "product_id"=>"128", "search"=>"", "api_version"=>"v2"} 2015-08-17 03:02:38 [I] Rendered /opt/rh/ruby193/root/usr/share/gems/gems/katello-2.2.0.66/app/views/katello/api/v2/repositories/index.json.rabl within katello/api/v2/layouts/collection (1.6ms) 2015-08-17 03:02:38 [I] Completed 200 OK in 21ms (Views: 2.5ms | ActiveRecord: 2.9ms) I can load the content-view and product page properly after removing the repository. |