antrea icon indicating copy to clipboard operation
antrea copied to clipboard

Egress events doesn't record event when EgressIP is unassigned from EgressNode and not assigned to any other K8s Node

Open Atish-iaf opened this issue 1 year ago • 2 comments

Describe the bug Egress events doesn't record an event when EgressIP is unassigned from EgressNode and not assigned to any other K8s Node.

To Reproduce

  1. Label anyone K8s Node(say NodeA) in the K8s cluster with some label(say labelA)
  2. Apply externalippool with nodeSelector as labelA
  3. Apply Egress and use above applied externalippool in the egress.
  4. EgressIP is assigned to NodeA and this event is recorded.
  5. Now remove labelA from NodeA or make the EgressNode down.
  6. EgressIP is unassigned from NodeA and not assigned to any other K8s Node as no other Node has labelA but this event doesn't get recorded.

Expected When EgressIP is unassigned from EgressNode and not assigned to any other K8s Node, it should be recorded as an event.

Actual behavior Above mentioned event doesn't get recorded.

Versions:

Additional context

Atish-iaf avatar Feb 16 '24 11:02 Atish-iaf

@Atish-iaf thanks for creating the issue. I think it should be fixed. Are you working on a patch?

tnqn avatar Feb 20 '24 10:02 tnqn

@tnqn @Atish-iaf I can take this up.

jainpulkit22 avatar Feb 20 '24 11:02 jainpulkit22