-
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
Should be in error state if snap service down and uninstallation failed #108
Comments
After discussing with @jdkandersson, I believe we can adopt this practice in the GitHub runner. That's to say. If an unexpected error occurs in the workload (e.g., installation failure, service downtime), raise an exception in the charm if no specific action can be provided to resolve the issue. After the operator reviews the workload logs, they can manually resolve Juju. What do you think ? |
+1 for error status. It's a diverge situation so we can't provide a document or instruction to the user. |
For: - snap install or refresh failure - snap not installed - snap service not active These cases are unexpected, the charm cannot recover automatically, and the user must manually debug the issue. Therefore, error status is more appropriate. Partially fixes: #108
Raise errors for snap install or refresh failure. Raise an error because it's a fatal failure, and juju will auto-retry the hook, which may succeed on retry if the error was transient. Improve blocked status message for if it detects snap not installed or service not active in the status hook. I think Blocked is better than Error status here: - auto retrying the status hook isn't going to fix anything - blocked status lets the charm provide a more useful status message to the user - blocked status will automatically update to active on the next update-status hook once the issue is resolved Partially fixes: #108
Address the issue mentioned in
Snap service is down
Un-installation failed
Snap installtion failed (I found it additionally)
The text was updated successfully, but these errors were encountered: