Skip to content
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

Istio Ingress not behave properly when scaled #16

Open
IbraAoad opened this issue Oct 5, 2024 · 0 comments
Open

Istio Ingress not behave properly when scaled #16

IbraAoad opened this issue Oct 5, 2024 · 0 comments

Comments

@IbraAoad
Copy link
Contributor

IbraAoad commented Oct 5, 2024

Bug Description

When Istio Ingress is scaled beyond 1, It goes in to error state. It should instead continue to work and it should scale custom deployments accordingly.

To Reproduce

juju scale-application istio-ingress-k8s 2

Environment

latest/edge

Relevant log output

unit-istio-ingress-k8s-1: 23:13:37 ERROR unit.istio-ingress-k8s/1.juju-log Uncaught exception while in charm code:
Traceback (most recent call last):
  File "/var/lib/juju/agents/unit-istio-ingress-k8s-1/charm/./src/charm.py", line 374, in <module>
    main(IstioIngressCharm)
  File "/var/lib/juju/agents/unit-istio-ingress-k8s-1/charm/venv/ops/main.py", line 551, in main
    manager.run()
  File "/var/lib/juju/agents/unit-istio-ingress-k8s-1/charm/venv/ops/main.py", line 530, in run
    self._emit()
  File "/var/lib/juju/agents/unit-istio-ingress-k8s-1/charm/venv/ops/main.py", line 519, in _emit
    _emit_charm_event(self.charm, self.dispatcher.event_name)
  File "/var/lib/juju/agents/unit-istio-ingress-k8s-1/charm/venv/ops/main.py", line 147, in _emit_charm_event
    event_to_emit.emit(*args, **kwargs)
  File "/var/lib/juju/agents/unit-istio-ingress-k8s-1/charm/venv/ops/framework.py", line 348, in emit
    framework._emit(event)
  File "/var/lib/juju/agents/unit-istio-ingress-k8s-1/charm/venv/ops/framework.py", line 860, in _emit
    self._reemit(event_path)
  File "/var/lib/juju/agents/unit-istio-ingress-k8s-1/charm/venv/ops/framework.py", line 950, in _reemit
    custom_handler(event)
  File "/var/lib/juju/agents/unit-istio-ingress-k8s-1/charm/./src/charm.py", line 135, in _on_config_changed
    self._sync_all_resources()
  File "/var/lib/juju/agents/unit-istio-ingress-k8s-1/charm/./src/charm.py", line 291, in _sync_all_resources
    self._sync_ingress_resources()
  File "/var/lib/juju/agents/unit-istio-ingress-k8s-1/charm/./src/charm.py", line 308, in _sync_ingress_resources
    raise RuntimeError("Ingress can only be provided on the leader unit.")
RuntimeError: Ingress can only be provided on the leader unit.

Additional context

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant