• Iustin Pop's avatar
    Fix cluster behaviour with disabled file storage · 0e3baaf3
    Iustin Pop authored
    There are a few issues with disabled file storage:
    - cluster initialization is broken by default, as it uses the 'no'
      setting which is not a valid path
    - some other parts of the code require the file storage dir to be a
      valid path; we workaround by skipping such code paths when it is
    A side effect is that we abstract the storage type checks into a
    separate function and add validation in RepairNodeStorage (previously a
    luxi client which didn't use cli.py and submitted an invalid type would
    get "storage units of type 'foo' can not be repaired").
    Signed-off-by: default avatarIustin Pop <iustin@google.com>
    Reviewed-by: default avatarRené Nussbaumer <rn@google.com>