diff options
author | Zuul <zuul@review.opendev.org> | 2022-09-21 16:38:35 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2022-09-21 16:38:35 +0000 |
commit | eeeaa274cfc7ebee52beaed97571e2f87127f2dd (patch) | |
tree | 527206a62db1c20f93bde1d27ba634c101020452 /ironic/common | |
parent | b767a92dd8212e254980d04b89b19ed01950f01d (diff) | |
parent | 9a8b1d149c738b7d06a93c39a29f43afeed7cc8a (diff) | |
download | ironic-eeeaa274cfc7ebee52beaed97571e2f87127f2dd.tar.gz |
Merge "Concurrent Distructive/Intensive ops limits"
Diffstat (limited to 'ironic/common')
-rw-r--r-- | ironic/common/exception.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/ironic/common/exception.py b/ironic/common/exception.py index ddbce6f47..38316d2e7 100644 --- a/ironic/common/exception.py +++ b/ironic/common/exception.py @@ -851,3 +851,13 @@ class ImageRefIsARedirect(IronicException): message=msg, image_ref=image_ref, redirect_url=redirect_url) + + +class ConcurrentActionLimit(IronicException): + # 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. + _msg_fmt = _("Unable to process request at this time. " + "The concurrent action limit for %(task_type)s " + "has been reached. Please contact your administrator " + "and try again later.") |