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

Adding port forwarding data as this is needed to access APM server ou… #5113

Closed
wants to merge 1 commit into from

Conversation

kartheekmannepalli
Copy link

…tside of docker.

Adding port forwarding data as this is needed to access APM server outside of docker. Without this when running on local APM server cannot be accessed with localhost:8200.

Motivation/summary

Checklist

For functional changes, consider:

  • Is it observable through the addition of either logging or metrics?
  • Is its use being published in telemetry to enable product improvement?
  • Have system tests been added to avoid regression?

How to test these changes

Related issues

…tside of docker.

Adding port forwarding data as this is needed to access APM server outside of docker. Without this when running on local APM server cannot be accessed with localhost:8200.
@cla-checker-service
Copy link

❌ Author of the following commits did not sign a Contributor Agreement:
0e28879

Please, read and sign the above mentioned agreement if you want to contribute to this project

@apmmachine
Copy link
Contributor

❕ Build Aborted

The PR is not allowed to run in the CI yet

the below badges are clickable and redirect to their specific view in the CI or DOCS
Pipeline View Test View Changes Artifacts

Expand to view the summary

Build stats

  • Build Cause: Pull request #5113 opened

  • Reason: The PR is not allowed to run in the CI yet

  • Start Time: 2021-04-16T15:29:58.872+0000

  • Duration: 3 min 24 sec

  • Commit: 0e28879

Trends 🧪

Image of Build Times

Steps errors 2

Expand to view the steps failures

Load a resource file from a shared library
  • Took 0 min 0 sec . View more details on here
  • Description: approval-list/elastic/apm-server.yml
Error signal
  • Took 0 min 0 sec . View more details on here
  • Description: githubPrCheckApproved: The PR is not allowed to run in the CI yet. (Only users with write permissions can do so.)

Log output

Expand to view the last 100 lines of log output

[2021-04-16T15:32:44.964Z]  > git checkout -f 0e28879a28a7cde68f71b8fdc0314bd86ae1ec90 # timeout=15
[2021-04-16T15:32:45.255Z]  > git remote # timeout=10
[2021-04-16T15:32:45.260Z]  > git config --get remote.origin.url # timeout=10
[2021-04-16T15:32:45.268Z] using GIT_SSH to set credentials GitHub user @elasticmachine SSH key
[2021-04-16T15:32:45.277Z]  > git merge 32f34ed4298d648bf9476790f2a8a54d72805bb6 # timeout=10
[2021-04-16T15:32:45.292Z]  > git rev-parse HEAD^{commit} # timeout=10
[2021-04-16T15:32:45.313Z]  > git config core.sparsecheckout # timeout=10
[2021-04-16T15:32:45.329Z]  > git checkout -f 0e28879a28a7cde68f71b8fdc0314bd86ae1ec90 # timeout=15
[2021-04-16T15:32:49.177Z] Commit message: "Adding port forwarding data as this is needed to access APM server outside of docker. "
[2021-04-16T15:32:49.178Z] First time build. Skipping changelog.
[2021-04-16T15:32:49.178Z] Cleaning workspace
[2021-04-16T15:32:49.487Z]  > git --version # timeout=10
[2021-04-16T15:32:49.490Z]  > git --version # 'git version 2.17.1'
[2021-04-16T15:32:49.503Z] fatal: bad object 8f48394fe31ae516841e25ea45b3faa94d147e96
[2021-04-16T15:32:50.284Z] Masking supported pattern matches of $JOB_GCS_BUCKET or $NOTIFY_TO
[2021-04-16T15:32:50.386Z] Timeout set to expire in 2 hr 0 min
[2021-04-16T15:32:50.426Z] The timestamps step is unnecessary when timestamps are enabled for all Pipeline builds.
[2021-04-16T15:32:50.861Z] [INFO] Number of builds to be searched 10
[2021-04-16T15:32:49.180Z]  > git rev-parse --verify HEAD # timeout=10
[2021-04-16T15:32:49.184Z] Resetting working tree
[2021-04-16T15:32:49.185Z]  > git reset --hard # timeout=10
[2021-04-16T15:32:49.446Z]  > git clean -fdx # timeout=10
[2021-04-16T15:32:51.140Z] [INFO] 'shallow' is forced to be disabled when running on PullRequests
[2021-04-16T15:32:51.174Z] Running in /var/lib/jenkins/workspace/pm-server_apm-server-mbp_PR-5113/src/github.com/elastic/apm-server
[2021-04-16T15:32:51.227Z] [INFO] gitCheckout: Checkout SCM PR-5113 with some customisation.
[2021-04-16T15:32:51.273Z] [INFO] Override default checkout
[2021-04-16T15:32:51.361Z] Sleeping for 10 sec
[2021-04-16T15:33:01.384Z] The recommended git tool is: git
[2021-04-16T15:33:01.513Z] using credential f6c7695a-671e-4f4f-a331-acdce44ff9ba
[2021-04-16T15:33:01.535Z] Cloning the remote Git repository
[2021-04-16T15:33:01.550Z] Cloning repository [email protected]:elastic/apm-server.git
[2021-04-16T15:33:01.579Z]  > git init /var/lib/jenkins/workspace/pm-server_apm-server-mbp_PR-5113/src/github.com/elastic/apm-server # timeout=10
[2021-04-16T15:33:01.589Z] Using reference repository: /var/lib/jenkins/.git-references/apm-server.git
[2021-04-16T15:33:01.590Z] Fetching upstream changes from [email protected]:elastic/apm-server.git
[2021-04-16T15:33:01.590Z]  > git --version # timeout=10
[2021-04-16T15:33:01.596Z]  > git --version # 'git version 2.17.1'
[2021-04-16T15:33:01.597Z] using GIT_SSH to set credentials GitHub user @elasticmachine SSH key
[2021-04-16T15:33:01.603Z]  > git fetch --tags --progress -- [email protected]:elastic/apm-server.git +refs/heads/*:refs/remotes/origin/* # timeout=10
[2021-04-16T15:33:05.423Z]  > git config remote.origin.url [email protected]:elastic/apm-server.git # timeout=10
[2021-04-16T15:33:05.427Z]  > git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10
[2021-04-16T15:33:05.434Z]  > git config remote.origin.url [email protected]:elastic/apm-server.git # timeout=10
[2021-04-16T15:33:05.444Z] Fetching upstream changes from [email protected]:elastic/apm-server.git
[2021-04-16T15:33:05.444Z] using GIT_SSH to set credentials GitHub user @elasticmachine SSH key
[2021-04-16T15:33:05.448Z]  > git fetch --tags --progress -- [email protected]:elastic/apm-server.git +refs/pull/5113/head:refs/remotes/origin/PR-5113 +refs/heads/7.12:refs/remotes/origin/7.12 # timeout=10
[2021-04-16T15:33:08.323Z] Checking out Revision 0e28879a28a7cde68f71b8fdc0314bd86ae1ec90 (origin/PR-5113)
[2021-04-16T15:33:08.632Z] Commit message: "Adding port forwarding data as this is needed to access APM server outside of docker. "
[2021-04-16T15:33:08.649Z]  > git --version # timeout=10
[2021-04-16T15:33:08.652Z]  > git --version # 'git version 2.17.1'
[2021-04-16T15:33:08.656Z] fatal: bad object 8f48394fe31ae516841e25ea45b3faa94d147e96
[2021-04-16T15:33:08.318Z]  > git rev-parse origin/PR-5113^{commit} # timeout=10
[2021-04-16T15:33:08.326Z]  > git config core.sparsecheckout # timeout=10
[2021-04-16T15:33:08.330Z]  > git checkout -f 0e28879a28a7cde68f71b8fdc0314bd86ae1ec90 # timeout=10
[2021-04-16T15:33:09.670Z] Masking supported pattern matches of $GIT_USERNAME or $GIT_PASSWORD
[2021-04-16T15:33:10.345Z] + git fetch https://****:****@github.com/elastic/apm-server.git +refs/pull/*/head:refs/remotes/origin/pr/*
[2021-04-16T15:33:13.742Z] Running in /var/lib/jenkins/workspace/pm-server_apm-server-mbp_PR-5113/src/github.com/elastic/apm-server/.git
[2021-04-16T15:33:13.888Z] Archiving artifacts
[2021-04-16T15:33:14.701Z] + git rev-parse HEAD
[2021-04-16T15:33:15.056Z] + git rev-parse HEAD
[2021-04-16T15:33:15.377Z] + git rev-parse origin/pr/5113
[2021-04-16T15:33:15.453Z] [INFO] githubEnv: Found Git Build Cause: pr
[2021-04-16T15:33:15.788Z] Masking supported pattern matches of $GITHUB_TOKEN
[2021-04-16T15:33:16.963Z] [WARN] githubApiCall: The REST API call https://api.github.com/repos/elastic/apm-server/pulls/5113/reviews return 0 elements
[2021-04-16T15:33:17.053Z] [INFO] githubPrCheckApproved: Title: Adding port forwarding data as this is needed to access APM server ou… - User: kartheekmannepalli - Author Association: FIRST_TIME_CONTRIBUTOR
[2021-04-16T15:33:17.481Z] ERROR: githubPrCheckApproved: The PR is not allowed to run in the CI yet
[2021-04-16T15:33:17.482Z] ERROR: githubPrCheckApproved: The PR is not allowed to run in the CI yet. (Only users with write permissions can do so.)
[2021-04-16T15:33:17.594Z] [INFO] Let's stop build #1. The PR is not allowed to run in the CI yet
[2021-04-16T15:33:17.634Z] Sleeping for 5 sec
[2021-04-16T15:33:18.864Z] Stage "Intake" skipped due to earlier failure(s)
[2021-04-16T15:33:18.996Z] Stage "Build and Test" skipped due to earlier failure(s)
[2021-04-16T15:33:19.457Z] Stage "linux build" skipped due to earlier failure(s)
[2021-04-16T15:33:19.473Z] Stage "windows build-test" skipped due to earlier failure(s)
[2021-04-16T15:33:19.487Z] Stage "OSX build-test" skipped due to earlier failure(s)
[2021-04-16T15:33:19.503Z] Stage "Unit Test" skipped due to earlier failure(s)
[2021-04-16T15:33:19.519Z] Stage "System and Environment Tests" skipped due to earlier failure(s)
[2021-04-16T15:33:19.534Z] Stage "Benchmarking" skipped due to earlier failure(s)
[2021-04-16T15:33:19.548Z] Stage "Check kibana Obj. Updated" skipped due to earlier failure(s)
[2021-04-16T15:33:19.563Z] Stage "Hey-Apm" skipped due to earlier failure(s)
[2021-04-16T15:33:19.579Z] Stage "Package" skipped due to earlier failure(s)
[2021-04-16T15:33:19.587Z] Stage "APM Integration Tests" skipped due to earlier failure(s)
[2021-04-16T15:33:19.672Z] Stage "Package" skipped due to earlier failure(s)
[2021-04-16T15:33:20.033Z] Failed in branch linux build
[2021-04-16T15:33:20.045Z] Failed in branch windows build-test
[2021-04-16T15:33:20.058Z] Failed in branch OSX build-test
[2021-04-16T15:33:20.070Z] Failed in branch Unit Test
[2021-04-16T15:33:20.081Z] Failed in branch System and Environment Tests
[2021-04-16T15:33:20.093Z] Failed in branch Benchmarking
[2021-04-16T15:33:20.105Z] Failed in branch Check kibana Obj. Updated
[2021-04-16T15:33:20.133Z] Failed in branch Hey-Apm
[2021-04-16T15:33:20.145Z] Failed in branch APM Integration Tests
[2021-04-16T15:33:20.263Z] Stage "Package" skipped due to earlier failure(s)
[2021-04-16T15:33:20.521Z] Failed in branch Package
[2021-04-16T15:33:21.714Z] Running on Jenkins in /var/lib/jenkins/workspace/pm-server_apm-server-mbp_PR-5113
[2021-04-16T15:33:22.037Z] [INFO] getVaultSecret: Getting secrets
[2021-04-16T15:33:22.323Z] Masking supported pattern matches of $VAULT_ADDR or $VAULT_ROLE_ID or $VAULT_SECRET_ID
[2021-04-16T15:33:23.451Z] + chmod 755 generate-build-data.sh
[2021-04-16T15:33:23.451Z] + ./generate-build-data.sh https://apm-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/apm-server/apm-server-mbp/PR-5113/ https://apm-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/apm-server/apm-server-mbp/PR-5113/runs/1 ABORTED 204303
[2021-04-16T15:33:23.701Z] INFO: curl https://apm-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/apm-server/apm-server-mbp/PR-5113/runs/1/steps/?limit=10000 -o steps-info.json
[2021-04-16T15:33:24.252Z] INFO: curl https://apm-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/apm-server/apm-server-mbp/PR-5113/runs/1/tests/?status=FAILED -o tests-errors.json
[2021-04-16T15:33:24.252Z] Retry 1/3 exited 22, retrying in 1 seconds...
[2021-04-16T15:33:25.596Z] Retry 2/3 exited 22, retrying in 2 seconds...

@axw
Copy link
Member

axw commented Apr 19, 2021

Thanks for the PR! I don't think we can make this change as-is, because the file you've modified is copied from beats: https://github.com/elastic/beats/blob/master/libbeat/docs/shared-docker.asciidoc

@bmorelli25 any suggestions as to where/how to document this?

@bmorelli25
Copy link
Member

bmorelli25 commented Apr 19, 2021

Hello and thank you, @kartheekmannepalli! Like @axw mentioned, this update is a bit complex because the source file lives in a different repository and is copied over to the apm-server repo. Would you be willing to open this same update in that repository? Here's the file that needs to be updated: https://github.com/elastic/beats/blame/master/libbeat/docs/shared-docker.asciidoc#L246

@bmorelli25
Copy link
Member

Superseded by elastic/beats#25345.

@bmorelli25 bmorelli25 closed this Apr 27, 2021
@kartheekmannepalli kartheekmannepalli deleted the patch-1 branch April 28, 2021 16:48
@bmorelli25 bmorelli25 mentioned this pull request Apr 28, 2021
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants