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

[Elastic Agent] Add basic protocol to control Elastic Agent. #20146

Merged
merged 9 commits into from
Jul 28, 2020

Conversation

blakerouse
Copy link
Contributor

What does this PR do?

Adds the protocol that Elastic Agent will expose between the CLI and daemon to control the running daemon.

Why is it important?

To provide a better UX, easy testing of re-exec and self-upgrading.

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

@elasticmachine
Copy link
Collaborator

Pinging @elastic/ingest-management (Team:Ingest Management)

@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 Jul 22, 2020
@elasticmachine
Copy link
Collaborator

elasticmachine commented Jul 22, 2020

💔 Build Failed

Pipeline View Test View Changes Artifacts preview

Expand to view the summary

Build stats

  • Build Cause: [Pull request #20146 updated]

  • Start Time: 2020-07-28T12:28:57.946+0000

  • Duration: 15 min 4 sec

Steps errors

Expand to view the steps failures

  • Name: Make check
    • Description: make check

    • Duration: 8 min 4 sec

    • Start Time: 2020-07-28T12:35:29.647+0000

    • log

Log output

Expand to view the last 100 lines of log output

[2020-07-28T12:43:39.990Z] Stage "Libbeat" skipped due to earlier failure(s)
[2020-07-28T12:43:39.991Z] Stage "Metricbeat x-pack" skipped due to earlier failure(s)
[2020-07-28T12:43:39.992Z] Stage "Packetbeat OSS" skipped due to earlier failure(s)
[2020-07-28T12:43:39.993Z] Stage "dockerlogbeat" skipped due to earlier failure(s)
[2020-07-28T12:43:39.994Z] Stage "Winlogbeat" skipped due to earlier failure(s)
[2020-07-28T12:43:39.995Z] Stage "Functionbeat" skipped due to earlier failure(s)
[2020-07-28T12:43:39.995Z] Stage "Journalbeat" skipped due to earlier failure(s)
[2020-07-28T12:43:39.996Z] Stage "Generators" skipped due to earlier failure(s)
[2020-07-28T12:43:40.503Z] Failed in branch Elastic Agent x-pack
[2020-07-28T12:43:40.504Z] Failed in branch Elastic Agent x-pack Windows
[2020-07-28T12:43:40.505Z] Failed in branch Elastic Agent Mac OS X
[2020-07-28T12:43:40.505Z] Failed in branch Filebeat oss
[2020-07-28T12:43:40.506Z] Failed in branch Filebeat x-pack
[2020-07-28T12:43:40.506Z] Failed in branch Filebeat Mac OS X
[2020-07-28T12:43:40.507Z] Failed in branch Filebeat x-pack Mac OS X
[2020-07-28T12:43:40.508Z] Failed in branch Filebeat Windows
[2020-07-28T12:43:40.508Z] Failed in branch Filebeat x-pack Windows
[2020-07-28T12:43:40.509Z] Failed in branch Auditbeat oss Linux
[2020-07-28T12:43:40.510Z] Failed in branch Auditbeat crosscompile
[2020-07-28T12:43:40.513Z] Failed in branch Auditbeat oss Mac OS X
[2020-07-28T12:43:40.514Z] Failed in branch Auditbeat oss Windows
[2020-07-28T12:43:40.515Z] Failed in branch Auditbeat x-pack
[2020-07-28T12:43:40.516Z] Failed in branch Auditbeat x-pack Mac OS X
[2020-07-28T12:43:40.517Z] Failed in branch Auditbeat x-pack Windows
[2020-07-28T12:43:40.517Z] Failed in branch Libbeat x-pack
[2020-07-28T12:43:40.518Z] Failed in branch Metricbeat OSS Unit tests
[2020-07-28T12:43:40.519Z] Failed in branch Metricbeat OSS Go Integration tests
[2020-07-28T12:43:40.519Z] Failed in branch Metricbeat OSS Python Integration tests
[2020-07-28T12:43:40.520Z] Failed in branch Metricbeat crosscompile
[2020-07-28T12:43:40.520Z] Failed in branch Metricbeat Mac OS X
[2020-07-28T12:43:40.521Z] Failed in branch Metricbeat x-pack Mac OS X
[2020-07-28T12:43:40.522Z] Failed in branch Metricbeat Windows
[2020-07-28T12:43:40.522Z] Failed in branch Metricbeat x-pack Windows
[2020-07-28T12:43:40.523Z] Failed in branch Winlogbeat Windows x-pack
[2020-07-28T12:43:40.523Z] Failed in branch Kubernetes
[2020-07-28T12:43:40.767Z] Stage "Heartbeat" skipped due to earlier failure(s)
[2020-07-28T12:43:40.769Z] Stage "Libbeat" skipped due to earlier failure(s)
[2020-07-28T12:43:40.770Z] Stage "Metricbeat x-pack" skipped due to earlier failure(s)
[2020-07-28T12:43:40.771Z] Stage "Packetbeat OSS" skipped due to earlier failure(s)
[2020-07-28T12:43:40.772Z] Stage "Winlogbeat" skipped due to earlier failure(s)
[2020-07-28T12:43:40.772Z] Stage "Functionbeat" skipped due to earlier failure(s)
[2020-07-28T12:43:40.774Z] Stage "Generators" skipped due to earlier failure(s)
[2020-07-28T12:43:40.811Z] Failed in branch dockerlogbeat
[2020-07-28T12:43:40.811Z] Failed in branch Journalbeat
[2020-07-28T12:43:41.020Z] Stage "Heartbeat" skipped due to earlier failure(s)
[2020-07-28T12:43:41.022Z] Stage "Libbeat" skipped due to earlier failure(s)
[2020-07-28T12:43:41.023Z] Stage "Packetbeat OSS" skipped due to earlier failure(s)
[2020-07-28T12:43:41.024Z] Stage "Functionbeat" skipped due to earlier failure(s)
[2020-07-28T12:43:41.025Z] Stage "Generators" skipped due to earlier failure(s)
[2020-07-28T12:43:41.061Z] Failed in branch Metricbeat x-pack
[2020-07-28T12:43:41.062Z] Failed in branch Winlogbeat
[2020-07-28T12:43:41.273Z] Failed in branch Heartbeat
[2020-07-28T12:43:41.274Z] Failed in branch Libbeat
[2020-07-28T12:43:41.275Z] Failed in branch Packetbeat OSS
[2020-07-28T12:43:41.275Z] Failed in branch Functionbeat
[2020-07-28T12:43:41.276Z] Stage "Generators" skipped due to earlier failure(s)
[2020-07-28T12:43:41.350Z] Failed in branch Generators
[2020-07-28T12:43:41.472Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20146/src/github.com/elastic/beats
[2020-07-28T12:43:41.775Z] + find . -type f -name TEST*.xml -path */build/* -delete
[2020-07-28T12:43:41.787Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20146/src/github.com/elastic/beats/Lint
[2020-07-28T12:43:42.150Z] + cat
[2020-07-28T12:43:42.150Z] + /usr/local/bin/runbld ./runbld-script
[2020-07-28T12:43:42.150Z] Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF8
[2020-07-28T12:43:48.733Z] runbld>>> runbld started
[2020-07-28T12:43:48.733Z] runbld>>> 1.6.12/f45d832f2ba0aa2722ab4ec1fda8ad140f027f8b
[2020-07-28T12:43:50.118Z] runbld>>> The following profiles matched the job 'Beats/beats/PR-20146' in order of occurrence in the config (last value wins).
[2020-07-28T12:43:51.503Z] runbld>>> Debug logging enabled.
[2020-07-28T12:43:51.503Z] runbld>>> Storing result
[2020-07-28T12:43:51.503Z] runbld>>> Store result: created {:total 2, :successful 2, :failed 0} 1
[2020-07-28T12:43:51.503Z] runbld>>> BUILD: https://c150076387b5421f9154dfbf536e5c60.us-west1.gcp.cloud.es.io:9243/build-1587637540455/t/20200728124351-183CCCF4
[2020-07-28T12:43:51.503Z] runbld>>> Adding system facts.
[2020-07-28T12:43:52.446Z] runbld>>> Adding vcs info for the latest commit:  525914da0f01b0db4778e80366594db962a60a9c
[2020-07-28T12:43:52.446Z] runbld>>> >>>>>>>>>>>> SCRIPT EXECUTION BEGIN >>>>>>>>>>>>
[2020-07-28T12:43:52.446Z] runbld>>> Adding /usr/lib/jvm/java-8-openjdk-amd64/bin to the path.
[2020-07-28T12:43:52.446Z] Processing JUnit reports with runbld...
[2020-07-28T12:43:52.446Z] + echo 'Processing JUnit reports with runbld...'
[2020-07-28T12:43:53.017Z] runbld>>> <<<<<<<<<<<< SCRIPT EXECUTION END <<<<<<<<<<<<
[2020-07-28T12:43:53.017Z] runbld>>> DURATION: 23ms
[2020-07-28T12:43:53.017Z] runbld>>> STDOUT: 40 bytes
[2020-07-28T12:43:53.017Z] runbld>>> STDERR: 49 bytes
[2020-07-28T12:43:53.017Z] runbld>>> WRAPPED PROCESS: SUCCESS (0)
[2020-07-28T12:43:53.017Z] runbld>>> Searching for build metadata in /var/lib/jenkins/workspace/Beats_beats_PR-20146/src/github.com/elastic/beats
[2020-07-28T12:43:53.956Z] runbld>>> Storing build metadata: 
[2020-07-28T12:43:53.956Z] runbld>>> Adding test report.
[2020-07-28T12:43:53.956Z] runbld>>> Searching for junit test output files with the pattern: TEST-.*\.xml$ in: /var/lib/jenkins/workspace/Beats_beats_PR-20146/src/github.com/elastic/beats
[2020-07-28T12:43:54.526Z] runbld>>> Found 0 test output files
[2020-07-28T12:43:54.526Z] runbld>>> Test output logs contained: Errors: 0 Failures: 0 Tests: 0 Skipped: 0
[2020-07-28T12:43:54.785Z] runbld>>> Storing result
[2020-07-28T12:43:55.044Z] runbld>>> Store result: updated {:total 2, :successful 2, :failed 0} 2
[2020-07-28T12:43:55.044Z] runbld>>> BUILD: https://c150076387b5421f9154dfbf536e5c60.us-west1.gcp.cloud.es.io:9243/build-1587637540455/t/20200728124351-183CCCF4
[2020-07-28T12:43:55.044Z] runbld>>> Email notification disabled by environment variable.
[2020-07-28T12:43:55.044Z] runbld>>> Slack notification disabled by environment variable.
[2020-07-28T12:44:00.933Z] Running on worker-395930 in /var/lib/jenkins/workspace/Beats_beats_PR-20146
[2020-07-28T12:44:01.177Z] [INFO] getVaultSecret: Getting secrets
[2020-07-28T12:44:01.358Z] Masking supported pattern matches of $VAULT_ADDR or $VAULT_ROLE_ID or $VAULT_SECRET_ID
[2020-07-28T12:44:03.863Z] + chmod 755 generate-build-data.sh
[2020-07-28T12:44:03.863Z] + ./generate-build-data.sh https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats/PR-20146/ https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats/PR-20146/runs/7 FAILURE 904457
[2020-07-28T12:44:03.863Z] INFO: curl https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats/PR-20146/runs/7/steps/?limit=10000 -o steps-info.json
[2020-07-28T12:44:04.585Z] INFO: curl https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats/PR-20146/runs/7/tests/?status=FAILED -o tests-errors.json
[2020-07-28T12:44:05.305Z] INFO: curl https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats/PR-20146/runs/7/log/ -o pipeline-log.txt

@blakerouse
Copy link
Contributor Author

jenkins run tests

Copy link
Contributor

@michalpristas michalpristas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just a small comments but overall it looks ok

DEGRADED = 3;
FAILED = 4;
STOPPING = 5;
UPGRADING = 6;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

related to that can we introduce status for ROLLBACK? which takes place in between UPGRADING and FAILED

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes will add rollback

message UpgradeRequest {
// (Optional) Version to upgrade to.
//
// If not provided Elastic Agent will auto discover the latest version in the same major
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this makes sense but i'm worried a bit about sealed env. while it initially might all work without even using default sourceURI as everything is packed. then on upgrade request without version and sourceURI it will fail.
i would be up for these to values being required and relaxing later when we have clear use cases. relaxing is not breaking other way around is though

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Being that CLI call to upgrade over the socket will return an UpgradeResponse we can place in the error message why the upgrade cannot be performed. Maybe it is we cannot discover the next version, or maybe we make the version required in some cases like when on the last minor of the current major.

@blakerouse blakerouse merged commit e9f8f17 into elastic:master Jul 28, 2020
@blakerouse blakerouse deleted the agent-control-proto branch July 28, 2020 14:12
blakerouse added a commit to blakerouse/beats that referenced this pull request Jul 28, 2020
…#20146)

* Add protocl to control Elastic Agent.

* Add more to version response.

* Fix CI with protoc.

* Improve protocol and try and fix CI.

* Fix proto.

* Remove CI changes.

* Update go.mod.

* Add status ROLLBACK.

* Run mage fmt.

(cherry picked from commit e9f8f17)
@elasticmachine
Copy link
Collaborator

💔 Tests Failed

Pipeline View Test View Changes Artifacts preview

Expand to view the summary

Build stats

  • Build Cause: [Pull request #20146 updated]

  • Start Time: 2020-07-28T12:52:36.276+0000

  • Duration: 123 min 56 sec

Test stats 🧪

Test Results
Failed 17
Passed 17631
Skipped 1903
Total 19551

Test errors

Expand to view the tests failures

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

    • Age: 1
    • Duration: 0.88
    • Error Details: False is not true : fd not found in any process events
  • Name: Build and Test / Libbeat / Libbeat oss / TestDockerStart – docker

    • Age: 1
    • Duration: 11.91
    • Error Details: Failed
  • Name: Build and Test / Libbeat / Libbeat oss / TestReplaceClientWorker – pipeline

    • Age: 1
    • Duration: 21.26
    • Error Details: Failed
  • Name: Build and Test / Libbeat / Libbeat oss / TestReplaceClientWorker/network_client – pipeline

    • Age: 1
    • Duration: 20.12
    • Error Details: Failed
  • Name: Build and Test / Auditbeat x-pack / test_connected_udp_ipv4 – test_system_socket.Test

    • Age: 1
    • Duration: 60.094
    • 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.085
    • 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.091
    • 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.085
    • 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.082
    • 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.088
    • 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.086
    • 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.085
    • 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.084
    • 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.083
    • 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.085
    • 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.08
    • 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.088
    • 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: 20 min 30 sec

    • Start Time: 2020-07-28T13:18:31.222+0000

    • log

  • Name: Mage build test

    • Description: mage build test

    • Duration: 19 min 43 sec

    • Start Time: 2020-07-28T13:18:33.513+0000

    • log

  • Name: Mage build unitTest

    • Description: mage build unitTest

    • Duration: 6 min 50 sec

    • Start Time: 2020-07-28T13:18:33.311+0000

    • log

Log output

Expand to view the last 100 lines of log output

[2020-07-28T14:25:17.407Z] It requires Docker daemon to be installed and running
[2020-07-28T14:25:54.425Z] Still waiting to schedule task
[2020-07-28T14:25:54.425Z] Waiting for next available executor on ‘macosx’
[2020-07-28T14:54:58.962Z] Cancelling nested steps due to timeout
[2020-07-28T14:54:59.106Z] Failed in branch Generators
[2020-07-28T14:54:59.238Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20146/src/github.com/elastic/beats
[2020-07-28T14:54:59.563Z] + find . -type f -name TEST*.xml -path */build/* -delete
[2020-07-28T14:54:59.577Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20146/src/github.com/elastic/beats/Lint
[2020-07-28T14:54:59.663Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20146/src/github.com/elastic/beats/Elastic-Agent-x-pack
[2020-07-28T14:54:59.746Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20146/src/github.com/elastic/beats/Winlogbeat-oss
[2020-07-28T14:54:59.829Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20146/src/github.com/elastic/beats/Elastic-Agent-Mac-OS-X
[2020-07-28T14:54:59.913Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20146/src/github.com/elastic/beats/Dockerlogbeat
[2020-07-28T14:54:59.997Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20146/src/github.com/elastic/beats/Auditbeat-crosscompile
[2020-07-28T14:55:00.085Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20146/src/github.com/elastic/beats/Journalbeat-oss
[2020-07-28T14:55:00.176Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20146/src/github.com/elastic/beats/Functionbeat-x-pack
[2020-07-28T14:55:00.263Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20146/src/github.com/elastic/beats/Generators-Metricbeat-Linux
[2020-07-28T14:55:00.345Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20146/src/github.com/elastic/beats/Packetbeat-Linux
[2020-07-28T14:55:00.430Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20146/src/github.com/elastic/beats/Elastic-Agent-x-pack-Windows
[2020-07-28T14:55:00.549Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20146/src/github.com/elastic/beats/Metricbeat-OSS-Unit-tests
[2020-07-28T14:55:00.639Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20146/src/github.com/elastic/beats/Filebeat-x-pack-Mac-OS-X
[2020-07-28T14:55:00.730Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20146/src/github.com/elastic/beats/Auditbeat-x-pack-Mac-OS-X
[2020-07-28T14:55:00.809Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20146/src/github.com/elastic/beats/Heartbeat-oss
[2020-07-28T14:55:00.884Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20146/src/github.com/elastic/beats/Auditbeat-oss-Windows
[2020-07-28T14:55:00.960Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20146/src/github.com/elastic/beats/Filebeat-Mac-OS-X
[2020-07-28T14:55:01.035Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20146/src/github.com/elastic/beats/Auditbeat-x-pack-Windows
[2020-07-28T14:55:01.112Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20146/src/github.com/elastic/beats/Metricbeat-Mac-OS-X
[2020-07-28T14:55:01.188Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20146/src/github.com/elastic/beats/Winlogbeat-Windows-x-pack
[2020-07-28T14:55:01.272Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20146/src/github.com/elastic/beats/Auditbeat-oss-Linux
[2020-07-28T14:55:01.357Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20146/src/github.com/elastic/beats/Libbeat-x-pack
[2020-07-28T14:55:01.439Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20146/src/github.com/elastic/beats/Filebeat-x-pack-Windows
[2020-07-28T14:55:01.530Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20146/src/github.com/elastic/beats/Metricbeat-crosscompile
[2020-07-28T14:55:01.618Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20146/src/github.com/elastic/beats/Filebeat-Windows
[2020-07-28T14:55:01.695Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20146/src/github.com/elastic/beats/Auditbeat-oss-Mac-OS-X
[2020-07-28T14:55:01.773Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20146/src/github.com/elastic/beats/Heartbeat-Mac-OS-X
[2020-07-28T14:55:01.851Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20146/src/github.com/elastic/beats/Functionbeat-Mac-OS-X-x-pack
[2020-07-28T14:55:01.929Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20146/src/github.com/elastic/beats/Winlogbeat-Windows
[2020-07-28T14:55:02.005Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20146/src/github.com/elastic/beats/Packetbeat-Mac-OS-X
[2020-07-28T14:55:02.081Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20146/src/github.com/elastic/beats/Metricbeat-x-pack-Windows
[2020-07-28T14:55:02.159Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20146/src/github.com/elastic/beats/Metricbeat-Windows
[2020-07-28T14:55:02.238Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20146/src/github.com/elastic/beats/Metricbeat-x-pack-Mac-OS-X
[2020-07-28T14:55:02.315Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20146/src/github.com/elastic/beats/Libbeat-oss
[2020-07-28T14:55:02.402Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20146/src/github.com/elastic/beats/Auditbeat-x-pack
[2020-07-28T14:55:02.482Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20146/src/github.com/elastic/beats/Generators-Beat-Linux
[2020-07-28T14:55:02.570Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20146/src/github.com/elastic/beats/Heartbeat-Windows
[2020-07-28T14:55:02.657Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20146/src/github.com/elastic/beats/Filebeat-x-pack
[2020-07-28T14:55:02.744Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20146/src/github.com/elastic/beats/Functionbeat-Windows
[2020-07-28T14:55:02.825Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20146/src/github.com/elastic/beats/Filebeat-oss
[2020-07-28T14:55:02.905Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20146/src/github.com/elastic/beats/Packetbeat-Windows
[2020-07-28T14:55:02.985Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20146/src/github.com/elastic/beats/Metricbeat-OSS-Go-Integration-tests
[2020-07-28T14:55:03.077Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20146/src/github.com/elastic/beats/Metricbeat-OSS-Python-Integration-tests
[2020-07-28T14:55:03.156Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20146/src/github.com/elastic/beats/Metricbeat-x-pack
[2020-07-28T14:55:03.245Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20146/src/github.com/elastic/beats/Generators-Metricbeat-Mac-OS-X
[2020-07-28T14:55:03.607Z] + cat
[2020-07-28T14:55:03.608Z] + /usr/local/bin/runbld ./runbld-script
[2020-07-28T14:55:03.608Z] Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF8
[2020-07-28T14:55:11.776Z] runbld>>> runbld started
[2020-07-28T14:55:11.776Z] runbld>>> 1.6.12/f45d832f2ba0aa2722ab4ec1fda8ad140f027f8b
[2020-07-28T14:55:13.691Z] runbld>>> The following profiles matched the job 'Beats/beats/PR-20146' in order of occurrence in the config (last value wins).
[2020-07-28T14:55:15.076Z] runbld>>> Debug logging enabled.
[2020-07-28T14:55:15.076Z] runbld>>> Storing result
[2020-07-28T14:55:15.339Z] runbld>>> Store result: created {:total 2, :successful 2, :failed 0} 1
[2020-07-28T14:55:15.339Z] runbld>>> BUILD: https://c150076387b5421f9154dfbf536e5c60.us-west1.gcp.cloud.es.io:9243/build-1587637540455/t/20200728145514-CC8C5EEB
[2020-07-28T14:55:15.339Z] runbld>>> Adding system facts.
[2020-07-28T14:55:16.768Z] runbld>>> Adding vcs info for the latest commit:  eeb001211a8492e908e010d234b12c4953d5836a
[2020-07-28T14:55:16.768Z] runbld>>> >>>>>>>>>>>> SCRIPT EXECUTION BEGIN >>>>>>>>>>>>
[2020-07-28T14:55:16.768Z] runbld>>> Adding /usr/lib/jvm/java-8-openjdk-amd64/bin to the path.
[2020-07-28T14:55:16.768Z] Processing JUnit reports with runbld...
[2020-07-28T14:55:16.768Z] + echo 'Processing JUnit reports with runbld...'
[2020-07-28T14:55:17.028Z] runbld>>> <<<<<<<<<<<< SCRIPT EXECUTION END <<<<<<<<<<<<
[2020-07-28T14:55:17.028Z] runbld>>> DURATION: 39ms
[2020-07-28T14:55:17.028Z] runbld>>> STDOUT: 40 bytes
[2020-07-28T14:55:17.028Z] runbld>>> STDERR: 49 bytes
[2020-07-28T14:55:17.028Z] runbld>>> WRAPPED PROCESS: SUCCESS (0)
[2020-07-28T14:55:17.028Z] runbld>>> Searching for build metadata in /var/lib/jenkins/workspace/Beats_beats_PR-20146/src/github.com/elastic/beats
[2020-07-28T14:55:18.425Z] runbld>>> Storing build metadata: 
[2020-07-28T14:55:18.425Z] runbld>>> Adding test report.
[2020-07-28T14:55:18.425Z] runbld>>> Searching for junit test output files with the pattern: TEST-.*\.xml$ in: /var/lib/jenkins/workspace/Beats_beats_PR-20146/src/github.com/elastic/beats
[2020-07-28T14:55:18.995Z] runbld>>> Found 136 test output files
[2020-07-28T14:55:20.383Z] runbld>>> No testsuite node found in /var/lib/jenkins/workspace/Beats_beats_PR-20146/src/github.com/elastic/beats/Metricbeat-x-pack/x-pack/metricbeat/build/TEST-go-integration-openmetrics.xml
[2020-07-28T14:55:20.383Z] runbld>>> No testsuite node found in /var/lib/jenkins/workspace/Beats_beats_PR-20146/src/github.com/elastic/beats/Metricbeat-x-pack/x-pack/metricbeat/build/TEST-go-integration-iis.xml
[2020-07-28T14:55:20.383Z] runbld>>> No testsuite node found in /var/lib/jenkins/workspace/Beats_beats_PR-20146/src/github.com/elastic/beats/Metricbeat-x-pack/x-pack/metricbeat/build/TEST-go-integration-istio.xml
[2020-07-28T14:55:20.383Z] runbld>>> No testsuite node found in /var/lib/jenkins/workspace/Beats_beats_PR-20146/src/github.com/elastic/beats/Metricbeat-x-pack/x-pack/metricbeat/build/TEST-go-integration-tomcat.xml
[2020-07-28T14:55:20.383Z] runbld>>> No testsuite node found in /var/lib/jenkins/workspace/Beats_beats_PR-20146/src/github.com/elastic/beats/Metricbeat-x-pack/x-pack/metricbeat/build/TEST-go-integration-activemq.xml
[2020-07-28T14:55:20.383Z] runbld>>> No testsuite node found in /var/lib/jenkins/workspace/Beats_beats_PR-20146/src/github.com/elastic/beats/Metricbeat-OSS-Go-Integration-tests/metricbeat/build/TEST-go-integration-graphite.xml
[2020-07-28T14:55:20.383Z] runbld>>> No testsuite node found in /var/lib/jenkins/workspace/Beats_beats_PR-20146/src/github.com/elastic/beats/Metricbeat-OSS-Go-Integration-tests/metricbeat/build/TEST-go-integration-windows.xml
[2020-07-28T14:55:22.947Z] runbld>>> Test output logs contained: Errors: 0 Failures: 17 Tests: 19401 Skipped: 1633
[2020-07-28T14:55:22.947Z] runbld>>> Storing result
[2020-07-28T14:55:22.947Z] runbld>>> FAILURES: 17
[2020-07-28T14:55:26.242Z] runbld>>> Store result: updated {:total 2, :successful 2, :failed 0} 2
[2020-07-28T14:55:26.242Z] runbld>>> BUILD: https://c150076387b5421f9154dfbf536e5c60.us-west1.gcp.cloud.es.io:9243/build-1587637540455/t/20200728145514-CC8C5EEB
[2020-07-28T14:55:26.242Z] runbld>>> Email notification disabled by environment variable.
[2020-07-28T14:55:26.242Z] runbld>>> Slack notification disabled by environment variable.
[2020-07-28T14:55:31.801Z] Running on Jenkins in /var/lib/jenkins/workspace/Beats_beats_PR-20146
[2020-07-28T14:55:31.899Z] [INFO] getVaultSecret: Getting secrets
[2020-07-28T14:55:31.973Z] Masking supported pattern matches of $VAULT_ADDR or $VAULT_ROLE_ID or $VAULT_SECRET_ID
[2020-07-28T14:55:32.748Z] + chmod 755 generate-build-data.sh
[2020-07-28T14:55:32.748Z] + ./generate-build-data.sh https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats/PR-20146/ https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats/PR-20146/runs/8 FAILURE 7376213
[2020-07-28T14:55:32.748Z] INFO: curl https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats/PR-20146/runs/8/steps/?limit=10000 -o steps-info.json
[2020-07-28T14:55:35.231Z] INFO: curl https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats/PR-20146/runs/8/tests/?status=FAILED -o tests-errors.json
[2020-07-28T14:55:37.093Z] INFO: curl https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats/PR-20146/runs/8/log/ -o pipeline-log.txt

v1v added a commit to v1v/beats that referenced this pull request Jul 30, 2020
…ne-2.0

* upstream/master: (29 commits)
  Add an explicit system test for processes on unix systems (elastic#20320)
  [Autodiscovery] Ignore ErrInputNotFinished errors in autodiscover config checks (elastic#20305)
  [CI] Update README.md with CI references (elastic#20316)
  Add ECK doc links to Heartbeat docs (elastic#20284)
  [Filebeat] Add export tests to x-pack/filebeat (elastic#20156)
  feat(ci): support building docker images for PRs (elastic#20323)
  Update system tests dependency (elastic#20287)
  [Libbeat] Log debug message if the Kibana dashboard can not be imported from the archive (elastic#12211) (elastic#20150)
  [Filebeat][Gsuite] Transform all dates to timestamp with processor (elastic#20308)
  Infer types in Prometheus remote_write (elastic#19944)
  Remove unnecessary restarts of metricsets while using Node autodiscover (elastic#19974)
  docs: update changelog on master branch (elastic#20259)
  feat(ci): support storing artifacts for PRs in separate dirs (elastic#20282)
  [CI] Change upstream reference (elastic#20296)
  [Filebeat] Updates to Suricata module (elastic#20220)
  [docs] Fix Windows download link for agent (elastic#20258)
  [docs] Rename release highlights to what's new (elastic#20255)
  fix: update the display name of the multibranch job (elastic#20265)
  [Elastic Agent] Add basic protocol to control Elastic Agent. (elastic#20146)
  Cisco ASA: Fix message 106100 (elastic#20245)
  ...
blakerouse added a commit that referenced this pull request Aug 3, 2020
…#20278)

* Add protocl to control Elastic Agent.

* Add more to version response.

* Fix CI with protoc.

* Improve protocol and try and fix CI.

* Fix proto.

* Remove CI changes.

* Update go.mod.

* Add status ROLLBACK.

* Run mage fmt.

(cherry picked from commit e9f8f17)
melchiormoulin pushed a commit to melchiormoulin/beats that referenced this pull request Oct 14, 2020
…#20146)

* Add protocl to control Elastic Agent.

* Add more to version response.

* Fix CI with protoc.

* Improve protocol and try and fix CI.

* Fix proto.

* Remove CI changes.

* Update go.mod.

* Add status ROLLBACK.

* Run mage fmt.
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.

3 participants