Skip to content
This repository has been archived by the owner on Dec 21, 2021. It is now read-only.

Agent should check on startup if important directories are readable/writable #45

Closed
lfrancke opened this issue Feb 3, 2021 · 1 comment · Fixed by #273
Closed

Agent should check on startup if important directories are readable/writable #45

lfrancke opened this issue Feb 3, 2021 · 1 comment · Fixed by #273
Assignees
Labels
Milestone

Comments

@lfrancke
Copy link
Member

lfrancke commented Feb 3, 2021

When the data directory is not writeable the Agent will exit with a weird panic from the bowels of Krustlet because the plugins dir cannot be created. To avoid this we should check if the data directory exists and is writeable so we can provide a nicer error.

The same might be nice for the log dir and maybe others? Not sure where it makes sense.

@lfrancke lfrancke added the type/enhancement New feature or request label Feb 12, 2021
@lfrancke lfrancke added this to the Release #1 milestone Aug 9, 2021
@siegfriedweber siegfriedweber self-assigned this Aug 17, 2021
@siegfriedweber
Copy link
Member

siegfriedweber commented Aug 25, 2021

The agent should check if the following directories are writable:

  • config
  • data
  • log
  • package
  • directory of the certificate file if the file does not exist
  • directory of the key file if the file does not exist

The agent should check if the certificate and key files are readable if they exist.

If a check fails then an error message should be logged. The agent should not terminate because a failed check does not necessarily mean that an error will occur, e.g. if the log directory is not used.

As a next step, missing directories should be created (see #105).

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants