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: Elastic Agent enroll command #24035

Closed
wants to merge 1 commit into from

Conversation

simitt
Copy link
Contributor

@simitt simitt commented Feb 15, 2021

What does this PR do?

Remove additional $ from ${$apiKeyId} in Docker entrypoint template.

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.

How to test this PR locally

  • Build docker image from it
  • Run Elastic Agent with following ENV vars "FLEET_ENROLL": "1", "FLEET_ENROLL_INSECURE": 1, "FLEET_SETUP": "1" (no API Key provided) and ensure it can enroll.

Related issues

Remove additional '$' from ${$apiKeyId}

fxies elastic#24033
@simitt simitt requested a review from mtojek February 15, 2021 12:47
@botelastic botelastic bot added the needs_team Indicates that the issue/PR needs a Team:* label label Feb 15, 2021
@botelastic
Copy link

botelastic bot commented Feb 15, 2021

This pull request doesn't have a Team:<team> label.

@simitt
Copy link
Contributor Author

simitt commented Feb 15, 2021

closing in favor of #24036

@simitt simitt closed this Feb 15, 2021
@elasticmachine
Copy link
Collaborator

💔 Build Failed

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

Expand to view the summary

Build stats

  • Build Cause: Pull request #24035 opened

  • Start Time: 2021-02-15T12:48:16.567+0000

  • Duration: 79 min 59 sec

  • Commit: 706dde2

Test stats 🧪

Test Results
Failed 0
Passed 45845
Skipped 4762
Total 50607

Trends 🧪

Image of Build Times

Image of Tests

Log output

Expand to view the last 100 lines of log output

[2021-02-15T14:01:33.420Z] 190343ae6dc8: Layer already exists
[2021-02-15T14:01:33.678Z] b44e9db48010: Layer already exists
[2021-02-15T14:01:33.678Z] a5ef134b3be6: Layer already exists
[2021-02-15T14:01:33.678Z] 00af10937683: Layer already exists
[2021-02-15T14:01:33.678Z] 3aa55ff7bca1: Layer already exists
[2021-02-15T14:01:33.678Z] 6670ad5865a7: Layer already exists
[2021-02-15T14:01:33.678Z] 51397976a987: Layer already exists
[2021-02-15T14:01:34.612Z] 706dde20631f0791f4e8a7957c4b34ab3c87a4ea: digest: sha256:3286b3d16196b7fe3a95c93aaff9996b37a60a1246f3403bb5913172986c9e15 size: 3033
[2021-02-15T14:01:35.218Z] Client: Docker Engine - Community
[2021-02-15T14:01:35.218Z]  Version:           20.10.3
[2021-02-15T14:01:35.218Z]  API version:       1.41
[2021-02-15T14:01:35.218Z]  Go version:        go1.13.15
[2021-02-15T14:01:35.218Z]  Git commit:        48d30b5
[2021-02-15T14:01:35.218Z]  Built:             Fri Jan 29 14:33:13 2021
[2021-02-15T14:01:35.218Z]  OS/Arch:           linux/amd64
[2021-02-15T14:01:35.218Z]  Context:           default
[2021-02-15T14:01:35.218Z]  Experimental:      true
[2021-02-15T14:01:35.218Z] 
[2021-02-15T14:01:35.218Z] Server: Docker Engine - Community
[2021-02-15T14:01:35.218Z]  Engine:
[2021-02-15T14:01:35.218Z]   Version:          20.10.3
[2021-02-15T14:01:35.218Z]   API version:      1.41 (minimum version 1.12)
[2021-02-15T14:01:35.218Z]   Go version:       go1.13.15
[2021-02-15T14:01:35.218Z]   Git commit:       46229ca
[2021-02-15T14:01:35.218Z]   Built:            Fri Jan 29 14:31:25 2021
[2021-02-15T14:01:35.218Z]   OS/Arch:          linux/amd64
[2021-02-15T14:01:35.218Z]   Experimental:     false
[2021-02-15T14:01:35.218Z]  containerd:
[2021-02-15T14:01:35.218Z]   Version:          1.4.3
[2021-02-15T14:01:35.218Z]   GitCommit:        269548fa27e0089a8b8278fc4fc781d7f65a939b
[2021-02-15T14:01:35.218Z]  runc:
[2021-02-15T14:01:35.218Z]   Version:          1.0.0-rc92
[2021-02-15T14:01:35.218Z]   GitCommit:        ff819c7e9184c13b7c2607fe6c30ae19403a7aff
[2021-02-15T14:01:35.218Z]  docker-init:
[2021-02-15T14:01:35.218Z]   Version:          0.19.0
[2021-02-15T14:01:35.218Z]   GitCommit:        de40ad0
[2021-02-15T14:01:35.218Z] Unable to find image 'alpine:3.4' locally
[2021-02-15T14:01:35.794Z] 3.4: Pulling from library/alpine
[2021-02-15T14:01:36.053Z] c1e54eec4b57: Pulling fs layer
[2021-02-15T14:01:36.311Z] c1e54eec4b57: Verifying Checksum
[2021-02-15T14:01:36.312Z] c1e54eec4b57: Download complete
[2021-02-15T14:01:36.570Z] c1e54eec4b57: Pull complete
[2021-02-15T14:01:36.570Z] Digest: sha256:b733d4a32c4da6a00a84df2ca32791bb03df95400243648d8c539e7b4cce329c
[2021-02-15T14:01:36.570Z] Status: Downloaded newer image for alpine:3.4
[2021-02-15T14:01:38.785Z] + python .ci/scripts/pre_archive_test.py
[2021-02-15T14:01:48.798Z] Copy ./x-pack/metricbeat/build into build/x-pack/metricbeat/build
[2021-02-15T14:01:48.798Z] Copy ./x-pack/metricbeat/build/golang-crossbuild into build/x-pack/metricbeat/build/golang-crossbuild
[2021-02-15T14:01:48.798Z] Copy ./x-pack/elastic-agent/build into build/x-pack/elastic-agent/build
[2021-02-15T14:01:48.798Z] Copy ./x-pack/elastic-agent/build/golang-crossbuild into build/x-pack/elastic-agent/build/golang-crossbuild
[2021-02-15T14:01:48.798Z] Copy ./x-pack/elastic-agent/build/package/elastic-agent/elastic-agent-linux-amd64.docker/docker-build into build/x-pack/elastic-agent/build/package/elastic-agent/elastic-agent-linux-amd64.docker/docker-build
[2021-02-15T14:01:48.798Z] Copy ./x-pack/elastic-agent/build/package/elastic-agent-ubi8/elastic-agent-linux-amd64.docker/docker-build into build/x-pack/elastic-agent/build/package/elastic-agent-ubi8/elastic-agent-linux-amd64.docker/docker-build
[2021-02-15T14:01:48.798Z] Copy ./x-pack/filebeat/build into build/x-pack/filebeat/build
[2021-02-15T14:01:48.798Z] Copy ./x-pack/filebeat/build/golang-crossbuild into build/x-pack/filebeat/build/golang-crossbuild
[2021-02-15T14:01:48.798Z] Copy ./x-pack/heartbeat/build into build/x-pack/heartbeat/build
[2021-02-15T14:01:48.798Z] Copy ./x-pack/heartbeat/build/golang-crossbuild into build/x-pack/heartbeat/build/golang-crossbuild
[2021-02-15T14:01:48.848Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-24035/src/github.com/elastic/beats/build
[2021-02-15T14:01:49.221Z] + rm -rf ve
[2021-02-15T14:01:49.221Z] + find . -type d -name vendor -exec rm -r {} ;
[2021-02-15T14:01:49.268Z] Recording test results
[2021-02-15T14:01:51.732Z] None of the test reports contained any result
[2021-02-15T14:01:51.747Z] [Checks API] No suitable checks publisher found.
[2021-02-15T14:01:52.347Z] Client: Docker Engine - Community
[2021-02-15T14:01:52.347Z]  Version:           20.10.3
[2021-02-15T14:01:52.347Z]  API version:       1.41
[2021-02-15T14:01:52.347Z]  Go version:        go1.13.15
[2021-02-15T14:01:52.347Z]  Git commit:        48d30b5
[2021-02-15T14:01:52.347Z]  Built:             Fri Jan 29 14:33:13 2021
[2021-02-15T14:01:52.347Z]  OS/Arch:           linux/amd64
[2021-02-15T14:01:52.347Z]  Context:           default
[2021-02-15T14:01:52.347Z]  Experimental:      true
[2021-02-15T14:01:52.347Z] 
[2021-02-15T14:01:52.347Z] Server: Docker Engine - Community
[2021-02-15T14:01:52.347Z]  Engine:
[2021-02-15T14:01:52.347Z]   Version:          20.10.3
[2021-02-15T14:01:52.347Z]   API version:      1.41 (minimum version 1.12)
[2021-02-15T14:01:52.347Z]   Go version:       go1.13.15
[2021-02-15T14:01:52.347Z]   Git commit:       46229ca
[2021-02-15T14:01:52.347Z]   Built:            Fri Jan 29 14:31:25 2021
[2021-02-15T14:01:52.347Z]   OS/Arch:          linux/amd64
[2021-02-15T14:01:52.347Z]   Experimental:     false
[2021-02-15T14:01:52.347Z]  containerd:
[2021-02-15T14:01:52.347Z]   Version:          1.4.3
[2021-02-15T14:01:52.347Z]   GitCommit:        269548fa27e0089a8b8278fc4fc781d7f65a939b
[2021-02-15T14:01:52.347Z]  runc:
[2021-02-15T14:01:52.347Z]   Version:          1.0.0-rc92
[2021-02-15T14:01:52.347Z]   GitCommit:        ff819c7e9184c13b7c2607fe6c30ae19403a7aff
[2021-02-15T14:01:52.347Z]  docker-init:
[2021-02-15T14:01:52.347Z]   Version:          0.19.0
[2021-02-15T14:01:52.347Z]   GitCommit:        de40ad0
[2021-02-15T14:02:59.593Z] Scheduling project: Beats » Beats Packaging » PR-24035
[2021-02-15T14:03:02.254Z] Starting building: Beats » Beats Packaging » PR-24035 #2
[2021-02-15T14:07:12.509Z] [INFO] For detailed information see: https://beats-ci.elastic.co/job/Beats/job/packaging/job/PR-24035/2/display/redirect
[2021-02-15T14:07:13.857Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-24035/src/github.com/elastic/beats
[2021-02-15T14:07:14.462Z] Running on Jenkins in /var/lib/jenkins/workspace/Beats_beats_PR-24035
[2021-02-15T14:07:14.575Z] [INFO] getVaultSecret: Getting secrets
[2021-02-15T14:07:14.687Z] Masking supported pattern matches of $VAULT_ADDR or $VAULT_ROLE_ID or $VAULT_SECRET_ID
[2021-02-15T14:07:15.751Z] + chmod 755 generate-build-data.sh
[2021-02-15T14:07:15.751Z] + ./generate-build-data.sh https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats/PR-24035/ https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats/PR-24035/runs/1 FAILURE 4738909
[2021-02-15T14:07:16.002Z] INFO: curl https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats/PR-24035/runs/1/steps/?limit=10000 -o steps-info.json
[2021-02-15T14:07:21.198Z] INFO: curl https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats/PR-24035/runs/1/tests/?status=FAILED -o tests-errors.json

💚 Flaky test report

Tests succeeded.

Expand to view the summary

Test stats 🧪

Test Results
Failed 0
Passed 45845
Skipped 4762
Total 50607

@simitt simitt deleted the agent-fix-docker branch July 16, 2021 06:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs_team Indicates that the issue/PR needs a Team:* label
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Elastic Agent] Starting docker container when enrollment
2 participants