-
Notifications
You must be signed in to change notification settings - Fork 12
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
Unit goes into Blocked
status when relation schema validation fails
#223
Comments
Blocked
status when relation schema validation fails
ExplanationCalling The above could occur in a couple of cases:
While in the first case, there's not much to do, we should make sure that the latter (i.e. transient errors) is properly handled. In fact, when we expect that the databag will be completed at some point, we should put the unit in |
Is there a way to detect the two situations from each other? I can't think of one. Personally, I'd think of the second senario (gradual databag update) as a bug. If our charms are doing this, they're violating the schema by omitting required attributes. If juju is doing this (which I don't think it is known to do), that's a juju bug |
To @beliaev-maksim's original point though, I agree that we should add this handling to all our charms To make this more reusable, we could also put it into chisme as a context manager that catches these different errors, that way we could define it in one place |
After bumping the SDI version, we had to introduce extra error handling around the
get_interfaces
call to catch a possibleRelationDataError
:When this error is caught, the unit goes into
Blocked
status:kfp-operators/charms/kfp-api/src/charm.py
Lines 338 to 339 in 97d5f6e
This is not ideal, however, since there is no possible user action to unblock it.
The text was updated successfully, but these errors were encountered: