You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After inspecting the logs it looks like the root cause is that the istio-pilot charm, that provides the gateway-info endpoint is removed first.
The charm should be able to handle the GatewayRelationMissingError raised by the library when it's cleaning up.
To Reproduce
Deploy Kubeflow
First delete istio-pilot
Try to delete kserve-operator
Environment
CKF 1.9
Relevant Log Output
unit-kserve-controller-0: 12:07:26 WARNING unit.kserve-controller/0.juju-log 2 containers are present in metadata.yaml and refresh_event was not specified. Defaulting to update_status. Metrics IP may not be setin a timely fashion.
unit-kserve-controller-0: 12:07:26 INFO unit.kserve-controller/0.juju-log Rendering manifests
unit-kserve-controller-0: 12:07:30 ERROR unit.kserve-controller/0.juju-log Uncaught exception whilein charm code:
Traceback (most recent call last):
File "./src/charm.py", line 565, in _generate_gateways_context
ingress_gateway_info = self._ingress_gateway_info
File "./src/charm.py", line 286, in _ingress_gateway_info
returnself._ingress_gateway_requirer.get_relation_data()
File "/var/lib/juju/agents/unit-kserve-controller-0/charm/lib/charms/istio_pilot/v0/istio_gateway_info.py", line 206, in get_relation_data
self._relation_preflight_checks(relation=relation)
File "/var/lib/juju/agents/unit-kserve-controller-0/charm/lib/charms/istio_pilot/v0/istio_gateway_info.py", line 178, in _relation_preflight_checks
raise GatewayRelationMissingError()
charms.istio_pilot.v0.istio_gateway_info.GatewayRelationMissingError: Missing gateway-info relation.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "./src/charm.py", line 686, in<module>
main(KServeControllerCharm)
File "/var/lib/juju/agents/unit-kserve-controller-0/charm/venv/ops/main.py", line 548, in main
manager.run()
File "/var/lib/juju/agents/unit-kserve-controller-0/charm/venv/ops/main.py", line 527, in run
self._emit()
File "/var/lib/juju/agents/unit-kserve-controller-0/charm/venv/ops/main.py", line 516, in _emit
_emit_charm_event(self.charm, self.dispatcher.event_name)
File "/var/lib/juju/agents/unit-kserve-controller-0/charm/venv/ops/main.py", line 147, in _emit_charm_event
event_to_emit.emit(*args, **kwargs)
File "/var/lib/juju/agents/unit-kserve-controller-0/charm/venv/ops/framework.py", line 348, in emit
framework._emit(event)
File "/var/lib/juju/agents/unit-kserve-controller-0/charm/venv/ops/framework.py", line 860, in _emit
self._reemit(event_path)
File "/var/lib/juju/agents/unit-kserve-controller-0/charm/venv/ops/framework.py", line 950, in _reemit
custom_handler(event)
File "./src/charm.py", line 525, in _on_remove
cm_resources_manifests = self.cm_resource_handler.render_manifests()
File "./src/charm.py", line 242, in cm_resource_handler
context={**self._inference_service_context, **self.images_context},
File "./src/charm.py", line 219, in _inference_service_context
gateways_context = self._generate_gateways_context()
File "./src/charm.py", line 567, in _generate_gateways_context
raise ErrorWithStatus("Please relate to istio-pilot:gateway-info", BlockedStatus)
charmed_kubeflow_chisme.exceptions._with_status.ErrorWithStatus: Please relate to istio-pilot:gateway-info
unit-kserve-controller-0: 12:07:30 ERROR juju.worker.uniter.operation hook "remove" (via hook dispatching script: dispatch) failed: exit status 1
Additional Context
No response
The text was updated successfully, but these errors were encountered:
Bug Description
When trying to delete my whole model and all the charms the
kserve-operator
charm was left behind with the following status:After inspecting the logs it looks like the root cause is that the
istio-pilot
charm, that provides thegateway-info
endpoint is removed first.The charm should be able to handle the
GatewayRelationMissingError
raised by the library when it's cleaning up.To Reproduce
istio-pilot
kserve-operator
Environment
CKF 1.9
Relevant Log Output
Additional Context
No response
The text was updated successfully, but these errors were encountered: