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 #20052 to 7.x: Update to go-libaudit v2.0.1 #20328

Merged
merged 1 commit into from
Jul 30, 2020

Conversation

andrewkroh
Copy link
Member

@andrewkroh andrewkroh commented Jul 29, 2020

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

What does this PR do?

Fixes auditd module syscall table for ppc64 and ppc64le. elastic/go-libaudit#72

Why is it important?

This should enable auditd rules to work on ppc64 and ppc64le.

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.

@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 Jul 29, 2020
Fixes auditd module syscall table for ppc64 and ppc64le. elastic/go-libaudit#72

(cherry picked from commit 401b4ea)
@elasticmachine
Copy link
Collaborator

💔 Tests Failed

Pipeline View Test View Changes Artifacts preview

Expand to view the summary

Build stats

  • Build Cause: [Pull request #20328 opened]

  • Start Time: 2020-07-29T19:30:42.654+0000

  • Duration: 85 min 47 sec

Test stats 🧪

Test Results
Failed 17
Passed 17628
Skipped 1831
Total 19476

Test errors

Expand to view the tests failures

  • Name: Build and Test / Libbeat / Libbeat oss / TestDockerStart – docker

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

    • Age: 1
    • Duration: 70.78
    • Error Details: Failed
  • Name: Build and Test / Libbeat / Libbeat oss / TestOutputReload/client – pipeline

    • Age: 1
    • Duration: 36.23
    • Error Details: Failed
  • Name: Build and Test / Metricbeat OSS Unit tests / test_process – test_system.Test

    • Age: 1
    • Duration: 0.774
    • 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.031
    • 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.036
    • 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.035
    • 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.041
    • 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.042
    • 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.044
    • 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.071
    • 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.063
    • 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.057
    • 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.066
    • 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.069
    • 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.061
    • 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.041
    • 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 19 sec

    • Start Time: 2020-07-29T19:56:20.077+0000

    • log

  • Name: Mage build test

    • Description: mage build test

    • Duration: 23 min 44 sec

    • Start Time: 2020-07-29T19:56:18.560+0000

    • log

  • Name: Mage build unitTest

    • Description: mage build unitTest

    • Duration: 9 min 7 sec

    • Start Time: 2020-07-29T19:56:22.830+0000

    • log

Log output

Expand to view the last 100 lines of log output

[2020-07-29T20:51:59.626Z]  Built:        Thu Apr 26 07:13:02 2018
[2020-07-29T20:51:59.626Z]  OS/Arch:      darwin/amd64
[2020-07-29T20:51:59.626Z]  Experimental: false
[2020-07-29T20:51:59.626Z]  Orchestrator: swarm
[2020-07-29T20:51:59.626Z] Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
[2020-07-29T20:51:59.626Z] It requires Docker daemon to be installed and running
[2020-07-29T20:54:50.115Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20328/src/github.com/elastic/beats
[2020-07-29T20:54:50.465Z] + find . -type f -name TEST*.xml -path */build/* -delete
[2020-07-29T20:54:50.489Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20328/src/github.com/elastic/beats/Lint
[2020-07-29T20:54:50.651Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20328/src/github.com/elastic/beats/Elastic-Agent-Mac-OS-X
[2020-07-29T20:54:50.810Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20328/src/github.com/elastic/beats/Winlogbeat-oss
[2020-07-29T20:54:50.970Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20328/src/github.com/elastic/beats/Elastic-Agent-x-pack
[2020-07-29T20:54:51.132Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20328/src/github.com/elastic/beats/Auditbeat-crosscompile
[2020-07-29T20:54:51.292Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20328/src/github.com/elastic/beats/Journalbeat-oss
[2020-07-29T20:54:51.458Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20328/src/github.com/elastic/beats/Generators-Metricbeat-Linux
[2020-07-29T20:54:51.621Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20328/src/github.com/elastic/beats/Dockerlogbeat
[2020-07-29T20:54:51.781Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20328/src/github.com/elastic/beats/Auditbeat-oss-Mac-OS-X
[2020-07-29T20:54:52.004Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20328/src/github.com/elastic/beats/Functionbeat-x-pack
[2020-07-29T20:54:52.163Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20328/src/github.com/elastic/beats/Filebeat-x-pack-Mac-OS-X
[2020-07-29T20:54:52.323Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20328/src/github.com/elastic/beats/Elastic-Agent-x-pack-Windows
[2020-07-29T20:54:52.482Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20328/src/github.com/elastic/beats/Filebeat-Mac-OS-X
[2020-07-29T20:54:52.638Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20328/src/github.com/elastic/beats/Packetbeat-Linux
[2020-07-29T20:54:52.792Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20328/src/github.com/elastic/beats/Auditbeat-x-pack-Mac-OS-X
[2020-07-29T20:54:52.955Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20328/src/github.com/elastic/beats/Metricbeat-OSS-Unit-tests
[2020-07-29T20:54:53.115Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20328/src/github.com/elastic/beats/Metricbeat-Mac-OS-X
[2020-07-29T20:54:53.270Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20328/src/github.com/elastic/beats/Heartbeat-oss
[2020-07-29T20:54:53.427Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20328/src/github.com/elastic/beats/Auditbeat-oss-Windows
[2020-07-29T20:54:53.584Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20328/src/github.com/elastic/beats/Metricbeat-crosscompile
[2020-07-29T20:54:53.738Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20328/src/github.com/elastic/beats/Auditbeat-x-pack-Windows
[2020-07-29T20:54:53.895Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20328/src/github.com/elastic/beats/Winlogbeat-Windows-x-pack
[2020-07-29T20:54:54.058Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20328/src/github.com/elastic/beats/Auditbeat-oss-Linux
[2020-07-29T20:54:54.219Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20328/src/github.com/elastic/beats/Filebeat-Windows
[2020-07-29T20:54:54.381Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20328/src/github.com/elastic/beats/Heartbeat-Mac-OS-X
[2020-07-29T20:54:54.542Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20328/src/github.com/elastic/beats/Filebeat-x-pack-Windows
[2020-07-29T20:54:54.699Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20328/src/github.com/elastic/beats/Packetbeat-Mac-OS-X
[2020-07-29T20:54:54.860Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20328/src/github.com/elastic/beats/Libbeat-x-pack
[2020-07-29T20:54:55.022Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20328/src/github.com/elastic/beats/Functionbeat-Mac-OS-X-x-pack
[2020-07-29T20:54:55.182Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20328/src/github.com/elastic/beats/Winlogbeat-Windows
[2020-07-29T20:54:55.341Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20328/src/github.com/elastic/beats/Metricbeat-x-pack-Windows
[2020-07-29T20:54:55.500Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20328/src/github.com/elastic/beats/Metricbeat-Windows
[2020-07-29T20:54:55.658Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20328/src/github.com/elastic/beats/Generators-Beat-Linux
[2020-07-29T20:54:55.816Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20328/src/github.com/elastic/beats/Auditbeat-x-pack
[2020-07-29T20:54:55.977Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20328/src/github.com/elastic/beats/Libbeat-oss
[2020-07-29T20:54:56.137Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20328/src/github.com/elastic/beats/Heartbeat-Windows
[2020-07-29T20:54:56.410Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20328/src/github.com/elastic/beats/Generators-Metricbeat-Mac-OS-X
[2020-07-29T20:54:56.777Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20328/src/github.com/elastic/beats/Filebeat-oss
[2020-07-29T20:54:57.143Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20328/src/github.com/elastic/beats/Functionbeat-Windows
[2020-07-29T20:54:57.514Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20328/src/github.com/elastic/beats/Packetbeat-Windows
[2020-07-29T20:54:57.826Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20328/src/github.com/elastic/beats/Filebeat-x-pack
[2020-07-29T20:54:58.171Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20328/src/github.com/elastic/beats/Metricbeat-OSS-Python-Integration-tests
[2020-07-29T20:54:58.516Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20328/src/github.com/elastic/beats/Metricbeat-OSS-Go-Integration-tests
[2020-07-29T20:54:58.856Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20328/src/github.com/elastic/beats/Generators-Beat-Mac-OS-X
[2020-07-29T20:54:59.186Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20328/src/github.com/elastic/beats/Metricbeat-x-pack
[2020-07-29T20:54:59.504Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20328/src/github.com/elastic/beats/Metricbeat-x-pack-Mac-OS-X
[2020-07-29T20:55:00.093Z] + cat
[2020-07-29T20:55:00.093Z] + /usr/local/bin/runbld ./runbld-script
[2020-07-29T20:55:00.093Z] Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF8
[2020-07-29T20:55:08.264Z] runbld>>> runbld started
[2020-07-29T20:55:08.264Z] runbld>>> 1.6.12/f45d832f2ba0aa2722ab4ec1fda8ad140f027f8b
[2020-07-29T20:55:10.187Z] runbld>>> The following profiles matched the job 'Beats/beats/PR-20328' in order of occurrence in the config (last value wins).
[2020-07-29T20:55:11.578Z] runbld>>> Debug logging enabled.
[2020-07-29T20:55:11.578Z] runbld>>> Storing result
[2020-07-29T20:55:11.578Z] runbld>>> Store result: created {:total 2, :successful 2, :failed 0} 1
[2020-07-29T20:55:11.578Z] runbld>>> BUILD: https://c150076387b5421f9154dfbf536e5c60.us-west1.gcp.cloud.es.io:9243/build-1587637540455/t/20200729205511-DBDE1753
[2020-07-29T20:55:11.578Z] runbld>>> Adding system facts.
[2020-07-29T20:55:12.978Z] runbld>>> Adding vcs info for the latest commit:  ca72c0be2d4d154dc03bdab215ab265603c5b4e1
[2020-07-29T20:55:12.978Z] runbld>>> >>>>>>>>>>>> SCRIPT EXECUTION BEGIN >>>>>>>>>>>>
[2020-07-29T20:55:12.978Z] runbld>>> Adding /usr/lib/jvm/java-8-openjdk-amd64/bin to the path.
[2020-07-29T20:55:12.978Z] Processing JUnit reports with runbld...
[2020-07-29T20:55:12.978Z] + echo 'Processing JUnit reports with runbld...'
[2020-07-29T20:55:13.550Z] runbld>>> <<<<<<<<<<<< SCRIPT EXECUTION END <<<<<<<<<<<<
[2020-07-29T20:55:13.550Z] runbld>>> DURATION: 37ms
[2020-07-29T20:55:13.550Z] runbld>>> STDOUT: 40 bytes
[2020-07-29T20:55:13.550Z] runbld>>> STDERR: 49 bytes
[2020-07-29T20:55:13.550Z] runbld>>> WRAPPED PROCESS: SUCCESS (0)
[2020-07-29T20:55:13.550Z] runbld>>> Searching for build metadata in /var/lib/jenkins/workspace/Beats_beats_PR-20328/src/github.com/elastic/beats
[2020-07-29T20:55:14.494Z] runbld>>> Storing build metadata: 
[2020-07-29T20:55:14.494Z] runbld>>> Adding test report.
[2020-07-29T20:55:14.494Z] runbld>>> Searching for junit test output files with the pattern: TEST-.*\.xml$ in: /var/lib/jenkins/workspace/Beats_beats_PR-20328/src/github.com/elastic/beats
[2020-07-29T20:55:15.438Z] runbld>>> Found 135 test output files
[2020-07-29T20:55:16.826Z] runbld>>> No testsuite node found in /var/lib/jenkins/workspace/Beats_beats_PR-20328/src/github.com/elastic/beats/Metricbeat-x-pack/x-pack/metricbeat/build/TEST-go-integration-openmetrics.xml
[2020-07-29T20:55:16.826Z] runbld>>> No testsuite node found in /var/lib/jenkins/workspace/Beats_beats_PR-20328/src/github.com/elastic/beats/Metricbeat-x-pack/x-pack/metricbeat/build/TEST-go-integration-iis.xml
[2020-07-29T20:55:16.826Z] runbld>>> No testsuite node found in /var/lib/jenkins/workspace/Beats_beats_PR-20328/src/github.com/elastic/beats/Metricbeat-x-pack/x-pack/metricbeat/build/TEST-go-integration-istio.xml
[2020-07-29T20:55:16.827Z] runbld>>> No testsuite node found in /var/lib/jenkins/workspace/Beats_beats_PR-20328/src/github.com/elastic/beats/Metricbeat-x-pack/x-pack/metricbeat/build/TEST-go-integration-tomcat.xml
[2020-07-29T20:55:16.827Z] runbld>>> No testsuite node found in /var/lib/jenkins/workspace/Beats_beats_PR-20328/src/github.com/elastic/beats/Metricbeat-x-pack/x-pack/metricbeat/build/TEST-go-integration-activemq.xml
[2020-07-29T20:55:16.827Z] runbld>>> No testsuite node found in /var/lib/jenkins/workspace/Beats_beats_PR-20328/src/github.com/elastic/beats/Metricbeat-OSS-Go-Integration-tests/metricbeat/build/TEST-go-integration-graphite.xml
[2020-07-29T20:55:16.827Z] runbld>>> No testsuite node found in /var/lib/jenkins/workspace/Beats_beats_PR-20328/src/github.com/elastic/beats/Metricbeat-OSS-Go-Integration-tests/metricbeat/build/TEST-go-integration-windows.xml
[2020-07-29T20:55:19.376Z] runbld>>> Test output logs contained: Errors: 0 Failures: 17 Tests: 19330 Skipped: 1554
[2020-07-29T20:55:19.376Z] runbld>>> Storing result
[2020-07-29T20:55:19.376Z] runbld>>> FAILURES: 17
[2020-07-29T20:55:22.680Z] runbld>>> Store result: updated {:total 2, :successful 2, :failed 0} 2
[2020-07-29T20:55:22.680Z] runbld>>> BUILD: https://c150076387b5421f9154dfbf536e5c60.us-west1.gcp.cloud.es.io:9243/build-1587637540455/t/20200729205511-DBDE1753
[2020-07-29T20:55:22.680Z] runbld>>> Email notification disabled by environment variable.
[2020-07-29T20:55:22.681Z] runbld>>> Slack notification disabled by environment variable.
[2020-07-29T20:55:28.778Z] Running on Jenkins in /var/lib/jenkins/workspace/Beats_beats_PR-20328
[2020-07-29T20:55:29.079Z] [INFO] getVaultSecret: Getting secrets
[2020-07-29T20:55:29.157Z] Masking supported pattern matches of $VAULT_ADDR or $VAULT_ROLE_ID or $VAULT_SECRET_ID
[2020-07-29T20:55:30.231Z] + chmod 755 generate-build-data.sh
[2020-07-29T20:55:30.231Z] + ./generate-build-data.sh https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats/PR-20328/ https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats/PR-20328/runs/1 FAILURE 5087305
[2020-07-29T20:55:30.231Z] INFO: curl https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats/PR-20328/runs/1/steps/?limit=10000 -o steps-info.json

@andrewkroh andrewkroh merged commit 8ceda3f into elastic:7.x Jul 30, 2020
@zube zube bot removed the [zube]: Done label Oct 29, 2020
@andrewkroh andrewkroh deleted the backport_20052_7.x branch January 14, 2022 14:08
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