MAAS fails to create node because a node with the hostname already exists
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Expired
|
Undecided
|
Unassigned |
Bug Description
MAAS seems to restart during a command to compose a vm-host which causes it to fail because the command is issued twice
Console log:
2024-03-28-11:16:55 foundationcloud
2024-03-28-11:16:55 root DEBUG [localhost]: maas root vm-host compose 2 hostname=graylog-3 cores=2 memory=4096 storage=40.0 zone=3
2024-03-28-11:17:06 root ERROR [localhost] Command failed: maas root vm-host compose 2 hostname=graylog-3 cores=2 memory=4096 storage=40.0 zone=3
2024-03-28-11:17:06 root ERROR 1[localhost] STDOUT follows:
{"hostname": ["Node with hostname \"graylog-3\" already exists"]}
In the logs:
2024-03-
2024-03-
testrun: https:/
artificats: https:/
Changed in maas: | |
status: | New → Incomplete |
summary: |
- MAAS fails to create node because a node with the hostname exists + MAAS fails to create node because a node with the hostname already + exists |
Changed in maas: | |
status: | Incomplete → New |
status: | New → Incomplete |
Hi @Amjad, was actually your script retrying the request because the first one was apparently failing? Or did you get
```
2024-03-28-11:17:06 root ERROR [localhost] Command failed: maas root vm-host compose 2 hostname=graylog-3 cores=2 memory=4096 storage=40.0 zone=3
2024-03-28-11:17:06 root ERROR 1[localhost] STDOUT follows:
{"hostname": ["Node with hostname \"graylog-3\" already exists"]}
```
after a single call to `maas root vm-host compose 2`?