Add check for bcaches with no caching device

Bug #1922254 reported by Drew Freiberger
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
charm-bcache-tuning
Fix Released
Undecided
Nikita Koltsov

Bug Description

We should expand hw-health and/or bcache-tuning to monitor for less-than-ideal states for bcache devices such as:

/sys/block/bcache*/bcache/state contains "no cache" (critical)

/sys/block/bcache*/bcache/mode is not set as "[writeback]" (or whatever bcache-tuning charm is configured to set, if it is deployed.)

Any /sys/block/bcache*/slaves directory that contains:
  - only one disk path (only a backing store)...should match up with "no cache" state.
  - i/o erroring/missing disk paths (not sure how to check this w/out hanging monitor in d-state)

/dev/bcache* devices existing but no bcache-tuning charm deployed to the metal.

Related branches

Changed in charm-hw-health:
assignee: nobody → Nikita Koltsov (nkoltsov)
Changed in charm-bcache-tuning:
assignee: nobody → Nikita Koltsov (nkoltsov)
Changed in charm-bcache-tuning:
status: New → In Progress
Andrea Ieri (aieri)
Changed in charm-bcache-tuning:
status: In Progress → Fix Committed
no longer affects: charm-hw-health
Changed in charm-bcache-tuning:
milestone: none → 22.10
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.