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 #18818 to 7.x: Use indexers and matchers in config when defaults are enabled #18856

Merged
merged 1 commit into from
Jun 2, 2020

Conversation

jsoriano
Copy link
Member

Cherry-pick of PR #18818 to 7.x branch. Original message:

Before 7.7.0, indexers and matchers defined in add_kubernetes_metadata
configuration were used even when defaults were not disabled. Revert to
this behaviour and add tests to avoid changing it unexpectedly in the
future.

Reverts part of #16979, fixes #18481.

@botelastic botelastic bot added the needs_team Indicates that the issue/PR needs a Team:* label label May 29, 2020
…c#18818)

Before 7.7.0, indexers and matchers defined in `add_kubernetes_metadata`
configuration were used even when defaults were not disabled. Revert to
this behaviour and add tests to avoid changing it unexpectedly in the
future.

(cherry picked from commit 600998b)

Co-authored-by: Chris Mark <[email protected]>
@jsoriano jsoriano force-pushed the backport_18818_7.x branch from ca92e2f to 6bc7e55 Compare May 29, 2020 15:11
@elasticmachine
Copy link
Collaborator

elasticmachine commented May 29, 2020

💔 Build Failed

Pipeline View Test View Changes Artifacts preview

Expand to view the summary

Build stats

  • Build Cause: [Pull request #18856 updated]

  • Start Time: 2020-05-29T15:12:28.066+0000

  • Duration: 81 min 36 sec

Test stats 🧪

Test Results
Failed 0
Passed 6500
Skipped 1051
Total 7551

Steps errors

Expand to view the steps failures

  • Name: Install docker-compose 1.21.0

    • Description: .ci/scripts/install-docker-compose.sh

    • Duration: 0 min 18 sec

    • Start Time: 2020-05-29T15:39:00.079+0000

    • log

  • Name: General Build Step

    • Description: [2020-05-29T15:43:08.140Z] [Google Cloud Storage Plugin] Found 1 files to download from pattern: gs:

    • Duration: 0 min 3 sec

    • Start Time: 2020-05-29T15:43:08.073+0000

    • log

Log output

Expand to view the last 100 lines of log output

[2020-05-29T16:32:39.133Z] + FILE=auditbeat/build/coverage/full.cov
[2020-05-29T16:32:39.133Z] + [ -f auditbeat/build/coverage/full.cov ]
[2020-05-29T16:32:39.133Z] + FILE=filebeat/build/coverage/full.cov
[2020-05-29T16:32:39.133Z] + [ -f filebeat/build/coverage/full.cov ]
[2020-05-29T16:32:39.133Z] + FILE=heartbeat/build/coverage/full.cov
[2020-05-29T16:32:39.133Z] + [ -f heartbeat/build/coverage/full.cov ]
[2020-05-29T16:32:39.133Z] + FILE=libbeat/build/coverage/full.cov
[2020-05-29T16:32:39.133Z] + [ -f libbeat/build/coverage/full.cov ]
[2020-05-29T16:32:39.133Z] + FILE=metricbeat/build/coverage/full.cov
[2020-05-29T16:32:39.133Z] + [ -f metricbeat/build/coverage/full.cov ]
[2020-05-29T16:32:39.133Z] + FILE=packetbeat/build/coverage/full.cov
[2020-05-29T16:32:39.133Z] + [ -f packetbeat/build/coverage/full.cov ]
[2020-05-29T16:32:39.133Z] + FILE=winlogbeat/build/coverage/full.cov
[2020-05-29T16:32:39.133Z] + [ -f winlogbeat/build/coverage/full.cov ]
[2020-05-29T16:32:39.134Z] + FILE=journalbeat/build/coverage/full.cov
[2020-05-29T16:32:39.134Z] + [ -f journalbeat/build/coverage/full.cov ]
[2020-05-29T16:32:39.616Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18856/src/github.com/elastic/beats
[2020-05-29T16:32:39.921Z] + find . -type f -name TEST*.xml -path */build/* -delete
[2020-05-29T16:32:39.934Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18856/src/github.com/elastic/beats/Lint
[2020-05-29T16:32:40.023Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18856/src/github.com/elastic/beats/Winlogbeat-oss
[2020-05-29T16:32:40.088Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18856/src/github.com/elastic/beats/Elastic-Agent-x-pack
[2020-05-29T16:32:40.153Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18856/src/github.com/elastic/beats/Dockerlogbeat
[2020-05-29T16:32:40.217Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18856/src/github.com/elastic/beats/Journalbeat-oss
[2020-05-29T16:32:40.287Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18856/src/github.com/elastic/beats/Generators-Metricbeat-Linux
[2020-05-29T16:32:40.355Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18856/src/github.com/elastic/beats/Functionbeat-x-pack
[2020-05-29T16:32:40.429Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18856/src/github.com/elastic/beats/Elastic-Agent-x-pack-Windows
[2020-05-29T16:32:40.497Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18856/src/github.com/elastic/beats/Metricbeat-OSS-Unit-tests
[2020-05-29T16:32:40.566Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18856/src/github.com/elastic/beats/Metricbeat-crosscompile
[2020-05-29T16:32:40.633Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18856/src/github.com/elastic/beats/Heartbeat-oss
[2020-05-29T16:32:40.704Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18856/src/github.com/elastic/beats/Auditbeat-x-pack
[2020-05-29T16:32:40.770Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18856/src/github.com/elastic/beats/Winlogbeat-Windows-x-pack
[2020-05-29T16:32:40.835Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18856/src/github.com/elastic/beats/Libbeat-x-pack
[2020-05-29T16:32:40.898Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18856/src/github.com/elastic/beats/Filebeat-Windows
[2020-05-29T16:32:40.963Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18856/src/github.com/elastic/beats/Auditbeat-Linux
[2020-05-29T16:32:41.030Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18856/src/github.com/elastic/beats/Packetbeat-oss
[2020-05-29T16:32:41.094Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18856/src/github.com/elastic/beats/Filebeat-x-pack-Windows
[2020-05-29T16:32:41.159Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18856/src/github.com/elastic/beats/Auditbeat-crosscompile
[2020-05-29T16:32:41.221Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18856/src/github.com/elastic/beats/Metricbeat-Windows
[2020-05-29T16:32:41.287Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18856/src/github.com/elastic/beats/Winlogbeat-Windows
[2020-05-29T16:32:41.350Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18856/src/github.com/elastic/beats/Metricbeat-x-pack-Windows
[2020-05-29T16:32:41.417Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18856/src/github.com/elastic/beats/Generators-Beat-Linux
[2020-05-29T16:32:41.480Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18856/src/github.com/elastic/beats/Heartbeat-Windows
[2020-05-29T16:32:41.545Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18856/src/github.com/elastic/beats/Filebeat-x-pack
[2020-05-29T16:32:41.613Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18856/src/github.com/elastic/beats/Filebeat-oss
[2020-05-29T16:32:41.677Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18856/src/github.com/elastic/beats/Auditbeat-Windows
[2020-05-29T16:32:41.740Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18856/src/github.com/elastic/beats/Metricbeat-Python-integration-tests
[2020-05-29T16:32:41.802Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18856/src/github.com/elastic/beats/Libbeat-oss
[2020-05-29T16:32:41.869Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18856/src/github.com/elastic/beats/Metricbeat-OSS-Integration-tests
[2020-05-29T16:32:41.936Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18856/src/github.com/elastic/beats/Libbeat-crosscompile
[2020-05-29T16:32:42.000Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18856/src/github.com/elastic/beats/Libbeat-stress-tests
[2020-05-29T16:32:42.066Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18856/src/github.com/elastic/beats/Metricbeat-x-pack
[2020-05-29T16:32:42.412Z] + cat
[2020-05-29T16:32:42.412Z] + /usr/local/bin/runbld ./runbld-script
[2020-05-29T16:32:42.412Z] Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF8
[2020-05-29T16:32:49.011Z] runbld>>> runbld started
[2020-05-29T16:32:49.011Z] runbld>>> 1.6.11/a66728ff8f4356963772e6e6d2069392fa06acbe
[2020-05-29T16:32:50.398Z] runbld>>> The following profiles matched the job 'Beats/beats-beats-mbp/PR-18856' in order of occurrence in the config (last value wins).
[2020-05-29T16:32:51.783Z] runbld>>> Debug logging enabled.
[2020-05-29T16:32:51.783Z] runbld>>> Storing result
[2020-05-29T16:32:51.783Z] runbld>>> Store result: created {:total 2, :successful 2, :failed 0} 1
[2020-05-29T16:32:51.783Z] runbld>>> BUILD: https://c150076387b5421f9154dfbf536e5c60.us-west1.gcp.cloud.es.io:9243/build-1587637540455/t/20200529163251-0F1791BE
[2020-05-29T16:32:51.783Z] runbld>>> Adding system facts.
[2020-05-29T16:32:52.725Z] runbld>>> Adding vcs info for the latest commit:  6bc7e55aba0df842d0fe30109aa5a89b1877680d
[2020-05-29T16:32:52.986Z] runbld>>> >>>>>>>>>>>> SCRIPT EXECUTION BEGIN >>>>>>>>>>>>
[2020-05-29T16:32:52.986Z] runbld>>> Adding /usr/lib/jvm/java-8-openjdk-amd64/bin to the path.
[2020-05-29T16:32:52.986Z] + echo 'Processing JUnit reports with runbld...'
[2020-05-29T16:32:52.986Z] Processing JUnit reports with runbld...
[2020-05-29T16:32:53.555Z] runbld>>> <<<<<<<<<<<< SCRIPT EXECUTION END <<<<<<<<<<<<
[2020-05-29T16:32:53.555Z] runbld>>> DURATION: 12ms
[2020-05-29T16:32:53.555Z] runbld>>> STDOUT: 40 bytes
[2020-05-29T16:32:53.555Z] runbld>>> STDERR: 49 bytes
[2020-05-29T16:32:53.555Z] runbld>>> WRAPPED PROCESS: SUCCESS (0)
[2020-05-29T16:32:53.555Z] runbld>>> Searching for build metadata in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18856/src/github.com/elastic/beats
[2020-05-29T16:32:54.937Z] runbld>>> Storing build metadata: 
[2020-05-29T16:32:54.937Z] runbld>>> Adding test report.
[2020-05-29T16:32:54.937Z] runbld>>> Searching for junit test output files with the pattern: TEST-.*\.xml$ in: /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18856/src/github.com/elastic/beats
[2020-05-29T16:32:55.878Z] runbld>>> Found 95 test output files
[2020-05-29T16:32:56.138Z] runbld>>> No testsuite node found in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18856/src/github.com/elastic/beats/Metricbeat-OSS-Integration-tests/metricbeat/build/TEST-go-integration-graphite.xml
[2020-05-29T16:32:56.138Z] runbld>>> No testsuite node found in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18856/src/github.com/elastic/beats/Metricbeat-OSS-Integration-tests/metricbeat/build/TEST-go-integration-windows.xml
[2020-05-29T16:32:57.538Z] runbld>>> No testsuite node found in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18856/src/github.com/elastic/beats/Metricbeat-x-pack/x-pack/metricbeat/build/TEST-go-integration-openmetrics.xml
[2020-05-29T16:32:57.538Z] runbld>>> No testsuite node found in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18856/src/github.com/elastic/beats/Metricbeat-x-pack/x-pack/metricbeat/build/TEST-go-integration-tomcat.xml
[2020-05-29T16:32:57.538Z] runbld>>> No testsuite node found in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18856/src/github.com/elastic/beats/Metricbeat-x-pack/x-pack/metricbeat/build/TEST-go-integration-istio.xml
[2020-05-29T16:32:57.538Z] runbld>>> No testsuite node found in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18856/src/github.com/elastic/beats/Metricbeat-x-pack/x-pack/metricbeat/build/TEST-go-integration-cloudfoundry.xml
[2020-05-29T16:32:57.538Z] runbld>>> No testsuite node found in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18856/src/github.com/elastic/beats/Metricbeat-x-pack/x-pack/metricbeat/build/TEST-go-integration-iis.xml
[2020-05-29T16:32:57.538Z] runbld>>> No testsuite node found in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18856/src/github.com/elastic/beats/Metricbeat-x-pack/x-pack/metricbeat/build/TEST-go-integration-activemq.xml
[2020-05-29T16:32:57.538Z] runbld>>> Test output logs contained: Errors: 0 Failures: 0 Tests: 7401 Skipped: 849
[2020-05-29T16:32:57.797Z] runbld>>> Storing result
[2020-05-29T16:32:57.797Z] runbld>>> FAILURES: 0
[2020-05-29T16:32:58.057Z] runbld>>> Store result: updated {:total 2, :successful 2, :failed 0} 2
[2020-05-29T16:32:58.057Z] runbld>>> BUILD: https://c150076387b5421f9154dfbf536e5c60.us-west1.gcp.cloud.es.io:9243/build-1587637540455/t/20200529163251-0F1791BE
[2020-05-29T16:32:58.057Z] runbld>>> Email notification disabled by environment variable.
[2020-05-29T16:32:58.057Z] runbld>>> Slack notification disabled by environment variable.
[2020-05-29T16:33:03.543Z] Running on Jenkins in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18856
[2020-05-29T16:33:03.645Z] [INFO] getVaultSecret: Getting secrets
[2020-05-29T16:33:03.693Z] Masking supported pattern matches of $VAULT_ADDR or $VAULT_ROLE_ID or $VAULT_SECRET_ID
[2020-05-29T16:33:04.370Z] + chmod 755 generate-build-data.sh
[2020-05-29T16:33:04.370Z] + ./generate-build-data.sh https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats-beats-mbp/PR-18856/ https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats-beats-mbp/PR-18856/runs/2 FAILURE 4836044
[2020-05-29T16:33:04.370Z] INFO: curl https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats-beats-mbp/PR-18856/runs/2/steps/?limit=10000 -o steps-info.json
[2020-05-29T16:33:06.232Z] INFO: curl https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats-beats-mbp/PR-18856/runs/2/tests/?status=FAILED -o tests-errors.json
[2020-05-29T16:33:06.482Z] INFO: curl https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats-beats-mbp/PR-18856/runs/2/log/ -o pipeline-log.txt

@andresrc andresrc added the Team:Integrations Label for the Integrations team label Jun 1, 2020
@botelastic botelastic bot removed the needs_team Indicates that the issue/PR needs a Team:* label label Jun 1, 2020
@elasticmachine
Copy link
Collaborator

Pinging @elastic/integrations (Team:Integrations)

@jsoriano jsoriano merged commit 41462e3 into elastic:7.x Jun 2, 2020
@jsoriano jsoriano deleted the backport_18818_7.x branch June 2, 2020 11:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport review Team:Integrations Label for the Integrations team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants