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

Fleet entrypoint to exclude the nightly tests (#793) backport for 6.8.x#797

Merged
v1v merged 1 commit intoelastic:6.8.xfrom
v1v:backport/6.8.x/pr-793
Feb 23, 2021
Merged

Fleet entrypoint to exclude the nightly tests (#793) backport for 6.8.x#797
v1v merged 1 commit intoelastic:6.8.xfrom
v1v:backport/6.8.x/pr-793

Conversation

@v1v
Copy link
Copy Markdown
Member

@v1v v1v commented Feb 22, 2021

Backports the following commits to 6.8.x:

Nightly tests are running only on `nightly` basis, let's use the same logic in the script, similar to the one defined in the pipeline -> https://github.com/elastic/e2e-testing/blob/dcc950796120fabf0c85086823cef221cf3ecbcb/.ci/Jenkinsfile#L316-L323
@v1v v1v self-assigned this Feb 22, 2021
@elasticmachine
Copy link
Copy Markdown
Contributor

💔 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 #797 opened

  • Start Time: 2021-02-22T16:53:42.051+0000

  • Duration: 61 min 48 sec

  • Commit: a5fc9f9

Test stats 🧪

Test Results
Failed 3
Passed 87
Skipped 0
Total 90

Trends 🧪

Image of Build Times

Image of Tests

Test errors 3

Expand to view the tests failures

Initializing / End-To-End Tests / ubuntu-18.04_fleet_fleet_mode_agent / [empty] – TEST-fleet.xml
  • no error details
  • Expand to view the stacktrace

     Test report file /var/lib/jenkins/workspace/e2e-tests_e2e-testing-mbp_PR-797/src/github.com/elastic/e2e-testing/outputs/TEST-fleet.xml was length 0 
    

Initializing / End-To-End Tests / ubuntu-18.04_metricbeat_integrations && mysql / [empty] – TEST-metricbeat.xml
  • no error details
  • Expand to view the stacktrace

     Test report file /var/lib/jenkins/workspace/e2e-tests_e2e-testing-mbp_PR-797/src/github.com/elastic/e2e-testing/outputs/TEST-metricbeat.xml was length 0 
    

Initializing / End-To-End Tests / ubuntu-18.04_fleet_agent_endpoint_integration / [empty] – TEST-fleet.xml
  • no error details
  • Expand to view the stacktrace

     Test report file /var/lib/jenkins/workspace/e2e-tests_e2e-testing-mbp_PR-797/src/github.com/elastic/e2e-testing/outputs/TEST-fleet.xml was length 0 
    

Steps errors 4

Expand to view the steps failures

Archive the artifacts
  • Took 0 min 0 sec . View more details on here
  • Description: [2021-02-22T17:54:25.346Z] Archiving artifacts org.jenkinsci.plugins.workflow.steps.FlowInterrupted
Archive the artifacts
  • Took 0 min 0 sec . View more details on here
  • Description: [2021-02-22T17:54:26.086Z] Archiving artifacts org.jenkinsci.plugins.workflow.steps.FlowInterrupted
Archive the artifacts
  • Took 0 min 0 sec . View more details on here
  • Description: [2021-02-22T17:54:25.546Z] Archiving artifacts org.jenkinsci.plugins.workflow.steps.FlowInterrupted
Error signal
  • Took 0 min 0 sec . View more details on here
  • Description: org.jenkinsci.plugins.workflow.steps.FlowInterruptedException

Log output

Expand to view the last 100 lines of log output

[2021-02-22T17:53:51.855Z] time="2021-02-22T17:53:51Z" level=debug msg="Response information" hits=3 status="200 OK" took=2
[2021-02-22T17:53:51.855Z] time="2021-02-22T17:53:51Z" level=warning msg="Waiting for more hits in the index" currentHits=3 desiredHits=5 elapsedTime=40.445574694s index=metricbeat-8.0.0-mysql-mysql-8.0.13-tccjgiwo retry=11
[2021-02-22T17:53:53.068Z] {"level":"debug","time":"2021-02-22T17:53:53Z","message":"sent request with 0 transactions, 0 spans, 0 errors, 1 metricset"}
[2021-02-22T17:53:54.861Z] time="2021-02-22T17:53:54Z" level=warning msg="There are no events for the agent in Fleet" elapsedTime=3m57.55011884s err="No endpoint-security events where found for the agent in the 9b8b9489-9494-42f4-a929-15a144eb7ef4 policy" retries=52
[2021-02-22T17:53:57.368Z] time="2021-02-22T17:53:57Z" level=warning msg="filebeat process is not running in the container yet" container=fleet_centos-systemd_elastic-agent_1 desiredState=started elapsedTime=4m36.055293621s error="filebeat process is not running in the container yet" process=filebeat retry=57
[2021-02-22T17:53:58.796Z] time="2021-02-22T17:53:58Z" level=debug msg="Response information" hits=4 status="200 OK" took=2
[2021-02-22T17:53:58.796Z] time="2021-02-22T17:53:58Z" level=warning msg="Waiting for more hits in the index" currentHits=4 desiredHits=5 elapsedTime=47.438152027s index=metricbeat-8.0.0-mysql-mysql-8.0.13-tccjgiwo retry=12
[2021-02-22T17:53:59.057Z] {"level":"debug","time":"2021-02-22T17:53:58Z","message":"gathering metrics"}
[2021-02-22T17:54:01.476Z] time="2021-02-22T17:54:01Z" level=warning msg="There are no events for the agent in Fleet" elapsedTime=4m4.156808347s err="No endpoint-security events where found for the agent in the 9b8b9489-9494-42f4-a929-15a144eb7ef4 policy" retries=53
[2021-02-22T17:54:01.754Z] {"level":"debug","time":"2021-02-22T17:54:01Z","message":"sent request with 0 transactions, 2 spans, 0 errors, 1 metricset"}
[2021-02-22T17:54:01.812Z] time="2021-02-22T17:54:00Z" level=warning msg="filebeat process is not running in the container yet" container=fleet_centos-systemd_elastic-agent_1 desiredState=started elapsedTime=4m39.876690117s error="filebeat process is not running in the container yet" process=filebeat retry=58
[2021-02-22T17:54:05.054Z] time="2021-02-22T17:54:04Z" level=debug msg="Response information" hits=5 status="200 OK" took=2
[2021-02-22T17:54:05.054Z] time="2021-02-22T17:54:04Z" level=info msg="Hits number satisfied" currentHits=5 desiredHits=5 elapsedTime=53.358366024s retries=13
[2021-02-22T17:54:05.054Z] time="2021-02-22T17:54:04Z" level=debug msg="Response information" hits=5 status="200 OK" took=1
[2021-02-22T17:54:05.054Z] time="2021-02-22T17:54:04Z" level=info msg="Hits number satisfied" currentHits=5 desiredHits=5 elapsedTime=5.418111ms retries=1
[2021-02-22T17:54:05.567Z] Stopping metricbeat_metricbeat_1 ... 
[2021-02-22T17:54:05.833Z] 
Stopping metricbeat_metricbeat_1 ... done
Removing metricbeat_metricbeat_1 ... 
[2021-02-22T17:54:05.833Z] 
Removing metricbeat_metricbeat_1 ... done
Going to remove metricbeat_metricbeat_1
[2021-02-22T17:54:05.833Z] time="2021-02-22T17:54:05Z" level=debug msg="Docker compose executed." cmd="[rm -fvs metricbeat]" composeFilePaths="[/var/lib/jenkins/workspace/e2e-tests_e2e-testing-mbp_PR-797/.op/compose/profiles/metricbeat/docker-compose.yml /var/lib/jenkins/workspace/e2e-tests_e2e-testing-mbp_PR-797/.op/compose/services/metricbeat/docker-compose.yml /var/lib/jenkins/workspace/e2e-tests_e2e-testing-mbp_PR-797/.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-797/.op/compose/services/mysql MYSQL_VARIANT:mysql MYSQL_VERSION:8.0.13 indexName:metricbeat-8.0.0-mysql-mysql-8.0.13-tccjgiwo logLevel:debug metricbeatConfigFile:/var/lib/jenkins/workspace/e2e-tests_e2e-testing-mbp_PR-797/.op/compose/services/mysql/_meta/config.yml metricbeatDockerNamespace:beats metricbeatPlatform:linux/amd64 metricbeatTag:8.0.0-SNAPSHOT mysqlTag:8.0.13 serviceName:mysql stackVersion:8.0.0-SNAPSHOT]" profile=metricbeat
[2021-02-22T17:54:05.833Z] time="2021-02-22T17:54:05Z" level=debug msg="Service removed from compose" profile=metricbeat service=metricbeat
[2021-02-22T17:54:06.400Z] Stopping metricbeat_mysql_1 ... 
[2021-02-22T17:54:07.099Z] time="2021-02-22T17:54:06Z" level=warning msg="filebeat process is not running in the container yet" container=fleet_centos-systemd_elastic-agent_1 desiredState=started elapsedTime=4m45.666717495s error="filebeat process is not running in the container yet" process=filebeat retry=59
[2021-02-22T17:54:08.058Z] time="2021-02-22T17:54:07Z" level=warning msg="There are no events for the agent in Fleet" elapsedTime=4m10.161855072s err="No endpoint-security events where found for the agent in the 9b8b9489-9494-42f4-a929-15a144eb7ef4 policy" retries=54
[2021-02-22T17:54:08.950Z] 
Stopping metricbeat_mysql_1 ... done
Removing metricbeat_mysql_1 ... 
[2021-02-22T17:54:08.950Z] 
Removing metricbeat_mysql_1 ... done
Going to remove metricbeat_mysql_1
[2021-02-22T17:54:08.950Z] time="2021-02-22T17:54:08Z" level=debug msg="Docker compose executed." cmd="[rm -fvs mysql]" composeFilePaths="[/var/lib/jenkins/workspace/e2e-tests_e2e-testing-mbp_PR-797/.op/compose/profiles/metricbeat/docker-compose.yml /var/lib/jenkins/workspace/e2e-tests_e2e-testing-mbp_PR-797/.op/compose/services/metricbeat/docker-compose.yml /var/lib/jenkins/workspace/e2e-tests_e2e-testing-mbp_PR-797/.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-797/.op/compose/services/mysql MYSQL_VARIANT:mysql MYSQL_VERSION:8.0.13 indexName:metricbeat-8.0.0-mysql-mysql-8.0.13-tccjgiwo logLevel:debug metricbeatConfigFile:/var/lib/jenkins/workspace/e2e-tests_e2e-testing-mbp_PR-797/.op/compose/services/mysql/_meta/config.yml metricbeatDockerNamespace:beats metricbeatPlatform:linux/amd64 metricbeatTag:8.0.0-SNAPSHOT mysqlTag:8.0.13 serviceName:mysql stackVersion:8.0.0-SNAPSHOT]" profile=metricbeat
[2021-02-22T17:54:08.950Z] time="2021-02-22T17:54:08Z" level=debug msg="Service removed from compose" profile=metricbeat service=mysql
[2021-02-22T17:54:08.950Z] time="2021-02-22T17:54:08Z" level=debug msg="Index deleted using Elasticsearch Go client" indexName=metricbeat-8.0.0-mysql-mysql-8.0.13-tccjgiwo status="400 Bad Request"
[2021-02-22T17:54:08.950Z] time="2021-02-22T17:54:08Z" level=debug msg="Index Alias deleted using Elasticsearch Go client" indexAlias=metricbeat-8.0.0-mysql-mysql-8.0.13-tccjgiwo status="400 Bad Request"
[2021-02-22T17:54:08.950Z] {"level":"debug","time":"2021-02-22T17:54:08Z","message":"sent request with 1 transaction, 6 spans, 0 errors, 0 metricsets"}
[2021-02-22T17:54:09.522Z] Pulling mysql (docker.elastic.co/integrations-ci/beats-mysql:percona-5.7.24-1)...
[2021-02-22T17:54:09.782Z] percona-5.7.24-1: Pulling from integrations-ci/beats-mysql
[2021-02-22T17:54:10.065Z] time="2021-02-22T17:54:09Z" level=warning msg="There are no events for the agent in Fleet" elapsedTime=4m12.83752568s err="No endpoint-security events where found for the agent in the 9b8b9489-9494-42f4-a929-15a144eb7ef4 policy" retries=55
[2021-02-22T17:54:11.082Z] {"level":"debug","time":"2021-02-22T17:54:10Z","message":"gathering metrics"}
[2021-02-22T17:54:11.370Z] time="2021-02-22T17:54:10Z" level=warning msg="filebeat process is not running in the container yet" container=fleet_centos-systemd_elastic-agent_1 desiredState=started elapsedTime=4m49.482834561s error="filebeat process is not running in the container yet" process=filebeat retry=60
[2021-02-22T17:54:13.074Z] {"level":"debug","time":"2021-02-22T17:54:12Z","message":"gathering metrics"}
[2021-02-22T17:54:14.462Z] time="2021-02-22T17:54:14Z" level=warning msg="filebeat process is not running in the container yet" container=fleet_centos-systemd_elastic-agent_1 desiredState=started elapsedTime=4m52.923170949s error="filebeat process is not running in the container yet" process=filebeat retry=61
[2021-02-22T17:54:15.444Z] time="2021-02-22T17:54:15Z" level=warning msg="There are no events for the agent in Fleet" elapsedTime=4m18.056651884s err="No endpoint-security events where found for the agent in the 9b8b9489-9494-42f4-a929-15a144eb7ef4 policy" retries=56
[2021-02-22T17:54:16.725Z] Cancelling nested steps due to timeout
[2021-02-22T17:54:16.728Z] Sending interrupt signal to process
[2021-02-22T17:54:17.971Z] Digest: sha256:7016ca1e11ff5716685a39371d109f0a1f1442e1e0789951263ff646f7f02679
[2021-02-22T17:54:17.971Z] Status: Downloaded newer image for docker.elastic.co/integrations-ci/beats-mysql:percona-5.7.24-1
[2021-02-22T17:54:17.971Z] metricbeat_elasticsearch_1 is up-to-date
[2021-02-22T17:54:17.971Z] Creating metricbeat_mysql_1 ... 
[2021-02-22T17:54:18.238Z] time="2021-02-22T17:54:18Z" level=error msg="Could not run the service." service=mysql variant=percona version=5.7.24
[2021-02-22T17:54:18.238Z] Makefile:71: recipe for target 'functional-test' failed
[2021-02-22T17:54:18.238Z] make: *** [functional-test] Error 255
[2021-02-22T17:54:18.253Z] Sending interrupt signal to process
[2021-02-22T17:54:18.254Z] script returned exit code 2
[2021-02-22T17:54:19.790Z] time="2021-02-22T17:54:19Z" level=warning msg="filebeat process is not running in the container yet" container=fleet_centos-systemd_elastic-agent_1 desiredState=started elapsedTime=4m58.465303408s error="filebeat process is not running in the container yet" process=filebeat retry=62
[2021-02-22T17:54:19.790Z] time="2021-02-22T17:54:19Z" level=error msg="The process was not found but should be present" container =fleet_centos-systemd_elastic-agent_1 error="filebeat process is not running in the container yet" timeout=5m0s
[2021-02-22T17:54:20.038Z] Sending interrupt signal to process
[2021-02-22T17:54:20.731Z] Elastic Agent has been uninstalled.
[2021-02-22T17:54:20.731Z] time="2021-02-22T17:54:20Z" level=debug msg="Docker compose executed." cmd="[exec -T centos-systemd elastic-agent uninstall -f]" composeFilePaths="[/var/lib/jenkins/workspace/e2e-tests_e2e-testing-mbp_PR-797/.op/compose/profiles/fleet/docker-compose.yml /var/lib/jenkins/workspace/e2e-tests_e2e-testing-mbp_PR-797/.op/compose/services/centos-systemd/docker-compose.yml]" env="map[centos_systemdAgentBinarySrcPath:/tmp/elastic-agent-8.0.0-SNAPSHOT-linux-x86_64.tar.gz790373869 centos_systemdAgentBinaryTargetPath:/elastic-agent-8.0.0-SNAPSHOT-linux-x86_64.tar.gz centos_systemdContainerName:fleet_centos-systemd_elastic-agent_1 centos_systemdTag:latest debian_systemdAgentBinarySrcPath:/tmp/elastic-agent-8.0.0-SNAPSHOT-linux-x86_64.tar.gz790373869 debian_systemdAgentBinaryTargetPath:/elastic-agent-8.0.0-SNAPSHOT-linux-x86_64.tar.gz debian_systemdContainerName:fleet_debian-systemd_elastic-agent_1 debian_systemdTag:stretch kibanaConfigPath:/var/lib/jenkins/workspace/e2e-tests_e2e-testing-mbp_PR-797/src/github.com/elastic/e2e-testing/e2e/_suites/fleet/configurations/kibana.config.yml stackVersion:8.0.0-SNAPSHOT]" profile=fleet
[2021-02-22T17:54:20.785Z] Makefile:71: recipe for target 'functional-test' failed
[2021-02-22T17:54:20.785Z] make: *** [functional-test] Error 255
[2021-02-22T17:54:20.794Z] script returned exit code 2
[2021-02-22T17:54:21.305Z] time="2021-02-22T17:54:20Z" level=debug msg="Un-enrolling agent in Fleet" agentID=42bf9e30-7536-11eb-b01e-3b1129e3ce70 hostname=bf43c747adc8
[2021-02-22T17:54:21.566Z] time="2021-02-22T17:54:21Z" level=debug msg="Fleet agent was unenrolled" agentID=42bf9e30-7536-11eb-b01e-3b1129e3ce70
[2021-02-22T17:54:22.139Z] Sending interrupt signal to process
[2021-02-22T17:54:22.140Z] time="2021-02-22T17:54:21Z" level=error msg="Could not remove service from compose" command="[rm -fvs centos-systemd]" profile=fleet service=centos-systemd
[2021-02-22T17:54:22.140Z] Terminated
[2021-02-22T17:54:22.140Z] Makefile:71: recipe for target 'functional-test' failed
[2021-02-22T17:54:22.140Z] make: *** [functional-test] Error 143
[2021-02-22T17:54:22.147Z] script returned exit code 2
[2021-02-22T17:54:22.741Z] [INFO] Stopping Filebeat Docker container
[2021-02-22T17:54:22.809Z] [INFO] Stopping Filebeat Docker container
[2021-02-22T17:54:22.899Z] [INFO] Stopping Filebeat Docker container
[2021-02-22T17:54:23.050Z] + docker exec -t 0d08f868c07bf827c86a2c3f84162def7e5509e7613093302397438e24983aed chmod -R ugo+rw /output
[2021-02-22T17:54:23.112Z] + docker exec -t 5e82adea151943157cc63d1bec5a3673b2c060cbd71af832a7d65f8ce5e85504 chmod -R ugo+rw /output
[2021-02-22T17:54:23.198Z] + docker exec -t 55715fb6e0d5274b737ee00d9996a5cc9649d774dde252c98b8277258100c60a chmod -R ugo+rw /output
[2021-02-22T17:54:23.459Z] + docker stop --time 30 55715fb6e0d5274b737ee00d9996a5cc9649d774dde252c98b8277258100c60a
[2021-02-22T17:54:23.681Z] + docker stop --time 30 5e82adea151943157cc63d1bec5a3673b2c060cbd71af832a7d65f8ce5e85504
[2021-02-22T17:54:23.977Z] 5e82adea151943157cc63d1bec5a3673b2c060cbd71af832a7d65f8ce5e85504
[2021-02-22T17:54:23.989Z] + docker stop --time 30 0d08f868c07bf827c86a2c3f84162def7e5509e7613093302397438e24983aed
[2021-02-22T17:54:24.031Z] 55715fb6e0d5274b737ee00d9996a5cc9649d774dde252c98b8277258100c60a
[2021-02-22T17:54:24.043Z] Archiving artifacts
[2021-02-22T17:54:24.104Z] Archiving artifacts
[2021-02-22T17:54:24.249Z] 0d08f868c07bf827c86a2c3f84162def7e5509e7613093302397438e24983aed
[2021-02-22T17:54:24.291Z] Archiving artifacts
[2021-02-22T17:54:24.987Z] Recording test results
[2021-02-22T17:54:25.203Z] [Checks API] No suitable checks publisher found.
[2021-02-22T17:54:25.276Z] Recording test results
[2021-02-22T17:54:25.346Z] Archiving artifacts
[2021-02-22T17:54:25.463Z] Failed in branch ubuntu-18.04_fleet_fleet_mode_agent
[2021-02-22T17:54:25.473Z] [Checks API] No suitable checks publisher found.
[2021-02-22T17:54:25.546Z] Archiving artifacts
[2021-02-22T17:54:25.674Z] Failed in branch ubuntu-18.04_metricbeat_integrations && mysql
[2021-02-22T17:54:25.853Z] Recording test results
[2021-02-22T17:54:26.053Z] [Checks API] No suitable checks publisher found.
[2021-02-22T17:54:26.086Z] Archiving artifacts
[2021-02-22T17:54:26.221Z] Failed in branch ubuntu-18.04_fleet_agent_endpoint_integration
[2021-02-22T17:54:28.275Z] Stage "Release" skipped due to earlier failure(s)
[2021-02-22T17:54:29.372Z] Running on Jenkins in /var/lib/jenkins/workspace/e2e-tests_e2e-testing-mbp_PR-797@2
[2021-02-22T17:54:29.456Z] [INFO] getVaultSecret: Getting secrets
[2021-02-22T17:54:29.562Z] Masking supported pattern matches of $VAULT_ADDR or $VAULT_ROLE_ID or $VAULT_SECRET_ID
[2021-02-22T17:54:30.507Z] + chmod 755 generate-build-data.sh
[2021-02-22T17:54:30.507Z] + ./generate-build-data.sh https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/e2e-tests/e2e-testing-mbp/PR-797/ https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/e2e-tests/e2e-testing-mbp/PR-797/runs/1 FAILURE 3648182
[2021-02-22T17:54:30.757Z] INFO: curl https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/e2e-tests/e2e-testing-mbp/PR-797/runs/1/steps/?limit=10000 -o steps-info.json
[2021-02-22T17:54:32.619Z] INFO: curl https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/e2e-tests/e2e-testing-mbp/PR-797/runs/1/tests/?status=FAILED -o tests-errors.json

@v1v v1v requested a review from a team February 22, 2021 18:14
@v1v
Copy link
Copy Markdown
Member Author

v1v commented Feb 23, 2021

Unrelated errors, this script is not called in the build

@v1v v1v merged commit 1e814a0 into elastic:6.8.x Feb 23, 2021
@v1v v1v deleted the backport/6.8.x/pr-793 branch February 23, 2021 09:33
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants