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

Disable the option of running setup --machine-learning on its own #20241

Merged
merged 2 commits into from
Jul 28, 2020

Conversation

kvch
Copy link
Contributor

@kvch kvch commented Jul 27, 2020

What does this PR do?

This PR disables running setup --machine-learning on its own. From now on setup --machine-learning --dashboards has to be specified to enable ML jobs.

Why is it important?

ML jobs require an index template pattern in Kibana. If it is not configured, loading the jobs fails. However, loading this asset is done by the dashboards step of setup.

Loading index template patterns are too tightly coupled with Kibana and dashboards and it needs refactoring. As this code is way too complex and going to be removed soon, I opted for a workaround instead of a fix.

Checklist

  • My code follows the style guidelines of this project
  • I have commented my code, particularly in hard-to-understand areas
    - [ ] I have made corresponding changes to the documentation
    - [ ] I have made corresponding change to the default configuration files
    - [ ] I have added tests that prove my fix is effective or that my feature works
  • I have added an entry in CHANGELOG.next.asciidoc or CHANGELOG-developer.next.asciidoc.

Related issues

Closes #19964
Closes #12998
Closes #20022

@botelastic botelastic bot added the needs_team Indicates that the issue/PR needs a Team:* label label Jul 27, 2020
@kvch kvch added [zube]: In Review needs_backport PR is waiting to be backported to other branches. Team:Services (Deprecated) Label for the former Integrations-Services team labels Jul 27, 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 Jul 27, 2020
@kvch kvch requested a review from urso July 27, 2020 12:12
@elasticmachine
Copy link
Collaborator

elasticmachine commented Jul 27, 2020

💔 Build Failed

Pipeline View Test View Changes Artifacts preview

Expand to view the summary

Build stats

  • Build Cause: [Pull request #20241 updated]

  • Start Time: 2020-07-27T12:14:22.705+0000

  • Duration: 24 min 20 sec

Steps errors

Expand to view the steps failures

  • Name: Make check
    • Description: make check

    • Duration: 17 min 57 sec

    • Start Time: 2020-07-27T12:21:14.014+0000

    • log

Log output

Expand to view the last 100 lines of log output

[2020-07-27T12:38:18.833Z] Stage "Generators" skipped due to earlier failure(s)
[2020-07-27T12:38:18.833Z] Stage "Kubernetes" skipped due to earlier failure(s)
[2020-07-27T12:38:18.912Z] Stage "Heartbeat" skipped due to earlier failure(s)
[2020-07-27T12:38:18.914Z] Stage "Libbeat" skipped due to earlier failure(s)
[2020-07-27T12:38:18.915Z] Stage "Metricbeat x-pack" skipped due to earlier failure(s)
[2020-07-27T12:38:18.916Z] Stage "Packetbeat" skipped due to earlier failure(s)
[2020-07-27T12:38:18.917Z] Stage "dockerlogbeat" skipped due to earlier failure(s)
[2020-07-27T12:38:18.918Z] Stage "Winlogbeat" skipped due to earlier failure(s)
[2020-07-27T12:38:18.919Z] Stage "Functionbeat" skipped due to earlier failure(s)
[2020-07-27T12:38:18.920Z] Stage "Journalbeat" skipped due to earlier failure(s)
[2020-07-27T12:38:18.922Z] Stage "Generators" skipped due to earlier failure(s)
[2020-07-27T12:38:19.442Z] Failed in branch Elastic Agent x-pack
[2020-07-27T12:38:19.443Z] Failed in branch Elastic Agent x-pack Windows
[2020-07-27T12:38:19.443Z] Failed in branch Elastic Agent Mac OS X
[2020-07-27T12:38:19.444Z] Failed in branch Filebeat oss
[2020-07-27T12:38:19.445Z] Failed in branch Filebeat x-pack
[2020-07-27T12:38:19.445Z] Failed in branch Filebeat Mac OS X
[2020-07-27T12:38:19.446Z] Failed in branch Filebeat x-pack Mac OS X
[2020-07-27T12:38:19.446Z] Failed in branch Filebeat Windows
[2020-07-27T12:38:19.447Z] Failed in branch Filebeat x-pack Windows
[2020-07-27T12:38:19.448Z] Failed in branch Auditbeat oss Linux
[2020-07-27T12:38:19.448Z] Failed in branch Auditbeat crosscompile
[2020-07-27T12:38:19.449Z] Failed in branch Auditbeat oss Mac OS X
[2020-07-27T12:38:19.450Z] Failed in branch Auditbeat oss Windows
[2020-07-27T12:38:19.450Z] Failed in branch Auditbeat x-pack
[2020-07-27T12:38:19.451Z] Failed in branch Auditbeat x-pack Mac OS X
[2020-07-27T12:38:19.452Z] Failed in branch Auditbeat x-pack Windows
[2020-07-27T12:38:19.452Z] Failed in branch Libbeat x-pack
[2020-07-27T12:38:19.453Z] Failed in branch Metricbeat OSS Unit tests
[2020-07-27T12:38:19.453Z] Failed in branch Metricbeat OSS Integration tests
[2020-07-27T12:38:19.454Z] Failed in branch Metricbeat Python integration tests
[2020-07-27T12:38:19.455Z] Failed in branch Metricbeat crosscompile
[2020-07-27T12:38:19.456Z] Failed in branch Metricbeat Mac OS X
[2020-07-27T12:38:19.457Z] Failed in branch Metricbeat x-pack Mac OS X
[2020-07-27T12:38:19.457Z] Failed in branch Metricbeat Windows
[2020-07-27T12:38:19.458Z] Failed in branch Metricbeat x-pack Windows
[2020-07-27T12:38:19.458Z] Failed in branch Winlogbeat Windows x-pack
[2020-07-27T12:38:19.459Z] Failed in branch Kubernetes
[2020-07-27T12:38:19.752Z] Stage "Heartbeat" skipped due to earlier failure(s)
[2020-07-27T12:38:19.753Z] Stage "Libbeat" skipped due to earlier failure(s)
[2020-07-27T12:38:19.754Z] Stage "Metricbeat x-pack" skipped due to earlier failure(s)
[2020-07-27T12:38:19.756Z] Stage "Winlogbeat" skipped due to earlier failure(s)
[2020-07-27T12:38:19.757Z] Stage "Functionbeat" skipped due to earlier failure(s)
[2020-07-27T12:38:19.758Z] Stage "Generators" skipped due to earlier failure(s)
[2020-07-27T12:38:19.813Z] Failed in branch Packetbeat
[2020-07-27T12:38:19.814Z] Failed in branch dockerlogbeat
[2020-07-27T12:38:19.815Z] Failed in branch Journalbeat
[2020-07-27T12:38:20.008Z] Stage "Heartbeat" skipped due to earlier failure(s)
[2020-07-27T12:38:20.010Z] Stage "Libbeat" skipped due to earlier failure(s)
[2020-07-27T12:38:20.011Z] Stage "Functionbeat" skipped due to earlier failure(s)
[2020-07-27T12:38:20.012Z] Stage "Generators" skipped due to earlier failure(s)
[2020-07-27T12:38:20.049Z] Failed in branch Metricbeat x-pack
[2020-07-27T12:38:20.050Z] Failed in branch Winlogbeat
[2020-07-27T12:38:20.234Z] Failed in branch Heartbeat
[2020-07-27T12:38:20.235Z] Failed in branch Libbeat
[2020-07-27T12:38:20.235Z] Failed in branch Functionbeat
[2020-07-27T12:38:20.236Z] Stage "Generators" skipped due to earlier failure(s)
[2020-07-27T12:38:20.316Z] Failed in branch Generators
[2020-07-27T12:38:20.514Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20241/src/github.com/elastic/beats
[2020-07-27T12:38:20.832Z] + find . -type f -name TEST*.xml -path */build/* -delete
[2020-07-27T12:38:20.845Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20241/src/github.com/elastic/beats/Lint
[2020-07-27T12:38:21.496Z] + cat
[2020-07-27T12:38:21.496Z] + /usr/local/bin/runbld ./runbld-script
[2020-07-27T12:38:21.496Z] Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF8
[2020-07-27T12:38:29.644Z] runbld>>> runbld started
[2020-07-27T12:38:29.644Z] runbld>>> 1.6.12/f45d832f2ba0aa2722ab4ec1fda8ad140f027f8b
[2020-07-27T12:38:31.032Z] runbld>>> The following profiles matched the job 'Beats/beats/PR-20241' in order of occurrence in the config (last value wins).
[2020-07-27T12:38:32.415Z] runbld>>> Debug logging enabled.
[2020-07-27T12:38:32.415Z] runbld>>> Storing result
[2020-07-27T12:38:32.675Z] runbld>>> Store result: created {:total 2, :successful 2, :failed 0} 1
[2020-07-27T12:38:32.675Z] runbld>>> BUILD: https://c150076387b5421f9154dfbf536e5c60.us-west1.gcp.cloud.es.io:9243/build-1587637540455/t/20200727123832-F1581FE4
[2020-07-27T12:38:32.675Z] runbld>>> Adding system facts.
[2020-07-27T12:38:34.061Z] runbld>>> Adding vcs info for the latest commit:  50b765d87f2c62758e7cfbdf4a53a7d5cbcb3888
[2020-07-27T12:38:34.061Z] runbld>>> >>>>>>>>>>>> SCRIPT EXECUTION BEGIN >>>>>>>>>>>>
[2020-07-27T12:38:34.061Z] runbld>>> Adding /usr/lib/jvm/java-8-openjdk-amd64/bin to the path.
[2020-07-27T12:38:34.061Z] Processing JUnit reports with runbld...
[2020-07-27T12:38:34.061Z] + echo 'Processing JUnit reports with runbld...'
[2020-07-27T12:38:34.321Z] runbld>>> <<<<<<<<<<<< SCRIPT EXECUTION END <<<<<<<<<<<<
[2020-07-27T12:38:34.321Z] runbld>>> DURATION: 47ms
[2020-07-27T12:38:34.321Z] runbld>>> STDOUT: 40 bytes
[2020-07-27T12:38:34.321Z] runbld>>> STDERR: 49 bytes
[2020-07-27T12:38:34.321Z] runbld>>> WRAPPED PROCESS: SUCCESS (0)
[2020-07-27T12:38:34.321Z] runbld>>> Searching for build metadata in /var/lib/jenkins/workspace/Beats_beats_PR-20241/src/github.com/elastic/beats
[2020-07-27T12:38:35.704Z] runbld>>> Storing build metadata: 
[2020-07-27T12:38:35.704Z] runbld>>> Adding test report.
[2020-07-27T12:38:35.704Z] runbld>>> Searching for junit test output files with the pattern: TEST-.*\.xml$ in: /var/lib/jenkins/workspace/Beats_beats_PR-20241/src/github.com/elastic/beats
[2020-07-27T12:38:36.279Z] runbld>>> Found 0 test output files
[2020-07-27T12:38:36.279Z] runbld>>> Test output logs contained: Errors: 0 Failures: 0 Tests: 0 Skipped: 0
[2020-07-27T12:38:36.538Z] runbld>>> Storing result
[2020-07-27T12:38:36.539Z] runbld>>> Store result: updated {:total 2, :successful 2, :failed 0} 2
[2020-07-27T12:38:36.539Z] runbld>>> BUILD: https://c150076387b5421f9154dfbf536e5c60.us-west1.gcp.cloud.es.io:9243/build-1587637540455/t/20200727123832-F1581FE4
[2020-07-27T12:38:36.799Z] runbld>>> Email notification disabled by environment variable.
[2020-07-27T12:38:36.799Z] runbld>>> Slack notification disabled by environment variable.
[2020-07-27T12:38:42.332Z] Running on Jenkins in /var/lib/jenkins/workspace/Beats_beats_PR-20241
[2020-07-27T12:38:42.431Z] [INFO] getVaultSecret: Getting secrets
[2020-07-27T12:38:42.515Z] Masking supported pattern matches of $VAULT_ADDR or $VAULT_ROLE_ID or $VAULT_SECRET_ID
[2020-07-27T12:38:43.286Z] + chmod 755 generate-build-data.sh
[2020-07-27T12:38:43.286Z] + ./generate-build-data.sh https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats/PR-20241/ https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats/PR-20241/runs/2 FAILURE 1460320
[2020-07-27T12:38:43.286Z] INFO: curl https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats/PR-20241/runs/2/steps/?limit=10000 -o steps-info.json
[2020-07-27T12:38:43.536Z] INFO: curl https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats/PR-20241/runs/2/tests/?status=FAILED -o tests-errors.json

@kvch
Copy link
Contributor Author

kvch commented Jul 28, 2020

jenkins run tests

@kvch kvch force-pushed the fix-filebeat-ml-loading branch from de74156 to ddc688f Compare July 28, 2020 08:14
@kvch kvch merged commit ca7ce29 into elastic:7.x Jul 28, 2020
@kvch kvch added v7.9.0 and removed needs_backport PR is waiting to be backported to other branches. labels Jul 28, 2020
kvch added a commit to kvch/beats that referenced this pull request Jul 28, 2020
…astic#20241)

This PR disables running `setup --machine-learning` on its own. From now on `setup --machine-learning --dashboards` has to be specified to enable ML jobs.

ML jobs require an index template pattern in Kibana. If it is not configured, loading the jobs fails. However, loading this asset is done by the dashboards step of setup.

Loading index template patterns are too tightly coupled with Kibana and dashboards and it needs refactoring. As this code is way too complex and going to be removed soon, I opted for a workaround instead of a fix.

Closes elastic#19964
Closes elastic#12998
Closes elastic#20022
(cherry picked from commit ca7ce29)
@elasticmachine
Copy link
Collaborator

💔 Tests Failed

Pipeline View Test View Changes Artifacts preview

Expand to view the summary

Build stats

  • Build Cause: [Branch indexing]

  • Start Time: 2020-07-28T09:54:29.526+0000

  • Duration: 122 min 10 sec

Test stats 🧪

Test Results
Failed 14
Passed 9736
Skipped 1583
Total 11333

Test errors

Expand to view the tests failures

  • Name: Build and Test / Metricbeat OSS Unit tests / test_process – test_system.Test

    • Age: 1
    • Duration: 1.18
    • Error Details: False is not true : fd not found in any process events
  • Name: Build and Test / Auditbeat x-pack / test_connected_udp_ipv4 – test_system_socket.Test

    • Age: 1
    • Duration: 60.101
    • Error Details: Expected exit code to be 0, but it was 1
  • Name: Build and Test / Auditbeat x-pack / test_connected_udp_ipv6 – test_system_socket.Test

    • Age: 1
    • Duration: 60.104
    • Error Details: Expected exit code to be 0, but it was 1
  • Name: Build and Test / Auditbeat x-pack / test_dns_enrichment – test_system_socket.Test

    • Age: 1
    • Duration: 60.105
    • Error Details: Expected exit code to be 0, but it was 1
  • Name: Build and Test / Auditbeat x-pack / test_dns_long_request – test_system_socket.Test

    • Age: 1
    • Duration: 60.098
    • Error Details: Expected exit code to be 0, but it was 1
  • Name: Build and Test / Auditbeat x-pack / test_dns_udp_ipv6 – test_system_socket.Test

    • Age: 1
    • Duration: 60.121
    • Error Details: Expected exit code to be 0, but it was 1
  • Name: Build and Test / Auditbeat x-pack / test_dns_unidirectional_udp – test_system_socket.Test

    • Age: 1
    • Duration: 60.114
    • Error Details: Expected exit code to be 0, but it was 1
  • Name: Build and Test / Auditbeat x-pack / test_multi_udp_upv4 – test_system_socket.Test

    • Age: 1
    • Duration: 60.111
    • Error Details: Expected exit code to be 0, but it was 1
  • Name: Build and Test / Auditbeat x-pack / test_no_dns_enrichment – test_system_socket.Test

    • Age: 1
    • Duration: 60.109
    • Error Details: Expected exit code to be 0, but it was 1
  • Name: Build and Test / Auditbeat x-pack / test_tcp_ipv4 – test_system_socket.Test

    • Age: 1
    • Duration: 60.106
    • Error Details: Expected exit code to be 0, but it was 1
  • Name: Build and Test / Auditbeat x-pack / test_tcp_ipv6_disabled – test_system_socket.Test

    • Age: 1
    • Duration: 60.115
    • Error Details: Expected exit code to be 0, but it was 1
  • Name: Build and Test / Auditbeat x-pack / test_udp_ipv4 – test_system_socket.Test

    • Age: 1
    • Duration: 60.102
    • Error Details: Expected exit code to be 0, but it was 1
  • Name: Build and Test / Auditbeat x-pack / test_udp_ipv6 – test_system_socket.Test

    • Age: 1
    • Duration: 60.097
    • Error Details: Expected exit code to be 0, but it was 1
  • Name: Build and Test / Auditbeat x-pack / test_udp_ipv6_disabled – test_system_socket.Test

    • Age: 1
    • Duration: 60.097
    • Error Details: Expected exit code to be 0, but it was 1

Steps errors

Expand to view the steps failures

  • Name: Mage update build test

    • Description: mage update build test

    • Duration: 22 min 6 sec

    • Start Time: 2020-07-28T10:21:25.643+0000

    • log

  • Name: Make testsuite

    • Description: make -C libbeat testsuite

    • Duration: 27 min 45 sec

    • Start Time: 2020-07-28T10:21:22.388+0000

    • log

  • Name: Mage build unitTest

    • Description: mage build unitTest

    • Duration: 9 min 59 sec

    • Start Time: 2020-07-28T10:21:31.903+0000

    • log

  • Name: Report to Codecov

    • Description: .ci/scripts/report-codecov.sh auditbeat filebeat heartbeat journalbeat libbeat metricbeat packetbeat winlogbeat

    • Duration: 1 min 27 sec

    • Start Time: 2020-07-28T11:03:22.115+0000

    • log

  • Name: Report to Codecov

    • Description: .ci/scripts/report-codecov.sh auditbeat filebeat heartbeat journalbeat libbeat metricbeat packetbeat winlogbeat

    • Duration: 1 min 27 sec

    • Start Time: 2020-07-28T11:29:11.788+0000

    • log

Log output

Expand to view the last 100 lines of log output

[2020-07-28T11:46:26.649Z] [INFO] system-tests='build\x-pack\functionbeat\build\system-tests'. If no empty then let's create a tarball
[2020-07-28T11:46:26.982Z] 
[2020-07-28T11:46:26.982Z] C:\Users\jenkins\workspace\Beats_beats_PR-20241\src\github.com\elastic\beats>tar --version  1>NUL 
[2020-07-28T11:46:27.342Z] 
[2020-07-28T11:46:27.342Z] C:\Users\jenkins\workspace\Beats_beats_PR-20241\src\github.com\elastic\beats>tar --exclude=x-pack-functionbeat--system-tests-windows.tgz -czf x-pack-functionbeat--system-tests-windows.tgz build\x-pack\functionbeat\build\system-tests 
[2020-07-28T11:46:27.397Z] Archiving artifacts
[2020-07-28T11:56:08.472Z] Cancelling nested steps due to timeout
[2020-07-28T11:56:08.650Z] Failed in branch Generators
[2020-07-28T11:56:08.800Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20241/src/github.com/elastic/beats
[2020-07-28T11:56:09.105Z] + find . -type f -name TEST*.xml -path */build/* -delete
[2020-07-28T11:56:09.118Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20241/src/github.com/elastic/beats/Lint
[2020-07-28T11:56:09.216Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20241/src/github.com/elastic/beats/Winlogbeat-oss
[2020-07-28T11:56:09.300Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20241/src/github.com/elastic/beats/Elastic-Agent-x-pack
[2020-07-28T11:56:09.380Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20241/src/github.com/elastic/beats/Auditbeat-crosscompile
[2020-07-28T11:56:09.461Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20241/src/github.com/elastic/beats/Dockerlogbeat
[2020-07-28T11:56:09.549Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20241/src/github.com/elastic/beats/Generators-Metricbeat-Linux
[2020-07-28T11:56:09.638Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20241/src/github.com/elastic/beats/Journalbeat-oss
[2020-07-28T11:56:09.720Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20241/src/github.com/elastic/beats/Functionbeat-x-pack
[2020-07-28T11:56:09.806Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20241/src/github.com/elastic/beats/Elastic-Agent-x-pack-Windows
[2020-07-28T11:56:09.912Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20241/src/github.com/elastic/beats/Metricbeat-OSS-Unit-tests
[2020-07-28T11:56:10.020Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20241/src/github.com/elastic/beats/Auditbeat-oss-Windows
[2020-07-28T11:56:10.108Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20241/src/github.com/elastic/beats/Winlogbeat-Windows-x-pack
[2020-07-28T11:56:10.191Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20241/src/github.com/elastic/beats/Auditbeat-x-pack-Windows
[2020-07-28T11:56:10.271Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20241/src/github.com/elastic/beats/Heartbeat-oss
[2020-07-28T11:56:10.367Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20241/src/github.com/elastic/beats/Metricbeat-crosscompile
[2020-07-28T11:56:10.447Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20241/src/github.com/elastic/beats/Libbeat-x-pack
[2020-07-28T11:56:10.556Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20241/src/github.com/elastic/beats/Filebeat-x-pack-Windows
[2020-07-28T11:56:10.651Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20241/src/github.com/elastic/beats/Filebeat-Windows
[2020-07-28T11:56:10.741Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20241/src/github.com/elastic/beats/Auditbeat-oss-Linux
[2020-07-28T11:56:10.826Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20241/src/github.com/elastic/beats/Packetbeat-oss
[2020-07-28T11:56:10.927Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20241/src/github.com/elastic/beats/Metricbeat-x-pack-Windows
[2020-07-28T11:56:11.013Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20241/src/github.com/elastic/beats/Winlogbeat-Windows
[2020-07-28T11:56:11.100Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20241/src/github.com/elastic/beats/Metricbeat-Windows
[2020-07-28T11:56:11.183Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20241/src/github.com/elastic/beats/Generators-Beat-Linux
[2020-07-28T11:56:11.265Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20241/src/github.com/elastic/beats/Auditbeat-x-pack
[2020-07-28T11:56:11.350Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20241/src/github.com/elastic/beats/Libbeat-oss
[2020-07-28T11:56:11.435Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20241/src/github.com/elastic/beats/Filebeat-x-pack
[2020-07-28T11:56:11.519Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20241/src/github.com/elastic/beats/Filebeat-oss
[2020-07-28T11:56:11.594Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20241/src/github.com/elastic/beats/Elastic-Agent-Mac-OS-X
[2020-07-28T11:56:11.672Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20241/src/github.com/elastic/beats/Metricbeat-OSS-Integration-tests
[2020-07-28T11:56:11.765Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20241/src/github.com/elastic/beats/Filebeat-x-pack-Mac-OS-X
[2020-07-28T11:56:11.859Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20241/src/github.com/elastic/beats/Auditbeat-x-pack-Mac-OS-X
[2020-07-28T11:56:11.937Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20241/src/github.com/elastic/beats/Metricbeat-Python-integration-tests
[2020-07-28T11:56:12.024Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20241/src/github.com/elastic/beats/Filebeat-Mac-OS-X
[2020-07-28T11:56:12.098Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20241/src/github.com/elastic/beats/Auditbeat-oss-Mac-OS-X
[2020-07-28T11:56:12.176Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20241/src/github.com/elastic/beats/Metricbeat-Mac-OS-X
[2020-07-28T11:56:12.259Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20241/src/github.com/elastic/beats/Metricbeat-x-pack-Mac-OS-X
[2020-07-28T11:56:12.349Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20241/src/github.com/elastic/beats/Metricbeat-x-pack
[2020-07-28T11:56:12.453Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20241/src/github.com/elastic/beats/Heartbeat-Mac-OS-X
[2020-07-28T11:56:12.546Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20241/src/github.com/elastic/beats/Functionbeat-Mac-OS-X-x-pack
[2020-07-28T11:56:12.631Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20241/src/github.com/elastic/beats/Generators-Metricbeat-Mac-OS-X
[2020-07-28T11:56:12.710Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20241/src/github.com/elastic/beats/Heartbeat-Windows
[2020-07-28T11:56:12.793Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20241/src/github.com/elastic/beats/Functionbeat-Windows
[2020-07-28T11:56:13.163Z] + cat
[2020-07-28T11:56:13.163Z] + /usr/local/bin/runbld ./runbld-script
[2020-07-28T11:56:13.163Z] Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF8
[2020-07-28T11:56:21.330Z] runbld>>> runbld started
[2020-07-28T11:56:21.330Z] runbld>>> 1.6.12/f45d832f2ba0aa2722ab4ec1fda8ad140f027f8b
[2020-07-28T11:56:22.291Z] runbld>>> The following profiles matched the job 'Beats/beats/PR-20241' in order of occurrence in the config (last value wins).
[2020-07-28T11:56:23.673Z] runbld>>> Debug logging enabled.
[2020-07-28T11:56:23.673Z] runbld>>> Storing result
[2020-07-28T11:56:23.673Z] runbld>>> Store result: created {:total 2, :successful 2, :failed 0} 1
[2020-07-28T11:56:23.673Z] runbld>>> BUILD: https://c150076387b5421f9154dfbf536e5c60.us-west1.gcp.cloud.es.io:9243/build-1587637540455/t/20200728115623-B974B61E
[2020-07-28T11:56:23.673Z] runbld>>> Adding system facts.
[2020-07-28T11:56:25.056Z] runbld>>> Adding vcs info for the latest commit:  ddc688fe4b59b5a5a635ee27f75789f841874111
[2020-07-28T11:56:25.056Z] runbld>>> >>>>>>>>>>>> SCRIPT EXECUTION BEGIN >>>>>>>>>>>>
[2020-07-28T11:56:25.056Z] runbld>>> Adding /usr/lib/jvm/java-8-openjdk-amd64/bin to the path.
[2020-07-28T11:56:25.056Z] Processing JUnit reports with runbld...
[2020-07-28T11:56:25.056Z] + echo 'Processing JUnit reports with runbld...'
[2020-07-28T11:56:25.316Z] runbld>>> <<<<<<<<<<<< SCRIPT EXECUTION END <<<<<<<<<<<<
[2020-07-28T11:56:25.316Z] runbld>>> DURATION: 46ms
[2020-07-28T11:56:25.316Z] runbld>>> STDOUT: 40 bytes
[2020-07-28T11:56:25.316Z] runbld>>> STDERR: 49 bytes
[2020-07-28T11:56:25.316Z] runbld>>> WRAPPED PROCESS: SUCCESS (0)
[2020-07-28T11:56:25.316Z] runbld>>> Searching for build metadata in /var/lib/jenkins/workspace/Beats_beats_PR-20241/src/github.com/elastic/beats
[2020-07-28T11:56:26.698Z] runbld>>> Storing build metadata: 
[2020-07-28T11:56:26.698Z] runbld>>> Adding test report.
[2020-07-28T11:56:26.698Z] runbld>>> Searching for junit test output files with the pattern: TEST-.*\.xml$ in: /var/lib/jenkins/workspace/Beats_beats_PR-20241/src/github.com/elastic/beats
[2020-07-28T11:56:27.267Z] runbld>>> Found 114 test output files
[2020-07-28T11:56:27.840Z] runbld>>> No testsuite node found in /var/lib/jenkins/workspace/Beats_beats_PR-20241/src/github.com/elastic/beats/Metricbeat-x-pack/x-pack/metricbeat/build/TEST-go-integration-openmetrics.xml
[2020-07-28T11:56:27.840Z] runbld>>> No testsuite node found in /var/lib/jenkins/workspace/Beats_beats_PR-20241/src/github.com/elastic/beats/Metricbeat-x-pack/x-pack/metricbeat/build/TEST-go-integration-iis.xml
[2020-07-28T11:56:28.100Z] runbld>>> No testsuite node found in /var/lib/jenkins/workspace/Beats_beats_PR-20241/src/github.com/elastic/beats/Metricbeat-x-pack/x-pack/metricbeat/build/TEST-go-integration-istio.xml
[2020-07-28T11:56:28.100Z] runbld>>> No testsuite node found in /var/lib/jenkins/workspace/Beats_beats_PR-20241/src/github.com/elastic/beats/Metricbeat-x-pack/x-pack/metricbeat/build/TEST-go-integration-tomcat.xml
[2020-07-28T11:56:28.100Z] runbld>>> No testsuite node found in /var/lib/jenkins/workspace/Beats_beats_PR-20241/src/github.com/elastic/beats/Metricbeat-x-pack/x-pack/metricbeat/build/TEST-go-integration-activemq.xml
[2020-07-28T11:56:28.361Z] runbld>>> No testsuite node found in /var/lib/jenkins/workspace/Beats_beats_PR-20241/src/github.com/elastic/beats/Metricbeat-OSS-Integration-tests/metricbeat/build/TEST-go-integration-graphite.xml
[2020-07-28T11:56:28.622Z] runbld>>> No testsuite node found in /var/lib/jenkins/workspace/Beats_beats_PR-20241/src/github.com/elastic/beats/Metricbeat-OSS-Integration-tests/metricbeat/build/TEST-go-integration-windows.xml
[2020-07-28T11:56:30.004Z] runbld>>> Test output logs contained: Errors: 0 Failures: 14 Tests: 11187 Skipped: 1346
[2020-07-28T11:56:30.264Z] runbld>>> Storing result
[2020-07-28T11:56:30.264Z] runbld>>> FAILURES: 14
[2020-07-28T11:56:32.896Z] runbld>>> Store result: updated {:total 2, :successful 2, :failed 0} 2
[2020-07-28T11:56:32.896Z] runbld>>> BUILD: https://c150076387b5421f9154dfbf536e5c60.us-west1.gcp.cloud.es.io:9243/build-1587637540455/t/20200728115623-B974B61E
[2020-07-28T11:56:32.896Z] runbld>>> Email notification disabled by environment variable.
[2020-07-28T11:56:32.896Z] runbld>>> Slack notification disabled by environment variable.
[2020-07-28T11:56:38.643Z] Running on Jenkins in /var/lib/jenkins/workspace/Beats_beats_PR-20241
[2020-07-28T11:56:38.772Z] [INFO] getVaultSecret: Getting secrets
[2020-07-28T11:56:38.862Z] Masking supported pattern matches of $VAULT_ADDR or $VAULT_ROLE_ID or $VAULT_SECRET_ID
[2020-07-28T11:56:39.697Z] + chmod 755 generate-build-data.sh
[2020-07-28T11:56:39.698Z] + ./generate-build-data.sh https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats/PR-20241/ https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats/PR-20241/runs/3 FAILURE 7329911
[2020-07-28T11:56:39.698Z] INFO: curl https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats/PR-20241/runs/3/steps/?limit=10000 -o steps-info.json
[2020-07-28T11:56:42.180Z] INFO: curl https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats/PR-20241/runs/3/tests/?status=FAILED -o tests-errors.json

kvch added a commit that referenced this pull request Jul 29, 2020
…0241) (#20266)

This PR disables running `setup --machine-learning` on its own. From now on `setup --machine-learning --dashboards` has to be specified to enable ML jobs.

ML jobs require an index template pattern in Kibana. If it is not configured, loading the jobs fails. However, loading this asset is done by the dashboards step of setup.

Loading index template patterns are too tightly coupled with Kibana and dashboards and it needs refactoring. As this code is way too complex and going to be removed soon, I opted for a workaround instead of a fix.

Closes #19964
Closes #12998
Closes #20022
(cherry picked from commit ca7ce29)
leweafan pushed a commit to leweafan/beats that referenced this pull request Apr 28, 2023
…astic#20241) (elastic#20266)

This PR disables running `setup --machine-learning` on its own. From now on `setup --machine-learning --dashboards` has to be specified to enable ML jobs.

ML jobs require an index template pattern in Kibana. If it is not configured, loading the jobs fails. However, loading this asset is done by the dashboards step of setup.

Loading index template patterns are too tightly coupled with Kibana and dashboards and it needs refactoring. As this code is way too complex and going to be removed soon, I opted for a workaround instead of a fix.

Closes elastic#19964
Closes elastic#12998
Closes elastic#20022
(cherry picked from commit 4ebf884)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Team:Services (Deprecated) Label for the former Integrations-Services team v7.9.0 [zube]: In Review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants