1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2026-12-01 00:16:04 +00:00
webvirtcloud/instances
catborise 9fa898a856 fix(instances): a new VM cannot take the MAC address of another VM on its host
The create form and API took a MAC address for a new VM's NIC without
looking at the host's other VMs, so a VM could be defined with a MAC
another one has. Running on one network, neither NIC is reached reliably.
A clone already refused this among its own NICs.

The create now refuses a MAC a NIC of a VM on the host has, in any form
the field takes (case, colons), including a NIC added for a VM's next
boot only. The worker checks again before it defines the VM, since
another VM may take the address while the job is queued. Turkish and
Chinese texts included.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Kk4h2TcUiaWmU5MUszYSea
2026-11-11 10:30:54 +03:00
..
api perf(instances): a VM page does not wait for the guest agent's addresses 2026-11-07 15:42:49 +03:00
migrations fix(instances): a VM name of any length libvirt takes is kept 2026-11-10 13:11:22 +03:00
templates fix(logs): the VM page's Logs tab shows times as the Logs page does 2026-11-10 11:52:54 +03:00
templatetags chore: remove files nothing uses 2026-11-06 10:53:43 +03:00
tests fix(instances): a new VM cannot take the MAC address of another VM on its host 2026-11-11 10:30:54 +03:00
__init__.py chore: remove code nothing uses 2026-11-06 10:53:37 +03:00
addresses.py feat(webvirtcloud): a request waiting on a host holds one thread, not a worker 2026-11-02 21:19:01 +03:00
apps.py format python code with black 2022-11-02 08:54:35 +03:00
forms.py fix(instances): a new VM's existing volume or template is taken from the chosen pool 2026-11-08 14:33:10 +03:00
jobs.py fix(instances): a new VM cannot take the MAC address of another VM on its host 2026-11-11 10:30:54 +03:00
models.py fix(instances): a VM name of any length libvirt takes is kept 2026-11-10 13:11:22 +03:00
report.py perf: the Logs and VM report downloads are written row by row 2026-11-05 18:58:13 +03:00
states.py feat(instances): the Power tab shows the VM's state and where each action takes it 2026-11-03 19:22:52 +03:00
urls.py perf(instances): a VM page does not wait for the guest agent's addresses 2026-11-07 15:42:49 +03:00
utils.py fix(instances): a disk move or migration leaves one check on a stuck host 2026-11-10 13:48:14 +03:00
views.py fix(instances): the VM page's DRBD state does not rewrite the VM's record 2026-11-10 13:19:39 +03:00