1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2026-11-09 19:56:48 +00:00
webvirtcloud/instances/templates
catborise a3d3cca477 fix(instances): host errors on the instance list are for administrators
The instance list showed every user an alert for each compute that was
not connected, with the compute's name and libvirt's error text. That
text names the host and how it is reached (for example "ssh: connect
to host 10.20.30.132 port 22: No route to host"), while the list hides
host names from users who are not administrators.

- Superusers and users with the global view_instances permission see
  each unreachable host and its error, as before.
- Other users see one alert without host details, and only when a host
  of their own VMs is down. It explains why those VMs show as unknown.
- The alerts' close button works (data-bs-dismiss was "modal").

Checked against the test setup with an unreachable compute that holds a
user's VM: the user sees the VM as unknown and the alert, but no host
name, address or error text; a superuser still sees them. The tests for
the user fail on the previous code.
2026-10-05 11:49:46 +03:00
..
instances fix(instances): NIC edits keep their settings; edits keep metadata 2026-10-04 01:08:11 +03:00
add_instance_network_block.html change name for network model to nic type 2023-08-17 13:22:18 +03:00
add_instance_owner_block.html logger updates (#31) 2023-08-09 09:20:18 +03:00
add_instance_volume.html logger updates (#31) 2023-08-09 09:20:18 +03:00
allinstances.html fix(instances): host errors on the instance list are for administrators 2026-10-05 11:49:46 +03:00
allinstances_index_grouped.html fix(instances): lists show a VM that cannot be read as unknown 2026-10-05 11:03:32 +03:00
allinstances_index_nongrouped.html fix(instances): lists show a VM that cannot be read as unknown 2026-10-05 11:03:32 +03:00
bottom_bar.html logger updates (#31) 2023-08-09 09:20:18 +03:00
create_flav_block.html logger updates (#31) 2023-08-09 09:20:18 +03:00
create_inst_block.html bootstrap icon conversion fixes 2023-08-11 09:40:38 +03:00
create_instance_w1.html fix: serve compute JSON endpoints as application/json, build chipset list safely 2026-10-02 22:34:05 +03:00
create_instance_w2.html fix(instances): CD-ROM bus, USB controller and MACs of a new VM 2026-10-04 18:33:28 +03:00
instance.html feat(console): VNC is the only console type 2026-10-04 01:08:11 +03:00
instance_actions.html fix(instances): lists show a VM that cannot be read as unknown 2026-10-05 11:03:32 +03:00