summaryrefslogtreecommitdiff
path: root/ironic
diff options
context:
space:
mode:
authorJulia Kreger <juliaashleykreger@gmail.com>2021-11-23 08:13:35 -0800
committerJulia Kreger <juliaashleykreger@gmail.com>2021-11-29 17:56:20 +0000
commita783ef70229cb100254990672c2e4199c1958194 (patch)
tree5a532ca781f31bb69d6b1632243189ed7ba5a330 /ironic
parentdbd1a9e4d6713c80885b0a1b68ea1dcb75556b86 (diff)
downloadironic-a783ef70229cb100254990672c2e4199c1958194.tar.gz
Clarify driver load error message
The NoValidDefaultForInterface exception is a little misleading in that if one doesn't have the base interface enabled, and they attempt to enable a hardware type which requires or only supports disabled interfaces, they will also get an exeption. The reality is we need to suggest for them to look at enabling the interfaces before looking at the default interface overrides, because logically the brain jumps to setting a default before checking the interface settings. Change-Id: I50d4381e11da96cb7ae0ee8cbda18534380bd471 (cherry picked from commit fdc6424de3ad4beeeb95d348f422af00e03d1892)
Diffstat (limited to 'ironic')
-rw-r--r--ironic/common/exception.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/ironic/common/exception.py b/ironic/common/exception.py
index b3dcdc673..a061db3f9 100644
--- a/ironic/common/exception.py
+++ b/ironic/common/exception.py
@@ -245,7 +245,8 @@ class NoValidDefaultForInterface(InvalidParameterValue):
# because node_info could be an empty string. If node_info
# is not empty, it should start with a space.
_msg_fmt = _("For%(node_info)s hardware type '%(driver)s', no default "
- "value found for %(interface_type)s interface.")
+ "value found for %(interface_type)s interface could be "
+ "determined. Please ensure the interfaces are enabled.")
class ImageNotFound(NotFound):