# check if that's the only machine with the hostname in MAAS
ubuntu@OrangeBox84:~$ maas admin machines read | grep "node07"
"hostname": "node07",
"fqdn": "node07.maas",
# expected, since this machine has .maas domain
ubuntu@OrangeBox84:~$ maas admin machine update sgk3gy hostname=node07
{"hostname": ["Node with this Hostname already exists."]}
Quick reproducer:
# check if that's the only machine with the hostname in MAAS OrangeBox84: ~$ maas admin machines read | grep "node07"
ubuntu@
"hostname": "node07",
"fqdn": "node07.maas",
# expected, since this machine has .maas domain OrangeBox84: ~$ maas admin machine update sgk3gy hostname=node07
ubuntu@
{"hostname": ["Node with this Hostname already exists."]}
# creating new domain zone OrangeBox84: ~$ maas admin domains create name=testzone ive": true, record_ count": 0, api/2.0/ domains/ 1/"
ubuntu@
Success.
Machine-readable output follows:
{
"authoritat
"ttl": null,
"id": 1,
"is_default": false,
"resource_
"name": "testzone",
"resource_uri": "/MAAS/
}
# updating machine - moving to new domain zone OrangeBox84: ~$ maas admin machine update sgk3gy domain=testzone
ubuntu@
Success.
Machine-readable output follows:
<omitted>
# expected: Success OrangeBox84: ~$ maas admin machine update sgk3gy hostname=node07
# actual result: machine cannot be assigned with fqdn node07.testzone
ubuntu@
{"hostname": ["Node with this Hostname already exists."]}
For the record, UI doesn't show anything (even any error) as well.