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 #21484 to 7.9: Include original error when metricbeat fails to connect with Kafka #21509

Merged
merged 1 commit into from
Oct 5, 2020

Conversation

jsoriano
Copy link
Member

@jsoriano jsoriano commented Oct 5, 2020

Cherry-pick of PR #21484 to 7.9 branch. Original message:

What does this PR do?

Include error from kafka when Metricbeat cannot connect with broker.

Why is it important?

It includes the address only, and not the original error, complicating the investigation of connection errors.

@jsoriano jsoriano added [zube]: In Review backport Team:Services (Deprecated) Label for the former Integrations-Services team labels Oct 5, 2020
@botelastic botelastic bot added the needs_team Indicates that the issue/PR needs a Team:* label label Oct 5, 2020
@elasticmachine
Copy link
Collaborator

Pinging @elastic/integrations-services (Team:Services)

@botelastic botelastic bot removed the needs_team Indicates that the issue/PR needs a Team:* label label Oct 5, 2020
@elasticmachine
Copy link
Collaborator

💔 Tests Failed

Pipeline View Test View Changes Artifacts preview

Expand to view the summary

Build stats

  • Build Cause: [Pull request #21509 opened]

  • Start Time: 2020-10-05T08:53:51.568+0000

  • Duration: 62 min 23 sec

Test stats 🧪

Test Results
Failed 1
Passed 2153
Skipped 487
Total 2641

Test errors

Expand to view the tests failures

  • Name: Build&Test / x-pack/metricbeat-build / TestFetch – ec2

    • Age: 1
    • Duration: 18.86
    • Error Details: Failed

Steps errors

Expand to view the steps failures

  • Name: mage build test
    • Description: mage build test

    • Duration: 27 min 34 sec

    • Start Time: 2020-10-05T09:25:40.959+0000

    • log

Log output

Expand to view the last 100 lines of log output

[2020-10-05T09:55:20.382Z] random_password.db: Destroying... [id=none]
[2020-10-05T09:55:20.382Z] random_id.suffix: Destruction complete after 0s
[2020-10-05T09:55:20.382Z] random_password.db: Destruction complete after 0s
[2020-10-05T09:55:20.382Z] 
[2020-10-05T09:55:20.382Z] Destroy complete! Resources: 7 destroyed.
[2020-10-05T09:55:20.382Z] + cd -
[2020-10-05T09:55:20.382Z] /var/lib/jenkins/workspace/Beats_beats_PR-21509/src/github.com/elastic/beats/src/github.com/elastic/beats
[2020-10-05T09:55:20.382Z] + exit 0
[2020-10-05T09:55:20.778Z] Client: Docker Engine - Community
[2020-10-05T09:55:20.779Z]  Version:           19.03.13
[2020-10-05T09:55:20.779Z]  API version:       1.40
[2020-10-05T09:55:20.779Z]  Go version:        go1.13.15
[2020-10-05T09:55:20.779Z]  Git commit:        4484c46d9d
[2020-10-05T09:55:20.779Z]  Built:             Wed Sep 16 17:02:36 2020
[2020-10-05T09:55:20.779Z]  OS/Arch:           linux/amd64
[2020-10-05T09:55:20.779Z]  Experimental:      false
[2020-10-05T09:55:20.779Z] 
[2020-10-05T09:55:20.779Z] Server: Docker Engine - Community
[2020-10-05T09:55:20.779Z]  Engine:
[2020-10-05T09:55:20.779Z]   Version:          19.03.13
[2020-10-05T09:55:20.779Z]   API version:      1.40 (minimum version 1.12)
[2020-10-05T09:55:20.779Z]   Go version:       go1.13.15
[2020-10-05T09:55:20.779Z]   Git commit:       4484c46d9d
[2020-10-05T09:55:20.779Z]   Built:            Wed Sep 16 17:01:06 2020
[2020-10-05T09:55:20.779Z]   OS/Arch:          linux/amd64
[2020-10-05T09:55:20.779Z]   Experimental:     false
[2020-10-05T09:55:20.779Z]  containerd:
[2020-10-05T09:55:20.779Z]   Version:          1.3.7
[2020-10-05T09:55:20.779Z]   GitCommit:        8fba4e9a7d01810a393d5d25a3621dc101981175
[2020-10-05T09:55:20.779Z]  runc:
[2020-10-05T09:55:20.779Z]   Version:          1.0.0-rc10
[2020-10-05T09:55:20.779Z]   GitCommit:        dc9208a3303feef5b3839f4323d9beb36df0a9dd
[2020-10-05T09:55:20.779Z]  docker-init:
[2020-10-05T09:55:20.779Z]   Version:          0.18.0
[2020-10-05T09:55:20.779Z]   GitCommit:        fec3683
[2020-10-05T09:55:24.674Z] Failed in branch x-pack/metricbeat-build
[2020-10-05T09:55:28.351Z] [INFO] unstashV2: JOB_GCS_BUCKET is set. bucket param got precedency instead.
[2020-10-05T09:55:28.373Z] [INFO] unstashV2: JOB_GCS_CREDENTIALS is set. credentialsId param got precedency instead.
[2020-10-05T09:55:28.445Z] [Google Cloud Storage Plugin] Found 1 files to download from pattern: gs://beats-ci-temp/Beats/beats/PR-21509-1/source/source.tgz
[2020-10-05T09:55:28.468Z] [Google Cloud Storage Plugin] Downloading: Beats/beats/PR-21509-1/source/source.tgz to local path: /var/lib/jenkins/workspace/Beats_beats_PR-21509/source.tgz
[2020-10-05T09:55:40.157Z] + tar --version
[2020-10-05T09:55:40.476Z] + tar -xpf source.tgz
[2020-10-05T09:55:50.826Z] + rm source.tgz
[2020-10-05T09:55:50.918Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21509/src/github.com/elastic/beats
[2020-10-05T09:55:50.951Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21509/src/github.com/elastic/beats/uncategorized-1601889355684
[2020-10-05T09:55:51.044Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21509/src/github.com/elastic/beats/metricbeat-goIntegTest-1601889872434
[2020-10-05T09:55:51.140Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21509/src/github.com/elastic/beats/metricbeat-unitTest-1601890055982
[2020-10-05T09:55:51.243Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21509/src/github.com/elastic/beats/metricbeat-crosscompile-1601890216932
[2020-10-05T09:55:51.349Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21509/src/github.com/elastic/beats/metricbeat-pythonIntegTest-1601890276610
[2020-10-05T09:55:51.450Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21509/src/github.com/elastic/beats/metricbeat-windows-windows-2019-1601890693325
[2020-10-05T09:55:51.539Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21509/src/github.com/elastic/beats/x-pack-metricbeat-windows-windows-2019-1601890755515
[2020-10-05T09:55:51.642Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21509/src/github.com/elastic/beats/x-pack-metricbeat-build-1601891540684
[2020-10-05T09:55:52.088Z] + cat
[2020-10-05T09:55:52.088Z] + /usr/local/bin/runbld ./runbld-test-reports --job-name elastic+beats+pull-request
[2020-10-05T09:55:52.088Z] Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF8
[2020-10-05T09:56:00.259Z] runbld>>> runbld started
[2020-10-05T09:56:00.259Z] runbld>>> 1.6.12/f45d832f2ba0aa2722ab4ec1fda8ad140f027f8b
[2020-10-05T09:56:01.204Z] runbld>>> The following profiles matched the job 'elastic+beats+pull-request' in order of occurrence in the config (last value wins).
[2020-10-05T09:56:01.204Z] runbld>>> Matches in the system config:
[2020-10-05T09:56:01.204Z] runbld>>> - Matched ^elastic\+beats
[2020-10-05T09:56:01.204Z] runbld>>> - Matched ^elastic\+beats\+pull-request
[2020-10-05T09:56:02.593Z] runbld>>> Debug logging enabled.
[2020-10-05T09:56:02.593Z] runbld>>> Storing result
[2020-10-05T09:56:02.856Z] runbld>>> Store result: created {:total 2, :successful 2, :failed 0} 1
[2020-10-05T09:56:02.856Z] runbld>>> BUILD: https://c150076387b5421f9154dfbf536e5c60.us-west1.gcp.cloud.es.io:9243/build-1597739501209/t/20201005095602-C9DD34B7
[2020-10-05T09:56:02.856Z] runbld>>> Adding system facts.
[2020-10-05T09:56:04.254Z] runbld>>> Adding vcs info for the latest commit:  8a4dbf389c48d2e43dc6d3c49b62622ef006cfbc
[2020-10-05T09:56:04.254Z] runbld>>> >>>>>>>>>>>> SCRIPT EXECUTION BEGIN >>>>>>>>>>>>
[2020-10-05T09:56:04.254Z] runbld>>> Adding /usr/lib/jvm/java-8-openjdk-amd64/bin to the path.
[2020-10-05T09:56:04.255Z] + echo 'Processing JUnit reports with runbld...'
[2020-10-05T09:56:04.255Z] Processing JUnit reports with runbld...
[2020-10-05T09:56:04.516Z] runbld>>> <<<<<<<<<<<< SCRIPT EXECUTION END <<<<<<<<<<<<
[2020-10-05T09:56:04.517Z] runbld>>> DURATION: 57ms
[2020-10-05T09:56:04.517Z] runbld>>> STDOUT: 40 bytes
[2020-10-05T09:56:04.517Z] runbld>>> STDERR: 49 bytes
[2020-10-05T09:56:04.517Z] runbld>>> WRAPPED PROCESS: SUCCESS (0)
[2020-10-05T09:56:04.517Z] runbld>>> Searching for build metadata in /var/lib/jenkins/workspace/Beats_beats_PR-21509
[2020-10-05T09:56:05.913Z] runbld>>> Storing build metadata: 
[2020-10-05T09:56:05.913Z] runbld>>> Adding test report.
[2020-10-05T09:56:05.913Z] runbld>>> Searching for junit test output files with the pattern: TEST-.*\.xml$ in: /var/lib/jenkins/workspace/Beats_beats_PR-21509/src/github.com/elastic/beats
[2020-10-05T09:56:06.493Z] runbld>>> Found 30 test output files
[2020-10-05T09:56:06.493Z] runbld>>> No testsuite node found in /var/lib/jenkins/workspace/Beats_beats_PR-21509/src/github.com/elastic/beats/x-pack-metricbeat-build-1601891540684/x-pack/metricbeat/build/TEST-go-integration-openmetrics.xml
[2020-10-05T09:56:06.758Z] runbld>>> No testsuite node found in /var/lib/jenkins/workspace/Beats_beats_PR-21509/src/github.com/elastic/beats/x-pack-metricbeat-build-1601891540684/x-pack/metricbeat/build/TEST-go-integration-istio.xml
[2020-10-05T09:56:06.758Z] runbld>>> No testsuite node found in /var/lib/jenkins/workspace/Beats_beats_PR-21509/src/github.com/elastic/beats/x-pack-metricbeat-build-1601891540684/x-pack/metricbeat/build/TEST-go-integration-activemq.xml
[2020-10-05T09:56:06.758Z] runbld>>> No testsuite node found in /var/lib/jenkins/workspace/Beats_beats_PR-21509/src/github.com/elastic/beats/x-pack-metricbeat-build-1601891540684/x-pack/metricbeat/build/TEST-go-integration-iis.xml
[2020-10-05T09:56:06.758Z] runbld>>> No testsuite node found in /var/lib/jenkins/workspace/Beats_beats_PR-21509/src/github.com/elastic/beats/x-pack-metricbeat-build-1601891540684/x-pack/metricbeat/build/TEST-go-integration-tomcat.xml
[2020-10-05T09:56:07.710Z] runbld>>> Test output logs contained: Errors: 0 Failures: 1 Tests: 2641 Skipped: 399
[2020-10-05T09:56:07.710Z] runbld>>> Storing result
[2020-10-05T09:56:07.710Z] runbld>>> FAILURES: 1
[2020-10-05T09:56:07.973Z] runbld>>> Store result: updated {:total 2, :successful 2, :failed 0} 2
[2020-10-05T09:56:07.973Z] runbld>>> BUILD: https://c150076387b5421f9154dfbf536e5c60.us-west1.gcp.cloud.es.io:9243/build-1597739501209/t/20201005095602-C9DD34B7
[2020-10-05T09:56:08.235Z] runbld>>> Email notification disabled by environment variable.
[2020-10-05T09:56:08.235Z] runbld>>> Slack notification disabled by environment variable.
[2020-10-05T09:56:13.749Z] Running on Jenkins in /var/lib/jenkins/workspace/Beats_beats_PR-21509
[2020-10-05T09:56:13.842Z] [INFO] getVaultSecret: Getting secrets
[2020-10-05T09:56:13.926Z] Masking supported pattern matches of $VAULT_ADDR or $VAULT_ROLE_ID or $VAULT_SECRET_ID
[2020-10-05T09:56:14.812Z] + chmod 755 generate-build-data.sh
[2020-10-05T09:56:14.812Z] + ./generate-build-data.sh https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats/PR-21509/ https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats/PR-21509/runs/1 FAILURE 3742971
[2020-10-05T09:56:14.812Z] INFO: curl https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats/PR-21509/runs/1/steps/?limit=10000 -o steps-info.json
[2020-10-05T09:56:16.156Z] INFO: curl https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats/PR-21509/runs/1/tests/?status=FAILED -o tests-errors.json

@jsoriano jsoriano merged commit dfa4d37 into elastic:7.9 Oct 5, 2020
@jsoriano jsoriano deleted the backport_21484_7.9 branch October 5, 2020 10:20
@zube zube bot removed the [zube]: Done label Jan 3, 2021
leweafan pushed a commit to leweafan/beats that referenced this pull request Apr 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport Team:Services (Deprecated) Label for the former Integrations-Services team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants