diff options
author | Zuul <zuul@review.opendev.org> | 2021-08-18 14:43:06 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2021-08-18 14:43:06 +0000 |
commit | cca1bb1baea0468d396be038ca9e345bf6164550 (patch) | |
tree | a595181bbb22b8ad44a21a990510099ee3a54779 /nova/exception.py | |
parent | b8c0f653c5978f2d4e92c6105135c561cf5fe382 (diff) | |
parent | 59c2262ca58460921b6ca7ee2bb74841f2f7dc0b (diff) | |
download | nova-cca1bb1baea0468d396be038ca9e345bf6164550.tar.gz |
Merge "Block servers with vGPU and device profile in heal_allocations"
Diffstat (limited to 'nova/exception.py')
-rw-r--r-- | nova/exception.py | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/nova/exception.py b/nova/exception.py index ef232af69a..c404ec7702 100644 --- a/nova/exception.py +++ b/nova/exception.py @@ -2240,6 +2240,24 @@ class MissingDomainCapabilityFeatureException(NovaException): "including <%(feature)s> feature.") +class HealAllocationException(NovaException): + msg_fmt = _("Healing instance allocation failed.") + + +class HealvGPUAllocationNotSupported(HealAllocationException): + msg_fmt = _( + "Healing allocation for instance %(instance_uuid)s with vGPU resource " + "request is not supported." + ) + + +class HealDeviceProfileAllocationNotSupported(HealAllocationException): + msg_fmt = _( + "Healing allocation for instance %(instance_uuid)s with Cyborg device " + "profile request is not supported." + ) + + class HealPortAllocationException(NovaException): msg_fmt = _("Healing port allocation failed.") |