-
Notifications
You must be signed in to change notification settings - Fork 7
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
If the reconciliation loop fails the charm can be in blocked idle
status without giving the operator a way to resolve that
#143
Comments
The charm displays a status message It's difficult for the charm to pinpoint the exact reason for the failure, as it only know that a command didn't exit with Perhaps we should include a prompt such as "check logs using juju debug-log" in the error message. |
Maybe we should just let the charm error out in this case. If we're not sure of what action users should take to fix things, that seems like it might be a better approach. We might also want to consider stopping apache to avoid serving content in a way that doesn't match the configuration they've specified. This may need some discussion to determine the right approach. |
Yes, I think we should let the charm to fail if the problem isn't due to user error. And terminate the apache server on failing units is definitely a good idea. I will submit a pull request for this, thanks for the idea! |
@weiiwang01 can you follow-up on this and close the issue, please? |
Yes, I will follow-up on this, thanks! |
Bug Description
As the title of the bug says if the reconciliation loop fails the charm can be in
blocked idle
status without giving the operator a way to resolve that.If we're putting a charm into blocked status we should be giving the operator a way to resolve that. This could be running an action, changing configuration or something else.
To Reproduce
It's hard to give exact instructions, as this depends on a race condition within the reconcile loop. We've experienced this with
wp theme list --format=json
command intermittently returning a 255 error code.Environment
N/A
Relevant log output
Additional context
No response
The text was updated successfully, but these errors were encountered: