1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2026-11-08 19:26:48 +00:00
webvirtcloud/console
catborise 3e427a41b8 fix(instances): find known VMs by UUID, not by name
Instance.proxy looked the domain up by its stored name. After a rename
or a name swap outside WebVirtCloud, an operation on one VM changed
another; after a VM was replaced under the same name, operations hit
the new VM.

wvmInstance takes the UUID and uses lookupByUUIDString, with no
fallback to the name: a missing UUID fails instead of picking another
domain. Every caller that has an Instance passes it: proxy, console,
quota, post-migration autostart and the VDI URL. Migration uses the
domain the proxy already resolved. getvvfile and the gstfsd requests
use the host's current name of that UUID.

Live tests cover a name swap and a VM replaced under the same name;
both fail on the previous code.
2026-10-04 01:08:11 +03:00
..
migrations Add app 2015-02-27 14:25:41 +02:00
templates fix(console): lite noVNC page uses the signed token, not the URL token 2026-10-02 23:57:40 +03:00
__init__.py Add app 2015-02-27 14:25:41 +02:00
models.py ci: replace super-linter with ruff 2026-10-04 01:08:11 +03:00
novncd fix(console): accept only signed host:uuid:user_id tokens in novncd 2026-10-02 20:35:29 +03:00
socketiod fix(console): disable the unauthenticated serial console by default 2026-10-02 17:22:20 +03:00
sshtunnels.py format python code with black 2022-11-02 08:54:35 +03:00
test_cli_parsers.py refactor(console): replace deprecated optparse with argparse and fix regex escape sequences 2026-09-24 22:08:08 +03:00
test_socketiod_disabled.py fix(console): keep socketiod behind nginx and off by default there too 2026-10-02 22:27:39 +03:00
tests.py fix(console): lite noVNC page uses the signed token, not the URL token 2026-10-02 23:57:40 +03:00
views.py fix(instances): find known VMs by UUID, not by name 2026-10-04 01:08:11 +03:00