1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2026-11-08 11:16:47 +00:00
webvirtcloud/instances
catborise 5def4e41fd fix(instances): NIC edits keep their settings; edits keep metadata
- change_network detached the NIC and attached one built from scratch,
  dropping its QoS, link state and other settings. It now edits the NIC
  of the persistent definition in place and defines once; a running VM
  gets the change at its next start, as the UI already says.
- add_network, delete_network and set_link_state did nothing on a
  paused VM, and set_link_state rewrote the persistent NIC from the live
  XML. They now update the running definition when the VM is active and
  the persistent one always, each from its own XML.
- Boot and console edits used xml.etree, which renamed the namespace
  prefixes of other tools' metadata (<app:info> became <ns0:info>); they
  use lxml now.
- The NIC table and the clone form are filled from the persistent
  definition (Instance.config_networks, config_disks), so a pending NIC
  change is shown and can be edited again.

A live test runs 18 domain edits on stopped, running and paused VMs
whose definition has elements WebVirtCloud does not manage, and checks
for each the effect, that nothing else in the persistent definition
changed, and that persistent-only edits leave the running VM alone.
2026-10-04 01:08:11 +03:00
..
api feat(console): VNC is the only console type 2026-10-04 01:08:11 +03:00
fixtures Instances overhaul 2020-07-13 15:33:09 +06:00
migrations fix(reconciliation): serialize compute sync and enforce UUID identity 2026-09-28 14:55:49 +03:00
templates fix(instances): NIC edits keep their settings; edits keep metadata 2026-10-04 01:08:11 +03:00
templatetags lint with black python. convert f style strings to old one. some small fixes 2020-11-05 12:34:31 +03:00
__init__.py Fixe migrations for new deployments 2020-05-28 18:19:25 +06:00
apps.py format python code with black 2022-11-02 08:54:35 +03:00
forms.py feat(console): VNC is the only console type 2026-10-04 01:08:11 +03:00
livetest.py fix(instances): domain edits start from the persistent definition 2026-10-04 01:08:11 +03:00
models.py fix(instances): NIC edits keep their settings; edits keep metadata 2026-10-04 01:08:11 +03:00
test_change_network.py fix(instances): change the edited NIC instead of adding a new one 2026-10-04 01:08:11 +03:00
test_clone_permission.py fix(instances): disk edits keep their XML; changes lock per VM 2026-10-04 01:08:11 +03:00
test_console_rule.py fix(instances): find known VMs by UUID, not by name 2026-10-04 01:08:11 +03:00
test_console_settings_access.py fix(instances): show console settings and the VNC password only to console managers 2026-10-02 22:04:05 +03:00
test_create_instance.py fix(instances): guard mutations and refresh lists after sync 2026-09-28 14:56:19 +03:00
test_destroy.py fix(instances): destroy and volume delete no longer lose disks 2026-10-04 01:08:11 +03:00
test_disk_isolation.py ci: replace super-linter with ruff 2026-10-04 01:08:11 +03:00
test_gstfsd.py fix(gstfsd): append SSH keys, IPv6 loopback bind, server-side timeout 2026-10-03 00:02:01 +03:00
test_index.py fix(instances): guard mutations and refresh lists after sync 2026-09-28 14:56:19 +03:00
test_live_clone.py fix(instances): clones roll back their copies; own error messages stay 2026-10-04 01:08:11 +03:00
test_live_dataloss.py fix(instances): NIC edits keep their settings; edits keep metadata 2026-10-04 01:08:11 +03:00
test_live_iso.py fix(instances): ISO mount/unmount for every VM state and CD-ROM 2026-10-04 01:08:11 +03:00
test_live_xml.py fix(instances): domain edits start from the persistent definition 2026-10-04 01:08:11 +03:00
test_live_xml_effects.py fix(instances): NIC edits keep their settings; edits keep metadata 2026-10-04 01:08:11 +03:00
test_quota_lock.py fix(instances): disk edits keep their XML; changes lock per VM 2026-10-04 01:08:11 +03:00
test_root_pass.py fix(instances): find known VMs by UUID, not by name 2026-10-04 01:08:11 +03:00
test_security_mutations.py ci: replace super-linter with ruff 2026-10-04 01:08:11 +03:00
test_template_flag.py fix(instances): only superusers and staff may change the template flag 2026-10-02 22:13:46 +03:00
test_update_console.py feat(console): VNC is the only console type 2026-10-04 01:08:11 +03:00
test_xss.py test: inventory HTML sinks in templates, realistic datasource params in the matrix 2026-10-03 00:00:27 +03:00
tests.py feat(console): VNC is the only console type 2026-10-04 01:08:11 +03:00
urls.py fix: add an authorization matrix test and close the endpoints it finds 2026-10-02 20:33:12 +03:00
utils.py fix(instances): find known VMs by UUID, not by name 2026-10-04 01:08:11 +03:00
views.py fix(instances): NIC edits keep their settings; edits keep metadata 2026-10-04 01:08:11 +03:00