Feature #20966

Do not throw exception on API power requests for hosts that does not support them.

Added by Shimon Shtein 8 months ago. Updated 8 months ago.

Status:Closed
Priority:Normal
Assigned To:Shimon Shtein
Category:-
Target version:-
Difficulty: Bugzilla link:1387202
Found in release: Pull request:https://github.com/theforeman/foreman/pull/4852
Story points-
Velocity based estimate-
Release1.17.0Release relationshipAuto

Description

Instead of exception, return 4XX status with a message that indicates that the host does not support power operations.

Associated revisions

Revision 08912c32
Added by Shimon Shtein 8 months ago

Fixes #20966 - Added fast return to host power api

If the host does not support power actions (no BMC and the VM
does not support it - return `unprocessable_entity` and exit with
a message.

History

#1 Updated by The Foreman Bot 8 months ago

  • Status changed from New to Ready For Testing
  • Assigned To set to Shimon Shtein
  • Pull request https://github.com/theforeman/foreman/pull/4852 added

#2 Updated by Ivan Necas 8 months ago

  • Status changed from Ready For Testing to Closed
  • Release set to 1.17.0

#3 Updated by Shimon Shtein 8 months ago

  • Bugzilla link set to 1387202

Also available in: Atom PDF