Skip to content

Cherry-pick #12086 to 7.0: Don't generate autodiscover config when no port matches host hints#12141

Merged
jsoriano merged 2 commits intoelastic:7.0from
jsoriano:backport_12086_7.0
May 28, 2019
Merged

Cherry-pick #12086 to 7.0: Don't generate autodiscover config when no port matches host hints#12141
jsoriano merged 2 commits intoelastic:7.0from
jsoriano:backport_12086_7.0

Conversation

@jsoriano
Copy link
Copy Markdown
Member

@jsoriano jsoriano commented May 9, 2019

Cherry-pick of PR #12086 to 7.0 branch. Original message:

On metricbeat, when the host autodiscover hint is used, and it includes
the port, one of the exposed ports has to match with the one in the
hint. If not, no configuration should be generated. If it is generated,
it will have empty hosts, what would lead to unexpected errors as the
ones seen in #8264.

Fixes #8264

…lastic#12086)

On metricbeat, when the host autodiscover hint is used, and it includes
the port, one of the exposed ports has to match with the one in the
hint. If not, no configuration should be generated. If it is generated,
it will have empty hosts, what would lead to unexpected errors as the
seen in elastic#8264.

(cherry picked from commit cc73643)
@jsoriano jsoriano requested a review from a team as a code owner May 9, 2019 14:28
@jsoriano jsoriano merged commit 6cb7f8f into elastic:7.0 May 28, 2019
@jsoriano jsoriano deleted the backport_12086_7.0 branch May 28, 2019 15:34
leweafan pushed a commit to leweafan/beats that referenced this pull request Apr 28, 2023
…lastic#12086) (elastic#12141)

On metricbeat, when the host autodiscover hint is used, and it includes
the port, one of the exposed ports has to match with the one in the
hint. If not, no configuration should be generated. If it is generated,
it will have empty hosts, what would lead to unexpected errors as the
seen in elastic#8264.

(cherry picked from commit ba36dce)
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.

1 participant