system_info - Error 500 [Disk Usage - Template::Error (divided by 0) ]
After updating from v17.0.1 to 17.2 I noticed there are issue with /admin/system_info.
After quick investigation I find out it is caused by this !156567 (merged) , more specifically app/views/admin/system_info/show.html.haml because there are no validation of the values which supposed to be calculated :
%h2.gl-mt-0 #{number_to_human_size(disk[:bytes_used])} / #{number_to_human_size(disk[:bytes_total])}
- progress = disk[:bytes_used] / (disk[:bytes_total] / 100)
In my case disk[:bytes_total] is 0 for one of detected mounts.
Another good approach could be to add xenfs
to EXCLUDED_MOUNT_TYPES
, because every XenServer/XCP-NG VM have such mount point:
none on /proc/xen type xenfs (rw,relatime)