UXP: Confusing or Unclear errors in 'oc describe' when mounting volumes - bubble up useful errors as events to be displayed #7902
Labels
component/storage
lifecycle/stale
Denotes an issue or PR has remained open with no activity and has become stale.
priority/P2
As an example, if I'm submitting a pod with PV/PVC for GlusterFS and the endpoints are missing - a generic error is received: Error syncing pod, skipping: unsupported volume type
this error is misleading and the user is then left wondering/searching for the real cause, even something simple like in this case that the endpoints for the gluster cluster is missing or gone. I would like to add an event that shows up in the 'oc describe' where many users first go to analyze errors when something goes wrong. in most cases there is an error generated in the log with the real cause, but it's not surfaced easily to the user.
Example output from 'oc describe' would look like this for this particular example:
This would be accomplished by added useful error messages in the endpoint types (glusterfs.go, nfs.go, etc...) when needed and then setting them as an event using the kubelet event recorder like so:
@smarterclayton @erinboyd @jeffvance - thoughts?
The text was updated successfully, but these errors were encountered: