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

[7.x](backport #27901) Beats dashboard should use custom index patterns when setup.dashboards.index is set #27932

Merged
merged 1 commit into from
Sep 15, 2021

Conversation

mergify[bot]
Copy link
Contributor

@mergify mergify bot commented Sep 15, 2021

This is an automatic backport of pull request #27901 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/

@mergify mergify bot added backport conflicts There is a conflict in the backported pull request labels Sep 15, 2021
@mergify mergify bot assigned kvch Sep 15, 2021
@botelastic botelastic bot added the needs_team Indicates that the issue/PR needs a Team:* label label Sep 15, 2021
@botelastic
Copy link

botelastic bot commented Sep 15, 2021

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

@elasticmachine
Copy link
Collaborator

elasticmachine commented Sep 15, 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 preview

Expand to view the summary

Build stats

  • Start Time: 2021-09-15T11:45:39.913+0000

  • Duration: 97 min 55 sec

  • Commit: ee128bc

Test stats 🧪

Test Results
Failed 0
Passed 53930
Skipped 5270
Total 59200

Trends 🧪

Image of Build Times

Image of Tests

Log output

Expand to view the last 100 lines of log output

[2021-09-15T13:18:27.921Z] tests\system\test_processors.py ........                                 [ 13%]
[2021-09-15T13:18:55.998Z] tests\system\test_reload.py ...                                          [ 14%]
[2021-09-15T13:18:55.998Z] tests\system\test_template.py s                                          [ 15%]
[2021-09-15T13:18:59.181Z] + gsutil --version
[2021-09-15T13:19:00.622Z] Masking supported pattern matches of $FILE_CREDENTIAL
[2021-09-15T13:19:00.943Z] + gcloud auth activate-service-account --key-file ****
[2021-09-15T13:19:01.514Z] Activated service account credentials for: [beats-ci-gcs-plugin@elastic-ci-prod.iam.gserviceaccount.com]
[2021-09-15T13:19:02.107Z] + gsutil -m -q cp cGFja2V0YmVhdC13aW5kb3dzLTEwLXdpbmRvd3MtMTBlZTEyOGJjMDIxYjVkOTEwNWY3MzAzMmU2Yjk0YjBmNjFmYThlNDBl gs://beats-ci-temp/ci/cache/
[2021-09-15T13:19:04.155Z] tests\system\test_timeseries.py .                                        [ 15%]
[2021-09-15T13:19:04.156Z] module\aerospike\test_aerospike.py s                                     [ 16%]
[2021-09-15T13:19:04.156Z] module\apache\test_apache.py ss                                          [ 17%]
[2021-09-15T13:19:04.156Z] module\ceph\test_ceph.py ssssssssssssssssssss                            [ 25%]
[2021-09-15T13:19:04.156Z] module\consul\test_consul.py ss                                          [ 25%]
[2021-09-15T13:19:04.156Z] module\couchbase\test_couchbase.py sss                                   [ 27%]
[2021-09-15T13:19:04.156Z] module\couchdb\test_couchdb.py s                                         [ 27%]
[2021-09-15T13:19:04.427Z] module\docker\test_docker.py sssssssss                                   [ 31%]
[2021-09-15T13:19:04.427Z] module\dropwizard\test_dropwizard.py sss                                 [ 32%]
[2021-09-15T13:19:04.427Z] module\elasticsearch\test_elasticsearch.py sssssssssss                   [ 36%]
[2021-09-15T13:19:04.427Z] module\envoyproxy\test_envoyproxy.py ss                                  [ 37%]
[2021-09-15T13:19:04.427Z] module\etcd\test_etcd.py ssssssss                                        [ 40%]
[2021-09-15T13:19:04.427Z] module\golang\test_golang.py s                                           [ 41%]
[2021-09-15T13:19:04.427Z] module\haproxy\test_haproxy.py sssssssssssssssssssssssss                 [ 51%]
[2021-09-15T13:19:14.442Z] module\http\test_http.py s.                                              [ 52%]
[2021-09-15T13:19:14.442Z] module\jolokia\test_jolokia.py ssss                                      [ 53%]
[2021-09-15T13:19:14.442Z] module\kafka\test_kafka.py ssssssssssssssssssss                          [ 61%]
[2021-09-15T13:19:14.442Z] module\kibana\test_kibana.py ss                                          [ 62%]
[2021-09-15T13:19:14.442Z] module\logstash\test_logstash.py sss                                     [ 63%]
[2021-09-15T13:19:14.442Z] module\memcached\test_memcached.py s                                     [ 64%]
[2021-09-15T13:19:14.442Z] module\mongodb\test_mongodb.py s                                         [ 64%]
[2021-09-15T13:19:14.442Z] module\munin\test_munin.py s                                             [ 65%]
[2021-09-15T13:19:14.442Z] module\mysql\test_mysql.py sssssss                                       [ 68%]
[2021-09-15T13:19:14.442Z] module\nats\test_nats.py ssssssssssssssssss                              [ 75%]
[2021-09-15T13:19:14.442Z] module\openmetrics\test_openmetrics.py s                                 [ 75%]
[2021-09-15T13:19:14.442Z] module\php_fpm\test_phpfpm.py s                                          [ 76%]
[2021-09-15T13:19:14.442Z] module\postgresql\test_postgresql.py ssssssssssssssssssss                [ 84%]
[2021-09-15T13:19:14.442Z] module\prometheus\test_prometheus.py sss                                 [ 85%]
[2021-09-15T13:19:14.442Z] module\redis\test_redis.py ssssssssssss                                  [ 90%]
[2021-09-15T13:21:08.665Z] module\system\test_system.py .....s..s...s.s.                            [ 96%]
[2021-09-15T13:21:08.666Z] module\traefik\test_traefik.py s                                         [ 97%]
[2021-09-15T13:21:08.666Z] module\uwsgi\test_uwsgi.py ss                                            [ 97%]
[2021-09-15T13:21:08.666Z] module\vsphere\test_vsphere.py sss                                       [ 99%]
[2021-09-15T13:21:08.666Z] module\zookeeper\test_zookeeper.py ss                                    [100%]
[2021-09-15T13:21:08.666Z] 
[2021-09-15T13:21:08.666Z] ============================== warnings summary ===============================
[2021-09-15T13:21:08.666Z] tests\system\test_lightmodules.py:57
[2021-09-15T13:21:08.666Z]   C:\Users\jenkins\workspace\PR-27932-3-3dc00d31-c5b3-4765-b614-6c572a46cda6\src\github.com\elastic\beats\metricbeat\tests\system\test_lightmodules.py:57: PytestCollectionWarning: cannot collect test class 'TestHTTPHandler' because it has a __init__ constructor (from: metricbeat/tests/system/test_lightmodules.py)
[2021-09-15T13:21:08.666Z]     class TestHTTPHandler(http.server.BaseHTTPRequestHandler):
[2021-09-15T13:21:08.666Z] 
[2021-09-15T13:21:08.666Z] -- Docs: https://docs.pytest.org/en/stable/warnings.html
[2021-09-15T13:21:08.666Z] - generated xml file: C:\Users\jenkins\workspace\PR-27932-3-3dc00d31-c5b3-4765-b614-6c572a46cda6\src\github.com\elastic\beats\metricbeat\build\TEST-python-unit.xml -
[2021-09-15T13:21:08.666Z] ============================ slowest 20 durations =============================
[2021-09-15T13:21:08.666Z] 16.82s call     metricbeat/tests/system/test_cmd.py::TestCommands::test_modules_list
[2021-09-15T13:21:08.666Z] 16.82s call     metricbeat/tests/system/test_cmd.py::TestCommands::test_modules_enable
[2021-09-15T13:21:08.666Z] 16.82s call     metricbeat/tests/system/test_cmd.py::TestCommands::test_modules_disable
[2021-09-15T13:21:08.666Z] 12.51s call     metricbeat/tests/system/test_reload.py::Test::test_start_stop
[2021-09-15T13:21:08.666Z] 11.86s call     metricbeat/tests/system/test_config.py::ConfigTest::test_service_name
[2021-09-15T13:21:08.666Z] 10.78s call     metricbeat/tests/system/test_cmd.py::TestCommands::test_modules_test_error
[2021-09-15T13:21:08.666Z] 10.63s call     metricbeat/tests/system/test_processors.py::Test::test_dropevent_with_condition
[2021-09-15T13:21:08.666Z] 10.41s call     metricbeat/module/system/test_system.py::Test::test_process
[2021-09-15T13:21:08.666Z] 9.53s call     metricbeat/tests/system/test_reload.py::Test::test_reload
[2021-09-15T13:21:08.666Z] 9.11s call     metricbeat/tests/system/test_processors.py::Test::test_dropevent_with_complex_condition
[2021-09-15T13:21:08.666Z] 9.04s call     metricbeat/tests/system/test_processors.py::Test::test_contradictory_multiple_actions
[2021-09-15T13:21:08.666Z] 9.00s call     metricbeat/tests/system/test_processors.py::Test::test_multiple_actions
[2021-09-15T13:21:08.666Z] 9.00s call     metricbeat/tests/system/test_processors.py::Test::test_include_fields
[2021-09-15T13:21:08.666Z] 9.00s call     metricbeat/tests/system/test_processors.py::Test::test_dropfields_with_condition
[2021-09-15T13:21:08.666Z] 8.90s call     metricbeat/tests/system/test_timeseries.py::TestTimeseries::test_enable_timeseries
[2021-09-15T13:21:08.666Z] 8.85s call     metricbeat/tests/system/test_base.py::Test::test_export_config
[2021-09-15T13:21:08.666Z] 8.82s call     metricbeat/tests/system/test_base.py::Test::test_export_index_pattern
[2021-09-15T13:21:08.666Z] 8.80s call     metricbeat/module/http/test_http.py::Test::test_server
[2021-09-15T13:21:08.666Z] 8.76s call     metricbeat/tests/system/test_base.py::Test::test_export_index_pattern_migration
[2021-09-15T13:21:08.666Z] 8.74s call     metricbeat/tests/system/test_base.py::Test::test_export_template
[2021-09-15T13:21:08.666Z] =========== 40 passed, 207 skipped, 1 warning in 397.12s (0:06:37) ============
[2021-09-15T13:21:08.666Z] >> python test: Unit Testing Complete
[2021-09-15T13:21:09.056Z] 
[2021-09-15T13:21:09.056Z] C:\Users\jenkins\workspace\PR-27932-3-3dc00d31-c5b3-4765-b614-6c572a46cda6\src\github.com\elastic\beats>FOR / %d IN ("ve") DO @IF EXIST "%d" rmdir /s /q "%d" 
[2021-09-15T13:21:11.275Z] 
[2021-09-15T13:21:11.275Z] C:\Users\jenkins\workspace\PR-27932-3-3dc00d31-c5b3-4765-b614-6c572a46cda6\src\github.com\elastic\beats>python .ci/scripts/pre_archive_test.py 
[2021-09-15T13:21:12.659Z] Copy .\metricbeat\build into build\metricbeat\build
[2021-09-15T13:21:12.659Z] Copy .\metricbeat\null\build into build\metricbeat\null\build
[2021-09-15T13:21:12.681Z] Running in C:\Users\jenkins\workspace\PR-27932-3-3dc00d31-c5b3-4765-b614-6c572a46cda6\src\github.com\elastic\beats\build
[2021-09-15T13:21:12.701Z] Recording test results
[2021-09-15T13:21:16.708Z] [Checks API] No suitable checks publisher found.
[2021-09-15T13:21:17.100Z] 
[2021-09-15T13:21:17.100Z] C:\Users\jenkins\workspace\PR-27932-3-3dc00d31-c5b3-4765-b614-6c572a46cda6\src\github.com\elastic\beats>go clean -modcache 
[2021-09-15T13:22:28.600Z] + gsutil --version
[2021-09-15T13:22:30.035Z] Masking supported pattern matches of $FILE_CREDENTIAL
[2021-09-15T13:22:30.363Z] + gcloud auth activate-service-account --key-file ****
[2021-09-15T13:22:30.982Z] Activated service account credentials for: [beats-ci-gcs-plugin@elastic-ci-prod.iam.gserviceaccount.com]
[2021-09-15T13:22:31.308Z] + gsutil -m -q cp bWV0cmljYmVhdC13aW5kb3dzLTEwLXdpbmRvd3MtMTBlZTEyOGJjMDIxYjVkOTEwNWY3MzAzMmU2Yjk0YjBmNjFmYThlNDBl gs://beats-ci-temp/ci/cache/
[2021-09-15T13:22:33.440Z] Stage "Packaging" skipped due to earlier failure(s)
[2021-09-15T13:22:33.499Z] Stage "Packaging-Pipeline" skipped due to earlier failure(s)
[2021-09-15T13:22:33.596Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-27932/src/github.com/elastic/beats
[2021-09-15T13:22:34.659Z] Running on worker-1244230 in /var/lib/jenkins/workspace/Beats_beats_PR-27932
[2021-09-15T13:22:34.714Z] [INFO] getVaultSecret: Getting secrets
[2021-09-15T13:22:34.769Z] Masking supported pattern matches of $VAULT_ADDR or $VAULT_ROLE_ID or $VAULT_SECRET_ID
[2021-09-15T13:22:36.816Z] + chmod 755 generate-build-data.sh
[2021-09-15T13:22:36.816Z] + ./generate-build-data.sh https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats/PR-27932/ https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats/PR-27932/runs/3 FAILURE 5815494
[2021-09-15T13:22:36.816Z] INFO: curl https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats/PR-27932/runs/3/steps/?limit=10000 -o steps-info.json
[2021-09-15T13:22:47.863Z] INFO: curl https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats/PR-27932/runs/3/tests/?status=FAILED -o tests-errors.json
[2021-09-15T13:22:50.129Z] INFO: curl https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats/PR-27932/runs/3/log/ -o pipeline-log.txt

💚 Flaky test report

Tests succeeded.

Expand to view the summary

Test stats 🧪

Test Results
Failed 0
Passed 53930
Skipped 5270
Total 59200

…ds.index` is set (#27901)

This PR adds a new check to `make check` to make sure all dashboards can handle custom index names. It is the responsibility of the dashboard author to keep the dashboard useable if `setup.dashboards.index` is configured.

The PR contains additional fixes to make sure existing dashboards can be used with custom index names. Also, the test coverage was increased as it is a quite big PR.

The PR also decodes a few fields to make dashboards easier to review.

The bug prevents users from setting custom index names and use our dashboards at the same time.

Closes #21232

(cherry picked from commit 2328548)
@kvch kvch merged commit 4809166 into 7.x Sep 15, 2021
@mergify mergify bot deleted the mergify/bp/7.x/pr-27901 branch September 15, 2021 13:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport conflicts There is a conflict in the backported pull request needs_team Indicates that the issue/PR needs a Team:* label
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants