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

beater/config: fix TLS config tests #3962

Merged
merged 1 commit into from
Jul 13, 2020
Merged

Conversation

axw
Copy link
Member

@axw axw commented Jul 13, 2020

Motivation/summary

Update tests to ensure ssl.{certificate,key} are specified
if ssl is enabled. Beats now ensures certificate and key
are both specified for server TLS configuration; this PR
is a prerequisite to updating our libbeat dependency.

Checklist

I have considered changes for:
- [ ] documentation
- [ ] logging (add log lines, choose appropriate log selector, etc.)
- [ ] metrics and monitoring (create issue for Kibana team to add metrics to visualizations, e.g. Kibana#44001)

How to test these changes

make test

Related issues

elastic/beats#19584

Update tests to ensure ssl.{certificate,key} are specified
if ssl is enabled. Beats now ensures certificate and key
are both specified for server TLS configuration; this PR
is a prerequisite to updating our libbeat dependency.
@axw
Copy link
Member Author

axw commented Jul 13, 2020

jenkins run the tests please

@codecov-commenter
Copy link

Codecov Report

Merging #3962 into master will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master    #3962   +/-   ##
=======================================
  Coverage   79.68%   79.68%           
=======================================
  Files         137      137           
  Lines        6257     6257           
=======================================
  Hits         4986     4986           
  Misses       1271     1271           

@apmmachine
Copy link
Contributor

💔 Build Failed

Pipeline View Test View Changes Artifacts preview

Expand to view the summary

Build stats

  • Build Cause: [axw commented: jenkins run the tests please]

  • Start Time: 2020-07-13T08:22:45.932+0000

  • Duration: 44 min 20 sec

Test stats 🧪

Test Results
Failed 0
Passed 2825
Skipped 149
Total 2974

Steps errors

Expand to view the steps failures

  • Name: Compress

    • Description: tar --exclude=coverage-files.tgz -czf coverage-files.tgz coverage

    • Duration: 0 min 0 sec

    • Start Time: 2020-07-13T08:37:45.499+0000

    • log

  • Name: Run Linux tests

    • Description: ./script/jenkins/linux-test.sh

    • Duration: 5 min 15 sec

    • Start Time: 2020-07-13T08:32:57.329+0000

    • log

  • Name: Compress

    • Description: tar --exclude=system-tests-linux-files.tgz -czf system-tests-linux-files.tgz system-tests

    • Duration: 0 min 0 sec

    • Start Time: 2020-07-13T08:38:14.730+0000

    • log

Log output

Expand to view the last 100 lines of log output

[2020-07-13T08:55:59.976Z] >> package: Building apm-server type=rpm for platform=linux/386
[2020-07-13T08:56:02.529Z] Doing `require 'backports'` is deprecated and will not load any backport in the next major release.
[2020-07-13T08:56:02.529Z] Require just the needed backports instead, or 'backports/latest'.
[2020-07-13T08:56:09.128Z] >> package: Building apm-server type=tar.gz for platform=linux/386
[2020-07-13T08:56:09.128Z] Doing `require 'backports'` is deprecated and will not load any backport in the next major release.
[2020-07-13T08:56:09.128Z] Require just the needed backports instead, or 'backports/latest'.
[2020-07-13T08:56:10.534Z] >> package: Building apm-server type=deb for platform=linux/386
[2020-07-13T08:56:15.839Z] >> package: Building apm-server type=zip for platform=windows/386
[2020-07-13T08:56:20.054Z] >> package: Building apm-server-oss type=zip for platform=windows/386
[2020-07-13T08:56:20.054Z] Doing `require 'backports'` is deprecated and will not load any backport in the next major release.
[2020-07-13T08:56:20.054Z] Require just the needed backports instead, or 'backports/latest'.
[2020-07-13T08:56:23.365Z] >> package: Building apm-server-oss type=deb for platform=linux/amd64
[2020-07-13T08:56:25.920Z] >> package: Building apm-server-oss type=tar.gz for platform=linux/amd64
[2020-07-13T08:56:28.495Z] >> package: Building apm-server type=tar.gz for platform=linux/arm64
[2020-07-13T08:56:31.823Z] Doing `require 'backports'` is deprecated and will not load any backport in the next major release.
[2020-07-13T08:56:31.823Z] Require just the needed backports instead, or 'backports/latest'.
[2020-07-13T08:56:34.378Z] >> package: Building apm-server type=deb for platform=linux/arm64
[2020-07-13T08:56:34.378Z] >> package: Building apm-server-oss type=zip for platform=windows/amd64
[2020-07-13T08:56:35.790Z] >> package: Building apm-server-oss type=rpm for platform=linux/amd64
[2020-07-13T08:56:42.393Z] Doing `require 'backports'` is deprecated and will not load any backport in the next major release.
[2020-07-13T08:56:42.393Z] Require just the needed backports instead, or 'backports/latest'.
[2020-07-13T08:56:43.821Z] Doing `require 'backports'` is deprecated and will not load any backport in the next major release.
[2020-07-13T08:56:43.821Z] Require just the needed backports instead, or 'backports/latest'.
[2020-07-13T08:57:05.792Z] >> Testing package contents
[2020-07-13T08:57:32.393Z] package ran for 21m38.300077651s
[2020-07-13T08:57:33.010Z] + ./script/jenkins/test-install-packages.sh
[2020-07-13T08:57:33.011Z] + export MAGEFILE_VERBOSE=1
[2020-07-13T08:57:33.011Z] + MAGEFILE_VERBOSE=1
[2020-07-13T08:57:33.011Z] + ./build/linux/mage -v testPackagesInstall
[2020-07-13T08:57:33.011Z] Running target: TestPackagesInstall
[2020-07-13T08:57:33.011Z] exec: go test -v tests/packaging/package_test.go -timeout 20m -files /var/lib/jenkins/workspace/pm-server_apm-server-mbp_PR-3962/src/github.com/elastic/apm-server/build/distributions/* -tags=package
[2020-07-13T09:02:24.791Z] [INFO] getVaultSecret: Getting secrets
[2020-07-13T09:02:24.863Z] Masking supported pattern matches of $VAULT_ADDR or $VAULT_ROLE_ID or $VAULT_SECRET_ID
[2020-07-13T09:02:25.988Z] + set +x
[2020-07-13T09:02:26.558Z] Login Succeeded
[2020-07-13T09:02:27.256Z] + ./script/jenkins/package-docker-snapshot.sh ab476217d7d9306597b8ceb41680f4e74935ce82 docker.elastic.co/observability-ci/apm-server
[2020-07-13T09:02:27.256Z] INFO: Build docker images
[2020-07-13T09:02:27.517Z] ./build/linux/mage package
[2020-07-13T09:02:28.090Z] >> Building apm-server.yml for linux/amd64
[2020-07-13T09:02:28.090Z] >> Building apm-server.docker.yml for linux/amd64
[2020-07-13T09:02:28.663Z] Generated fields.yml for apm-server to /var/lib/jenkins/workspace/pm-server_apm-server-mbp_PR-3962/src/github.com/elastic/apm-server/build/fields/fields.yml
[2020-07-13T09:02:30.050Z] Generated fields.yml for apm-server to /var/lib/jenkins/workspace/pm-server_apm-server-mbp_PR-3962/src/github.com/elastic/apm-server/build/fields/fields.all.yml
[2020-07-13T09:02:34.273Z] >> buildGoDaemon: Building for linux/amd64
[2020-07-13T09:02:34.273Z] >> golangCrossBuild: Building for linux/amd64
[2020-07-13T09:02:34.273Z] >> golangCrossBuild: Building for linux/amd64
[2020-07-13T09:02:35.668Z] >> Building using: cmd='../../build/mage-linux-amd64 golangCrossBuild', env=[CC=gcc, CXX=g++, GOARCH=amd64, GOARM=, GOOS=linux, PLATFORM_ID=linux-amd64]
[2020-07-13T09:02:35.668Z] >> Building using: cmd='build/mage-linux-amd64 golangCrossBuild', env=[CC=gcc, CXX=g++, GOARCH=amd64, GOARM=, GOOS=linux, PLATFORM_ID=linux-amd64]
[2020-07-13T09:02:35.932Z] >> Building using: cmd='build/mage-linux-amd64 buildGoDaemon', env=[CC=gcc, CXX=g++, GOARCH=amd64, GOARM=, GOOS=linux, PLATFORM_ID=linux-amd64]
[2020-07-13T09:05:27.555Z] >> package: Building apm-server type=docker for platform=linux/amd64
[2020-07-13T09:05:27.555Z] >> package: Building apm-server-oss type=docker for platform=linux/amd64
[2020-07-13T09:05:27.555Z] >> package: Building apm-server-oss type=tar.gz for platform=linux/amd64
[2020-07-13T09:05:27.555Z] >> package: Building apm-server-oss type=deb for platform=linux/amd64
[2020-07-13T09:05:27.555Z] >> package: Building apm-server type=deb for platform=linux/amd64
[2020-07-13T09:05:27.555Z] Doing `require 'backports'` is deprecated and will not load any backport in the next major release.
[2020-07-13T09:05:27.555Z] Require just the needed backports instead, or 'backports/latest'.
[2020-07-13T09:05:35.740Z] Doing `require 'backports'` is deprecated and will not load any backport in the next major release.
[2020-07-13T09:05:35.740Z] Require just the needed backports instead, or 'backports/latest'.
[2020-07-13T09:05:38.298Z] >> package: Building apm-server type=tar.gz for platform=linux/amd64
[2020-07-13T09:05:48.317Z] >> package: Building apm-server type=rpm for platform=linux/amd64
[2020-07-13T09:05:48.892Z] >> package: Building apm-server-oss type=rpm for platform=linux/amd64
[2020-07-13T09:05:58.913Z] Doing `require 'backports'` is deprecated and will not load any backport in the next major release.
[2020-07-13T09:05:58.914Z] Require just the needed backports instead, or 'backports/latest'.
[2020-07-13T09:05:58.914Z] Doing `require 'backports'` is deprecated and will not load any backport in the next major release.
[2020-07-13T09:05:58.914Z] Require just the needed backports instead, or 'backports/latest'.
[2020-07-13T09:06:25.508Z] >> Testing package contents
[2020-07-13T09:06:47.469Z] package ran for 4m20.020179642s
[2020-07-13T09:06:47.469Z] INFO: Get the just built docker image
[2020-07-13T09:06:47.729Z] INFO: Retag docker image (docker.elastic.co/apm/apm-server:8.0.0-SNAPSHOT)
[2020-07-13T09:06:47.729Z] INFO: Push docker image (docker.elastic.co/observability-ci/apm-server:ab476217d7d9306597b8ceb41680f4e74935ce82)
[2020-07-13T09:06:47.989Z] The push refers to repository [docker.elastic.co/observability-ci/apm-server]
[2020-07-13T09:06:47.989Z] db47237203dc: Preparing
[2020-07-13T09:06:47.989Z] 21a080e6c38f: Preparing
[2020-07-13T09:06:47.989Z] 749bc3c380df: Preparing
[2020-07-13T09:06:47.989Z] 3affa880262d: Preparing
[2020-07-13T09:06:47.989Z] e7d5b6bfe320: Preparing
[2020-07-13T09:06:47.989Z] 3863d639e8d7: Preparing
[2020-07-13T09:06:47.989Z] e0d097f9be19: Preparing
[2020-07-13T09:06:47.989Z] edf3aa290fb3: Preparing
[2020-07-13T09:06:47.989Z] 3863d639e8d7: Waiting
[2020-07-13T09:06:47.989Z] e0d097f9be19: Waiting
[2020-07-13T09:06:47.989Z] edf3aa290fb3: Waiting
[2020-07-13T09:06:49.906Z] db47237203dc: Pushed
[2020-07-13T09:06:49.906Z] 749bc3c380df: Pushed
[2020-07-13T09:06:49.906Z] e7d5b6bfe320: Pushed
[2020-07-13T09:06:49.906Z] 3affa880262d: Pushed
[2020-07-13T09:06:49.906Z] edf3aa290fb3: Layer already exists
[2020-07-13T09:06:58.054Z] e0d097f9be19: Pushed
[2020-07-13T09:06:58.996Z] 21a080e6c38f: Pushed
[2020-07-13T09:06:59.567Z] 3863d639e8d7: Pushed
[2020-07-13T09:07:02.108Z] ab476217d7d9306597b8ceb41680f4e74935ce82: digest: sha256:5b136edbb529f57f966caa3bcf9f677300ee529c6e77edf542105f38adb4c340 size: 1994
[2020-07-13T09:07:02.149Z] $ docker stop --time=1 20579b42137538e0c104872fad6a30a5938f20bc8dc8785e745a0a21e1f404ff
[2020-07-13T09:07:03.501Z] $ docker rm -f 20579b42137538e0c104872fad6a30a5938f20bc8dc8785e745a0a21e1f404ff
[2020-07-13T09:07:04.676Z] Stage "Publish" skipped due to when conditional
[2020-07-13T09:07:05.589Z] Running on Jenkins in /var/lib/jenkins/workspace/pm-server_apm-server-mbp_PR-3962
[2020-07-13T09:07:05.646Z] [INFO] getVaultSecret: Getting secrets
[2020-07-13T09:07:05.720Z] Masking supported pattern matches of $VAULT_ADDR or $VAULT_ROLE_ID or $VAULT_SECRET_ID
[2020-07-13T09:07:06.453Z] + chmod 755 generate-build-data.sh
[2020-07-13T09:07:06.454Z] + ./generate-build-data.sh https://apm-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/apm-server/apm-server-mbp/PR-3962/ https://apm-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/apm-server/apm-server-mbp/PR-3962/runs/2 FAILURE 2660262
[2020-07-13T09:07:07.004Z] INFO: curl https://apm-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/apm-server/apm-server-mbp/PR-3962/runs/2/steps/?limit=10000 -o steps-info.json
[2020-07-13T09:07:07.555Z] INFO: curl https://apm-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/apm-server/apm-server-mbp/PR-3962/runs/2/tests/?status=FAILED -o tests-errors.json

@axw axw merged commit 971f8c6 into elastic:master Jul 13, 2020
@axw axw deleted the tests-ssl-certkey branch July 13, 2020 09:51
axw added a commit to axw/apm-server that referenced this pull request Jul 13, 2020
Update tests to ensure ssl.{certificate,key} are specified
if ssl is enabled. Beats now ensures certificate and key
are both specified for server TLS configuration; this PR
is a prerequisite to updating our libbeat dependency.
axw added a commit that referenced this pull request Jul 13, 2020
Update tests to ensure ssl.{certificate,key} are specified
if ssl is enabled. Beats now ensures certificate and key
are both specified for server TLS configuration; this PR
is a prerequisite to updating our libbeat dependency.
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.

3 participants