forked from flux-framework/flux-core
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
improve policy/queues config error messages
Problem: when an error is encountered in the [policy] or [queues] TOML configuration tables, the error messages don't leave much to go on, and the fact that the code may be logged from different modules tends to set people off on the wrong path. Add contextual information. t2245-policy-config.t covers this code and now produces the following errors: error parsing [policy] config table: 1 object item(s) left unpacked: foo error parsing [policy.jobspec] config table: 1 object item(s) left unpacked: foo error parsing [policy.jobspec] config table: 'defaults.system.duration' is not a valid FSD error parsing [policy.jobspec] config table: 'defaults.system.queue' is not a string error parsing [policy.limits] config table: 1 object item(s) left unpacked: foo error parsing [policy.limits.job-size] config table: 1 object item(s) left unpacked: foo error parsing [policy.limits.max] config table: 1 object item(s) left unpacked: foo error parsing [policy.limits.min] config table: 1 object item(s) left unpacked: foo error parsing [policy.limits.min] config table: values must be >= -1 error parsing [policy.limits] config table: 'duration' is not a valid FSD error parsing [policy.access] config table: 1 object item(s) left unpacked: foo error parsing [policy.access] config table: 'allow-user' must be a string array error parsing [policy.access] config table: 'allow-group' must be a string array error parsing [queues] config table: not a table error parsing [queues.x.policy] config table: 1 object item(s) left unpacked: foo error parsing [queues.x.policy.limits] config table: 'duration' is not a valid FSD error parsing [queues.queues.x.policy] config table: 'policy' must not define a default queue! the [policy] config table defines a default queue bar that is not in [queues] table error parsing [queues.x] config table: 'requires' must be an array of property strings (RFC 20) Fixes flux-framework#6318
- Loading branch information
Showing
1 changed file
with
71 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters