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

Cherry-pick #7235 to 6.3: Don't emit Kubernetes autodiscover events without host #7289

Merged
merged 1 commit into from
Jun 8, 2018

Conversation

exekias
Copy link
Contributor

@exekias exekias commented Jun 8, 2018

Cherry-pick of PR #7235 to 6.3 branch. Original message:

Some kubernetes events are generated while the container is being
configured. It doesn't make sense to emit an event yet, as the host will
be update right afterwards.

This PR changes the code to ignore Pod events without an IP address.

Closes #7193

@jsoriano
Copy link
Member

jsoriano commented Jun 8, 2018

I think this fix is important, without this failing runners in metricbeat are never removed, what may lead to leaks and misleading log messages (like the ones in #7194). We may want to have it already in 6.3.0 as it affects Kubernetes autodiscover hints.

I have done some manual testing of 6.3 branch with this patch and it works fine.

@exekias exekias force-pushed the backport_7235_6.3 branch from 32f5f84 to f4f1a7b Compare June 8, 2018 12:13
Some kubernetes events are generated while the container is being
configured. It doesn't make sense to emit an event yet, as the host will
be update right afterwards.

This PR changes the code to ignore Pod events without an IP address.

(cherry picked from commit 7b5a7e4)
@exekias exekias force-pushed the backport_7235_6.3 branch from f4f1a7b to 7a3934c Compare June 8, 2018 12:14
@jsoriano jsoriano merged commit a04cb66 into elastic:6.3 Jun 8, 2018
leweafan pushed a commit to leweafan/beats that referenced this pull request Apr 28, 2023
…elastic#7289)

Some kubernetes events are generated while the container is being
configured. It doesn't make sense to emit an event yet, as the host will
be update right afterwards.

This PR changes the code to ignore Pod events without an IP address.

(cherry picked from commit 65c8c03)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants