1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2026-11-08 19:26:48 +00:00
webvirtcloud/instances/templates
catborise c1d36053d6 feat(logs): every VM operation writes an audit row the VM's Logs tab finds by UUID
Operations on a VM now write their rows the way the admin audit does: one
row per operation, done or failed with a safe reason, with the user, IP and
host. Each row names the VM ("VM web-1: delete snapshot snap1") and carries
its UUID in the new Logs.instance_uuid column.

- audit_vm and failed_vm wrap audit() and failed() for a VM. A failure the
  view turns into a message is caught outside the block, so its failed row
  is written; busy claims, permission and quota refusals and invalid input
  write nothing. No password, key or XML goes into a row.
- All VM page operations move from addlogmsg to audit_vm, and addlogmsg
  goes. QoS changes and defining a VM from XML are logged now; a gstfsd
  error reply (root password, SSH key) is a failed row, not a done one.
- Partial results are rows of their own: the VM delete, then each disk
  delete; the disk detach, then the volume delete; the migration, then a
  failed autostart restore, NVRAM removal or record on the target.
- Migration rows use the compute name as the host column, as every other
  row does.
- VM job rows (create, clone, snapshots) and their resolutions carry the
  VM's UUID; snapshot job intents now record it. The owner rows of the VM
  page and the accounts pages, and the ownership system rows, carry it too.
- The Logs tab loads vm_logs/<pk>/ and shows the rows with the VM's UUID,
  so a rename keeps the history, two VMs with one name are told apart and
  a VM on two computes is one VM. It gains a Result column. Rows from
  before this change have no UUID and stay on the Logs page only.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-24 14:14:53 +03:00
..
instances feat(logs): every VM operation writes an audit row the VM's Logs tab finds by UUID 2026-10-24 14:14:53 +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(instances): a new VM is made on one form in three steps 2026-10-23 23:26:28 +03:00
allinstances_index_grouped.html fix(templates): a wide table scrolls in its own box on a narrow screen 2026-10-21 12:57:26 +03:00
allinstances_index_nongrouped.html fix(templates): a wide table scrolls in its own box on a narrow screen 2026-10-21 12:57:26 +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 refactor(instances): the instance page drops scripts for console fields it no longer has 2026-10-19 20:12:26 +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 fix(instances): every VM state has a label and the actions it allows 2026-10-05 19:34:30 +03:00