Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nicer YAML configuration error messages #54

Open
maxfischer2781 opened this issue Oct 2, 2019 · 0 comments
Open

Nicer YAML configuration error messages #54

maxfischer2781 opened this issue Oct 2, 2019 · 0 comments
Labels
enhancement New feature or request good first issue Good for newcomers usability

Comments

@maxfischer2781
Copy link
Member

Malformed YAML configuration files (including unsafe features) currently kill the daemon with a raw traceback (see #53). A human-readable error and possibly help message should be provided instead.

Better error message:

2019-10-02 14:55:40 (601034) Using configuration cobald_test.yml
2019-10-02 14:55:40 (601034) Failed to load cobald_test.yml:
SafeYAML does not support tag '!!python/object/apply:tardis.resources.poolfactory.create_composite_pool'
  in "cobald_test.yml", line 13, column 5

Better help message:

2019-10-02 14:55:40 (601034) Using configuration cobald_test.yml
2019-10-02 14:55:40 (601034) Failed to load cobald_test.yml:

COBalD YAML configuration files do not support arbitrary '!!python/object/apply' targets

11|    high_allocation: 0.90
12|    rate: 1
13|  - !!python/object/apply:tardis.resources.poolfactory.create_composite_pool
       ^^^^^^^^^^^^^^^^^^^^^

The tag target 'tardis.resources.poolfactory.create_composite_pool' is not safe for loading.
Register it as a plugin or mark it as safe.

HINT: See the configuration documentation at https://cobald.readthedocs.io/en/latest/source/daemon/config.html
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers usability
Projects
None yet
Development

No branches or pull requests

1 participant