Project

General

Profile

Bug #30343

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

Added by Ranjan Kumar 4 months ago. Updated 3 months ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Sync Plans
Target version:
Difficulty:
Triaged:
Yes
Bugzilla link:
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!'

Associated revisions

Revision e3074f5a (diff)
Added by Ranjan Kumar 3 months ago

Fixes #30343 - Sync plan fails (#8820)

History

#1 Updated by The Foreman Bot 4 months ago

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

#2 Updated by Ranjan Kumar 4 months ago

  • Bugzilla link set to 1854711

#3 Updated by John Mitsch 4 months ago

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

#4 Updated by The Foreman Bot 3 months ago

  • Fixed in Releases Katello 3.18.0 added

#5 Updated by Ranjan Kumar 3 months ago

  • Status changed from Ready For Testing to Closed

Also available in: Atom PDF