antrea
antrea copied to clipboard
Egress events doesn't record event when EgressIP is unassigned from EgressNode and not assigned to any other K8s Node
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
- Label anyone K8s Node(say
NodeA
) in the K8s cluster with some label(saylabelA
) - Apply externalippool with nodeSelector as
labelA
- Apply Egress and use above applied externalippool in the egress.
- EgressIP is assigned to
NodeA
and this event is recorded. - Now remove
labelA
fromNodeA
or make the EgressNode down. - EgressIP is unassigned from
NodeA
and not assigned to any other K8s Node as no other Node haslabelA
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 thanks for creating the issue. I think it should be fixed. Are you working on a patch?
@tnqn @Atish-iaf I can take this up.