Loki 3.0.0: local
ruler-storage now needlessly requires the rules directory to be writable
#13222
Labels
type/bug
Somehing is not working as expected
Describe the bug
Loki v3.0.0, when configured to use the
local
ruler-storage backend and given a read-only rule directory, crashes at startup.This regression seems to have been introduced in #12019, in which the
EnsureDirectory
utility was extended with an additional check that the directory be writable. That check is needed for the bloomstore but not for all the other users of that utility function, such as ruler-storage.To Reproduce
Steps to reproduce the behavior:
local
ruler-storage backend with a read-only directoryExpected behavior
Loki should start normally. The
local
ruler-storage backend is documented as read-only so it should work if that directory is read-only (as it did in 2.9.x).Environment:
Note: This issue also occurs in containerized setups in which the ruler storage is mounted in as a readonly volume.
Screenshots, Promtail config, or terminal output
The text was updated successfully, but these errors were encountered: