Project

General

Profile

Actions

Bug #30343

closed

Sync Plan fails with 'uninitialized constant Actions::Foreman::Exception'

Added by Ranjan Kumar almost 4 years ago. Updated almost 4 years ago.

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

Description

Running sync plan fails with error

curl -u admin:password -k -X PUT https://satellite.example.com.com/katello/api/v2/organizations/3/sync_plans/4/sync -H 'content-type: application/json' {"displayMessage":"uninitialized constant Actions::Foreman::Exception\nDid you mean? Exception","errors":["uninitialized constant Actions::Foreman::Exception\nDid you mean? Exception"]}

production log
~~~
2020-07-08T10:43:46 [I|app|bd1ae89a] Started PUT "/katello/api/v2/organizations/3/sync_plans/4/sync" for 10.74.131.67 at 2020-07-08 10:43:46 +0530
2020-07-08T10:43:46 [I|app|bd1ae89a] Processing by Katello::Api::V2::SyncPlansController#sync as */*
2020-07-08T10:43:46 [I|app|bd1ae89a] Parameters: {"api_version"=>"v2", "organization_id"=>"3", "id"=>"4", "sync_plan"=>{}}
2020-07-08T10:43:46 [D|app|bd1ae89a] Authenticated user admin against INTERNAL authentication source
2020-07-08T10:43:46 [D|app|bd1ae89a] Current user set to foreman_admin (admin)
2020-07-08T10:43:46 [I|app|bd1ae89a] Authorized user admin(Admin User)
2020-07-08T10:43:46 [I|app|bd1ae89a] Current user set to admin (admin)
2020-07-08T10:43:46 [D|app|bd1ae89a] Current location set to none
2020-07-08T10:43:46 [D|app|bd1ae89a] Current organization set to FR
2020-07-08T10:43:46 [D|app|bd1ae89a] Current location set to none
2020-07-08T10:43:46 [D|app|bd1ae89a] Current organization set to FR
2020-07-08T10:43:46 [D|dyn|bd1ae89a] ExecutionPlan 97212660-758b-45cf-a2af-cfce67010eb6 pending >> planning
2020-07-08T10:43:46 [I|bac|bd1ae89a] Task {label: Actions::Katello::SyncPlan::Run, id: 47d926bd-3ecf-4738-8ce0-79b4dc00e7c5, execution_plan_id: 97212660-758b-45cf-a2af-cfce67010eb6} state changed: planning
2020-07-08T10:43:46 [I|app|] Current user set to admin (admin)
2020-07-08T10:43:46 [D|app|] Current organization set to FR
2020-07-08T10:43:46 [D|app|] Current location set to none
2020-07-08T10:43:46 [D|dyn|] Step 97212660-758b-45cf-a2af-cfce67010eb6: 1 pending >> running in phase Plan Actions::Katello::SyncPlan::Run
2020-07-08T10:43:46 [D|app|] Current user set to foreman_admin (admin)
2020-07-08T10:43:47 [D|dyn|] Step 97212660-758b-45cf-a2af-cfce67010eb6: 2 pending >> running in phase Plan Actions::BulkAction
2020-07-08T10:43:47 [E|bac|] uninitialized constant Actions::Foreman::Exception
Did you mean? Exception (NameError)
/opt/theforeman/tfm/root/usr/share/gems/gems/foreman-tasks-0.15.11.1/app/lib/actions/bulk_action.rb:61:in `check_targets!'

Actions #1

Updated by The Foreman Bot almost 4 years ago

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

Updated by Ranjan Kumar almost 4 years ago

  • Bugzilla link set to 1854711
Actions #3

Updated by John Mitsch almost 4 years ago

  • Target version set to Katello 3.16.0
  • Triaged changed from No to Yes
Actions #4

Updated by The Foreman Bot almost 4 years ago

  • Fixed in Releases Katello 3.18.0 added
Actions #5

Updated by Ranjan Kumar almost 4 years ago

  • Status changed from Ready For Testing to Closed
Actions

Also available in: Atom PDF