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 #21085 to 7.x: Adds a default for failure_cache.min_ttl #21353

Merged
merged 1 commit into from
Oct 1, 2020

Conversation

andrewkroh
Copy link
Member

@andrewkroh andrewkroh commented Sep 28, 2020

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

What does this PR do?

It adds a default value for the failure_cache.min_ttl setting added in #18986. The default value is the same as that for the success_cache.min_ttl setting.

Why is it important?

As reported in https://discuss.elastic.co/t/fail-to-unpack-the-dns-configuration-requires-duration-1-accessing-processors-0-dns-min-ttl/248453/1, before the change in this PR, when a user configures the DNS processor minimally like so:

processors:
- dns:
    type: reverse

The following error is thrown:

Exiting: error initializing processors: fail to unpack the dns configuration: requires duration < 1 accessing 'processors.0.dns.min_ttl'

Resolves #21103.

* Adds a default for failure_cache.min_ttl

* Parse YAML as inline + fix default value

Fixes elastic#21103

Co-authored-by: Adrian Serrano <adrisr83@gmail.com>
(cherry picked from commit ddfe085)
@elasticmachine
Copy link
Collaborator

Pinging @elastic/siem (Team:SIEM)

@botelastic botelastic bot added needs_team Indicates that the issue/PR needs a Team:* label and removed needs_team Indicates that the issue/PR needs a Team:* label labels Sep 28, 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 #21353 opened]

  • Start Time: 2020-09-28T16:53:32.022+0000

  • Duration: 67 min 53 sec

Test stats 🧪

Test Results
Failed 4
Passed 15971
Skipped 1350
Total 17325

Test errors

Expand to view the tests failures

  • Name: Build&Test / x-pack/elastic-agent-build / TestRetriesOnFailures – application

    • Age: 1
    • Duration: 0
    • Error Details: Failed
  • Name: Build&Test / x-pack/elastic-agent-build / TestRetriesOnFailures/When_the_gateway_fails_to_communicate_with_the_checkin_API_we_will_retry – application

    • Age: 1
    • Duration: 0
    • Error Details: Failed
  • Name: Build&Test / x-pack/metricbeat-build / TestFetch – ec2

    • Age: 1
    • Duration: 19.39
    • Error Details: Failed
  • Name: Build&Test / libbeat-build / TestClientPublishEventKerberosAware – elasticsearch

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

Steps errors

Expand to view the steps failures

  • Name: mage build test

    • Description: mage build test

    • Duration: 23 min 21 sec

    • Start Time: 2020-09-28T17:21:30.611+0000

    • log

  • Name: Notifies GitHub of the status of a Pull Request

    • Description: script returned exit code 1

    • Duration: 0 min 1 sec

    • Start Time: 2020-09-28T17:45:07.360+0000

    • log

  • Name: mage build test

    • Description: mage build test

    • Duration: 11 min 4 sec

    • Start Time: 2020-09-28T17:21:30.671+0000

    • log

  • Name: Notifies GitHub of the status of a Pull Request

    • Description: FAILURE

    • Duration: 0 min 1 sec

    • Start Time: 2020-09-28T17:32:46.165+0000

    • log

  • Name: mage build test

    • Description: mage build test

    • Duration: 27 min 13 sec

    • Start Time: 2020-09-28T17:27:16.305+0000

    • log

  • Name: Notifies GitHub of the status of a Pull Request

    • Description: script returned exit code 1

    • Duration: 0 min 1 sec

    • Start Time: 2020-09-28T17:54:42.754+0000

    • log

Log output

Expand to view the last 100 lines of log output

[2020-09-28T17:59:58.674Z] ./src/github.com/elastic/beats/metricbeat-goIntegTest/metricbeat/build/TEST-go-integration-postgresql.xml
[2020-09-28T17:59:58.674Z] ./src/github.com/elastic/beats/metricbeat-goIntegTest/metricbeat/build/TEST-go-integration-munin.xml
[2020-09-28T17:59:58.674Z] ./src/github.com/elastic/beats/metricbeat-goIntegTest/metricbeat/build/TEST-go-integration-uwsgi.xml
[2020-09-28T17:59:58.674Z] ./src/github.com/elastic/beats/metricbeat-goIntegTest/metricbeat/build/TEST-go-integration-etcd.xml
[2020-09-28T17:59:58.674Z] ./src/github.com/elastic/beats/metricbeat-goIntegTest/metricbeat/build/TEST-go-integration-docker.xml
[2020-09-28T17:59:58.674Z] ./src/github.com/elastic/beats/metricbeat-goIntegTest/metricbeat/build/TEST-go-integration-beat.xml
[2020-09-28T17:59:58.674Z] ./src/github.com/elastic/beats/metricbeat-goIntegTest/metricbeat/build/TEST-go-integration-mongodb.xml
[2020-09-28T17:59:58.674Z] ./src/github.com/elastic/beats/metricbeat-goIntegTest/metricbeat/build/TEST-go-integration-golang.xml
[2020-09-28T17:59:58.674Z] ./src/github.com/elastic/beats/metricbeat-goIntegTest/metricbeat/build/TEST-go-integration-rabbitmq.xml
[2020-09-28T17:59:58.674Z] ./src/github.com/elastic/beats/metricbeat-goIntegTest/metricbeat/build/TEST-go-integration-jolokia.xml
[2020-09-28T17:59:58.674Z] ./src/github.com/elastic/beats/x-pack-auditbeat-build/x-pack/auditbeat/build/TEST-go-unit.xml
[2020-09-28T17:59:58.674Z] ./src/github.com/elastic/beats/x-pack-auditbeat-build/x-pack/auditbeat/build/TEST-python-integration.xml
[2020-09-28T17:59:58.674Z] ./src/github.com/elastic/beats/x-pack-auditbeat-build/x-pack/auditbeat/build/TEST-python-unit.xml
[2020-09-28T17:59:58.674Z] ./src/github.com/elastic/beats/x-pack-auditbeat-build/x-pack/auditbeat/build/TEST-go-integration.xml
[2020-09-28T17:59:58.674Z] ./src/github.com/elastic/beats/x-pack-filebeat-windows-windows-2019/x-pack/filebeat/build/TEST-go-unit.xml
[2020-09-28T17:59:58.674Z] ./src/github.com/elastic/beats/x-pack-filebeat-windows-windows-2019/x-pack/filebeat/build/TEST-python-unit.xml
[2020-09-28T17:59:58.674Z] ./src/github.com/elastic/beats/filebeat-windows-windows-2019/filebeat/build/TEST-go-unit.xml
[2020-09-28T17:59:58.674Z] ./src/github.com/elastic/beats/filebeat-windows-windows-2019/filebeat/build/TEST-python-unit.xml
[2020-09-28T17:59:58.674Z] ./src/github.com/elastic/beats/auditbeat-windows-windows-2019/auditbeat/build/TEST-go-unit.xml
[2020-09-28T17:59:58.674Z] ./src/github.com/elastic/beats/auditbeat-windows-windows-2019/auditbeat/build/TEST-python-unit.xml
[2020-09-28T17:59:58.674Z] ./src/github.com/elastic/beats/auditbeat-build/auditbeat/build/TEST-go-unit.xml
[2020-09-28T17:59:58.674Z] ./src/github.com/elastic/beats/auditbeat-build/auditbeat/build/TEST-python-integration.xml
[2020-09-28T17:59:58.674Z] ./src/github.com/elastic/beats/auditbeat-build/auditbeat/build/TEST-python-unit.xml
[2020-09-28T17:59:58.674Z] ./src/github.com/elastic/beats/auditbeat-build/auditbeat/build/TEST-go-integration.xml
[2020-09-28T17:59:58.674Z] ./src/github.com/elastic/beats/packetbeat-build/packetbeat/build/TEST-go-unit.xml
[2020-09-28T17:59:58.674Z] ./src/github.com/elastic/beats/packetbeat-build/packetbeat/build/TEST-python-unit.xml
[2020-09-28T17:59:58.674Z] ./src/github.com/elastic/beats/x-pack-metricbeat-build/x-pack/metricbeat/build/TEST-go-integration-cockroachdb.xml
[2020-09-28T17:59:58.674Z] ./src/github.com/elastic/beats/x-pack-metricbeat-build/x-pack/metricbeat/build/TEST-go-integration-openmetrics.xml
[2020-09-28T17:59:58.674Z] ./src/github.com/elastic/beats/x-pack-metricbeat-build/x-pack/metricbeat/build/TEST-go-unit.xml
[2020-09-28T17:59:58.674Z] ./src/github.com/elastic/beats/x-pack-metricbeat-build/x-pack/metricbeat/build/TEST-go-integration-coredns.xml
[2020-09-28T17:59:58.674Z] ./src/github.com/elastic/beats/x-pack-metricbeat-build/x-pack/metricbeat/build/TEST-go-integration-cloudfoundry.xml
[2020-09-28T17:59:58.674Z] ./src/github.com/elastic/beats/x-pack-metricbeat-build/x-pack/metricbeat/build/TEST-go-integration-sql.xml
[2020-09-28T17:59:58.674Z] ./src/github.com/elastic/beats/x-pack-metricbeat-build/x-pack/metricbeat/build/TEST-go-integration-prometheus.xml
[2020-09-28T17:59:58.674Z] ./src/github.com/elastic/beats/x-pack-metricbeat-build/x-pack/metricbeat/build/TEST-go-integration-azure.xml
[2020-09-28T17:59:58.674Z] ./src/github.com/elastic/beats/x-pack-metricbeat-build/x-pack/metricbeat/build/TEST-go-integration-ibmmq.xml
[2020-09-28T17:59:58.674Z] ./src/github.com/elastic/beats/x-pack-metricbeat-build/x-pack/metricbeat/build/TEST-go-integration-mssql.xml
[2020-09-28T17:59:58.674Z] ./src/github.com/elastic/beats/x-pack-metricbeat-build/x-pack/metricbeat/build/TEST-go-integration-istio.xml
[2020-09-28T17:59:58.674Z] ./src/github.com/elastic/beats/x-pack-metricbeat-build/x-pack/metricbeat/build/TEST-python-unit.xml
[2020-09-28T17:59:58.674Z] ./src/github.com/elastic/beats/x-pack-metricbeat-build/x-pack/metricbeat/build/TEST-go-integration-aws.xml
[2020-09-28T17:59:58.675Z] ./src/github.com/elastic/beats/x-pack-metricbeat-build/x-pack/metricbeat/build/TEST-go-integration-activemq.xml
[2020-09-28T17:59:58.675Z] ./src/github.com/elastic/beats/x-pack-metricbeat-build/x-pack/metricbeat/build/TEST-go-integration-redisenterprise.xml
[2020-09-28T17:59:58.675Z] ./src/github.com/elastic/beats/x-pack-metricbeat-build/x-pack/metricbeat/build/TEST-go-integration-iis.xml
[2020-09-28T17:59:58.675Z] ./src/github.com/elastic/beats/x-pack-metricbeat-build/x-pack/metricbeat/build/TEST-go-integration-oracle.xml
[2020-09-28T17:59:58.675Z] ./src/github.com/elastic/beats/x-pack-metricbeat-build/x-pack/metricbeat/build/TEST-go-integration-stan.xml
[2020-09-28T17:59:58.675Z] ./src/github.com/elastic/beats/x-pack-metricbeat-build/x-pack/metricbeat/build/TEST-go-integration-googlecloud.xml
[2020-09-28T17:59:58.675Z] ./src/github.com/elastic/beats/x-pack-metricbeat-build/x-pack/metricbeat/build/TEST-go-integration-tomcat.xml
[2020-09-28T17:59:58.675Z] ./src/github.com/elastic/beats/x-pack-metricbeat-build/x-pack/metricbeat/build/TEST-go-integration-statsd.xml
[2020-09-28T17:59:58.675Z] ./src/github.com/elastic/beats/x-pack-metricbeat-build/x-pack/metricbeat/build/TEST-go-integration-appsearch.xml
[2020-09-28T17:59:58.675Z] ./src/github.com/elastic/beats/x-pack-functionbeat-build/x-pack/functionbeat/build/TEST-go-unit.xml
[2020-09-28T17:59:58.675Z] ./src/github.com/elastic/beats/x-pack-functionbeat-build/x-pack/functionbeat/build/TEST-python-unit.xml
[2020-09-28T17:59:58.675Z] ./src/github.com/elastic/beats/metricbeat-pythonIntegTest/metricbeat/build/TEST-python-integration.xml
[2020-09-28T17:59:58.675Z] + cat
[2020-09-28T17:59:58.675Z] + /usr/local/bin/runbld ./runbld-script --job-name elastic+beats+pull-request
[2020-09-28T17:59:58.675Z] Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF8
[2020-09-28T18:00:06.825Z] runbld>>> runbld started
[2020-09-28T18:00:06.825Z] runbld>>> 1.6.12/f45d832f2ba0aa2722ab4ec1fda8ad140f027f8b
[2020-09-28T18:00:08.212Z] runbld>>> The following profiles matched the job 'elastic+beats+pull-request' in order of occurrence in the config (last value wins).
[2020-09-28T18:00:08.212Z] runbld>>> Matches in the system config:
[2020-09-28T18:00:08.212Z] runbld>>> - Matched ^elastic\+beats
[2020-09-28T18:00:08.212Z] runbld>>> - Matched ^elastic\+beats\+pull-request
[2020-09-28T18:00:09.599Z] runbld>>> Debug logging enabled.
[2020-09-28T18:00:09.599Z] runbld>>> Storing result
[2020-09-28T18:00:09.860Z] runbld>>> Store result: created {:total 2, :successful 2, :failed 0} 1
[2020-09-28T18:00:09.860Z] runbld>>> BUILD: https://c150076387b5421f9154dfbf536e5c60.us-west1.gcp.cloud.es.io:9243/build-1597739501209/t/20200928180009-B0C82739
[2020-09-28T18:00:09.860Z] runbld>>> Adding system facts.
[2020-09-28T18:00:11.250Z] runbld>>> Adding vcs info for the latest commit:  6e385ca38064e11d2d59080733b34792d9a495af
[2020-09-28T18:00:11.250Z] runbld>>> >>>>>>>>>>>> SCRIPT EXECUTION BEGIN >>>>>>>>>>>>
[2020-09-28T18:00:11.250Z] runbld>>> Adding /usr/lib/jvm/java-8-openjdk-amd64/bin to the path.
[2020-09-28T18:00:11.250Z] Processing JUnit reports with runbld...
[2020-09-28T18:00:11.250Z] + echo 'Processing JUnit reports with runbld...'
[2020-09-28T18:00:11.512Z] runbld>>> <<<<<<<<<<<< SCRIPT EXECUTION END <<<<<<<<<<<<
[2020-09-28T18:00:11.512Z] runbld>>> DURATION: 38ms
[2020-09-28T18:00:11.512Z] runbld>>> STDOUT: 40 bytes
[2020-09-28T18:00:11.512Z] runbld>>> STDERR: 49 bytes
[2020-09-28T18:00:11.512Z] runbld>>> WRAPPED PROCESS: SUCCESS (0)
[2020-09-28T18:00:11.512Z] runbld>>> Searching for build metadata in /var/lib/jenkins/workspace/Beats_beats_PR-21353
[2020-09-28T18:00:12.900Z] runbld>>> Storing build metadata: 
[2020-09-28T18:00:12.900Z] runbld>>> Adding test report.
[2020-09-28T18:00:12.900Z] runbld>>> Searching for junit test output files with the pattern: TEST-.*\.xml$ in: /var/lib/jenkins/workspace/Beats_beats_PR-21353/src/github.com/elastic/beats
[2020-09-28T18:00:13.471Z] runbld>>> Found 121 test output files
[2020-09-28T18:00:16.018Z] runbld>>> No testsuite node found in /var/lib/jenkins/workspace/Beats_beats_PR-21353/src/github.com/elastic/beats/metricbeat-goIntegTest/metricbeat/build/TEST-go-integration-graphite.xml
[2020-09-28T18:00:16.018Z] runbld>>> No testsuite node found in /var/lib/jenkins/workspace/Beats_beats_PR-21353/src/github.com/elastic/beats/metricbeat-goIntegTest/metricbeat/build/TEST-go-integration-windows.xml
[2020-09-28T18:00:16.279Z] runbld>>> No testsuite node found in /var/lib/jenkins/workspace/Beats_beats_PR-21353/src/github.com/elastic/beats/x-pack-metricbeat-build/x-pack/metricbeat/build/TEST-go-integration-openmetrics.xml
[2020-09-28T18:00:16.540Z] runbld>>> No testsuite node found in /var/lib/jenkins/workspace/Beats_beats_PR-21353/src/github.com/elastic/beats/x-pack-metricbeat-build/x-pack/metricbeat/build/TEST-go-integration-istio.xml
[2020-09-28T18:00:16.540Z] runbld>>> No testsuite node found in /var/lib/jenkins/workspace/Beats_beats_PR-21353/src/github.com/elastic/beats/x-pack-metricbeat-build/x-pack/metricbeat/build/TEST-go-integration-activemq.xml
[2020-09-28T18:00:16.540Z] runbld>>> No testsuite node found in /var/lib/jenkins/workspace/Beats_beats_PR-21353/src/github.com/elastic/beats/x-pack-metricbeat-build/x-pack/metricbeat/build/TEST-go-integration-iis.xml
[2020-09-28T18:00:16.540Z] runbld>>> No testsuite node found in /var/lib/jenkins/workspace/Beats_beats_PR-21353/src/github.com/elastic/beats/x-pack-metricbeat-build/x-pack/metricbeat/build/TEST-go-integration-tomcat.xml
[2020-09-28T18:00:16.801Z] runbld>>> Test output logs contained: Errors: 0 Failures: 4 Tests: 17325 Skipped: 1083
[2020-09-28T18:00:17.062Z] runbld>>> Storing result
[2020-09-28T18:00:17.062Z] runbld>>> FAILURES: 4
[2020-09-28T18:00:18.006Z] runbld>>> Store result: updated {:total 2, :successful 2, :failed 0} 2
[2020-09-28T18:00:18.006Z] runbld>>> BUILD: https://c150076387b5421f9154dfbf536e5c60.us-west1.gcp.cloud.es.io:9243/build-1597739501209/t/20200928180009-B0C82739
[2020-09-28T18:00:18.266Z] runbld>>> Email notification disabled by environment variable.
[2020-09-28T18:00:18.266Z] runbld>>> Slack notification disabled by environment variable.
[2020-09-28T18:00:23.986Z] Running on Jenkins in /var/lib/jenkins/workspace/Beats_beats_PR-21353
[2020-09-28T18:00:24.077Z] [INFO] getVaultSecret: Getting secrets
[2020-09-28T18:00:24.159Z] Masking supported pattern matches of $VAULT_ADDR or $VAULT_ROLE_ID or $VAULT_SECRET_ID
[2020-09-28T18:00:24.973Z] + chmod 755 generate-build-data.sh
[2020-09-28T18:00:24.973Z] + ./generate-build-data.sh https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats/PR-21353/ https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats/PR-21353/runs/1 FAILURE 4012680
[2020-09-28T18:00:24.973Z] INFO: curl https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats/PR-21353/runs/1/steps/?limit=10000 -o steps-info.json

@andrewkroh andrewkroh merged commit 64042de into elastic:7.x Oct 1, 2020
@zube zube bot removed the [zube]: Done label Dec 31, 2020
@andrewkroh andrewkroh deleted the backport_21085_7.x branch January 14, 2022 14:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants