Skip to content

Support for USB devices that change name due to their hosts restarting #3114

Closed
@jkrinke

Description

@jkrinke

Describe the bug
If storage graphs are created for usb devices, they may change to allocated device on reboot as the allocated /dev device can change. The result is that the graphs are different before and after reboot.

This can be fixed by using a different sorting. A user 'gandalf' reported this and fixed it in his own template 'disk_usage' https://docs.cacti.net/usertemplate:data:host_mib:disk_usage.

The same fix can be applied to host_disk.xml to fix the issue (PR coming).

I have not looked at net-snmp_disk.xml which is also affected by the same problem.

The coming fix for host_disk.xml only works for newly created graphs, i.e. current graphs need to be removed and re-created.

To Reproduce

  1. Create storage graphs for multiple usb devices.
  2. Reboot and force a change in the enumeration, e.g. by removing one usb device.
  3. Graphs of usb devices change their allocated device.

Expected behavior
Storage graphs should keep their mapped device.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugUndesired behaviourresolvedA fixed issue

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions