calling vm-host update fails second time
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Fix Released
|
High
|
Alberto Donato |
Bug Description
During deployment we call vm-host update to set overcommit racios. It works the first time but fails second time when VMs are defined.
2022-05-07-08:38:21 root DEBUG [localhost]: maas root vm-hosts read
2022-05-07-08:38:25 root DEBUG [localhost]: maas root version read
2022-05-07-08:38:28 root DEBUG [localhost]: maas root rack-controllers read hostname=infra1
2022-05-07-08:38:32 root DEBUG [localhost]: maas root vm-host update 1 memory_
2022-05-07-08:39:22 root ERROR [localhost] Command failed: maas root vm-host update 1 memory_
2022-05-07-08:39:22 root ERROR [localhost] STDOUT follows:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://
<html xmlns="http://
<head>
<title>Error: Conflict Error</title>
</head>
<body>
<h2 class="
Conflict error. Try your request again, as it will most likely succeed.
</h2>
</body>
</html>
It works fine in 3.1/stable
2022-05-07-08:07:03 root DEBUG [localhost]: maas root vm-hosts read
2022-05-07-08:07:07 root DEBUG [localhost]: maas root version read
2022-05-07-08:07:11 root DEBUG [localhost]: maas root rack-controllers read hostname=infra1
2022-05-07-08:07:14 root DEBUG [localhost]: maas root vm-host update 1 memory_
2022-05-07-08:07:22 root DEBUG [localhost]: maas root machines read
2022-05-07-08:07:33 foundationcloud
2022-05-07-08:07:33 root DEBUG [localhost]: maas root tags create name=juju
2022-05-07-08:07:36 root ERROR [localhost] Command failed: maas root tags create name=juju
2022-05-07-08:07:36 root ERROR [localhost] STDOUT follows:
{"name": ["Tag with this Name already exists."]}
2022-05-07-08:07:36 root ERROR [localhost] STDERR follows:
b''
2022-05-07-08:07:36 root DEBUG [localhost]: maas root tag update-nodes juju add=chnm3f
2022-05-07-08:07:40 foundationcloud
...
Related branches
- MAAS Lander: Approve
- Alexsander de Souza: Approve
-
Diff: 240 lines (+98/-37)5 files modifiedsrc/maasserver/models/bmc.py (+12/-15)
src/maasserver/models/tests/test_virtualmachine.py (+34/-0)
src/maasserver/models/virtualmachine.py (+2/-2)
src/maasserver/utils/tests/test_views.py (+34/-11)
src/maasserver/utils/views.py (+16/-9)
summary: |
- [3.2/beta] calling vm-host update fails second time + calling vm-host update fails second time |
Changed in maas: | |
milestone: | none → 3.2.0 |
Changed in maas: | |
status: | In Progress → Fix Committed |
Changed in maas: | |
milestone: | 3.2.0 → 3.2.0-beta5 |
status: | Fix Committed → Fix Released |
Could you please provide the complete list of CLI calls that lead to this?
Also, is anything else interacting with maas at the same time?
I can't reproduce the issue locally simply by issuing repeated `maas $profile vm-host $id update` calls