Naming a node "detail" confuses Ironic
Bug #1572651 reported by
Lucas Alvares Gomes
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ironic |
Fix Released
|
Medium
|
Lucas Alvares Gomes |
Bug Description
Apart from UUIDs, Ironic supports adding a logical name to the node which will be used as an identifier. The way we fetch a node by its name in the API is issuing a GET to the http://<address>
Ironic also have a endpoint called "detail" v1/nodes [0], so if we name a node "detail" Ironic will get confused about it.
See output: http://
My suggestion to fix this problem is that we should prevent a node from being called "detail" (which is odd but...)
[0] http://
Changed in ironic: | |
assignee: | nobody → Lucas Alvares Gomes (lucasagomes) |
status: | New → Confirmed |
importance: | Undecided → Medium |
summary: |
- Naming a node "detail" or "validate" confuses Ironic + Naming a node "detail" confuses Ironic |
description: | updated |
tags: | added: api |
To post a comment you must log in.
Naming a node "states" causes a similar error:
$ ironic node-list ------- ------- ------- ------- ----+-- ------+ ------- ------- -+----- ------- -+----- ------- ------- -+----- ------- -+ ------- ------- ------- ------- ----+-- ------+ ------- ------- -+----- ------- -+----- ------- ------- -+----- ------- -+ 8c9c-4ddf- 8f45-fd57e09ccd db | states | None | None | available | False | ------- ------- ------- ------- ----+-- ------+ ------- ------- -+----- ------- -+----- ------- ------- -+----- ------- -+
+------
| UUID | Name | Instance UUID | Power State | Provisioning State | Maintenance |
+------
| ecddf26d-
+------
$ ironic node-show states
Missing argument: "node_ident" (HTTP 400)