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

Update Elastic Agent to not use Kibana #1036

Merged
merged 3 commits into from
Apr 14, 2021

Conversation

jalvz
Copy link
Contributor

@jalvz jalvz commented Apr 14, 2021

What does this PR do?

Changes the Elastic Agent service in the docker compose file to use Elasticsearch instead of Kibana

Why is it important?

Because of updates on Fleet Server

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)

@elasticmachine
Copy link
Contributor

elasticmachine commented Apr 14, 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 #1036 updated

  • Start Time: 2021-04-14T11:32:16.590+0000

  • Duration: 31 min 38 sec

  • Commit: f2c41de

Test stats 🧪

Test Results
Failed 1
Passed 140
Skipped 0
Total 141

Trends 🧪

Image of Build Times

Image of Tests

Test errors 1

Expand to view the tests failures

Initializing / End-To-End Tests / ubuntu-18.04_fleet_agent_endpoint_integration / Deploying an Endpoint makes policies to appear in the Security App – Agent Endpoint Integration
    Expand to view the error details

     Step the policy response will be shown in the Security App: The policy response is not listed as 'success' in the Administration view in the Security App yet 
    

  • no stacktrace

Steps errors 1

Expand to view the steps failures

Run functional tests for fleet:agent_endpoint_integration && ~@nightly && ~debian
  • Took 20 min 15 sec . View more details on here
  • Description: .ci/scripts/functional-test.sh "fleet" "agent_endpoint_integration && ~@nightly && ~debian" "8.0.0-SNAPSHOT" "8.0.0-SNAPSHOT"

Log output

Expand to view the last 100 lines of log output

[2021-04-14T12:02:10.873Z] time="2021-04-14T12:02:10Z" level=info msg="The Agent is in the desired status" elapsedTime=27.751435445s hostname=f65c6d464ba0 isAgentInStatus=true retries=9 status=online
[2021-04-14T12:02:10.873Z] time="2021-04-14T12:02:10Z" level=debug msg="Integration in latest version found" name=endpoint title="Endpoint Security" version=0.18.0
[2021-04-14T12:02:11.474Z] {"level":"debug","time":"2021-04-14T12:02:11Z","message":"sent request with 0 transactions, 0 spans, 0 errors, 1 metricset"}
[2021-04-14T12:02:13.455Z] time="2021-04-14T12:02:13Z" level=info msg="Integration added to the configuration" integration=endpoint integrationConfigurationID=7fdd0758-c38c-4109-b69b-9a663bd51e15 policyID=cc0d5800-9d16-11eb-ae95-e1e8bdfb6a54 version=0.18.0
[2021-04-14T12:02:13.455Z] time="2021-04-14T12:02:13Z" level=debug msg="Package policy found in the configuration" package="{7fdd0758-c38c-4109-b69b-9a663bd51e15 endpoint Endpoint Security 0.18.0 0xc000385180}" policyID=cc0d5800-9d16-11eb-ae95-e1e8bdfb6a54
[2021-04-14T12:02:16.860Z] time="2021-04-14T12:02:16Z" level=info msg="Integration deleted from the configuration" integration=endpoint packageConfigId=7fdd0758-c38c-4109-b69b-9a663bd51e15 policyID=cc0d5800-9d16-11eb-ae95-e1e8bdfb6a54 version=0.18.0
[2021-04-14T12:02:16.860Z] time="2021-04-14T12:02:16Z" level=debug msg="Agent listed in Fleet with online status" agentID=1235a6c5-2d4e-48dc-bd84-11af6d1ddd07 hostname=f65c6d464ba0
[2021-04-14T12:02:16.860Z] time="2021-04-14T12:02:16Z" level=info msg="The Agent is in the desired status" elapsedTime=70.827866ms hostname=f65c6d464ba0 isAgentInStatus=true retries=1 status=online
[2021-04-14T12:02:16.860Z] time="2021-04-14T12:02:16Z" level=info msg="The Agent is not listed in the Administration view in the Security App" elapsedTime=37.356574ms hostname=f65c6d464ba0 retries=1
[2021-04-14T12:02:17.457Z] {"log.level":"info","@timestamp":"2021-04-14T12:01:42.363Z","log.origin":{"file.name":"warn/warn.go","file.line":18},"message":"The Elastic Agent is currently in BETA and should not be used in production","ecs.version":"1.6.0"}
[2021-04-14T12:02:17.457Z] {"log.level":"info","@timestamp":"2021-04-14T12:01:42.363Z","log.origin":{"file.name":"application/application.go","file.line":68},"message":"Detecting execution mode","ecs.version":"1.6.0"}
[2021-04-14T12:02:17.457Z] {"log.level":"info","@timestamp":"2021-04-14T12:01:42.364Z","log.origin":{"file.name":"application/application.go","file.line":93},"message":"Agent is managed by Fleet","ecs.version":"1.6.0"}
[2021-04-14T12:02:17.457Z] {"log.level":"info","@timestamp":"2021-04-14T12:01:42.364Z","log.origin":{"file.name":"capabilities/capabilities.go","file.line":59},"message":"capabilities file not found in /opt/Elastic/Agent/capabilities.yml","ecs.version":"1.6.0"}
[2021-04-14T12:02:17.457Z] {"log.level":"info","@timestamp":"2021-04-14T12:01:42.633Z","log.logger":"composable","log.origin":{"file.name":"composable/controller.go","file.line":46},"message":"EXPERIMENTAL - Inputs with variables are currently experimental and should not be used in production","ecs.version":"1.6.0"}
[2021-04-14T12:02:17.457Z] {"log.level":"info","@timestamp":"2021-04-14T12:01:42.736Z","log.logger":"composable.providers.docker","log.origin":{"file.name":"docker/docker.go","file.line":43},"message":"Docker provider skipped, unable to connect: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?","ecs.version":"1.6.0"}
[2021-04-14T12:02:17.457Z] {"log.level":"info","@timestamp":"2021-04-14T12:01:42.737Z","log.logger":"api","log.origin":{"file.name":"api/server.go","file.line":62},"message":"Starting stats endpoint","ecs.version":"1.6.0"}
[2021-04-14T12:02:17.457Z] {"log.level":"info","@timestamp":"2021-04-14T12:01:42.737Z","log.origin":{"file.name":"application/managed_mode.go","file.line":289},"message":"Agent is starting","ecs.version":"1.6.0"}
[2021-04-14T12:02:17.457Z] {"log.level":"info","@timestamp":"2021-04-14T12:01:42.737Z","log.logger":"api","log.origin":{"file.name":"api/server.go","file.line":64},"message":"Metrics endpoint listening on: /opt/Elastic/Agent/data/tmp/elastic-agent.sock (configured: unix:///opt/Elastic/Agent/data/tmp/elastic-agent.sock)","ecs.version":"1.6.0"}
[2021-04-14T12:02:17.457Z] {"log.level":"warn","@timestamp":"2021-04-14T12:01:42.838Z","log.origin":{"file.name":"application/managed_mode.go","file.line":302},"message":"failed to ack update open /opt/Elastic/Agent/data/.update-marker: no such file or directory","ecs.version":"1.6.0"}
[2021-04-14T12:02:17.457Z] {"log.level":"info","@timestamp":"2021-04-14T12:01:44.185Z","log.origin":{"file.name":"stateresolver/stateresolver.go","file.line":48},"message":"New State ID is XcuadZPh","ecs.version":"1.6.0"}
[2021-04-14T12:02:17.457Z] {"log.level":"info","@timestamp":"2021-04-14T12:01:44.185Z","log.origin":{"file.name":"stateresolver/stateresolver.go","file.line":49},"message":"Converging state requires execution of 3 step(s)","ecs.version":"1.6.0"}
[2021-04-14T12:02:17.457Z] {"log.level":"info","@timestamp":"2021-04-14T12:01:44.185Z","log.origin":{"file.name":"operation/operation_fetch.go","file.line":61},"message":"filebeat.8.0.0-SNAPSHOT already exists in /opt/Elastic/Agent/data/elastic-agent-53d75c/downloads/filebeat-8.0.0-SNAPSHOT-linux-x86_64.tar.gz. Skipping operation operation-fetch","ecs.version":"1.6.0"}
[2021-04-14T12:02:17.457Z] {"log.level":"info","@timestamp":"2021-04-14T12:01:44.185Z","log.origin":{"file.name":"operation/operation_fetch.go","file.line":61},"message":"filebeat.8.0.0-SNAPSHOT already exists in /opt/Elastic/Agent/data/elastic-agent-53d75c/downloads/filebeat-8.0.0-SNAPSHOT-linux-x86_64.tar.gz. Skipping operation operation-fetch","ecs.version":"1.6.0"}
[2021-04-14T12:02:17.457Z] {"log.level":"info","@timestamp":"2021-04-14T12:01:48.739Z","log.origin":{"file.name":"log/reporter.go","file.line":40},"message":"2021-04-14T12:01:48Z: type: 'STATE': sub_type: 'STARTING' message: Application: filebeat--8.0.0-SNAPSHOT[1235a6c5-2d4e-48dc-bd84-11af6d1ddd07]: State changed to STARTING: Starting","ecs.version":"1.6.0"}
[2021-04-14T12:02:17.457Z] {"log.level":"info","@timestamp":"2021-04-14T12:01:48.740Z","log.origin":{"file.name":"operation/operation_fetch.go","file.line":61},"message":"metricbeat.8.0.0-SNAPSHOT already exists in /opt/Elastic/Agent/data/elastic-agent-53d75c/downloads/metricbeat-8.0.0-SNAPSHOT-linux-x86_64.tar.gz. Skipping operation operation-fetch","ecs.version":"1.6.0"}
[2021-04-14T12:02:17.458Z] {"log.level":"info","@timestamp":"2021-04-14T12:01:48.740Z","log.origin":{"file.name":"operation/operation_fetch.go","file.line":61},"message":"metricbeat.8.0.0-SNAPSHOT already exists in /opt/Elastic/Agent/data/elastic-agent-53d75c/downloads/metricbeat-8.0.0-SNAPSHOT-linux-x86_64.tar.gz. Skipping operation operation-fetch","ecs.version":"1.6.0"}
[2021-04-14T12:02:17.458Z] {"log.level":"info","@timestamp":"2021-04-14T12:01:49.925Z","log.origin":{"file.name":"log/reporter.go","file.line":40},"message":"2021-04-14T12:01:49Z: type: 'STATE': sub_type: 'RUNNING' message: Application: filebeat--8.0.0-SNAPSHOT[1235a6c5-2d4e-48dc-bd84-11af6d1ddd07]: State changed to RUNNING: Running","ecs.version":"1.6.0"}
[2021-04-14T12:02:17.458Z] {"log.level":"info","@timestamp":"2021-04-14T12:01:51.947Z","log.origin":{"file.name":"log/reporter.go","file.line":40},"message":"2021-04-14T12:01:51Z: type: 'STATE': sub_type: 'STARTING' message: Application: metricbeat--8.0.0-SNAPSHOT[1235a6c5-2d4e-48dc-bd84-11af6d1ddd07]: State changed to STARTING: Starting","ecs.version":"1.6.0"}
[2021-04-14T12:02:17.458Z] {"log.level":"info","@timestamp":"2021-04-14T12:01:51.949Z","log.origin":{"file.name":"operation/operation_fetch.go","file.line":61},"message":"filebeat.8.0.0-SNAPSHOT already exists in /opt/Elastic/Agent/data/elastic-agent-53d75c/downloads/filebeat-8.0.0-SNAPSHOT-linux-x86_64.tar.gz. Skipping operation operation-fetch","ecs.version":"1.6.0"}
[2021-04-14T12:02:17.458Z] {"log.level":"info","@timestamp":"2021-04-14T12:01:51.949Z","log.origin":{"file.name":"operation/operation_fetch.go","file.line":61},"message":"filebeat.8.0.0-SNAPSHOT already exists in /opt/Elastic/Agent/data/elastic-agent-53d75c/downloads/filebeat-8.0.0-SNAPSHOT-linux-x86_64.tar.gz. Skipping operation operation-fetch","ecs.version":"1.6.0"}
[2021-04-14T12:02:17.458Z] {"log.level":"info","@timestamp":"2021-04-14T12:01:52.146Z","log.origin":{"file.name":"operation/operator.go","file.line":259},"message":"operation 'operation-install' skipped for filebeat.8.0.0-SNAPSHOT","ecs.version":"1.6.0"}
[2021-04-14T12:02:17.458Z] {"log.level":"info","@timestamp":"2021-04-14T12:01:52.302Z","log.origin":{"file.name":"log/reporter.go","file.line":40},"message":"2021-04-14T12:01:52Z: type: 'STATE': sub_type: 'STARTING' message: Application: filebeat--8.0.0-SNAPSHOT--36643631373035623733363936343635[1235a6c5-2d4e-48dc-bd84-11af6d1ddd07]: State changed to STARTING: Starting","ecs.version":"1.6.0"}
[2021-04-14T12:02:17.458Z] {"log.level":"info","@timestamp":"2021-04-14T12:01:52.303Z","log.origin":{"file.name":"operation/operation_fetch.go","file.line":61},"message":"metricbeat.8.0.0-SNAPSHOT already exists in /opt/Elastic/Agent/data/elastic-agent-53d75c/downloads/metricbeat-8.0.0-SNAPSHOT-linux-x86_64.tar.gz. Skipping operation operation-fetch","ecs.version":"1.6.0"}
[2021-04-14T12:02:17.458Z] {"log.level":"info","@timestamp":"2021-04-14T12:01:52.303Z","log.origin":{"file.name":"operation/operation_fetch.go","file.line":61},"message":"metricbeat.8.0.0-SNAPSHOT already exists in /opt/Elastic/Agent/data/elastic-agent-53d75c/downloads/metricbeat-8.0.0-SNAPSHOT-linux-x86_64.tar.gz. Skipping operation operation-fetch","ecs.version":"1.6.0"}
[2021-04-14T12:02:17.458Z] {"log.level":"info","@timestamp":"2021-04-14T12:01:52.542Z","log.origin":{"file.name":"operation/operator.go","file.line":259},"message":"operation 'operation-install' skipped for metricbeat.8.0.0-SNAPSHOT","ecs.version":"1.6.0"}
[2021-04-14T12:02:17.458Z] {"log.level":"info","@timestamp":"2021-04-14T12:01:52.667Z","log.origin":{"file.name":"log/reporter.go","file.line":40},"message":"2021-04-14T12:01:52Z: type: 'STATE': sub_type: 'STARTING' message: Application: metricbeat--8.0.0-SNAPSHOT--36643631373035623733363936343635[1235a6c5-2d4e-48dc-bd84-11af6d1ddd07]: State changed to STARTING: Starting","ecs.version":"1.6.0"}
[2021-04-14T12:02:17.458Z] {"log.level":"info","@timestamp":"2021-04-14T12:01:52.668Z","log.origin":{"file.name":"stateresolver/stateresolver.go","file.line":66},"message":"Updating internal state","ecs.version":"1.6.0"}
[2021-04-14T12:02:17.458Z] {"log.level":"info","@timestamp":"2021-04-14T12:01:53.181Z","log.origin":{"file.name":"log/reporter.go","file.line":40},"message":"2021-04-14T12:01:53Z: type: 'STATE': sub_type: 'RUNNING' message: Application: metricbeat--8.0.0-SNAPSHOT[1235a6c5-2d4e-48dc-bd84-11af6d1ddd07]: State changed to RUNNING: Running","ecs.version":"1.6.0"}
[2021-04-14T12:02:17.458Z] {"log.level":"info","@timestamp":"2021-04-14T12:01:53.469Z","log.origin":{"file.name":"log/reporter.go","file.line":40},"message":"2021-04-14T12:01:53Z: type: 'STATE': sub_type: 'RUNNING' message: Application: filebeat--8.0.0-SNAPSHOT--36643631373035623733363936343635[1235a6c5-2d4e-48dc-bd84-11af6d1ddd07]: State changed to RUNNING: Running","ecs.version":"1.6.0"}
[2021-04-14T12:02:17.459Z] {"log.level":"info","@timestamp":"2021-04-14T12:01:53.940Z","log.origin":{"file.name":"log/reporter.go","file.line":40},"message":"2021-04-14T12:01:53Z: type: 'STATE': sub_type: 'RUNNING' message: Application: metricbeat--8.0.0-SNAPSHOT--36643631373035623733363936343635[1235a6c5-2d4e-48dc-bd84-11af6d1ddd07]: State changed to RUNNING: Running","ecs.version":"1.6.0"}
[2021-04-14T12:02:17.459Z] {"log.level":"info","@timestamp":"2021-04-14T12:02:15.198Z","log.origin":{"file.name":"stateresolver/stateresolver.go","file.line":48},"message":"New State ID is CFSWJ3kp","ecs.version":"1.6.0"}
[2021-04-14T12:02:17.459Z] {"log.level":"info","@timestamp":"2021-04-14T12:02:15.198Z","log.origin":{"file.name":"stateresolver/stateresolver.go","file.line":49},"message":"Converging state requires execution of 3 step(s)","ecs.version":"1.6.0"}
[2021-04-14T12:02:17.459Z] {"log.level":"info","@timestamp":"2021-04-14T12:02:15.198Z","log.origin":{"file.name":"operation/operation_fetch.go","file.line":61},"message":"endpoint-security.8.0.0-SNAPSHOT already exists in /opt/Elastic/Agent/data/elastic-agent-53d75c/downloads/endpoint-security-8.0.0-SNAPSHOT-linux-x86_64.tar.gz. Skipping operation operation-fetch","ecs.version":"1.6.0"}
[2021-04-14T12:02:17.459Z] {"log.level":"info","@timestamp":"2021-04-14T12:02:15.198Z","log.origin":{"file.name":"operation/operation_fetch.go","file.line":61},"message":"endpoint-security.8.0.0-SNAPSHOT already exists in /opt/Elastic/Agent/data/elastic-agent-53d75c/downloads/endpoint-security-8.0.0-SNAPSHOT-linux-x86_64.tar.gz. Skipping operation operation-fetch","ecs.version":"1.6.0"}
[2021-04-14T12:02:17.459Z] {"log.level":"info","@timestamp":"2021-04-14T12:02:15.958Z","log.origin":{"file.name":"log/reporter.go","file.line":40},"message":"2021-04-14T12:02:15Z: type: 'STATE': sub_type: 'STARTING' message: Application: endpoint-security--8.0.0-SNAPSHOT[1235a6c5-2d4e-48dc-bd84-11af6d1ddd07]: State changed to STARTING: Starting","ecs.version":"1.6.0"}
[2021-04-14T12:02:17.459Z] {"log.level":"info","@timestamp":"2021-04-14T12:02:16.542Z","log.origin":{"file.name":"operation/operation_fetch.go","file.line":61},"message":"filebeat.8.0.0-SNAPSHOT already exists in /opt/Elastic/Agent/data/elastic-agent-53d75c/downloads/filebeat-8.0.0-SNAPSHOT-linux-x86_64.tar.gz. Skipping operation operation-fetch","ecs.version":"1.6.0"}
[2021-04-14T12:02:17.459Z] {"log.level":"info","@timestamp":"2021-04-14T12:02:16.542Z","log.origin":{"file.name":"operation/operation_fetch.go","file.line":61},"message":"filebeat.8.0.0-SNAPSHOT already exists in /opt/Elastic/Agent/data/elastic-agent-53d75c/downloads/filebeat-8.0.0-SNAPSHOT-linux-x86_64.tar.gz. Skipping operation operation-fetch","ecs.version":"1.6.0"}
[2021-04-14T12:02:17.459Z] {"log.level":"info","@timestamp":"2021-04-14T12:02:16.787Z","log.origin":{"file.name":"operation/operator.go","file.line":259},"message":"operation 'operation-install' skipped for filebeat.8.0.0-SNAPSHOT","ecs.version":"1.6.0"}
[2021-04-14T12:02:17.459Z] {"log.level":"info","@timestamp":"2021-04-14T12:02:16.787Z","log.origin":{"file.name":"operation/operator.go","file.line":259},"message":"operation 'operation-start' skipped for filebeat.8.0.0-SNAPSHOT","ecs.version":"1.6.0"}
[2021-04-14T12:02:17.459Z] {"log.level":"info","@timestamp":"2021-04-14T12:02:16.788Z","log.origin":{"file.name":"operation/operation_fetch.go","file.line":61},"message":"filebeat.8.0.0-SNAPSHOT already exists in /opt/Elastic/Agent/data/elastic-agent-53d75c/downloads/filebeat-8.0.0-SNAPSHOT-linux-x86_64.tar.gz. Skipping operation operation-fetch","ecs.version":"1.6.0"}
[2021-04-14T12:02:17.459Z] {"log.level":"info","@timestamp":"2021-04-14T12:02:16.788Z","log.origin":{"file.name":"operation/operation_fetch.go","file.line":61},"message":"filebeat.8.0.0-SNAPSHOT already exists in /opt/Elastic/Agent/data/elastic-agent-53d75c/downloads/filebeat-8.0.0-SNAPSHOT-linux-x86_64.tar.gz. Skipping operation operation-fetch","ecs.version":"1.6.0"}
[2021-04-14T12:02:17.459Z] {"log.level":"info","@timestamp":"2021-04-14T12:02:16.968Z","log.origin":{"file.name":"operation/operator.go","file.line":259},"message":"operation 'operation-install' skipped for filebeat.8.0.0-SNAPSHOT","ecs.version":"1.6.0"}
[2021-04-14T12:02:17.460Z] {"log.level":"info","@timestamp":"2021-04-14T12:02:16.968Z","log.origin":{"file.name":"operation/operator.go","file.line":259},"message":"operation 'operation-start' skipped for filebeat.8.0.0-SNAPSHOT","ecs.version":"1.6.0"}
[2021-04-14T12:02:17.460Z] {"log.level":"info","@timestamp":"2021-04-14T12:02:16.969Z","log.origin":{"file.name":"operation/operation_fetch.go","file.line":61},"message":"metricbeat.8.0.0-SNAPSHOT already exists in /opt/Elastic/Agent/data/elastic-agent-53d75c/downloads/metricbeat-8.0.0-SNAPSHOT-linux-x86_64.tar.gz. Skipping operation operation-fetch","ecs.version":"1.6.0"}
[2021-04-14T12:02:17.460Z] {"log.level":"info","@timestamp":"2021-04-14T12:02:16.969Z","log.origin":{"file.name":"operation/operation_fetch.go","file.line":61},"message":"metricbeat.8.0.0-SNAPSHOT already exists in /opt/Elastic/Agent/data/elastic-agent-53d75c/downloads/metricbeat-8.0.0-SNAPSHOT-linux-x86_64.tar.gz. Skipping operation operation-fetch","ecs.version":"1.6.0"}
[2021-04-14T12:02:17.460Z] time="2021-04-14T12:02:17Z" level=debug msg="Docker compose executed." cmd="[exec -T centos-systemd cat /opt/Elastic/Agent/data/elastic-agent-53d75c/logs//elastic-agent-json.log]" composeFilePaths="[/var/lib/jenkins/workspace/PR-1036-3-fded78b2-0701-4c03-b79d-281fb49d489a/.op/compose/profiles/fleet/docker-compose.yml /var/lib/jenkins/workspace/PR-1036-3-fded78b2-0701-4c03-b79d-281fb49d489a/.op/compose/services/centos-systemd/docker-compose.yml]" env="map[centos_systemdAgentBinarySrcPath:/tmp/elastic-agent-8.0.0-SNAPSHOT-linux-x86_64.tar.gz362948241 centos_systemdAgentBinaryTargetPath:/elastic-agent-8.0.0-SNAPSHOT-linux-x86_64.tar.gz centos_systemdContainerName:fleet_centos-systemd_elastic-agent_1 centos_systemdTag:latest kibanaDockerNamespace:kibana kibanaVersion:8.0.0-SNAPSHOT stackVersion:8.0.0-SNAPSHOT]" profile=fleet
[2021-04-14T12:02:32.578Z] {"level":"debug","time":"2021-04-14T12:02:31Z","message":"gathering metrics"}
[2021-04-14T12:02:32.578Z] Elastic Agent has been uninstalled.
[2021-04-14T12:02:32.578Z] time="2021-04-14T12:02:31Z" level=debug msg="Docker compose executed." cmd="[exec -T centos-systemd elastic-agent uninstall -f]" composeFilePaths="[/var/lib/jenkins/workspace/PR-1036-3-fded78b2-0701-4c03-b79d-281fb49d489a/.op/compose/profiles/fleet/docker-compose.yml /var/lib/jenkins/workspace/PR-1036-3-fded78b2-0701-4c03-b79d-281fb49d489a/.op/compose/services/centos-systemd/docker-compose.yml]" env="map[centos_systemdAgentBinarySrcPath:/tmp/elastic-agent-8.0.0-SNAPSHOT-linux-x86_64.tar.gz362948241 centos_systemdAgentBinaryTargetPath:/elastic-agent-8.0.0-SNAPSHOT-linux-x86_64.tar.gz centos_systemdContainerName:fleet_centos-systemd_elastic-agent_1 centos_systemdTag:latest kibanaDockerNamespace:kibana kibanaVersion:8.0.0-SNAPSHOT stackVersion:8.0.0-SNAPSHOT]" profile=fleet
[2021-04-14T12:02:32.578Z] time="2021-04-14T12:02:31Z" level=debug msg="Un-enrolling agent in Fleet" agentID=1235a6c5-2d4e-48dc-bd84-11af6d1ddd07 hostname=f65c6d464ba0
[2021-04-14T12:02:32.578Z] time="2021-04-14T12:02:32Z" level=debug msg="Fleet agent was unenrolled" agentID=1235a6c5-2d4e-48dc-bd84-11af6d1ddd07
[2021-04-14T12:02:33.176Z] Stopping fleet_centos-systemd_elastic-agent_1 ... 
[2021-04-14T12:02:41.490Z] {"level":"debug","time":"2021-04-14T12:02:41Z","message":"sent request with 0 transactions, 0 spans, 0 errors, 1 metricset"}
[2021-04-14T12:02:43.485Z] 
Stopping fleet_centos-systemd_elastic-agent_1 ... done
Removing fleet_centos-systemd_elastic-agent_1 ... 
[2021-04-14T12:02:43.485Z] 
Removing fleet_centos-systemd_elastic-agent_1 ... done
Going to remove fleet_centos-systemd_elastic-agent_1
[2021-04-14T12:02:43.760Z] time="2021-04-14T12:02:43Z" level=debug msg="Docker compose executed." cmd="[rm -fvs centos-systemd]" composeFilePaths="[/var/lib/jenkins/workspace/PR-1036-3-fded78b2-0701-4c03-b79d-281fb49d489a/.op/compose/profiles/fleet/docker-compose.yml /var/lib/jenkins/workspace/PR-1036-3-fded78b2-0701-4c03-b79d-281fb49d489a/.op/compose/services/centos-systemd/docker-compose.yml]" env="map[centos_systemdAgentBinarySrcPath:/tmp/elastic-agent-8.0.0-SNAPSHOT-linux-x86_64.tar.gz362948241 centos_systemdAgentBinaryTargetPath:/elastic-agent-8.0.0-SNAPSHOT-linux-x86_64.tar.gz centos_systemdContainerName:fleet_centos-systemd_elastic-agent_1 centos_systemdTag:latest kibanaDockerNamespace:kibana kibanaVersion:8.0.0-SNAPSHOT stackVersion:8.0.0-SNAPSHOT]" profile=fleet
[2021-04-14T12:02:43.761Z] time="2021-04-14T12:02:43Z" level=debug msg="Service removed from compose" profile=fleet service=centos-systemd
[2021-04-14T12:02:45.203Z] time="2021-04-14T12:02:44Z" level=debug msg="The token was deleted" tokenID=ba3d20a5-5df2-4a69-8d5e-f5abd2f1ea3a
[2021-04-14T12:02:45.203Z] time="2021-04-14T12:02:44Z" level=info msg="Integration deleted from the configuration" integration=endpoint packageConfigId=7fdd0758-c38c-4109-b69b-9a663bd51e15 policyID=cc0d5800-9d16-11eb-ae95-e1e8bdfb6a54 version=0.18.0
[2021-04-14T12:02:45.203Z] time="2021-04-14T12:02:44Z" level=debug msg="Destroying Fleet runtime dependencies"
[2021-04-14T12:02:45.479Z] Stopping fleet_kibana_1           ... 
[2021-04-14T12:02:45.479Z] Stopping fleet_elasticsearch_1    ... 
[2021-04-14T12:02:45.479Z] Stopping fleet_package-registry_1 ... 
[2021-04-14T12:02:47.344Z] 
Stopping fleet_kibana_1           ... done

Stopping fleet_package-registry_1 ... done

Stopping fleet_elasticsearch_1    ... done
Removing fleet_kibana_1           ... 
[2021-04-14T12:02:47.344Z] Removing fleet_elasticsearch_1    ... 
[2021-04-14T12:02:47.344Z] Removing fleet_package-registry_1 ... 
[2021-04-14T12:02:47.344Z] 
Removing fleet_package-registry_1 ... done

Removing fleet_kibana_1           ... done

Removing fleet_elasticsearch_1    ... done
Removing network fleet_default
[2021-04-14T12:02:47.950Z] time="2021-04-14T12:02:47Z" level=debug msg="Docker compose executed." cmd="[down --remove-orphans]" composeFilePaths="[/var/lib/jenkins/workspace/PR-1036-3-fded78b2-0701-4c03-b79d-281fb49d489a/.op/compose/profiles/fleet/docker-compose.yml]" env="map[centos_systemdAgentBinarySrcPath:/tmp/elastic-agent-8.0.0-SNAPSHOT-linux-x86_64.tar.gz362948241 centos_systemdAgentBinaryTargetPath:/elastic-agent-8.0.0-SNAPSHOT-linux-x86_64.tar.gz centos_systemdContainerName:fleet_centos-systemd_elastic-agent_1 centos_systemdTag:latest kibanaDockerNamespace:kibana kibanaVersion:8.0.0-SNAPSHOT stackVersion:8.0.0-SNAPSHOT]" profile=fleet
[2021-04-14T12:02:47.950Z] time="2021-04-14T12:02:47Z" level=debug msg="Elastic Agent binary was removed." installer=centos-tar-8.0.0-SNAPSHOT path=/tmp/elastic-agent-8.0.0-SNAPSHOT-linux-x86_64.tar.gz362948241
[2021-04-14T12:02:47.950Z] Makefile:73: recipe for target 'functional-test' failed
[2021-04-14T12:02:47.950Z] make: *** [functional-test] Error 1
[2021-04-14T12:02:48.081Z] [INFO] Stopping Filebeat Docker container
[2021-04-14T12:02:48.383Z] + docker exec -t 9cbbf409a82806ac547aea9799af8b03624ff82371d3c7daeb6f054299ffb370 chmod -R ugo+rw /output
[2021-04-14T12:02:48.657Z] + docker stop --time 30 9cbbf409a82806ac547aea9799af8b03624ff82371d3c7daeb6f054299ffb370
[2021-04-14T12:02:48.930Z] 9cbbf409a82806ac547aea9799af8b03624ff82371d3c7daeb6f054299ffb370
[2021-04-14T12:02:48.967Z] Archiving artifacts
[2021-04-14T12:02:49.786Z] Recording test results
[2021-04-14T12:02:50.753Z] [Checks API] No suitable checks publisher found.
[2021-04-14T12:02:50.842Z] Archiving artifacts
[2021-04-14T12:02:50.894Z] Running in /var/lib/jenkins/workspace/PR-1036-3-fded78b2-0701-4c03-b79d-281fb49d489a/src/github.com/elastic/e2e-testing
[2021-04-14T12:02:51.209Z] + go clean -modcache
[2021-04-14T12:02:51.967Z] Failed in branch ubuntu-18.04_fleet_agent_endpoint_integration
[2021-04-14T12:02:53.193Z] Stage "Release" skipped due to earlier failure(s)
[2021-04-14T12:02:54.131Z] Running on Jenkins in /var/lib/jenkins/workspace/2e-tests_e2e-testing-mbp_PR-1036
[2021-04-14T12:02:54.179Z] [INFO] getVaultSecret: Getting secrets
[2021-04-14T12:02:54.291Z] Masking supported pattern matches of $VAULT_ADDR or $VAULT_ROLE_ID or $VAULT_SECRET_ID
[2021-04-14T12:02:55.216Z] + chmod 755 generate-build-data.sh
[2021-04-14T12:02:55.216Z] + ./generate-build-data.sh https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/e2e-tests/e2e-testing-mbp/PR-1036/ https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/e2e-tests/e2e-testing-mbp/PR-1036/runs/3 FAILURE 1838362
[2021-04-14T12:02:55.467Z] INFO: curl https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/e2e-tests/e2e-testing-mbp/PR-1036/runs/3/steps/?limit=10000 -o steps-info.json
[2021-04-14T12:02:56.811Z] INFO: curl https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/e2e-tests/e2e-testing-mbp/PR-1036/runs/3/tests/?status=FAILED -o tests-errors.json

🐛 Flaky test report

❕ There are test failures but not known flaky tests.

Expand to view the summary

Test stats 🧪

Test Results
Failed 1
Passed 140
Skipped 0
Total 141

Genuine test errors 1

💔 There are test failures but not known flaky tests, most likely a genuine test failure.

  • Name: Initializing / End-To-End Tests / ubuntu-18.04_fleet_agent_endpoint_integration / Deploying an Endpoint makes policies to appear in the Security App – Agent Endpoint Integration

@jalvz
Copy link
Contributor Author

jalvz commented Apr 14, 2021

@mdelapenya I believe the failing test is unrelated. How can I merge this? I recall you added me to some group, but I can't merge.

@mdelapenya mdelapenya merged commit 5feaf1c into elastic:master Apr 14, 2021
@mdelapenya
Copy link
Contributor

mdelapenya commented Apr 14, 2021

@jalvz could you please add the right labels for mergify to create backports? I think only 7.x is needed though, just to confirm with you

mdelapenya added a commit to mdelapenya/e2e-testing that referenced this pull request Apr 15, 2021
* master:
  chore: add debug info for the payload (elastic#1044)
  chore: add debug traces for the webhook payload (elastic#1043)
  fix: wrong interpolation (elastic#1042)
  Update Elastic Agent to not use Kibana (elastic#1036)
  fix: apply X version for non-master branches (elastic#1037)
  fix: add NodeJS to PATH (elastic#1035)
  fix: use an agent when building kibana (elastic#1030)
  fix(jjb): use a branch that exists (elastic#1029)
  remove uninstall step (elastic#1017)
  fix: delay checking stale agent version until it's used (elastic#1016)
  fix: use same JJB than in custom kibana (elastic#1010)
  chore: simplify PR template (elastic#1011)
  feat: support passing KIBANA_VERSION (elastic#905)
  [mergify] assign the original author (elastic#1009)
  Remove the agent config file parameters for stand alone (elastic#983)
  Uniquify the stand-alone step for checking agent status (elastic#993)
mdelapenya added a commit to mdelapenya/e2e-testing that referenced this pull request Apr 19, 2021
* master:
  fix: check if kibana version is a commit (elastic#1047)
  fix: incorrect variable name (elastic#1046)
  fix: typo in parameters (elastic#1045)
  chore: add debug info for the payload (elastic#1044)
  chore: add debug traces for the webhook payload (elastic#1043)
  fix: wrong interpolation (elastic#1042)
  Update Elastic Agent to not use Kibana (elastic#1036)
  fix: apply X version for non-master branches (elastic#1037)
  fix: add NodeJS to PATH (elastic#1035)
  fix: use an agent when building kibana (elastic#1030)
  fix(jjb): use a branch that exists (elastic#1029)
  remove uninstall step (elastic#1017)
  fix: delay checking stale agent version until it's used (elastic#1016)
  fix: use same JJB than in custom kibana (elastic#1010)
  chore: simplify PR template (elastic#1011)
  feat: support passing KIBANA_VERSION (elastic#905)
  [mergify] assign the original author (elastic#1009)
mergify bot pushed a commit that referenced this pull request Apr 20, 2021
mdelapenya pushed a commit that referenced this pull request Apr 20, 2021
(cherry picked from commit 5feaf1c)

Co-authored-by: Juan Álvarez <[email protected]>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants