Confusing exception when providing invalid driver to node-create
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ironic |
Triaged
|
Low
|
Unassigned |
Bug Description
If user run node-create with a driver which is not enabled and activated, we will get below message:
"No valid host was found. Reason: No conductor service registered which supports driver xxxxxxxxx. (HTTP 400)"
I think this message is not clear, and user will confuse why no valid host was found and how to register conductor service to support the input driver.
We should return to user to identify if the input driver is valid or enabled, or guide to user to run driver-list subcommand to show the current supported drivers.
[root@localhost ~]# ironic node-create -d xxxxxxxxx
No valid host was found. Reason: No conductor service registered which supports driver xxxxxxxxx. (HTTP 400)
[root@localhost ~]# ironic driver-list
+------
| Supported driver(s) | Active host(s) |
+------
| pxe_ipmitool | localhost.
| pxe_ssh | localhost.
+------
[root@localhost ~]#
summary: |
- the error message of node-create is not clear + node-create should valid the input driver |
Changed in ironic: | |
status: | New → Triaged |
importance: | Undecided → Low |
Changed in ironic: | |
assignee: | nobody → jiangfei (jiangfei0622) |
summary: |
- node-create should validate the input driver + Confusing exception when providing invalid driver to node-create |
Changed in ironic: | |
assignee: | nobody → Vasyl Saienko (vsaienko) |
Changed in ironic: | |
assignee: | Vasyl Saienko (vsaienko) → nobody |
Fix proposed to branch: master /review. openstack. org/141703
Review: https:/