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

Fix source.address not being set for nginx ingress_controller #18507

Closed
wants to merge 1 commit into from

Conversation

chendo
Copy link
Contributor

@chendo chendo commented May 14, 2020

Fixes source.address not being set on the nginx ingress_controller fileset.

This is referencing a variable that doesn't exist, presumably copied from the access pipeline definition.

PS. This is a one word change, happy for a maintainer just to make the change for me to simplify workflow.

What does this PR do?

This PR fixes the reference to the correct field for ingress_controller.

Why is it important?

Source IP is not being populated correctly, thus all the geolocation stuff won't work.

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.

Author's Checklist

  • [ ]

How to test this PR locally

Related issues

Use cases

Screenshots

Logs

This is referencing a variable that doesn't exist, presumably copied from the access pipeline definition.
@elasticmachine
Copy link
Collaborator

Since this is a community submitted pull request, a Jenkins build has not been kicked off automatically. Can an Elastic organization member please verify the contents of this patch and then kick off a build manually?

1 similar comment
@elasticmachine
Copy link
Collaborator

Since this is a community submitted pull request, a Jenkins build has not been kicked off automatically. Can an Elastic organization member please verify the contents of this patch and then kick off a build manually?

@botelastic botelastic bot added the needs_team Indicates that the issue/PR needs a Team:* label label May 14, 2020
@cla-checker-service
Copy link

cla-checker-service bot commented May 14, 2020

💚 CLA has been signed

@chendo chendo changed the title Fix source.address not being set for nginx Fix source.address not being set for nginx ingress_controller May 14, 2020
@elasticmachine
Copy link
Collaborator

elasticmachine commented May 14, 2020

❕ Build Aborted

The PR is not allowed to run in the CI yet

Pipeline View Test View Changes Artifacts preview

Expand to view the summary

Build stats

Steps errors

Expand to view the steps failures

  • Name: Error signal
    • Description: githubPrCheckApproved: The PR is not allowed to run in the CI yet. (Only users with write permission

    • Result: FAILURE

    • Duration: 0 min 0 sec

    • Start Time: 2020-05-14T10:02:22.211+0000

    • log

Log output

Expand to view the last 100 lines of log output

[2020-05-14T10:02:16.474Z]  * [new tag]         v7.6.2     -> v7.6.2
[2020-05-14T10:02:16.474Z]  * [new tag]         v7.7.0     -> v7.7.0
[2020-05-14T10:02:16.474Z]  * [new tag]         v5.0.0-alpha5 -> v5.0.0-alpha5
[2020-05-14T10:02:17.880Z] + git rev-parse HEAD
[2020-05-14T10:02:18.515Z] + git rev-parse HEAD
[2020-05-14T10:02:18.961Z] + git rev-parse origin/pr/18507
[2020-05-14T10:02:19.157Z] [INFO] githubEnv: Found Git Build Cause: pr
[2020-05-14T10:02:19.883Z] Masking supported pattern matches of $GITHUB_TOKEN
[2020-05-14T10:02:21.429Z] [WARN] githubApiCall: The REST API call https://api.github.com/repos/elastic/beats/pulls/18507/reviews return 0 elements
[2020-05-14T10:02:21.568Z] [INFO] githubPrCheckApproved: Title: Fix source.address not being set for nginx ingress_controller - User: chendo - Author Association: FIRST_TIME_CONTRIBUTOR
[2020-05-14T10:02:22.215Z] ERROR: githubPrCheckApproved: The PR is not allowed to run in the CI yet
[2020-05-14T10:02:22.215Z] ERROR: githubPrCheckApproved: The PR is not allowed to run in the CI yet. (Only users with write permissions can do so.)
[2020-05-14T10:02:22.338Z] [INFO] Let's stop build #2. The PR is not allowed to run in the CI yet
[2020-05-14T10:02:22.402Z] Sleeping for 5 sec
[2020-05-14T10:02:23.825Z] Stage "Lint" skipped due to earlier failure(s)
[2020-05-14T10:02:24.010Z] Stage "Build and Test" skipped due to earlier failure(s)
[2020-05-14T10:02:24.530Z] Stage "Elastic Agent x-pack" skipped due to earlier failure(s)
[2020-05-14T10:02:24.535Z] Stage "Elastic Agent x-pack Windows" skipped due to earlier failure(s)
[2020-05-14T10:02:24.536Z] Stage "Elastic Agent Mac OS X" skipped due to earlier failure(s)
[2020-05-14T10:02:24.538Z] Stage "Filebeat oss" skipped due to earlier failure(s)
[2020-05-14T10:02:24.541Z] Stage "Filebeat x-pack" skipped due to earlier failure(s)
[2020-05-14T10:02:24.544Z] Stage "Filebeat Mac OS X" skipped due to earlier failure(s)
[2020-05-14T10:02:24.546Z] Stage "Filebeat Windows" skipped due to earlier failure(s)
[2020-05-14T10:02:24.547Z] Stage "Heartbeat" skipped due to earlier failure(s)
[2020-05-14T10:02:24.552Z] Stage "Auditbeat oss" skipped due to earlier failure(s)
[2020-05-14T10:02:24.556Z] Stage "Auditbeat x-pack" skipped due to earlier failure(s)
[2020-05-14T10:02:24.558Z] Stage "Libbeat" skipped due to earlier failure(s)
[2020-05-14T10:02:24.559Z] Stage "Libbeat x-pack" skipped due to earlier failure(s)
[2020-05-14T10:02:24.563Z] Stage "Metricbeat OSS Unit tests" skipped due to earlier failure(s)
[2020-05-14T10:02:24.565Z] Stage "Metricbeat OSS Integration tests" skipped due to earlier failure(s)
[2020-05-14T10:02:24.571Z] Stage "Metricbeat Python integration tests" skipped due to earlier failure(s)
[2020-05-14T10:02:24.574Z] Stage "Metricbeat x-pack" skipped due to earlier failure(s)
[2020-05-14T10:02:24.577Z] Stage "Metricbeat crosscompile" skipped due to earlier failure(s)
[2020-05-14T10:02:24.580Z] Stage "Metricbeat Mac OS X" skipped due to earlier failure(s)
[2020-05-14T10:02:24.582Z] Stage "Metricbeat Windows" skipped due to earlier failure(s)
[2020-05-14T10:02:24.583Z] Stage "Packetbeat" skipped due to earlier failure(s)
[2020-05-14T10:02:24.586Z] Stage "dockerlogbeat" skipped due to earlier failure(s)
[2020-05-14T10:02:24.588Z] Stage "Winlogbeat" skipped due to earlier failure(s)
[2020-05-14T10:02:24.590Z] Stage "Winlogbeat Windows x-pack" skipped due to earlier failure(s)
[2020-05-14T10:02:24.591Z] Stage "Functionbeat" skipped due to earlier failure(s)
[2020-05-14T10:02:24.592Z] Stage "Journalbeat" skipped due to earlier failure(s)
[2020-05-14T10:02:24.593Z] Stage "Generators" skipped due to earlier failure(s)
[2020-05-14T10:02:24.594Z] Stage "Kubernetes" skipped due to earlier failure(s)
[2020-05-14T10:02:24.834Z] Stage "Heartbeat" skipped due to earlier failure(s)
[2020-05-14T10:02:24.837Z] Stage "Auditbeat oss" skipped due to earlier failure(s)
[2020-05-14T10:02:24.841Z] Stage "Libbeat" skipped due to earlier failure(s)
[2020-05-14T10:02:24.843Z] Stage "Metricbeat x-pack" skipped due to earlier failure(s)
[2020-05-14T10:02:24.849Z] Stage "Packetbeat" skipped due to earlier failure(s)
[2020-05-14T10:02:24.856Z] Stage "dockerlogbeat" skipped due to earlier failure(s)
[2020-05-14T10:02:24.863Z] Stage "Winlogbeat" skipped due to earlier failure(s)
[2020-05-14T10:02:24.866Z] Stage "Functionbeat" skipped due to earlier failure(s)
[2020-05-14T10:02:24.867Z] Stage "Journalbeat" skipped due to earlier failure(s)
[2020-05-14T10:02:24.871Z] Stage "Generators" skipped due to earlier failure(s)
[2020-05-14T10:02:25.838Z] Failed in branch Elastic Agent x-pack
[2020-05-14T10:02:25.840Z] Failed in branch Elastic Agent x-pack Windows
[2020-05-14T10:02:25.841Z] Failed in branch Elastic Agent Mac OS X
[2020-05-14T10:02:25.842Z] Failed in branch Filebeat oss
[2020-05-14T10:02:25.843Z] Failed in branch Filebeat x-pack
[2020-05-14T10:02:25.844Z] Failed in branch Filebeat Mac OS X
[2020-05-14T10:02:25.845Z] Failed in branch Filebeat Windows
[2020-05-14T10:02:25.846Z] Failed in branch Auditbeat x-pack
[2020-05-14T10:02:25.847Z] Failed in branch Libbeat x-pack
[2020-05-14T10:02:25.848Z] Failed in branch Metricbeat OSS Unit tests
[2020-05-14T10:02:25.849Z] Failed in branch Metricbeat OSS Integration tests
[2020-05-14T10:02:25.850Z] Failed in branch Metricbeat Python integration tests
[2020-05-14T10:02:25.851Z] Failed in branch Metricbeat crosscompile
[2020-05-14T10:02:25.852Z] Failed in branch Metricbeat Mac OS X
[2020-05-14T10:02:25.854Z] Failed in branch Metricbeat Windows
[2020-05-14T10:02:25.862Z] Failed in branch Winlogbeat Windows x-pack
[2020-05-14T10:02:25.864Z] Failed in branch Kubernetes
[2020-05-14T10:02:26.661Z] Stage "Heartbeat" skipped due to earlier failure(s)
[2020-05-14T10:02:26.665Z] Stage "Auditbeat oss" skipped due to earlier failure(s)
[2020-05-14T10:02:26.667Z] Stage "Libbeat" skipped due to earlier failure(s)
[2020-05-14T10:02:26.674Z] Stage "Metricbeat x-pack" skipped due to earlier failure(s)
[2020-05-14T10:02:26.676Z] Stage "Winlogbeat" skipped due to earlier failure(s)
[2020-05-14T10:02:26.677Z] Stage "Functionbeat" skipped due to earlier failure(s)
[2020-05-14T10:02:26.679Z] Stage "Generators" skipped due to earlier failure(s)
[2020-05-14T10:02:26.850Z] Failed in branch Packetbeat
[2020-05-14T10:02:26.852Z] Failed in branch dockerlogbeat
[2020-05-14T10:02:26.853Z] Failed in branch Journalbeat
[2020-05-14T10:02:27.551Z] Stage "Heartbeat" skipped due to earlier failure(s)
[2020-05-14T10:02:27.556Z] Stage "Auditbeat oss" skipped due to earlier failure(s)
[2020-05-14T10:02:27.560Z] Stage "Libbeat" skipped due to earlier failure(s)
[2020-05-14T10:02:27.565Z] Stage "Functionbeat" skipped due to earlier failure(s)
[2020-05-14T10:02:27.575Z] Stage "Generators" skipped due to earlier failure(s)
[2020-05-14T10:02:27.660Z] Failed in branch Metricbeat x-pack
[2020-05-14T10:02:27.661Z] Failed in branch Winlogbeat
[2020-05-14T10:02:28.255Z] Failed in branch Heartbeat
[2020-05-14T10:02:28.256Z] Failed in branch Libbeat
[2020-05-14T10:02:28.264Z] Failed in branch Functionbeat
[2020-05-14T10:02:28.265Z] Stage "Auditbeat oss" skipped due to earlier failure(s)
[2020-05-14T10:02:28.268Z] Stage "Generators" skipped due to earlier failure(s)
[2020-05-14T10:02:28.628Z] Failed in branch Auditbeat oss
[2020-05-14T10:02:28.629Z] Failed in branch Generators
[2020-05-14T10:02:29.666Z] Running on Jenkins in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18507
[2020-05-14T10:02:30.004Z] [INFO] getVaultSecret: Getting secrets
[2020-05-14T10:02:30.149Z] Masking supported pattern matches of $VAULT_ADDR or $VAULT_ROLE_ID or $VAULT_SECRET_ID
[2020-05-14T10:02:31.475Z] + chmod 755 generate-build-data.sh
[2020-05-14T10:02:31.475Z] + ./generate-build-data.sh https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats-beats-mbp/PR-18507/ https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats-beats-mbp/PR-18507/runs/2 ABORTED 215473
[2020-05-14T10:02:32.026Z] INFO: curl https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats-beats-mbp/PR-18507/runs/2/steps/?limit=10000 -o steps-info.json

@andresrc andresrc added the Team:Platforms Label for the Integrations - Platforms team label May 14, 2020
@elasticmachine
Copy link
Collaborator

Pinging @elastic/integrations-platforms (Team:Platforms)

@botelastic botelastic bot removed the needs_team Indicates that the issue/PR needs a Team:* label label May 14, 2020
@ChrsMark ChrsMark self-assigned this May 14, 2020
@ChrsMark
Copy link
Member

@chendo thank you for reporting this and for supplying the fix! I opened a PR for this since it requires tests to be tuned accordingly. I would suggest you sign the CLA and provide me your email used in your GH account in order to add you as a co-author of this fix, wdyt?

@chendo
Copy link
Contributor Author

chendo commented May 14, 2020

@chendo thank you for reporting this and for supplying the fix! I opened a PR for this since it requires tests to be tuned accordingly. I would suggest you sign the CLA and provide me your email used in your GH account in order to add you as a co-author of this fix, wdyt?

I've signed the CLA. My GH email is github at chen.do

@ChrsMark
Copy link
Member

@chendo the fix is already on master 8e29ab7! Thank you again!

@chendo
Copy link
Contributor Author

chendo commented May 15, 2020

@ChrsMark wow, that was fast! Thank you for making it easy :shipit:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Team:Platforms Label for the Integrations - Platforms team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants