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

Fleet goal #784

Merged
merged 1 commit into from
Feb 22, 2021
Merged

Conversation

v1v
Copy link
Member

@v1v v1v commented Feb 18, 2021

What does this PR do?

Enable metricbeat script to delegate all the logic to this repo then the consumer only need to call the script

Why is it important?

Simplify the consumer calls

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

  • [ ]

How to test this PR locally

Run the script .ci/scripts/fleet-test.sh

Related issues

Similar too #705 and required by elastic/beats#24112

@elasticmachine
Copy link
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 #784 opened

  • Start Time: 2021-02-18T17:13:31.227+0000

  • Duration: 45 min 57 sec

  • Commit: 6c7eece

Test stats 🧪

Test Results
Failed 3
Passed 114
Skipped 0
Total 117

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 / Restarting the centos host with persistent agent restarts backend processes – Fleet Mode Agent
    Expand to view the error details

     Step the "metricbeat" process is in the "started" state on the host 
    

  • no stacktrace
Initializing / End-To-End Tests / ubuntu-18.04_fleet_fleet_mode_agent / Un-installing the installed centos agent – Fleet Mode Agent
    Expand to view the error details

     Step the agent is listed in Fleet as "offline": The Agent is not in the offline status yet 
    

  • no stacktrace
Initializing / End-To-End Tests / ubuntu-18.04_fleet_fleet_mode_agent / Un-installing the installed debian agent – Fleet Mode Agent
    Expand to view the error details

     Step the agent is listed in Fleet as "offline": The Agent is not in the offline status yet 
    

  • no stacktrace

Steps errors 4

Expand to view the steps failures

Run functional tests for fleet:fleet_mode_agent && ~@nightly
  • Took 39 min 57 sec . View more details on here
  • Description: .ci/scripts/functional-test.sh "fleet" "fleet_mode_agent && ~@nightly" "8.0.0-SNAPSHOT" "8.0.0-SNAPSHOT"
Archive the artifacts
  • Took 0 min 1 sec . View more details on here
  • Description: [2021-02-18T17:58:23.692Z] Archiving artifacts script returned exit code 2
Archive the artifacts
  • Took 0 min 0 sec . View more details on here
  • Description: [2021-02-18T17:58:25.154Z] 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-02-18T17:56:21.649Z] time="2021-02-18T17:56:21Z" level=debug msg="Agent listed in Fleet with online status" agentID=78bc02d0-7211-11eb-9c0d-61a97002f633 hostname=5bac17c5a03d
[2021-02-18T17:56:21.649Z] time="2021-02-18T17:56:21Z" level=warning msg="The Agent is not in the offline status yet" agentID=78bc02d0-7211-11eb-9c0d-61a97002f633 elapsedTime=8m6.172313004s hostname=5bac17c5a03d isAgentInStatus=false retry=98 status=offline
[2021-02-18T17:56:24.936Z] time="2021-02-18T17:56:24Z" level=debug msg="Agent listed in Fleet with online status" agentID=78bc02d0-7211-11eb-9c0d-61a97002f633 hostname=5bac17c5a03d
[2021-02-18T17:56:24.936Z] time="2021-02-18T17:56:24Z" level=warning msg="The Agent is not in the offline status yet" agentID=78bc02d0-7211-11eb-9c0d-61a97002f633 elapsedTime=8m9.264855992s hostname=5bac17c5a03d isAgentInStatus=false retry=99 status=offline
[2021-02-18T17:56:31.505Z] {"level":"debug","time":"2021-02-18T17:56:30Z","message":"sent request with 0 transactions, 0 spans, 0 errors, 1 metricset"}
[2021-02-18T17:56:31.505Z] time="2021-02-18T17:56:31Z" level=debug msg="Agent listed in Fleet with online status" agentID=78bc02d0-7211-11eb-9c0d-61a97002f633 hostname=5bac17c5a03d
[2021-02-18T17:56:31.764Z] time="2021-02-18T17:56:31Z" level=warning msg="The Agent is not in the offline status yet" agentID=78bc02d0-7211-11eb-9c0d-61a97002f633 elapsedTime=8m16.085170291s hostname=5bac17c5a03d isAgentInStatus=false retry=100 status=offline
[2021-02-18T17:56:35.957Z] time="2021-02-18T17:56:35Z" level=debug msg="Agent listed in Fleet with online status" agentID=78bc02d0-7211-11eb-9c0d-61a97002f633 hostname=5bac17c5a03d
[2021-02-18T17:56:35.957Z] time="2021-02-18T17:56:35Z" level=warning msg="The Agent is not in the offline status yet" agentID=78bc02d0-7211-11eb-9c0d-61a97002f633 elapsedTime=8m19.909095906s hostname=5bac17c5a03d isAgentInStatus=false retry=101 status=offline
[2021-02-18T17:56:44.077Z] time="2021-02-18T17:56:42Z" level=debug msg="Agent listed in Fleet with online status" agentID=78bc02d0-7211-11eb-9c0d-61a97002f633 hostname=5bac17c5a03d
[2021-02-18T17:56:44.077Z] time="2021-02-18T17:56:42Z" level=warning msg="The Agent is not in the offline status yet" agentID=78bc02d0-7211-11eb-9c0d-61a97002f633 elapsedTime=8m27.391719464s hostname=5bac17c5a03d isAgentInStatus=false retry=102 status=offline
[2021-02-18T17:56:50.644Z] time="2021-02-18T17:56:49Z" level=debug msg="Agent listed in Fleet with online status" agentID=78bc02d0-7211-11eb-9c0d-61a97002f633 hostname=5bac17c5a03d
[2021-02-18T17:56:50.644Z] time="2021-02-18T17:56:50Z" level=warning msg="The Agent is not in the offline status yet" agentID=78bc02d0-7211-11eb-9c0d-61a97002f633 elapsedTime=8m34.567606705s hostname=5bac17c5a03d isAgentInStatus=false retry=103 status=offline
[2021-02-18T17:56:50.644Z] {"level":"debug","time":"2021-02-18T17:56:50Z","message":"gathering metrics"}
[2021-02-18T17:56:54.125Z] time="2021-02-18T17:56:53Z" level=debug msg="Agent listed in Fleet with online status" agentID=78bc02d0-7211-11eb-9c0d-61a97002f633 hostname=5bac17c5a03d
[2021-02-18T17:56:54.125Z] time="2021-02-18T17:56:53Z" level=warning msg="The Agent is not in the offline status yet" agentID=78bc02d0-7211-11eb-9c0d-61a97002f633 elapsedTime=8m37.980606276s hostname=5bac17c5a03d isAgentInStatus=false retry=104 status=offline
[2021-02-18T17:56:58.349Z] time="2021-02-18T17:56:57Z" level=debug msg="Agent listed in Fleet with online status" agentID=78bc02d0-7211-11eb-9c0d-61a97002f633 hostname=5bac17c5a03d
[2021-02-18T17:56:58.349Z] time="2021-02-18T17:56:57Z" level=warning msg="The Agent is not in the offline status yet" agentID=78bc02d0-7211-11eb-9c0d-61a97002f633 elapsedTime=8m42.039867701s hostname=5bac17c5a03d isAgentInStatus=false retry=105 status=offline
[2021-02-18T17:57:00.886Z] {"level":"debug","time":"2021-02-18T17:57:00Z","message":"sent request with 0 transactions, 0 spans, 0 errors, 1 metricset"}
[2021-02-18T17:57:02.822Z] time="2021-02-18T17:57:02Z" level=debug msg="Agent listed in Fleet with online status" agentID=78bc02d0-7211-11eb-9c0d-61a97002f633 hostname=5bac17c5a03d
[2021-02-18T17:57:02.822Z] time="2021-02-18T17:57:02Z" level=warning msg="The Agent is not in the offline status yet" agentID=78bc02d0-7211-11eb-9c0d-61a97002f633 elapsedTime=8m47.260577145s hostname=5bac17c5a03d isAgentInStatus=false retry=106 status=offline
[2021-02-18T17:57:06.120Z] time="2021-02-18T17:57:06Z" level=debug msg="Agent listed in Fleet with online status" agentID=78bc02d0-7211-11eb-9c0d-61a97002f633 hostname=5bac17c5a03d
[2021-02-18T17:57:06.379Z] time="2021-02-18T17:57:06Z" level=warning msg="The Agent is not in the offline status yet" agentID=78bc02d0-7211-11eb-9c0d-61a97002f633 elapsedTime=8m50.690224133s hostname=5bac17c5a03d isAgentInStatus=false retry=107 status=offline
[2021-02-18T17:57:12.963Z] time="2021-02-18T17:57:12Z" level=debug msg="Agent listed in Fleet with online status" agentID=78bc02d0-7211-11eb-9c0d-61a97002f633 hostname=5bac17c5a03d
[2021-02-18T17:57:12.963Z] time="2021-02-18T17:57:12Z" level=warning msg="The Agent is not in the offline status yet" agentID=78bc02d0-7211-11eb-9c0d-61a97002f633 elapsedTime=8m57.307072746s hostname=5bac17c5a03d isAgentInStatus=false retry=108 status=offline
[2021-02-18T17:57:19.542Z] time="2021-02-18T17:57:18Z" level=debug msg="Agent listed in Fleet with online status" agentID=78bc02d0-7211-11eb-9c0d-61a97002f633 hostname=5bac17c5a03d
[2021-02-18T17:57:19.542Z] time="2021-02-18T17:57:18Z" level=warning msg="The Agent is not in the offline status yet" agentID=78bc02d0-7211-11eb-9c0d-61a97002f633 elapsedTime=9m3.371149305s hostname=5bac17c5a03d isAgentInStatus=false retry=109 status=offline
[2021-02-18T17:57:20.932Z] {"level":"debug","time":"2021-02-18T17:57:20Z","message":"gathering metrics"}
[2021-02-18T17:57:22.842Z] time="2021-02-18T17:57:22Z" level=debug msg="Agent listed in Fleet with online status" agentID=78bc02d0-7211-11eb-9c0d-61a97002f633 hostname=5bac17c5a03d
[2021-02-18T17:57:22.842Z] time="2021-02-18T17:57:22Z" level=warning msg="The Agent is not in the offline status yet" agentID=78bc02d0-7211-11eb-9c0d-61a97002f633 elapsedTime=9m7.193348988s hostname=5bac17c5a03d isAgentInStatus=false retry=110 status=offline
[2021-02-18T17:57:27.082Z] time="2021-02-18T17:57:26Z" level=debug msg="Agent listed in Fleet with online status" agentID=78bc02d0-7211-11eb-9c0d-61a97002f633 hostname=5bac17c5a03d
[2021-02-18T17:57:27.082Z] time="2021-02-18T17:57:26Z" level=warning msg="The Agent is not in the offline status yet" agentID=78bc02d0-7211-11eb-9c0d-61a97002f633 elapsedTime=9m10.987089923s hostname=5bac17c5a03d isAgentInStatus=false retry=111 status=offline
[2021-02-18T17:57:31.286Z] {"level":"debug","time":"2021-02-18T17:57:30Z","message":"sent request with 0 transactions, 0 spans, 0 errors, 1 metricset"}
[2021-02-18T17:57:31.286Z] time="2021-02-18T17:57:30Z" level=debug msg="Agent listed in Fleet with online status" agentID=78bc02d0-7211-11eb-9c0d-61a97002f633 hostname=5bac17c5a03d
[2021-02-18T17:57:31.286Z] time="2021-02-18T17:57:30Z" level=warning msg="The Agent is not in the offline status yet" agentID=78bc02d0-7211-11eb-9c0d-61a97002f633 elapsedTime=9m15.202381465s hostname=5bac17c5a03d isAgentInStatus=false retry=112 status=offline
[2021-02-18T17:57:37.927Z] time="2021-02-18T17:57:36Z" level=debug msg="Agent listed in Fleet with online status" agentID=78bc02d0-7211-11eb-9c0d-61a97002f633 hostname=5bac17c5a03d
[2021-02-18T17:57:37.927Z] time="2021-02-18T17:57:36Z" level=warning msg="The Agent is not in the offline status yet" agentID=78bc02d0-7211-11eb-9c0d-61a97002f633 elapsedTime=9m21.506753587s hostname=5bac17c5a03d isAgentInStatus=false retry=113 status=offline
[2021-02-18T17:57:39.844Z] time="2021-02-18T17:57:39Z" level=debug msg="Agent listed in Fleet with online status" agentID=78bc02d0-7211-11eb-9c0d-61a97002f633 hostname=5bac17c5a03d
[2021-02-18T17:57:39.844Z] time="2021-02-18T17:57:39Z" level=warning msg="The Agent is not in the offline status yet" agentID=78bc02d0-7211-11eb-9c0d-61a97002f633 elapsedTime=9m24.085503344s hostname=5bac17c5a03d isAgentInStatus=false retry=114 status=offline
[2021-02-18T17:57:46.437Z] time="2021-02-18T17:57:46Z" level=debug msg="Agent listed in Fleet with online status" agentID=78bc02d0-7211-11eb-9c0d-61a97002f633 hostname=5bac17c5a03d
[2021-02-18T17:57:46.437Z] time="2021-02-18T17:57:46Z" level=warning msg="The Agent is not in the offline status yet" agentID=78bc02d0-7211-11eb-9c0d-61a97002f633 elapsedTime=9m30.835351995s hostname=5bac17c5a03d isAgentInStatus=false retry=115 status=offline
[2021-02-18T17:57:50.642Z] time="2021-02-18T17:57:49Z" level=debug msg="Agent listed in Fleet with online status" agentID=78bc02d0-7211-11eb-9c0d-61a97002f633 hostname=5bac17c5a03d
[2021-02-18T17:57:50.642Z] time="2021-02-18T17:57:49Z" level=warning msg="The Agent is not in the offline status yet" agentID=78bc02d0-7211-11eb-9c0d-61a97002f633 elapsedTime=9m34.535391733s hostname=5bac17c5a03d isAgentInStatus=false retry=116 status=offline
[2021-02-18T17:57:50.642Z] {"level":"debug","time":"2021-02-18T17:57:50Z","message":"gathering metrics"}
[2021-02-18T17:57:53.182Z] time="2021-02-18T17:57:52Z" level=debug msg="Agent listed in Fleet with online status" agentID=78bc02d0-7211-11eb-9c0d-61a97002f633 hostname=5bac17c5a03d
[2021-02-18T17:57:53.182Z] time="2021-02-18T17:57:52Z" level=warning msg="The Agent is not in the offline status yet" agentID=78bc02d0-7211-11eb-9c0d-61a97002f633 elapsedTime=9m37.144765709s hostname=5bac17c5a03d isAgentInStatus=false retry=117 status=offline
[2021-02-18T17:58:01.323Z] time="2021-02-18T17:57:59Z" level=debug msg="Agent listed in Fleet with online status" agentID=78bc02d0-7211-11eb-9c0d-61a97002f633 hostname=5bac17c5a03d
[2021-02-18T17:58:01.323Z] time="2021-02-18T17:57:59Z" level=warning msg="The Agent is not in the offline status yet" agentID=78bc02d0-7211-11eb-9c0d-61a97002f633 elapsedTime=9m44.434933254s hostname=5bac17c5a03d isAgentInStatus=false retry=118 status=offline
[2021-02-18T17:58:01.323Z] {"level":"debug","time":"2021-02-18T17:58:00Z","message":"sent request with 0 transactions, 0 spans, 0 errors, 1 metricset"}
[2021-02-18T17:58:07.917Z] time="2021-02-18T17:58:06Z" level=debug msg="Agent listed in Fleet with online status" agentID=78bc02d0-7211-11eb-9c0d-61a97002f633 hostname=5bac17c5a03d
[2021-02-18T17:58:07.917Z] time="2021-02-18T17:58:06Z" level=warning msg="The Agent is not in the offline status yet" agentID=78bc02d0-7211-11eb-9c0d-61a97002f633 elapsedTime=9m51.468498075s hostname=5bac17c5a03d isAgentInStatus=false retry=119 status=offline
[2021-02-18T17:58:14.494Z] time="2021-02-18T17:58:14Z" level=debug msg="Agent listed in Fleet with online status" agentID=78bc02d0-7211-11eb-9c0d-61a97002f633 hostname=5bac17c5a03d
[2021-02-18T17:58:14.495Z] time="2021-02-18T17:58:14Z" level=warning msg="The Agent is not in the offline status yet" agentID=78bc02d0-7211-11eb-9c0d-61a97002f633 elapsedTime=9m58.822060836s hostname=5bac17c5a03d isAgentInStatus=false retry=120 status=offline
[2021-02-18T17:58:15.066Z] OCI runtime exec failed: exec failed: container_linux.go:370: starting container process caused: exec: "elastic-agent": executable file not found in $PATH: unknown
[2021-02-18T17:58:15.329Z] time="2021-02-18T17:58:15Z" level=error msg="Could not execute command in container" command="[elastic-agent uninstall -f]" error="Could not run compose file: [/var/lib/jenkins/workspace/e2e-tests_e2e-testing-mbp_PR-784/.op/compose/profiles/fleet/docker-compose.yml /var/lib/jenkins/workspace/e2e-tests_e2e-testing-mbp_PR-784/.op/compose/services/debian-systemd/docker-compose.yml] - Local Docker compose exited abnormally whilst running docker-compose: [exec -T debian-systemd elastic-agent uninstall -f]. exit status 126" service=debian-systemd
[2021-02-18T17:58:15.329Z] time="2021-02-18T17:58:15Z" level=error msg="Could not run agent command in the box" command="[elastic-agent uninstall -f]" error="Could not run compose file: [/var/lib/jenkins/workspace/e2e-tests_e2e-testing-mbp_PR-784/.op/compose/profiles/fleet/docker-compose.yml /var/lib/jenkins/workspace/e2e-tests_e2e-testing-mbp_PR-784/.op/compose/services/debian-systemd/docker-compose.yml] - Local Docker compose exited abnormally whilst running docker-compose: [exec -T debian-systemd elastic-agent uninstall -f]. exit status 126" profile=fleet service=debian-systemd
[2021-02-18T17:58:15.329Z] time="2021-02-18T17:58:15Z" level=warning msg="Could not uninstall the agent after the scenario: Could not run compose file: [/var/lib/jenkins/workspace/e2e-tests_e2e-testing-mbp_PR-784/.op/compose/profiles/fleet/docker-compose.yml /var/lib/jenkins/workspace/e2e-tests_e2e-testing-mbp_PR-784/.op/compose/services/debian-systemd/docker-compose.yml] - Local Docker compose exited abnormally whilst running docker-compose: [exec -T debian-systemd elastic-agent uninstall -f]. exit status 126"
[2021-02-18T17:58:15.329Z] time="2021-02-18T17:58:15Z" level=debug msg="Un-enrolling agent in Fleet" agentID=78bc02d0-7211-11eb-9c0d-61a97002f633 hostname=5bac17c5a03d
[2021-02-18T17:58:16.715Z] time="2021-02-18T17:58:16Z" level=debug msg="Fleet agent was unenrolled" agentID=78bc02d0-7211-11eb-9c0d-61a97002f633
[2021-02-18T17:58:17.286Z] Stopping fleet_debian-systemd_elastic-agent_1 ... 
[2021-02-18T17:58:17.854Z] 
Stopping fleet_debian-systemd_elastic-agent_1 ... done
Removing fleet_debian-systemd_elastic-agent_1 ... 
[2021-02-18T17:58:17.854Z] 
Removing fleet_debian-systemd_elastic-agent_1 ... done
Going to remove fleet_debian-systemd_elastic-agent_1
[2021-02-18T17:58:17.855Z] time="2021-02-18T17:58:17Z" level=debug msg="Docker compose executed." cmd="[rm -fvs debian-systemd]" composeFilePaths="[/var/lib/jenkins/workspace/e2e-tests_e2e-testing-mbp_PR-784/.op/compose/profiles/fleet/docker-compose.yml /var/lib/jenkins/workspace/e2e-tests_e2e-testing-mbp_PR-784/.op/compose/services/debian-systemd/docker-compose.yml]" env="map[centos_systemdAgentBinarySrcPath:/tmp/elastic-agent-8.0.0-SNAPSHOT-linux-x86_64.tar.gz079060427 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.gz079060427 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-784/src/github.com/elastic/e2e-testing/e2e/_suites/fleet/configurations/kibana.config.yml stackVersion:8.0.0-SNAPSHOT]" profile=fleet
[2021-02-18T17:58:17.855Z] time="2021-02-18T17:58:17Z" level=debug msg="Service removed from compose" profile=fleet service=debian-systemd
[2021-02-18T17:58:19.760Z] time="2021-02-18T17:58:19Z" level=debug msg="The token was deleted" tokenID=72edf520-7211-11eb-9c0d-61a97002f633
[2021-02-18T17:58:19.761Z] time="2021-02-18T17:58:19Z" level=info msg="Integration deleted from the configuration" integration= packageConfigId= policyID=cdd9b3b0-720d-11eb-9c0d-61a97002f633 version=
[2021-02-18T17:58:19.761Z] time="2021-02-18T17:58:19Z" level=debug msg="Destroying Fleet runtime dependencies"
[2021-02-18T17:58:20.357Z] Stopping fleet_kibana_1           ... 
[2021-02-18T17:58:20.357Z] Stopping fleet_elasticsearch_1    ... 
[2021-02-18T17:58:20.357Z] Stopping fleet_package-registry_1 ... 
[2021-02-18T17:58:20.617Z] {"level":"debug","time":"2021-02-18T17:58:20Z","message":"gathering metrics"}
[2021-02-18T17:58:21.674Z] 
Stopping fleet_kibana_1           ... done

Stopping fleet_package-registry_1 ... done

Stopping fleet_elasticsearch_1    ... done
Removing fleet_kibana_1           ... 
[2021-02-18T17:58:21.674Z] Removing fleet_elasticsearch_1    ... 
[2021-02-18T17:58:21.674Z] Removing fleet_package-registry_1 ... 
[2021-02-18T17:58:21.674Z] 
Removing fleet_kibana_1           ... done

Removing fleet_package-registry_1 ... done

Removing fleet_elasticsearch_1    ... done
Removing network fleet_default
[2021-02-18T17:58:21.951Z] time="2021-02-18T17:58:21Z" level=debug msg="Docker compose executed." cmd="[down --remove-orphans]" composeFilePaths="[/var/lib/jenkins/workspace/e2e-tests_e2e-testing-mbp_PR-784/.op/compose/profiles/fleet/docker-compose.yml]" env="map[centos_systemdAgentBinarySrcPath:/tmp/elastic-agent-8.0.0-SNAPSHOT-linux-x86_64.tar.gz079060427 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.gz079060427 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-784/src/github.com/elastic/e2e-testing/e2e/_suites/fleet/configurations/kibana.config.yml stackVersion:8.0.0-SNAPSHOT]" profile=fleet
[2021-02-18T17:58:21.951Z] time="2021-02-18T17:58:21Z" level=debug msg="Elastic Agent binary was removed." installer=debian-tar-8.0.0-SNAPSHOT path=/tmp/elastic-agent-8.0.0-SNAPSHOT-linux-x86_64.tar.gz079060427
[2021-02-18T17:58:21.951Z] time="2021-02-18T17:58:21Z" level=debug msg="Elastic Agent binary was removed." installer=docker-default-8.0.0-SNAPSHOT path=/tmp/elastic-agent-8.0.0-SNAPSHOT-docker-image-linux-amd64.tar.gz633865269
[2021-02-18T17:58:21.951Z] time="2021-02-18T17:58:21Z" level=debug msg="Elastic Agent binary was removed." installer=docker-ubi8-8.0.0-SNAPSHOT path=/tmp/elastic-agent-ubi8-8.0.0-SNAPSHOT-docker-image-linux-amd64.tar.gz323254800
[2021-02-18T17:58:21.951Z] time="2021-02-18T17:58:21Z" level=debug msg="Elastic Agent binary was removed." installer=centos-systemd-8.0.0-SNAPSHOT path=/tmp/elastic-agent-8.0.0-SNAPSHOT-x86_64.rpm315037980
[2021-02-18T17:58:21.951Z] time="2021-02-18T17:58:21Z" level=debug msg="Elastic Agent binary was removed." installer=debian-systemd-8.0.0-SNAPSHOT path=/tmp/elastic-agent-8.0.0-SNAPSHOT-amd64.deb107707566
[2021-02-18T17:58:22.213Z] Makefile:71: recipe for target 'functional-test' failed
[2021-02-18T17:58:22.213Z] make: *** [functional-test] Error 1
[2021-02-18T17:58:22.516Z] [INFO] Stopping Filebeat Docker container
[2021-02-18T17:58:22.820Z] + docker exec -t 964af28f452f2458f5dc5d4f39d90c865f2fea371268f7bbdfe8cbe5ba674c84 chmod -R ugo+rw /output
[2021-02-18T17:58:23.080Z] + docker stop --time 30 964af28f452f2458f5dc5d4f39d90c865f2fea371268f7bbdfe8cbe5ba674c84
[2021-02-18T17:58:23.652Z] 964af28f452f2458f5dc5d4f39d90c865f2fea371268f7bbdfe8cbe5ba674c84
[2021-02-18T17:58:23.692Z] Archiving artifacts
[2021-02-18T17:58:24.563Z] Recording test results
[2021-02-18T17:58:25.117Z] [Checks API] No suitable checks publisher found.
[2021-02-18T17:58:25.154Z] Archiving artifacts
[2021-02-18T17:58:25.278Z] Failed in branch ubuntu-18.04_fleet_fleet_mode_agent
[2021-02-18T17:58:27.212Z] Stage "Release" skipped due to earlier failure(s)
[2021-02-18T17:58:27.745Z] Running on Jenkins in /var/lib/jenkins/workspace/e2e-tests_e2e-testing-mbp_PR-784@2
[2021-02-18T17:58:27.833Z] [INFO] getVaultSecret: Getting secrets
[2021-02-18T17:58:27.941Z] Masking supported pattern matches of $VAULT_ADDR or $VAULT_ROLE_ID or $VAULT_SECRET_ID
[2021-02-18T17:58:28.948Z] + chmod 755 generate-build-data.sh
[2021-02-18T17:58:28.948Z] + ./generate-build-data.sh https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/e2e-tests/e2e-testing-mbp/PR-784/ https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/e2e-tests/e2e-testing-mbp/PR-784/runs/1 FAILURE 2697448
[2021-02-18T17:58:29.198Z] INFO: curl https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/e2e-tests/e2e-testing-mbp/PR-784/runs/1/steps/?limit=10000 -o steps-info.json
[2021-02-18T17:58:31.059Z] INFO: curl https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/e2e-tests/e2e-testing-mbp/PR-784/runs/1/tests/?status=FAILED -o tests-errors.json

STACK_VERSION=${1:-'8.0.0-SNAPSHOT'}
SUITE='fleet'

.ci/scripts/functional-test.sh "${SUITE}" "" "${STACK_VERSION}"
Copy link
Contributor

@mdelapenya mdelapenya Feb 19, 2021

Choose a reason for hiding this comment

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

As a follow-up I'm thinking about merging the METRICBEAT_VERSION and ELASTIC_AGENT_VERSION into BEAT_VERSION, (same for the stack version var), so at some point we will be able to add the forth parameter with the beat version.

@v1v v1v merged commit dcc9507 into elastic:master Feb 22, 2021
@v1v v1v deleted the feature/support-elastic-agent-entrypoint branch February 22, 2021 09:28
v1v added a commit to v1v/e2e-testing that referenced this pull request Feb 22, 2021
v1v added a commit to v1v/e2e-testing that referenced this pull request Feb 22, 2021
v1v added a commit to v1v/e2e-testing that referenced this pull request Feb 22, 2021
v1v added a commit to v1v/e2e-testing that referenced this pull request Feb 22, 2021
v1v added a commit that referenced this pull request Feb 22, 2021
v1v added a commit that referenced this pull request Feb 22, 2021
v1v added a commit that referenced this pull request Feb 22, 2021
v1v added a commit that referenced this pull request Feb 22, 2021
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.

3 participants