Closed DnPlas closed 1 month ago
Thank you for reporting us your feedback!
The internal ticket has been created: https://warthogs.atlassian.net/browse/KF-5751.
This message was autogenerated
This issue is also present when there is a RelationBroken
event triggered by an application that no longer has application data in the relation data bag. The fix for this issue should also consider this case.
Closed by #424
Bug Description
The
_get_ingress_data()
method inistio-pilot
retrieves data from theingress
relation data bag and returns a list of "routes" for the charm to createVirtualServices
.On
RelationBroken
events, this method will try to handle cases when the relation data still shows the departing application (see here). It looks like this block of code is not considering the case when the relation data bag is empty, which may cause an error when running this bit:which is caused by
routes
being an empty dictionary.To Reproduce
istio-pilot
from latest/edge or1.17/stable
kubeflow-volumes
(or any otheringress
requirer)ingress
interfaceEnvironment
Relevant Log Output
Additional Context
This error was first caught by the CI here