summaryrefslogtreecommitdiff
path: root/nova/exception.py
diff options
context:
space:
mode:
authorBalazs Gibizer <balazs.gibizer@est.tech>2021-05-28 16:49:50 +0200
committerBalazs Gibizer <balazs.gibizer@est.tech>2021-08-21 09:49:54 +0200
commite357ad3c2354f1c22cd5b569a2f0ec23c9c06753 (patch)
tree9e0f4c6671fb9e22892fc43f6cda7dbfdd912c0b /nova/exception.py
parent017b0a3d2332b1d3d20c2aa51ae9605f6c7676ee (diff)
downloadnova-e357ad3c2354f1c22cd5b569a2f0ec23c9c06753.tar.gz
Reject server create with extended resource req
To prepare for the unlikely event that Neutron merges and an operator enables the port-resource-request-groups neutron API extension before nova adds support for it, this patch rejects server creation if such extension is enabled in Neutron. Enabling that extension has zero benefits without nova support hence the harsh but simple rejection. A subsequent patch will reject server lifecycle operations in a more sophisticated way and as soon as we support some operations, like boot, the deployer might rightfully choose to enable the Neutron extension. Change-Id: I2c55d9da13a570efbc1c862116cea31aaa6aa02e blueprint: qos-minimum-guaranteed-packet-rate
Diffstat (limited to 'nova/exception.py')
-rw-r--r--nova/exception.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/nova/exception.py b/nova/exception.py
index ec8f80fe3b..febbaad467 100644
--- a/nova/exception.py
+++ b/nova/exception.py
@@ -1955,6 +1955,12 @@ class CreateWithPortResourceRequestOldVersion(Invalid):
"until microversion 2.72.")
+class ExtendedResourceRequestNotSupported(Invalid):
+ msg_fmt = _("The port-resource-request-groups neutron API extension is "
+ "not yet supported by Nova. Please turn off this extension in "
+ "Neutron.")
+
+
class InvalidReservedMemoryPagesOption(Invalid):
msg_fmt = _("The format of the option 'reserved_huge_pages' is invalid. "
"(found '%(conf)s') Please refer to the nova "