Project

General

Profile

Actions

Bug #34449

closed

Deletion of Custom repo fails with error "uninitialized constant Actions::Foreman::Exception"

Added by Samir Jha over 2 years ago. Updated over 2 years ago.

Status:
Duplicate
Priority:
High
Assignee:
Category:
Repositories
Target version:
Difficulty:
Triaged:
Yes
Fixed in Releases:
Found in Releases:

Description

Description of problem:

Deletion of Custom repo fails with error "uninitialized constant Actions::Foreman::Exception" in Satellite 7.0

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

Satellite 7.0 (satellite-7.0.0-0.4.1.beta.el7sat.noarch)

How reproducible:

Always

Steps to Reproduce:
1. Install RHEL 7 + Satellite 7.0
2. Create a custom product and a custom repo in the product.
3. Try to remove the repo.

Actual results:

2022-02-12T10:27:23 [I|app|c4b3d9a6] Started DELETE "/katello/api/v2/repositories/10?organization_id=3&remove_from_content_view_versions=true" for 10.74.16.27 at 2022-02-12 10:27:23 -0500
2022-02-12T10:27:23 [I|app|c4b3d9a6] Processing by Katello::Api::V2::RepositoriesController#destroy as HTML
2022-02-12T10:27:23 [I|app|c4b3d9a6] Parameters: {"organization_id"=>"3", "remove_from_content_view_versions"=>"true", "api_version"=>"v2", "id"=>"10"}
2022-02-12T10:27:23 [I|bac|c4b3d9a6] Task {label: , id: 7c57aba8-49c4-4af4-a768-21119860d250, execution_plan_id: 84918b10-04ff-4a3e-95ae-a2a1a7c114e9} state changed: pending
2022-02-12T10:27:23 [I|bac|c4b3d9a6] Task {label: Actions::Katello::Repository::Destroy, id: 7c57aba8-49c4-4af4-a768-21119860d250, execution_plan_id: 84918b10-04ff-4a3e-95ae-a2a1a7c114e9} state changed: planning
2022-02-12T10:27:23 [E|bac|c4b3d9a6] uninitialized constant Actions::Foreman::Exception (NameError)
c4b3d9a6 | /opt/theforeman/tfm/root/usr/share/gems/gems/foreman-tasks-5.2.1/app/lib/actions/bulk_action.rb:59:in `check_targets!'
c4b3d9a6 | /opt/theforeman/tfm/root/usr/share/gems/gems/foreman-tasks-5.2.1/app/lib/actions/bulk_action.rb:13:in `plan'
c4b3d9a6 | /opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.6.1/lib/dynflow/action.rb:525:in `block (3 levels) in execute_plan'
c4b3d9a6 | /opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.6.1/lib/dynflow/middleware/stack.rb:27:in `pass'
c4b3d9a6 | /opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.6.1/lib/dynflow/middleware.rb:19:in `pass'
c4b3d9a6 | /opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.6.1/lib/dynflow/middleware.rb:36:in `plan'
c4b3d9a6 | /opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.6.1/lib/dynflow/middleware/stack.rb:23:in `call'
c4b3d9a6 | /opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.6.1/lib/dynflow/middleware/stack.rb:27:in `pass'
c4b3d9a6 | /opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.6.1/lib/dynflow/middleware.rb:19:in `pass'
c4b3d9a6 | /opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.6.1/lib/dynflow/middleware.rb:36:in `plan'
c4b3d9a6 | /opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.6.1/lib/dynflow/middleware/stack.rb:23:in `call'

Expected results:

Deletion should be successful.

Additional info:

Full traceback will be provided later

Actions #1

Updated by The Foreman Bot over 2 years ago

  • Status changed from New to Ready For Testing
  • Assignee set to Samir Jha
  • Pull request https://github.com/Katello/katello/pull/9949 added
Actions #2

Updated by Samir Jha over 2 years ago

  • Subject changed from Deletion of Custom repo fails with error "uninitialized constant Actions::Foreman::Exception" in Satellite 7.0 to Deletion of Custom repo fails with error "uninitialized constant Actions::Foreman::Exception" in Satellite 7.0
  • Status changed from Ready For Testing to Duplicate
  • Triaged changed from No to Yes
Actions #3

Updated by Ian Ballou over 2 years ago

  • Subject changed from Deletion of Custom repo fails with error "uninitialized constant Actions::Foreman::Exception" in Satellite 7.0 to Deletion of Custom repo fails with error "uninitialized constant Actions::Foreman::Exception"
Actions

Also available in: Atom PDF