summaryrefslogtreecommitdiff
path: root/ironic/common
diff options
context:
space:
mode:
authorZuul <zuul@review.opendev.org>2022-09-21 16:38:35 +0000
committerGerrit Code Review <review@openstack.org>2022-09-21 16:38:35 +0000
commiteeeaa274cfc7ebee52beaed97571e2f87127f2dd (patch)
tree527206a62db1c20f93bde1d27ba634c101020452 /ironic/common
parentb767a92dd8212e254980d04b89b19ed01950f01d (diff)
parent9a8b1d149c738b7d06a93c39a29f43afeed7cc8a (diff)
downloadironic-eeeaa274cfc7ebee52beaed97571e2f87127f2dd.tar.gz
Merge "Concurrent Distructive/Intensive ops limits"
Diffstat (limited to 'ironic/common')
-rw-r--r--ironic/common/exception.py10
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.")