Skip to content

[Elastic Agent] Fix install with bootstrapping Fleet Server (bp #24981)#24998

Merged
blakerouse merged 1 commit into7.xfrom
mergify/bp/7.x/pr-24981
Apr 8, 2021
Merged

[Elastic Agent] Fix install with bootstrapping Fleet Server (bp #24981)#24998
blakerouse merged 1 commit into7.xfrom
mergify/bp/7.x/pr-24981

Conversation

@mergify
Copy link
Copy Markdown
Contributor

@mergify mergify bot commented Apr 8, 2021

This is an automatic backport of pull request #24981 done by Mergify.


Mergify commands and options

More conditions and actions can be found in the documentation.

You can also trigger Mergify actions by commenting on this pull request:

  • @Mergifyio refresh will re-evaluate the rules
  • @Mergifyio rebase will rebase this PR on its base branch
  • @Mergifyio update will merge the base branch into this PR
  • @Mergifyio backport <destination> will backport this PR on <destination> branch

Additionally, on Mergify dashboard you can:

  • look at your merge queues
  • generate the Mergify configuration with the config editor.

Finally, you can contact us on https://mergify.io/

* Fix install command to work with Fleet Server, remove the requirement for the enrollment token when bootstrapping with Fleet Server.

* Fix tests.

* Add changelog entry.

* Simplify if statements.

* Add installation success confirmation message.

* Fix leaderelection provider.

* Fix fleet decorator.

(cherry picked from commit a91bba5)
@botelastic botelastic bot added the needs_team Indicates that the issue/PR needs a Team:* label label Apr 8, 2021
@blakerouse blakerouse added the Team:Elastic-Agent Label for the Agent team label Apr 8, 2021
@elasticmachine
Copy link
Copy Markdown
Contributor

Pinging @elastic/agent (Team:Agent)

@botelastic botelastic bot removed the needs_team Indicates that the issue/PR needs a Team:* label label Apr 8, 2021
@elasticmachine
Copy link
Copy Markdown
Contributor

elasticmachine commented Apr 8, 2021

💔 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: blakerouse commented: /test

  • Start Time: 2021-04-08T21:27:22.770+0000

  • Duration: 41 min 29 sec

  • Commit: c6c83de

Trends 🧪

Image of Build Times

Log output

Expand to view the last 100 lines of log output

[2021-04-08T22:07:31.690Z] Server: Docker Engine - Community
[2021-04-08T22:07:31.690Z]  Engine:
[2021-04-08T22:07:31.690Z]   Version:          20.10.3
[2021-04-08T22:07:31.690Z]   API version:      1.41 (minimum version 1.12)
[2021-04-08T22:07:31.690Z]   Go version:       go1.13.15
[2021-04-08T22:07:31.690Z]   Git commit:       46229ca
[2021-04-08T22:07:31.690Z]   Built:            Fri Jan 29 14:31:49 2021
[2021-04-08T22:07:31.690Z]   OS/Arch:          linux/arm64
[2021-04-08T22:07:31.690Z]   Experimental:     false
[2021-04-08T22:07:31.690Z]  containerd:
[2021-04-08T22:07:31.690Z]   Version:          1.4.4
[2021-04-08T22:07:31.690Z]   GitCommit:        05f951a3781f4f2c1911b05e61c160e9c30eaa8e
[2021-04-08T22:07:31.690Z]  runc:
[2021-04-08T22:07:31.691Z]   Version:          1.0.0-rc93
[2021-04-08T22:07:31.691Z]   GitCommit:        12644e614e25b05da6fd08a38ffa0cfe1903fdec
[2021-04-08T22:07:31.691Z]  docker-init:
[2021-04-08T22:07:31.691Z]   Version:          0.19.0
[2021-04-08T22:07:31.691Z]   GitCommit:        de40ad0
[2021-04-08T22:07:31.691Z] Change ownership of all files inside the specific folder from root/root to current user/group
[2021-04-08T22:07:31.691Z] Unable to find image 'arm64v8/alpine:3' locally
[2021-04-08T22:07:32.761Z] 3: Pulling from arm64v8/alpine
[2021-04-08T22:07:32.762Z] 912815139b61: Pulling fs layer
[2021-04-08T22:07:33.272Z] 912815139b61: Verifying Checksum
[2021-04-08T22:07:33.272Z] 912815139b61: Download complete
[2021-04-08T22:07:33.784Z] 912815139b61: Pull complete
[2021-04-08T22:07:33.784Z] Digest: sha256:071fa5de01a240dbef5be09d69f8fef2f89d68445d9175393773ee389b6f5935
[2021-04-08T22:07:33.784Z] Status: Downloaded newer image for arm64v8/alpine:3
[2021-04-08T22:07:59.805Z] Change permissions with write access of all files inside the specific folder
[2021-04-08T22:08:00.009Z] Running in /var/lib/jenkins/workspace/PR-24998-2-7b7f696b-9421-4e87-8892-6d654671caa4/src/github.com/elastic/beats/build
[2021-04-08T22:08:01.010Z] + rm -rf ve
[2021-04-08T22:08:01.011Z] + find . -type d -name vendor -exec rm -r {} ;
[2021-04-08T22:08:02.235Z] + python .ci/scripts/pre_archive_test.py
[2021-04-08T22:08:17.796Z] Copy ./x-pack/metricbeat/build into build/x-pack/metricbeat/build
[2021-04-08T22:08:17.796Z] Copy ./x-pack/metricbeat/build/golang-crossbuild into build/x-pack/metricbeat/build/golang-crossbuild
[2021-04-08T22:08:17.796Z] Copy ./x-pack/filebeat/build into build/x-pack/filebeat/build
[2021-04-08T22:08:17.796Z] Copy ./x-pack/filebeat/build/golang-crossbuild into build/x-pack/filebeat/build/golang-crossbuild
[2021-04-08T22:08:17.796Z] Copy ./x-pack/elastic-agent/build into build/x-pack/elastic-agent/build
[2021-04-08T22:08:17.796Z] Copy ./x-pack/elastic-agent/build/package/elastic-agent-ubi8/elastic-agent-linux-arm64.docker/docker-build into build/x-pack/elastic-agent/build/package/elastic-agent-ubi8/elastic-agent-linux-arm64.docker/docker-build
[2021-04-08T22:08:17.796Z] Copy ./x-pack/elastic-agent/build/package/elastic-agent/elastic-agent-linux-arm64.docker/docker-build into build/x-pack/elastic-agent/build/package/elastic-agent/elastic-agent-linux-arm64.docker/docker-build
[2021-04-08T22:08:17.796Z] Copy ./x-pack/elastic-agent/build/golang-crossbuild into build/x-pack/elastic-agent/build/golang-crossbuild
[2021-04-08T22:08:17.796Z] Copy ./x-pack/heartbeat/build into build/x-pack/heartbeat/build
[2021-04-08T22:08:17.796Z] Copy ./x-pack/heartbeat/build/golang-crossbuild into build/x-pack/heartbeat/build/golang-crossbuild
[2021-04-08T22:08:17.998Z] Running in /var/lib/jenkins/workspace/PR-24998-2-7b7f696b-9421-4e87-8892-6d654671caa4/src/github.com/elastic/beats/build
[2021-04-08T22:08:18.117Z] Recording test results
[2021-04-08T22:08:21.772Z] None of the test reports contained any result
[2021-04-08T22:08:21.773Z] [Checks API] No suitable checks publisher found.
[2021-04-08T22:08:22.680Z] + go clean -modcache
[2021-04-08T22:08:32.905Z] Cleaning up /var/lib/jenkins/workspace/PR-24998-2-7b7f696b-9421-4e87-8892-6d654671caa4
[2021-04-08T22:08:32.905Z] Client: Docker Engine - Community
[2021-04-08T22:08:32.905Z]  Version:           20.10.3
[2021-04-08T22:08:32.905Z]  API version:       1.41
[2021-04-08T22:08:32.905Z]  Go version:        go1.13.15
[2021-04-08T22:08:32.905Z]  Git commit:        48d30b5
[2021-04-08T22:08:32.905Z]  Built:             Fri Jan 29 14:33:34 2021
[2021-04-08T22:08:32.905Z]  OS/Arch:           linux/arm64
[2021-04-08T22:08:32.905Z]  Context:           default
[2021-04-08T22:08:32.905Z]  Experimental:      true
[2021-04-08T22:08:32.905Z] 
[2021-04-08T22:08:32.905Z] Server: Docker Engine - Community
[2021-04-08T22:08:32.905Z]  Engine:
[2021-04-08T22:08:32.905Z]   Version:          20.10.3
[2021-04-08T22:08:32.905Z]   API version:      1.41 (minimum version 1.12)
[2021-04-08T22:08:32.905Z]   Go version:       go1.13.15
[2021-04-08T22:08:32.905Z]   Git commit:       46229ca
[2021-04-08T22:08:32.905Z]   Built:            Fri Jan 29 14:31:49 2021
[2021-04-08T22:08:32.905Z]   OS/Arch:          linux/arm64
[2021-04-08T22:08:32.906Z]   Experimental:     false
[2021-04-08T22:08:32.906Z]  containerd:
[2021-04-08T22:08:32.906Z]   Version:          1.4.4
[2021-04-08T22:08:32.906Z]   GitCommit:        05f951a3781f4f2c1911b05e61c160e9c30eaa8e
[2021-04-08T22:08:32.906Z]  runc:
[2021-04-08T22:08:32.906Z]   Version:          1.0.0-rc93
[2021-04-08T22:08:32.906Z]   GitCommit:        12644e614e25b05da6fd08a38ffa0cfe1903fdec
[2021-04-08T22:08:32.906Z]  docker-init:
[2021-04-08T22:08:32.906Z]   Version:          0.19.0
[2021-04-08T22:08:32.906Z]   GitCommit:        de40ad0
[2021-04-08T22:08:32.906Z] Change ownership of all files inside the specific folder from root/root to current user/group
[2021-04-08T22:08:34.605Z] Change permissions with write access of all files inside the specific folder
[2021-04-08T22:08:35.338Z] Running in /var/lib/jenkins/workspace/PR-24998-2-7b7f696b-9421-4e87-8892-6d654671caa4
[2021-04-08T22:08:40.745Z] + gsutil --version
[2021-04-08T22:08:40.745Z] /var/lib/jenkins/workspace/Beats_beats_PR-24998/src/github.com/elastic/beats@tmp/durable-ac1dbb38/script.sh: 1: /var/lib/jenkins/workspace/Beats_beats_PR-24998/src/github.com/elastic/beats@tmp/durable-ac1dbb38/script.sh: gsutil: not found
[2021-04-08T22:08:40.826Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-24998/src/github.com/elastic/beats@tmp
[2021-04-08T22:08:41.143Z] + wget --version
[2021-04-08T22:08:41.473Z] + wget -q -O gsutil.tar.gz https://dl.google.com/dl/cloudsdk/channels/rapid/downloads/google-cloud-sdk-319.0.0-linux-x86_64.tar.gz
[2021-04-08T22:08:42.366Z] + tar -xpf gsutil.tar.gz --strip-components=1
[2021-04-08T22:08:45.024Z] Masking supported pattern matches of $FILE_CREDENTIAL
[2021-04-08T22:08:45.333Z] + gcloud auth activate-service-account --key-file ****
[2021-04-08T22:08:46.726Z] Activated service account credentials for: [beats-ci-gcs-plugin@elastic-ci-prod.iam.gserviceaccount.com]
[2021-04-08T22:08:47.308Z] + gsutil -m -q cp -a public-read eC1wYWNrL2VsYXN0aWMtYWdlbnQtcGFja2FnaW5nLWFybS1hcm1jNmM4M2RlOGM2NzNmMGNmYWYyNWZkNzVmNjA3ODFkNTQ5MDRkMDUz gs://beats-ci-temp/ci/cache/
[2021-04-08T22:08:49.414Z] Stage "Packaging" skipped due to when conditional
[2021-04-08T22:08:49.465Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-24998/src/github.com/elastic/beats
[2021-04-08T22:08:50.705Z] Running on Jenkins in /var/lib/jenkins/workspace/Beats_beats_PR-24998
[2021-04-08T22:08:50.748Z] [INFO] getVaultSecret: Getting secrets
[2021-04-08T22:08:50.845Z] Masking supported pattern matches of $VAULT_ADDR or $VAULT_ROLE_ID or $VAULT_SECRET_ID
[2021-04-08T22:08:51.573Z] + chmod 755 generate-build-data.sh
[2021-04-08T22:08:51.573Z] + ./generate-build-data.sh https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats/PR-24998/ https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats/PR-24998/runs/2 UNSTABLE 2488542
[2021-04-08T22:08:52.124Z] INFO: curl https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats/PR-24998/runs/2/steps/?limit=10000 -o steps-info.json
[2021-04-08T22:08:52.675Z] INFO: curl https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats/PR-24998/runs/2/tests/?status=FAILED -o tests-errors.json
[2021-04-08T22:08:52.675Z] Retry 1/3 exited 22, retrying in 1 seconds...
[2021-04-08T22:08:53.586Z] Retry 2/3 exited 22, retrying in 2 seconds...

❕ Flaky test report

No test was executed to be analysed.

@blakerouse
Copy link
Copy Markdown
Contributor

/test

@blakerouse blakerouse self-assigned this Apr 8, 2021
@blakerouse blakerouse merged commit 93afa9e into 7.x Apr 8, 2021
@mergify mergify bot deleted the mergify/bp/7.x/pr-24981 branch April 8, 2021 23:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Team:Elastic-Agent Label for the Agent team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants