-
Notifications
You must be signed in to change notification settings - Fork 8
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
TLS & Ingress deployed together at once don't play nice #140
Comments
From
So the problem here is that units is empty, and this section of code raises an error on this line:
|
I've also tried this with the most recent version in edge, but it's still failing in the same way:
|
@cbartz I investigated this issue a little bit, and it appears that this is a juju "problem". In charms, the relation information (such as remote units, remote applications, relation IDs, etc.) is retrieved from the charm unit agent state rather than from the Juju controller. The charm unit agent relation state updates only after the relation hook has finished executing This is why, before the To resolve this issue, instead of catching the exception, we should change the check for the readiness of the relation here to accommodate this situation. # check relation.units is not empty
if relation.app is not None and relation.units and relation.data[relation.app]: |
@weiiwang01 Thanks for the deep dive, I have updated the PR as per your suggestion. |
Bug Description
If we deploy the nginx-ingress-integrator charm with a client application and a tls-certificates provider and relate them all immediately, we get an
InvalidIngressError
.To Reproduce
Environment
Microk8s 1.28.7, Juju 3.1.8
Relevant log output
Additional context
No response
The text was updated successfully, but these errors were encountered: