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

Display Custom Error Message for the APB via termination-log #837

Merged
merged 2 commits into from Mar 20, 2018

Conversation

johnkim76
Copy link
Contributor

Describe what this PR does and why we need it:

If the APB provision fails, this PR will check for a non-empty termination message, and will display it in the WebUI, instead of the generic error message.

Which issue this PR fixes (This will close that issue when PR gets merged)

fixes #675

@openshift-ci-robot openshift-ci-robot added the size/S Denotes a PR that changes 10-29 lines, ignoring generated files. label Mar 19, 2018
@djzager
Copy link
Member

djzager commented Mar 19, 2018

Could you provide an APB to be used to see this in action?

@shawn-hurley shawn-hurley added the do-not-merge DEPRECATED. Indicates that a PR should not merge. Label can only be manually applied/removed. label Mar 19, 2018
@johnkim76
Copy link
Contributor Author

@djzager https://github.com/johnkim76/lastop-cem-demo-apb
docker.io/jkig/lastop-cem-demo-apb

@johnkim76 johnkim76 force-pushed the custom_error_msg branch 6 times, most recently from 511d4f2 to 4b46d6e Compare March 20, 2018 12:53
Copy link
Contributor

@shawn-hurley shawn-hurley left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

except for a comment NIT LGTM

@@ -36,6 +36,22 @@ var (

type updateDescriptionFn func(string)

// ErrorCustomMsg - custom termination msg from pod's 'terminationMessagePath'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

custom termination msg from pod's 'terminationMessagePath'

I think that this is generic enough that it could be used for any type of custom error message. What do you think of changing this to just say An error to propagate the custom error message to the callers

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I will update

@shawn-hurley shawn-hurley removed the do-not-merge DEPRECATED. Indicates that a PR should not merge. Label can only be manually applied/removed. label Mar 20, 2018
@shawn-hurley shawn-hurley merged commit 6e69be0 into openshift:master Mar 20, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size/S Denotes a PR that changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

custom error messaging
5 participants