flux-core
flux-core copied to clipboard
`flux resource list` reports `ERROR: ENOENT: No such file or directory` when inventory not available
The resource module returns an errno only when the inventory isn't available. This can be confusing to admins, so perhaps a human readable error should be added for this case. Other error returns for the status RPCs should be audited as well.
Hm, it seems like we should have gotten a slightly more descriptive error message here:
https://github.com/flux-framework/flux-core/blob/7d61efd0096f80dad82a61f64dcf7ebdf8257f48/src/modules/resource/status.c#L82-L85
Maybe the issue is on the Python side. More investigation required.