Skip to content
This repository has been archived by the owner on Sep 17, 2024. It is now read-only.

chore: update branch to 6.8. code #584

Closed
wants to merge 22 commits into from

Conversation

mdelapenya
Copy link
Contributor

@mdelapenya mdelapenya commented Jan 12, 2021

What does this PR do?

  • remove Fleet
  • update versions to 6.8-SNAPSHOT
  • update metricbeat configuration for 6.8

Why is it important?

We want to run e2e tests for metricbeat's integrations

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 run the Unit tests for the CLI, and they are passing locally
  • I have run the End-2-End tests for the suite I'm working on, and they are passing locally
  • I have noticed new Go dependencies (run make notice in the proper directory)

Author's Checklist

  • [ ]

Related issues

Use cases

Screenshots

Logs

Follow-ups

@mdelapenya mdelapenya self-assigned this Jan 12, 2021
@mdelapenya mdelapenya requested a review from a team January 12, 2021 17:48
@elasticmachine
Copy link
Contributor

elasticmachine commented Jan 12, 2021

💔 Tests 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 #584 updated

  • Start Time: 2021-03-11T07:44:44.043+0000

  • Duration: 50 min 33 sec

  • Commit: 3a86b77

Test stats 🧪

Test Results
Failed 26
Passed 55
Skipped 0
Total 81

Trends 🧪

Image of Build Times

Image of Tests

Test errors 26

Expand to view the tests failures

> Show only the first 10 test failures

Initializing / End-To-End Tests / ubuntu-18.04_metricbeat_integrations && vsphere / vsphere-latest sends metrics to Elasticsearch without errors – Integrations
    Expand to view the error details

     Step there are no errors in the index 
    

  • no stacktrace
Initializing / End-To-End Tests / ubuntu-18.04_metricbeat_metricbeat / Metricbeat's metricbeat.docker configuration sends metrics to Elasticsearch without errors – Metricbeat
    Expand to view the error details

     Step there are no errors in the index 
    

  • no stacktrace
Initializing / End-To-End Tests / ubuntu-18.04_metricbeat_integrations && etcd / etcd-3.2.25 sends metrics to Elasticsearch without errors – Integrations
    Expand to view the error details

     Step there are no errors in the index 
    

  • no stacktrace
Initializing / End-To-End Tests / ubuntu-18.04_metricbeat_integrations && etcd / etcd-3.3.10 sends metrics to Elasticsearch without errors – Integrations
    Expand to view the error details

     Step there are no errors in the index 
    

  • no stacktrace
Initializing / End-To-End Tests / ubuntu-18.04_metricbeat_integrations && apache / apache-2.4.12 sends metrics to Elasticsearch without errors – Integrations
    Expand to view the error details

     Step there are no errors in the index 
    

  • no stacktrace
Initializing / End-To-End Tests / ubuntu-18.04_metricbeat_integrations && apache / apache-2.4.20 sends metrics to Elasticsearch without errors – Integrations
    Expand to view the error details

     Step there are no errors in the index 
    

  • no stacktrace
Initializing / End-To-End Tests / ubuntu-18.04_metricbeat_integrations && envoyproxy / envoyproxy-1.7.0 sends metrics to Elasticsearch without errors – Integrations
    Expand to view the error details

     Step there are no errors in the index 
    

  • no stacktrace
Initializing / End-To-End Tests / ubuntu-18.04_metricbeat_integrations && envoyproxy / envoyproxy-1.12.0 sends metrics to Elasticsearch without errors – Integrations
    Expand to view the error details

     Step there are no errors in the index 
    

  • no stacktrace
Initializing / End-To-End Tests / ubuntu-18.04_metricbeat_integrations && dropwizard / dropwizard-4.1.2 sends metrics to Elasticsearch without errors – Integrations
    Expand to view the error details

     Step there are no errors in the index 
    

  • no stacktrace
Initializing / End-To-End Tests / ubuntu-18.04_metricbeat_integrations && dropwizard / dropwizard-4.0.0 sends metrics to Elasticsearch without errors – Integrations
    Expand to view the error details

     Step there are no errors in the index 
    

  • no stacktrace

Steps errors 28

Expand to view the steps failures

Show only the first 10 steps failures

Run functional tests for metricbeat:integrations && mysql && ~@nightly
  • Took 44 min 54 sec . View more details on here
  • Description: .ci/scripts/functional-test.sh "metricbeat" "integrations && mysql && ~@nightly" "6.8-SNAPSHOT" "6.8-SNAPSHOT"
Archive the artifacts
  • Took 0 min 1 sec . View more details on here
  • Description: [2021-03-11T08:34:12.728Z] Archiving artifacts script returned exit code 2
Archive the artifacts
  • Took 0 min 0 sec . View more details on here
  • Description: [2021-03-11T08:34:14.467Z] Archiving artifacts hudson.AbortException: script returned exit code 2
Run functional tests for metricbeat:integrations && redis && ~@nightly
  • Took 20 min 36 sec . View more details on here
  • Description: .ci/scripts/functional-test.sh "metricbeat" "integrations && redis && ~@nightly" "6.8-SNAPSHOT" "6.8-SNAPSHOT"
Archive the artifacts
  • Took 0 min 1 sec . View more details on here
  • Description: [2021-03-11T08:10:05.734Z] Archiving artifacts script returned exit code 2
Archive the artifacts
  • Took 0 min 0 sec . View more details on here
  • Description: [2021-03-11T08:10:07.378Z] Archiving artifacts hudson.AbortException: script returned exit code 2
Run functional tests for metricbeat:integrations && vsphere && ~@nightly
  • Took 8 min 5 sec . View more details on here
  • Description: .ci/scripts/functional-test.sh "metricbeat" "integrations && vsphere && ~@nightly" "6.8-SNAPSHOT" "6.8-SNAPSHOT"
Archive the artifacts
  • Took 0 min 1 sec . View more details on here
  • Description: [2021-03-11T07:58:37.968Z] Archiving artifacts script returned exit code 2
Archive the artifacts
  • Took 0 min 0 sec . View more details on here
  • Description: [2021-03-11T07:58:39.365Z] Archiving artifacts hudson.AbortException: script returned exit code 2
Error signal
  • Took 0 min 0 sec . View more details on here
  • Description: hudson.AbortException: script returned exit code 2

Log output

Expand to view the last 100 lines of log output

[2021-03-11T08:31:55.561Z] time="2021-03-11T08:31:55Z" level=warning msg="Waiting for more hits in the index" currentHits=0 desiredHits=5 elapsedTime=2m49.015458353s index=metricbeat-6.8-mysql-percona-8.0.13-4-oloukssb retry=37
[2021-03-11T08:31:56.933Z] {"level":"debug","time":"2021-03-11T08:31:56Z","message":"sent request with 0 transactions, 3 spans, 0 errors, 1 metricset"}
[2021-03-11T08:31:58.352Z] time="2021-03-11T08:31:58Z" level=debug msg="Response information" hits=0 status="200 OK" took=0
[2021-03-11T08:31:58.352Z] time="2021-03-11T08:31:58Z" level=warning msg="Waiting for more hits in the index" currentHits=0 desiredHits=5 elapsedTime=2m52.221479475s index=metricbeat-6.8-mysql-percona-8.0.13-4-oloukssb retry=38
[2021-03-11T08:32:01.928Z] time="2021-03-11T08:32:01Z" level=debug msg="Response information" hits=0 status="200 OK" took=0
[2021-03-11T08:32:01.928Z] time="2021-03-11T08:32:01Z" level=warning msg="Waiting for more hits in the index" currentHits=0 desiredHits=5 elapsedTime=2m55.520703158s index=metricbeat-6.8-mysql-percona-8.0.13-4-oloukssb retry=39
[2021-03-11T08:32:08.483Z] {"level":"debug","time":"2021-03-11T08:32:08Z","message":"sent request with 0 transactions, 2 spans, 0 errors, 0 metricsets"}
[2021-03-11T08:32:09.049Z] time="2021-03-11T08:32:08Z" level=debug msg="Response information" hits=0 status="200 OK" took=0
[2021-03-11T08:32:09.049Z] time="2021-03-11T08:32:08Z" level=warning msg="Waiting for more hits in the index" currentHits=0 desiredHits=5 elapsedTime=3m2.744088049s index=metricbeat-6.8-mysql-percona-8.0.13-4-oloukssb retry=40
[2021-03-11T08:32:14.528Z] time="2021-03-11T08:32:14Z" level=debug msg="Response information" hits=0 status="200 OK" took=0
[2021-03-11T08:32:14.528Z] time="2021-03-11T08:32:14Z" level=warning msg="Waiting for more hits in the index" currentHits=0 desiredHits=5 elapsedTime=3m8.404853033s index=metricbeat-6.8-mysql-percona-8.0.13-4-oloukssb retry=41
[2021-03-11T08:32:18.814Z] time="2021-03-11T08:32:18Z" level=debug msg="Response information" hits=0 status="200 OK" took=0
[2021-03-11T08:32:18.814Z] time="2021-03-11T08:32:18Z" level=warning msg="Waiting for more hits in the index" currentHits=0 desiredHits=5 elapsedTime=3m12.137208051s index=metricbeat-6.8-mysql-percona-8.0.13-4-oloukssb retry=42
[2021-03-11T08:32:19.072Z] {"level":"debug","time":"2021-03-11T08:32:18Z","message":"sent request with 0 transactions, 3 spans, 0 errors, 0 metricsets"}
[2021-03-11T08:32:22.350Z] {"level":"debug","time":"2021-03-11T08:32:22Z","message":"gathering metrics"}
[2021-03-11T08:32:25.629Z] time="2021-03-11T08:32:25Z" level=debug msg="Response information" hits=0 status="200 OK" took=0
[2021-03-11T08:32:25.629Z] time="2021-03-11T08:32:25Z" level=warning msg="Waiting for more hits in the index" currentHits=0 desiredHits=5 elapsedTime=3m19.47794283s index=metricbeat-6.8-mysql-percona-8.0.13-4-oloukssb retry=43
[2021-03-11T08:32:30.893Z] time="2021-03-11T08:32:30Z" level=debug msg="Response information" hits=0 status="200 OK" took=0
[2021-03-11T08:32:30.893Z] time="2021-03-11T08:32:30Z" level=warning msg="Waiting for more hits in the index" currentHits=0 desiredHits=5 elapsedTime=3m24.666229069s index=metricbeat-6.8-mysql-percona-8.0.13-4-oloukssb retry=44
[2021-03-11T08:32:32.301Z] {"level":"debug","time":"2021-03-11T08:32:32Z","message":"sent request with 0 transactions, 2 spans, 0 errors, 1 metricset"}
[2021-03-11T08:32:35.580Z] time="2021-03-11T08:32:34Z" level=debug msg="Response information" hits=0 status="200 OK" took=0
[2021-03-11T08:32:35.580Z] time="2021-03-11T08:32:34Z" level=warning msg="Waiting for more hits in the index" currentHits=0 desiredHits=5 elapsedTime=3m28.860195836s index=metricbeat-6.8-mysql-percona-8.0.13-4-oloukssb retry=45
[2021-03-11T08:32:40.846Z] time="2021-03-11T08:32:40Z" level=debug msg="Response information" hits=0 status="200 OK" took=0
[2021-03-11T08:32:40.846Z] time="2021-03-11T08:32:40Z" level=warning msg="Waiting for more hits in the index" currentHits=0 desiredHits=5 elapsedTime=3m34.721984164s index=metricbeat-6.8-mysql-percona-8.0.13-4-oloukssb retry=46
[2021-03-11T08:32:45.026Z] {"level":"debug","time":"2021-03-11T08:32:45Z","message":"sent request with 0 transactions, 2 spans, 0 errors, 0 metricsets"}
[2021-03-11T08:32:47.555Z] time="2021-03-11T08:32:47Z" level=debug msg="Response information" hits=0 status="200 OK" took=0
[2021-03-11T08:32:47.555Z] time="2021-03-11T08:32:47Z" level=warning msg="Waiting for more hits in the index" currentHits=0 desiredHits=5 elapsedTime=3m41.412881979s index=metricbeat-6.8-mysql-percona-8.0.13-4-oloukssb retry=47
[2021-03-11T08:32:52.838Z] {"level":"debug","time":"2021-03-11T08:32:52Z","message":"gathering metrics"}
[2021-03-11T08:32:53.771Z] time="2021-03-11T08:32:53Z" level=debug msg="Response information" hits=0 status="200 OK" took=0
[2021-03-11T08:32:53.771Z] time="2021-03-11T08:32:53Z" level=warning msg="Waiting for more hits in the index" currentHits=0 desiredHits=5 elapsedTime=3m47.58529422s index=metricbeat-6.8-mysql-percona-8.0.13-4-oloukssb retry=48
[2021-03-11T08:32:57.952Z] {"level":"debug","time":"2021-03-11T08:32:57Z","message":"sent request with 0 transactions, 2 spans, 0 errors, 1 metricset"}
[2021-03-11T08:32:58.886Z] time="2021-03-11T08:32:58Z" level=debug msg="Response information" hits=0 status="200 OK" took=0
[2021-03-11T08:32:58.886Z] time="2021-03-11T08:32:58Z" level=warning msg="Waiting for more hits in the index" currentHits=0 desiredHits=5 elapsedTime=3m52.599481159s index=metricbeat-6.8-mysql-percona-8.0.13-4-oloukssb retry=49
[2021-03-11T08:33:04.147Z] time="2021-03-11T08:33:03Z" level=debug msg="Response information" hits=0 status="200 OK" took=0
[2021-03-11T08:33:04.147Z] time="2021-03-11T08:33:03Z" level=warning msg="Waiting for more hits in the index" currentHits=0 desiredHits=5 elapsedTime=3m57.219995952s index=metricbeat-6.8-mysql-percona-8.0.13-4-oloukssb retry=50
[2021-03-11T08:33:08.393Z] time="2021-03-11T08:33:08Z" level=debug msg="Response information" hits=0 status="200 OK" took=0
[2021-03-11T08:33:08.393Z] time="2021-03-11T08:33:08Z" level=warning msg="Waiting for more hits in the index" currentHits=0 desiredHits=5 elapsedTime=4m2.038411637s index=metricbeat-6.8-mysql-percona-8.0.13-4-oloukssb retry=51
[2021-03-11T08:33:08.976Z] {"level":"debug","time":"2021-03-11T08:33:08Z","message":"sent request with 0 transactions, 3 spans, 0 errors, 0 metricsets"}
[2021-03-11T08:33:15.983Z] time="2021-03-11T08:33:15Z" level=debug msg="Response information" hits=0 status="200 OK" took=0
[2021-03-11T08:33:15.983Z] time="2021-03-11T08:33:15Z" level=warning msg="Waiting for more hits in the index" currentHits=0 desiredHits=5 elapsedTime=4m9.306903829s index=metricbeat-6.8-mysql-percona-8.0.13-4-oloukssb retry=52
[2021-03-11T08:33:22.538Z] time="2021-03-11T08:33:21Z" level=debug msg="Response information" hits=0 status="200 OK" took=0
[2021-03-11T08:33:22.538Z] time="2021-03-11T08:33:21Z" level=warning msg="Waiting for more hits in the index" currentHits=0 desiredHits=5 elapsedTime=4m15.53045857s index=metricbeat-6.8-mysql-percona-8.0.13-4-oloukssb retry=53
[2021-03-11T08:33:22.538Z] {"level":"debug","time":"2021-03-11T08:33:22Z","message":"gathering metrics"}
[2021-03-11T08:33:25.899Z] {"level":"debug","time":"2021-03-11T08:33:25Z","message":"sent request with 0 transactions, 2 spans, 0 errors, 1 metricset"}
[2021-03-11T08:33:26.464Z] time="2021-03-11T08:33:26Z" level=debug msg="Response information" hits=0 status="200 OK" took=0
[2021-03-11T08:33:26.464Z] time="2021-03-11T08:33:26Z" level=warning msg="Waiting for more hits in the index" currentHits=0 desiredHits=5 elapsedTime=4m20.310004148s index=metricbeat-6.8-mysql-percona-8.0.13-4-oloukssb retry=54
[2021-03-11T08:33:30.646Z] time="2021-03-11T08:33:30Z" level=debug msg="Response information" hits=0 status="200 OK" took=0
[2021-03-11T08:33:30.646Z] time="2021-03-11T08:33:30Z" level=warning msg="Waiting for more hits in the index" currentHits=0 desiredHits=5 elapsedTime=4m24.055838106s index=metricbeat-6.8-mysql-percona-8.0.13-4-oloukssb retry=55
[2021-03-11T08:33:37.205Z] time="2021-03-11T08:33:36Z" level=debug msg="Response information" hits=0 status="200 OK" took=0
[2021-03-11T08:33:37.205Z] time="2021-03-11T08:33:36Z" level=warning msg="Waiting for more hits in the index" currentHits=0 desiredHits=5 elapsedTime=4m30.159231482s index=metricbeat-6.8-mysql-percona-8.0.13-4-oloukssb retry=56
[2021-03-11T08:33:37.205Z] {"level":"debug","time":"2021-03-11T08:33:36Z","message":"sent request with 0 transactions, 3 spans, 0 errors, 0 metricsets"}
[2021-03-11T08:33:41.389Z] time="2021-03-11T08:33:40Z" level=debug msg="Response information" hits=0 status="200 OK" took=0
[2021-03-11T08:33:41.389Z] time="2021-03-11T08:33:40Z" level=warning msg="Waiting for more hits in the index" currentHits=0 desiredHits=5 elapsedTime=4m34.780998813s index=metricbeat-6.8-mysql-percona-8.0.13-4-oloukssb retry=57
[2021-03-11T08:33:48.277Z] time="2021-03-11T08:33:47Z" level=debug msg="Response information" hits=0 status="200 OK" took=1
[2021-03-11T08:33:48.277Z] time="2021-03-11T08:33:47Z" level=warning msg="Waiting for more hits in the index" currentHits=0 desiredHits=5 elapsedTime=4m40.997728499s index=metricbeat-6.8-mysql-percona-8.0.13-4-oloukssb retry=58
[2021-03-11T08:33:51.557Z] {"level":"debug","time":"2021-03-11T08:33:50Z","message":"sent request with 0 transactions, 2 spans, 0 errors, 0 metricsets"}
[2021-03-11T08:33:52.122Z] {"level":"debug","time":"2021-03-11T08:33:52Z","message":"gathering metrics"}
[2021-03-11T08:33:53.056Z] time="2021-03-11T08:33:52Z" level=debug msg="Response information" hits=0 status="200 OK" took=0
[2021-03-11T08:33:53.056Z] time="2021-03-11T08:33:52Z" level=warning msg="Waiting for more hits in the index" currentHits=0 desiredHits=5 elapsedTime=4m46.78518471s index=metricbeat-6.8-mysql-percona-8.0.13-4-oloukssb retry=59
[2021-03-11T08:33:59.922Z] time="2021-03-11T08:33:58Z" level=debug msg="Response information" hits=0 status="200 OK" took=0
[2021-03-11T08:33:59.922Z] time="2021-03-11T08:33:58Z" level=warning msg="Waiting for more hits in the index" currentHits=0 desiredHits=5 elapsedTime=4m52.701193146s index=metricbeat-6.8-mysql-percona-8.0.13-4-oloukssb retry=60
[2021-03-11T08:34:02.449Z] {"level":"debug","time":"2021-03-11T08:34:02Z","message":"sent request with 0 transactions, 2 spans, 0 errors, 1 metricset"}
[2021-03-11T08:34:04.978Z] time="2021-03-11T08:34:04Z" level=debug msg="Response information" hits=0 status="200 OK" took=0
[2021-03-11T08:34:04.978Z] time="2021-03-11T08:34:04Z" level=warning msg="Waiting for more hits in the index" currentHits=0 desiredHits=5 elapsedTime=4m58.388462559s index=metricbeat-6.8-mysql-percona-8.0.13-4-oloukssb retry=61
[2021-03-11T08:34:05.237Z] Stopping metricbeat_metricbeat_1 ... 
[2021-03-11T08:34:05.495Z] 
Stopping metricbeat_metricbeat_1 ... done
Removing metricbeat_metricbeat_1 ... 
[2021-03-11T08:34:05.495Z] 
Removing metricbeat_metricbeat_1 ... done
Going to remove metricbeat_metricbeat_1
[2021-03-11T08:34:05.754Z] time="2021-03-11T08:34:05Z" level=debug msg="Docker compose executed." cmd="[rm -fvs metricbeat]" composeFilePaths="[/var/lib/jenkins/workspace/e2e-tests_e2e-testing-mbp_PR-584/.op/compose/profiles/metricbeat/docker-compose.yml /var/lib/jenkins/workspace/e2e-tests_e2e-testing-mbp_PR-584/.op/compose/services/metricbeat/docker-compose.yml /var/lib/jenkins/workspace/e2e-tests_e2e-testing-mbp_PR-584/.op/compose/services/mysql/docker-compose.yml]" env="map[BEAT_STRICT_PERMS:false MYSQL_PATH:/var/lib/jenkins/workspace/e2e-tests_e2e-testing-mbp_PR-584/.op/compose/services/mysql MYSQL_VARIANT:percona MYSQL_VERSION:8.0.13-4 indexName:metricbeat-6.8-mysql-percona-8.0.13-4-oloukssb logLevel:debug metricbeatConfigFile:/var/lib/jenkins/workspace/e2e-tests_e2e-testing-mbp_PR-584/.op/compose/services/mysql/_meta/config.yml metricbeatDockerNamespace:beats metricbeatPlatform:linux/amd64 metricbeatTag:6.8-SNAPSHOT mysqlTag:8.0.13-4-amd64 serviceName:mysql stackVersion:6.8.15-SNAPSHOT]" profile=metricbeat
[2021-03-11T08:34:05.754Z] time="2021-03-11T08:34:05Z" level=debug msg="Service removed from compose" profile=metricbeat service=metricbeat
[2021-03-11T08:34:06.321Z] Stopping metricbeat_mysql_1 ... 
[2021-03-11T08:34:09.604Z] 
Stopping metricbeat_mysql_1 ... done
Removing metricbeat_mysql_1 ... 
[2021-03-11T08:34:09.604Z] 
Removing metricbeat_mysql_1 ... done
Going to remove metricbeat_mysql_1
[2021-03-11T08:34:09.605Z] time="2021-03-11T08:34:09Z" level=debug msg="Docker compose executed." cmd="[rm -fvs mysql]" composeFilePaths="[/var/lib/jenkins/workspace/e2e-tests_e2e-testing-mbp_PR-584/.op/compose/profiles/metricbeat/docker-compose.yml /var/lib/jenkins/workspace/e2e-tests_e2e-testing-mbp_PR-584/.op/compose/services/metricbeat/docker-compose.yml /var/lib/jenkins/workspace/e2e-tests_e2e-testing-mbp_PR-584/.op/compose/services/mysql/docker-compose.yml]" env="map[BEAT_STRICT_PERMS:false MYSQL_PATH:/var/lib/jenkins/workspace/e2e-tests_e2e-testing-mbp_PR-584/.op/compose/services/mysql MYSQL_VARIANT:percona MYSQL_VERSION:8.0.13-4 indexName:metricbeat-6.8-mysql-percona-8.0.13-4-oloukssb logLevel:debug metricbeatConfigFile:/var/lib/jenkins/workspace/e2e-tests_e2e-testing-mbp_PR-584/.op/compose/services/mysql/_meta/config.yml metricbeatDockerNamespace:beats metricbeatPlatform:linux/amd64 metricbeatTag:6.8-SNAPSHOT mysqlTag:8.0.13-4-amd64 serviceName:mysql stackVersion:6.8.15-SNAPSHOT]" profile=metricbeat
[2021-03-11T08:34:09.605Z] time="2021-03-11T08:34:09Z" level=debug msg="Service removed from compose" profile=metricbeat service=mysql
[2021-03-11T08:34:09.605Z] time="2021-03-11T08:34:09Z" level=debug msg="Index deleted using Elasticsearch Go client" indexName=metricbeat-6.8-mysql-percona-8.0.13-4-oloukssb status="400 Bad Request"
[2021-03-11T08:34:09.605Z] time="2021-03-11T08:34:09Z" level=debug msg="Index Alias deleted using Elasticsearch Go client" indexAlias=metricbeat-6.8-mysql-percona-8.0.13-4-oloukssb status="400 Bad Request"
[2021-03-11T08:34:09.605Z] {"level":"debug","time":"2021-03-11T08:34:09Z","message":"sent request with 1 transaction, 4 spans, 0 errors, 0 metricsets"}
[2021-03-11T08:34:09.863Z] Stopping metricbeat_elasticsearch_1 ... 
[2021-03-11T08:34:11.248Z] 
Stopping metricbeat_elasticsearch_1 ... done
Removing metricbeat_elasticsearch_1 ... 
[2021-03-11T08:34:11.248Z] 
Removing metricbeat_elasticsearch_1 ... done
Removing network metricbeat_default
[2021-03-11T08:34:11.506Z] time="2021-03-11T08:34:11Z" level=debug msg="Docker compose executed." cmd="[down --remove-orphans]" composeFilePaths="[/var/lib/jenkins/workspace/e2e-tests_e2e-testing-mbp_PR-584/.op/compose/profiles/metricbeat/docker-compose.yml]" env="map[BEAT_STRICT_PERMS:false MYSQL_PATH:/var/lib/jenkins/workspace/e2e-tests_e2e-testing-mbp_PR-584/.op/compose/services/mysql MYSQL_VARIANT:percona MYSQL_VERSION:8.0.13-4 indexName:metricbeat-6.8-mysql-percona-8.0.13-4-oloukssb logLevel:debug metricbeatConfigFile:/var/lib/jenkins/workspace/e2e-tests_e2e-testing-mbp_PR-584/.op/compose/services/mysql/_meta/config.yml metricbeatDockerNamespace:beats metricbeatPlatform:linux/amd64 metricbeatTag:6.8-SNAPSHOT mysqlTag:8.0.13-4-amd64 serviceName:mysql stackVersion:6.8.15-SNAPSHOT]" profile=metricbeat
[2021-03-11T08:34:11.506Z] {"level":"debug","time":"2021-03-11T08:34:11Z","message":"sent request with 1 transaction, 2 spans, 0 errors, 0 metricsets"}
[2021-03-11T08:34:11.506Z] Makefile:71: recipe for target 'functional-test' failed
[2021-03-11T08:34:11.506Z] make: *** [functional-test] Error 1
[2021-03-11T08:34:11.587Z] [INFO] Stopping Filebeat Docker container
[2021-03-11T08:34:11.869Z] + docker exec -t ee9fab614d4c87fea531ccc4868cad726c804c141d02406753885ce96f1f7303 chmod -R ugo+rw /output
[2021-03-11T08:34:12.454Z] + docker stop --time 30 ee9fab614d4c87fea531ccc4868cad726c804c141d02406753885ce96f1f7303
[2021-03-11T08:34:12.711Z] ee9fab614d4c87fea531ccc4868cad726c804c141d02406753885ce96f1f7303
[2021-03-11T08:34:12.728Z] Archiving artifacts
[2021-03-11T08:34:14.157Z] Recording test results
[2021-03-11T08:34:14.449Z] [Checks API] No suitable checks publisher found.
[2021-03-11T08:34:14.467Z] Archiving artifacts
[2021-03-11T08:34:14.500Z] Failed in branch ubuntu-18.04_metricbeat_integrations && mysql
[2021-03-11T08:34:15.500Z] Stage "Release" skipped due to earlier failure(s)
[2021-03-11T08:34:16.423Z] Running on worker-1244230 in /var/lib/jenkins/workspace/e2e-tests_e2e-testing-mbp_PR-584
[2021-03-11T08:34:16.467Z] [INFO] getVaultSecret: Getting secrets
[2021-03-11T08:34:16.556Z] Masking supported pattern matches of $VAULT_ADDR or $VAULT_ROLE_ID or $VAULT_SECRET_ID
[2021-03-11T08:34:18.792Z] + chmod 755 generate-build-data.sh
[2021-03-11T08:34:18.792Z] + ./generate-build-data.sh https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/e2e-tests/e2e-testing-mbp/PR-584/ https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/e2e-tests/e2e-testing-mbp/PR-584/runs/15 FAILURE 2973359
[2021-03-11T08:34:18.792Z] INFO: curl https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/e2e-tests/e2e-testing-mbp/PR-584/runs/15/steps/?limit=10000 -o steps-info.json

@mdelapenya
Copy link
Contributor Author

@jsoriano I don't think we can continue with this maintenance branch, as it seems the Beats project did not backport the supported-versions files to 6.8 branch. This e2e autodiscover those files (and the related docker-compose files) to start the services needed in the e2e tests.

I envision two options:

  1. discard the tests for 6.8
  2. send a PR to Beats:6.8 simply adding a copy of the supported-versions.ym and docker-compose files.

wdyt?

@jsoriano
Copy link
Member

send a PR to Beats:6.8 simply adding a copy of the supported-versions.ym and docker-compose files.

I don't think that copying and adjusting the supported-versions.yml would be problematic, but splitting the docker-compose files required several changes in the testing frameworks. At this point the testing frameworks have probably diverged quite a lot, so backporting these changes can require some effort, not sure if it would worth it.

Maybe a compromise solution is to add the adjusted supported-version.yml to 6.8, and get the docker-compose.yml files from a fixed version in 7.x. Would something like this be possible from the E2E testing side?

@mdelapenya
Copy link
Contributor Author

Maybe a compromise solution is to add the adjusted supported-version.yml to 6.8, and get the docker-compose.yml files from a fixed version in 7.x. Would something like this be possible from the E2E testing side?

You mean from e2e codebase? I see it totally doable: cloning Beats in a specific branch (7.x instead of 6.8) and use the compose files in there. See ee8e79f#diff-2577dc7dd20ba506a083636a88fc3a51d1b3e7b60bc642adcd1b94f882441711R86. It would be replacing the branch

e2e/Makefile Outdated Show resolved Hide resolved
e2e/Makefile Outdated Show resolved Hide resolved
@mdelapenya
Copy link
Contributor Author

@jsoriano the errors that are shown in the CI are related to not being able to create the index for metricbeat:

[2021-01-18T07:53:00.982Z] time="2021-01-18T07:53:00Z" level=warning msg="There was an error executing the query" desiredHits=5 elapsedTime=2m58.087179863s error="Error getting response from Elasticsearch. Status: 404 Not Found, ResponseError: map[error:map[index:metricbeat-6.8-ceph-master-6373c6a-jewel-centos-7-x86_64-d92wj6vg index_uuid:na reason:no such index resource.id:metricbeat-6.8-ceph-master-6373c6a-jewel-centos-7-x86_64-d92wj6vg resource.type:index_or_alias root_cause:[map[index:metricbeat-6.8-ceph-master-6373c6a-jewel-centos-7-x86_64-d92wj6vg index_uuid:na reason:no such index resource.id:metricbeat-6.8-ceph-master-6373c6a-jewel-centos-7-x86_64-d92wj6vg resource.type:index_or_alias type:index_not_found_exception]] type:index_not_found_exception] status:404]" index=metricbeat-6.8-ceph-master-6373c6a-jewel-centos-7-x86_64-d92wj6vg retry=42

Do you think we need to adapt the code in the tests to define the index name in another manner? I can see this log in metricbeat container logs:

...
index_patterns:[metricbeat-6.8.14-*]
...

where we expect the index name to be metricbeat-6.8-$INTEGRATION...

@jsoriano
Copy link
Member

@mdelapenya is this happening with all integrations, or only with Ceph?

We would need to review the index settings we are using, there can be differences between 6.x and 7.x. Since 7.0 ILM is enabled by default, so indexes created can be different. Maybe the issue is related to that.

If this is the case I can think on two possible solutions:

  • Check for indexes expected without ILM (if I remember well, they contained the full version and a timestamp).
  • Enable ILM in 6.8 builds, so they are created using the same patterns as in 7.x.

I would prefer first option, as this is the default in 6.8.

If this is only happening with some integrations, the issue could be that without ILM indexes are not created till an event is sent. Modules like Ceph can take some time till some event is generated, what could delay the creation of the index.

@mdelapenya
Copy link
Contributor Author

@mdelapenya is this happening with all integrations, or only with Ceph?

We would need to review the index settings we are using, there can be differences between 6.x and 7.x. Since 7.0 ILM is enabled by default, so indexes created can be different. Maybe the issue is related to that.

If this is the case I can think on two possible solutions:

  • Check for indexes expected without ILM (if I remember well, they contained the full version and a timestamp).
  • Enable ILM in 6.8 builds, so they are created using the same patterns as in 7.x.

I would prefer first option, as this is the default in 6.8.

If this is only happening with some integrations, the issue could be that without ILM indexes are not created till an event is sent. Modules like Ceph can take some time till some event is generated, what could delay the creation of the index.

It happens to any integration.

@mdelapenya
Copy link
Contributor Author

mdelapenya commented Jan 18, 2021

More on this:

  1. I enabled ILM using output.elasticsearch.il.enabled=true and output.elasticsearch.ilm.rollover_alias=${indexName}, and now the index seems to be there.
  2. I realised that the ES search result has different structure, which makes me think the query and the assertions for errors presence are probably wrong for 6.8. Remember that we use the ES Go client in its v8 version.

An example output:

You'll see that no event.module=ceph is present in the output.

{
    "took": 25,
    "timed_out": false,
    "_shards": {
        "total": 5,
        "successful": 5,
        "skipped": 0,
        "failed": 0
    },
    "hits": {
        "total": 181,
        "max_score": 1.0,
        "hits": [
            {
                "_index": "metricbeat-6.8-ceph-master-97985eb-nautilus-centos-7-x86_64-oky6rooz-2021.01.18-000001",
                "_type": "doc",
                "_id": "As4VF3cB7TFTnNGpbCcl",
                "_score": 1.0,
                "_source": {
                    "@timestamp": "2021-01-18T20:00:14.909Z",
                    "metricset": {
                        "module": "system",
                        "rtt": 219,
                        "name": "memory"
                    },
                    "event": {
                        "dataset": "system.memory",
                        "duration": 219000
                    },
                    "system": {
                        "memory": {
                            "actual": {
                                "free": 6021242880,
                                "used": {
                                    "pct": 0.279,
                                    "bytes": 2330558464
                                }
                            },
                            "swap": {
                                "free": 2147479552,
                                "total": 2147479552,
                                "used": {
                                    "bytes": 0,
                                    "pct": 0
                                }
                            },
                            "hugepages": {
                                "free": 0,
                                "reserved": 0,
                                "surplus": 0,
                                "default_size": 2097152,
                                "total": 0,
                                "used": {
                                    "pct": 0,
                                    "bytes": 0
                                }
                            },
                            "total": 8351801344,
                            "used": {
                                "bytes": 6198669312,
                                "pct": 0.7422
                            },
                            "free": 2153132032
                        }
                    },
                    "beat": {
                        "hostname": "02974131b615",
                        "version": "6.8.14",
                        "name": "02974131b615"
                    },
                    "host": {
                        "name": "02974131b615"
                    }
                }
            },
            {
                "_index": "metricbeat-6.8-ceph-master-97985eb-nautilus-centos-7-x86_64-oky6rooz-2021.01.18-000001",
                "_type": "doc",
                "_id": "A84VF3cB7TFTnNGpbCcl",
                "_score": 1.0,
                "_source": {
                    "@timestamp": "2021-01-18T20:00:14.909Z",
                    "system": {
                        "cpu": {
                            "nice": {
                                "pct": 0
                            },
                            "user": {
                                "pct": 0.2088
                            },
                            "irq": {
                                "pct": 0
                            },
                            "steal": {
                                "pct": 0
                            },
                            "total": {
                                "pct": 0.3494
                            },
                            "cores": 4,
                            "system": {
                                "pct": 0.1406
                            },
                            "idle": {
                                "pct": 3.6485
                            },
                            "iowait": {
                                "pct": 0.0021
                            },
                            "softirq": {
                                "pct": 0
                            }
                        }
                    },
                    "beat": {
                        "name": "02974131b615",
                        "hostname": "02974131b615",
                        "version": "6.8.14"
                    },
                    "host": {
                        "name": "02974131b615"
                    },
                    "event": {
                        "dataset": "system.cpu",
                        "duration": 259300
                    },
                    "metricset": {
                        "module": "system",
                        "rtt": 259,
                        "name": "cpu"
                    }
                }
            },
            {
                "_index": "metricbeat-6.8-ceph-master-97985eb-nautilus-centos-7-x86_64-oky6rooz-2021.01.18-000001",
                "_type": "doc",
                "_id": "BM4VF3cB7TFTnNGpbCcl",
                "_score": 1.0,
                "_source": {
                    "@timestamp": "2021-01-18T20:00:14.910Z",
                    "metricset": {
                        "rtt": 329,
                        "name": "network",
                        "module": "system"
                    },
                    "event": {
                        "duration": 329900,
                        "dataset": "system.network"
                    },
                    "system": {
                        "network": {
                            "name": "ip6tnl0",
                            "in": {
                                "errors": 0,
                                "dropped": 0,
                                "bytes": 0,
                                "packets": 0
                            },
                            "out": {
                                "errors": 0,
                                "dropped": 0,
                                "packets": 0,
                                "bytes": 0
                            }
                        }
                    },
                    "host": {
                        "name": "02974131b615"
                    },
                    "beat": {
                        "name": "02974131b615",
                        "hostname": "02974131b615",
                        "version": "6.8.14"
                    }
                }
            },
            {
                "_index": "metricbeat-6.8-ceph-master-97985eb-nautilus-centos-7-x86_64-oky6rooz-2021.01.18-000001",
                "_type": "doc",
                "_id": "js4UF3cB7TFTnNGpgiYP",
                "_score": 1.0,
                "_source": {
                    "@timestamp": "2021-01-18T19:59:14.975Z",
                    "event": {
                        "dataset": "system.load",
                        "duration": 111200
                    },
                    "system": {
                        "load": {
                            "15": 0.4,
                            "norm": {
                                "15": 0.1,
                                "1": 0.18,
                                "5": 0.165
                            },
                            "cores": 4,
                            "1": 0.72,
                            "5": 0.66
                        }
                    },
                    "metricset": {
                        "name": "load",
                        "module": "system",
                        "rtt": 111
                    },
                    "beat": {
                        "hostname": "02974131b615",
                        "version": "6.8.14",
                        "name": "02974131b615"
                    },
                    "host": {
                        "name": "02974131b615"
                    }
                }
            },
            {
                "_index": "metricbeat-6.8-ceph-master-97985eb-nautilus-centos-7-x86_64-oky6rooz-2021.01.18-000001",
                "_type": "doc",
                "_id": "j84UF3cB7TFTnNGpgiYP",
                "_score": 1.0,
                "_source": {
                    "@timestamp": "2021-01-18T19:59:14.978Z",
                    "system": {
                        "network": {
                            "name": "ip6tnl0",
                            "in": {
                                "packets": 0,
                                "errors": 0,
                                "dropped": 0,
                                "bytes": 0
                            },
                            "out": {
                                "errors": 0,
                                "dropped": 0,
                                "packets": 0,
                                "bytes": 0
                            }
                        }
                    },
                    "host": {
                        "name": "02974131b615"
                    },
                    "beat": {
                        "name": "02974131b615",
                        "hostname": "02974131b615",
                        "version": "6.8.14"
                    },
                    "metricset": {
                        "module": "system",
                        "rtt": 198,
                        "name": "network"
                    },
                    "event": {
                        "dataset": "system.network",
                        "duration": 198800
                    }
                }
            },
            {
                "_index": "metricbeat-6.8-ceph-master-97985eb-nautilus-centos-7-x86_64-oky6rooz-2021.01.18-000001",
                "_type": "doc",
                "_id": "kc4UF3cB7TFTnNGpgiYP",
                "_score": 1.0,
                "_source": {
                    "@timestamp": "2021-01-18T19:59:14.978Z",
                    "metricset": {
                        "name": "network",
                        "module": "system",
                        "rtt": 255
                    },
                    "event": {
                        "duration": 255300,
                        "dataset": "system.network"
                    },
                    "beat": {
                        "name": "02974131b615",
                        "hostname": "02974131b615",
                        "version": "6.8.14"
                    },
                    "host": {
                        "name": "02974131b615"
                    },
                    "system": {
                        "network": {
                            "out": {
                                "bytes": 0,
                                "errors": 0,
                                "dropped": 0,
                                "packets": 0
                            },
                            "name": "tunl0",
                            "in": {
                                "packets": 0,
                                "errors": 0,
                                "dropped": 0,
                                "bytes": 0
                            }
                        }
                    }
                }
            },
            {
                "_index": "metricbeat-6.8-ceph-master-97985eb-nautilus-centos-7-x86_64-oky6rooz-2021.01.18-000001",
                "_type": "doc",
                "_id": "lM4UF3cB7TFTnNGpgiYQ",
                "_score": 1.0,
                "_source": {
                    "@timestamp": "2021-01-18T19:59:14.978Z",
                    "event": {
                        "duration": 620100,
                        "dataset": "system.memory"
                    },
                    "system": {
                        "memory": {
                            "actual": {
                                "free": 6026010624,
                                "used": {
                                    "pct": 0.2785,
                                    "bytes": 2325790720
                                }
                            },
                            "swap": {
                                "total": 2147479552,
                                "used": {
                                    "bytes": 0,
                                    "pct": 0
                                },
                                "free": 2147479552
                            },
                            "hugepages": {
                                "surplus": 0,
                                "default_size": 2097152,
                                "total": 0,
                                "used": {
                                    "pct": 0,
                                    "bytes": 0
                                },
                                "free": 0,
                                "reserved": 0
                            },
                            "total": 8351801344,
                            "used": {
                                "bytes": 6188392448,
                                "pct": 0.741
                            },
                            "free": 2163408896
                        }
                    },
                    "metricset": {
                        "rtt": 620,
                        "name": "memory",
                        "module": "system"
                    },
                    "beat": {
                        "name": "02974131b615",
                        "hostname": "02974131b615",
                        "version": "6.8.14"
                    },
                    "host": {
                        "name": "02974131b615"
                    }
                }
            },
            {
                "_index": "metricbeat-6.8-ceph-master-97985eb-nautilus-centos-7-x86_64-oky6rooz-2021.01.18-000001",
                "_type": "doc",
                "_id": "oc4UF3cB7TFTnNGpqSYe",
                "_score": 1.0,
                "_source": {
                    "@timestamp": "2021-01-18T19:59:24.975Z",
                    "beat": {
                        "hostname": "02974131b615",
                        "version": "6.8.14",
                        "name": "02974131b615"
                    },
                    "host": {
                        "name": "02974131b615"
                    },
                    "metricset": {
                        "name": "load",
                        "module": "system",
                        "rtt": 261
                    },
                    "event": {
                        "duration": 261600,
                        "dataset": "system.load"
                    },
                    "system": {
                        "load": {
                            "15": 0.39,
                            "norm": {
                                "1": 0.1525,
                                "5": 0.16,
                                "15": 0.0975
                            },
                            "cores": 4,
                            "1": 0.61,
                            "5": 0.64
                        }
                    }
                }
            },
            {
                "_index": "metricbeat-6.8-ceph-master-97985eb-nautilus-centos-7-x86_64-oky6rooz-2021.01.18-000001",
                "_type": "doc",
                "_id": "os4UF3cB7TFTnNGpqSYe",
                "_score": 1.0,
                "_source": {
                    "@timestamp": "2021-01-18T19:59:24.978Z",
                    "event": {
                        "dataset": "system.network",
                        "duration": 382500
                    },
                    "system": {
                        "network": {
                            "in": {
                                "packets": 0,
                                "errors": 0,
                                "dropped": 0,
                                "bytes": 0
                            },
                            "out": {
                                "errors": 0,
                                "dropped": 0,
                                "packets": 0,
                                "bytes": 0
                            },
                            "name": "ip6tnl0"
                        }
                    },
                    "beat": {
                        "hostname": "02974131b615",
                        "version": "6.8.14",
                        "name": "02974131b615"
                    },
                    "host": {
                        "name": "02974131b615"
                    },
                    "metricset": {
                        "name": "network",
                        "module": "system",
                        "rtt": 382
                    }
                }
            },
            {
                "_index": "metricbeat-6.8-ceph-master-97985eb-nautilus-centos-7-x86_64-oky6rooz-2021.01.18-000001",
                "_type": "doc",
                "_id": "ps4UF3cB7TFTnNGpqSYe",
                "_score": 1.0,
                "_source": {
                    "@timestamp": "2021-01-18T19:59:24.978Z",
                    "metricset": {
                        "name": "memory",
                        "module": "system",
                        "rtt": 459
                    },
                    "event": {
                        "duration": 459500,
                        "dataset": "system.memory"
                    },
                    "system": {
                        "memory": {
                            "swap": {
                                "used": {
                                    "bytes": 0,
                                    "pct": 0
                                },
                                "free": 2147479552,
                                "total": 2147479552
                            },
                            "hugepages": {
                                "total": 0,
                                "used": {
                                    "bytes": 0,
                                    "pct": 0
                                },
                                "free": 0,
                                "reserved": 0,
                                "surplus": 0,
                                "default_size": 2097152
                            },
                            "total": 8351801344,
                            "used": {
                                "pct": 0.7422,
                                "bytes": 6198444032
                            },
                            "free": 2153357312,
                            "actual": {
                                "free": 6016856064,
                                "used": {
                                    "pct": 0.2796,
                                    "bytes": 2334945280
                                }
                            }
                        }
                    },
                    "beat": {
                        "name": "02974131b615",
                        "hostname": "02974131b615",
                        "version": "6.8.14"
                    },
                    "host": {
                        "name": "02974131b615"
                    }
                }
            }
        ]
    }
}

@@ -444,7 +444,7 @@ func (mts *MetricbeatTestSuite) thereAreEventsInTheIndex() error {
"must": []map[string]interface{}{
{
"match": map[string]interface{}{
"event.module": mts.Query.EventModule,
"event.dataset": "system.network",
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jsoriano this is a system metricseat, as I was not able to fetch any module-specific one.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does it mean that we cannot test modules? Or this is a temporary fix?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure how to retrieve the module specific metrics. The above JSON response represents a search cURL on the index, and I do not see any event related to the module. Could it be because the 6.8 branch does not understand 7.7 config file? We are fetching 7.7 branch's config because it's the first version including supported_versions files.

As a workaround, we could fetch config files from 6.8 branch on test time, instead of when preparing the test runtime.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could it be because the 6.8 branch does not understand 7.7 config file?

Do you see activity from modules in logs?

It could happen in some modules that some option has been added in 7.7 that is not available in 6.8, but in general I think that configuration files should be quite similar.

As a workaround, we could fetch config files from 6.8 branch on test time, instead of when preparing the test runtime.

Yes, I think we should use configuration from 6.8 to test this version.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I checked both, 6.8 and 7.7, and they are equals

@@ -480,7 +480,7 @@ func (mts *MetricbeatTestSuite) thereAreNoErrorsInTheIndex() error {
"must": []map[string]interface{}{
{
"match": map[string]interface{}{
"event.module": mts.Query.EventModule,
"event.dataset": "system.network",
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ditto

@mdelapenya mdelapenya marked this pull request as ready for review January 26, 2021 06:09
e2e/Makefile Outdated
@@ -85,7 +85,7 @@ notice:

.PHONY: sync-integrations
sync-integrations:
OP_LOG_LEVEL=${LOG_LEVEL} ./op sync integrations --delete
OP_LOG_LEVEL=${LOG_LEVEL} ./op sync integrations --delete --remote "elastic:7.7"
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the first version having the majority of the integrations the supported-versions.yml file.

@mdelapenya mdelapenya mentioned this pull request Mar 11, 2021
8 tasks
@mdelapenya mdelapenya marked this pull request as draft March 16, 2021 09:50
@mdelapenya mdelapenya deleted the bump-6.8-versions branch March 16, 2021 15:51
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants