Fix the HTTP code for reaching max_concurrent_deploy: 503 instead of 500

Change-Id: I3d8c7724c1d44baa67a6364dde2f52abdb906526
This commit is contained in:
Dmitry Tantsur 2023-10-02 16:13:15 +02:00
parent db549850e0
commit cba10669f5
2 changed files with 7 additions and 1 deletions

View File

@ -857,7 +857,7 @@ class ImageRefIsARedirect(IronicException):
redirect_url=redirect_url)
class ConcurrentActionLimit(IronicException):
class ConcurrentActionLimit(TemporaryFailure):
# NOTE(TheJulia): We explicitly don't report the concurrent
# action limit configuration value as a security guard since
# if informed of the limit, an attacker can tailor their attack.

View File

@ -0,0 +1,6 @@
---
fixes:
- |
When Ironic hits the limit on the number of the concurrent deploys
(specified in the ``[conductor]max_concurrent_deploy`` option), the
resulting HTTP code is now 503 instead of the more generic 500.