When filtering nodes by hostname in the API, have to use ".local" domain instead of the domain set for the cluster
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Invalid
|
Undecided
|
Unassigned | ||
1.8 |
Invalid
|
Low
|
Unassigned |
Bug Description
This is with 1.8.0.
My node's name shows up as "suangi.oil" in the UI, and in the API, but to find it in a filter via 'nodes list', I have to specify the hostname as 'suangi.local'. Neither 'suangi' nor 'suangi.oil' work. I would be fine with 'suangi' not working but 'suangi.oil' should definitely work.
ubuntu@
Success.
Machine-readable output follows:
[]
ubuntu@
Success.
Machine-readable output follows:
[]
ubuntu@
Success.
Machine-readable output follows:
[
{
],
...
"hostname": "suangi.oil",
...
}
]
Changed in maas: | |
status: | New → Invalid |
tags: | added: api |
On trunk MAAS only returns the host if you only include the hostname, including any domain name or .local returns nothing.
$ maas maas nodes list hostname= maas-test- 1.maas maas-test- 1.local maas-test- 1
"resource_ uri": "/MAAS/ api/1.0/ nodes/node- b11c7fd8- 3c66-11e5- 9997-5254000094 41/"
Success.
Machine-readable output follows:
[]
$ maas maas nodes list hostname=
Success.
Machine-readable output follows:
[]
maas maas nodes list hostname=
Success.
Machine-readable output follows:
[
{
...
"hostname": "maas-test-1.maas",
...
}
]