1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2026-11-11 12:46:49 +00:00
webvirtcloud/instances/templates
catborise 3730a95c02 fix(instances): the XML dialog keeps the edit and defines only this VM
Found by review (Codex and agy) of the XML editor's dialog:

- A busy or moved VM made the page reload and the edit was lost. The
  dialog's requests now get these answers as JSON (X-Requested-With, as the
  create page's flavor forms) and show them; any other failure says the
  edit is still in the editor.
- libvirt finds the VM to define by the XML's UUID: another VM's UUID
  overwrote that VM past its lock, a new or missing one added a VM. The
  XML must keep this VM's UUID; a malformed one is refused with the
  parser's error, as on the create page.
- Save sends the XML whose diff the dialog shows, also when two previews
  answer out of order; a failed save keeps the diff and Save.
- The edited XML is defined with the line breaks libvirt gave, not the
  form's CRLF, and the VM's state is read before the definition, so a
  failed read cannot turn a saved change into an error.
2026-10-24 20:03:20 +03:00
..
instances fix(instances): the XML dialog keeps the edit and defines only this VM 2026-10-24 20:03:20 +03:00
add_instance_network_block.html fix(templates): pages parse without markup errors, element IDs are unique 2026-10-19 07:49:25 +03:00
add_instance_owner_block.html logger updates (#31) 2023-08-09 09:20:18 +03:00
add_instance_volume.html fix(templates): pages parse without markup errors, element IDs are unique 2026-10-19 07:49:25 +03:00
allinstances.html feat(tables): tables sort with tablesort, the grouped VM list within each host 2026-10-24 19:02:51 +03:00
allinstances_index_grouped.html feat(tables): tables sort with tablesort, the grouped VM list within each host 2026-10-24 19:02:51 +03:00
allinstances_index_nongrouped.html feat(tables): tables sort with tablesort, the grouped VM list within each host 2026-10-24 19:02:51 +03:00
bottom_bar.html fix(instances): the VM page opens the tab a redirect points to, and host links are for administrators 2026-10-08 08:50:21 +03:00
create_flavors.html fix(instances): adding or deleting a flavor keeps the unfinished VM form 2026-10-24 11:12:07 +03:00
create_flavors_reply.html fix(instances): adding or deleting a flavor keeps the unfinished VM form 2026-10-24 11:12:07 +03:00
create_inst_block.html fix(instances): the new-VM host dialog says when no compute is reachable 2026-10-24 11:45:11 +03:00
create_instance_w1.html fix(instances): a dependent list on the create pages shows only the latest choice 2026-10-24 12:22:46 +03:00
create_instance_w2.html fix(instances): a dependent list on the create pages shows only the latest choice 2026-10-24 12:22:46 +03:00
create_presets.html fix(instances): adding or deleting a flavor keeps the unfinished VM form 2026-10-24 11:12:07 +03:00
create_steps.html feat(instances): a new VM is made on one form in three steps 2026-10-23 23:26:28 +03:00
instance.html feat(instances): the XML editor shows a change before saving it 2026-10-24 19:40:46 +03:00
instance_actions.html fix(instances): the VM lists ask before a forced power off or power cycle 2026-10-21 21:01:25 +03:00
instance_state.html feat(instances): the VM list filters by state, and a host's name finds its VMs 2026-10-24 18:51:47 +03:00