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

Change Elastic Agent log format #376

Merged
merged 3 commits into from
Oct 20, 2020

Conversation

michalpristas
Copy link
Contributor

@michalpristas michalpristas commented Oct 20, 2020

What does this PR do?

Introducing changes included in these PRs:
elastic/kibana#79193

Why is it important?

should fix entries not found for index

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)

@michalpristas michalpristas self-assigned this Oct 20, 2020
@michalpristas michalpristas changed the title Change in API format and log format Change Elastic Agent log format Oct 20, 2020
@elasticmachine
Copy link
Contributor

elasticmachine commented Oct 20, 2020

💔 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 #376 updated]

  • Start Time: 2020-10-20T07:22:06.934+0000

  • Duration: 34 min 59 sec

Test stats 🧪

Test Results
Failed 13
Passed 62
Skipped 10
Total 85

Test errors 13

Expand to view the tests failures

> Show only the first 10 test failures

  • Name: Initializing / End-To-End Tests / fleet_agent_endpoint_integration / Adding the Endpoint Integration to an Agent makes the host to show in Security App – Agent Endpoint Integration

    • Age: 1
    • Duration: 191.24596
    • Error Details: Step the "Elastic Endpoint Security" integration is "added" in the policy
  • Name: Initializing / End-To-End Tests / fleet_agent_endpoint_integration / Deploying an Endpoint makes policies to appear in the Security App – Agent Endpoint Integration

    • Age: 1
    • Duration: 189.22194
    • Error Details: Step the policy response will be shown in the Security App
  • Name: Initializing / End-To-End Tests / fleet_agent_endpoint_integration / Changing an Agent policy is reflected in the Security App – Agent Endpoint Integration

    • Age: 1
    • Duration: 190.5723
    • Error Details: Step the policy is updated to have "malware" in "detect" mode
  • Name: Initializing / End-To-End Tests / fleet_agent_endpoint_integration / Un-enrolling Elastic Agent stops Elastic Endpoint – Agent Endpoint Integration

    • Age: 1
    • Duration: 189.61842
    • Error Details: Step the agent is un-enrolled
  • Name: Initializing / End-To-End Tests / fleet_agent_endpoint_integration / Removing Endpoint from Agent policy stops the connected Endpoint – Agent Endpoint Integration

    • Age: 1
    • Duration: 185.38553
    • Error Details: Step the "Elastic Endpoint Security" integration is "removed" in the policy
  • Name: Initializing / End-To-End Tests / fleet_fleet_mode / Deploying the centos agent – Fleet Mode Agent

    • Age: 1
    • Duration: 194.21059
    • Error Details: Step the "filebeat" process is in the "started" state on the host
  • Name: Initializing / End-To-End Tests / fleet_fleet_mode / Deploying the debian agent – Fleet Mode Agent

    • Age: 1
    • Duration: 193.32896
    • Error Details: Step the "metricbeat" process is in the "started" state on the host
  • Name: Initializing / End-To-End Tests / fleet_fleet_mode / Restarting the centos host with persistent agent restarts backend processes – Fleet Mode Agent

    • Age: 1
    • Duration: 203.59885
    • Error Details: Step the "metricbeat" process is in the "started" state on the host
  • Name: Initializing / End-To-End Tests / fleet_fleet_mode / Restarting the debian host with persistent agent restarts backend processes – Fleet Mode Agent

    • Age: 1
    • Duration: 189.97679
    • Error Details: Step the "metricbeat" process is in the "started" state on the host
  • Name: Initializing / End-To-End Tests / fleet_fleet_mode / Un-enrolling the centos agent – Fleet Mode Agent

    • Age: 1
    • Duration: 192.57838
    • Error Details: Step the agent is listed in Fleet as "inactive"

Steps errors 6

Expand to view the steps failures

  • Name: Run functional tests for fleet:agent_endpoint_integration

    • Description:

    • Duration: 21 min 35 sec

    • Start Time: 2020-10-20T07:27:31.838+0000

    • log

  • Name: Error signal

    • Description:

    • Duration: 0 min 0 sec

    • Start Time: 2020-10-20T07:48:06.528+0000

    • log

  • Name: General Build Step

    • Description: [2020-10-20T07:48:07.014Z] Archiving artifacts
      hudson.AbortException: script returned exit code 1

    • Duration: 0 min 0 sec

    • Start Time: 2020-10-20T07:48:07.009+0000

    • log

  • Name: Run functional tests for fleet:fleet_mode

    • Description:

    • Duration: 28 min 17 sec

    • Start Time: 2020-10-20T07:27:45.184+0000

    • log

  • Name: Error signal

    • Description:

    • Duration: 0 min 0 sec

    • Start Time: 2020-10-20T07:56:01.936+0000

    • log

  • Name: General Build Step

    • Description: [2020-10-20T07:56:02.482Z] Archiving artifacts
      hudson.AbortException: script returned exit code 1

    • Duration: 0 min 0 sec

    • Start Time: 2020-10-20T07:56:02.476+0000

    • log

Log output

Expand to view the last 100 lines of log output

[2020-10-20T07:55:46.578Z] Processing triggers for systemd (232-25+deb9u12) ...
[2020-10-20T07:55:46.578Z] time="2020-10-20T07:55:46Z" level=debug msg="Docker compose executed." cmd="[exec -T debian-systemd apt install /elastic-agent-8.0.0-SNAPSHOT-amd64.deb -y]" composeFilePaths="[/var/lib/jenkins/workspace/e2e-tests_e2e-testing-mbp_PR-376/.op/compose/profiles/fleet/docker-compose.yml /var/lib/jenkins/workspace/e2e-tests_e2e-testing-mbp_PR-376/.op/compose/services/debian-systemd/docker-compose.yml]" env="map[centos_systemdAgentBinarySrcPath:/tmp/elastic-agent-8.0.0-SNAPSHOT-x86_64.rpm768755970 centos_systemdAgentBinaryTargetPath:/elastic-agent-8.0.0-SNAPSHOT-x86_64.rpm centos_systemdContainerName:fleet_centos-systemd_centos-systemd_2 centos_systemdTag:latest debian_systemdAgentBinarySrcPath:/tmp/elastic-agent-8.0.0-SNAPSHOT-amd64.deb887969913 debian_systemdAgentBinaryTargetPath:/elastic-agent-8.0.0-SNAPSHOT-amd64.deb debian_systemdContainerName:fleet_debian-systemd_debian-systemd_2 debian_systemdTag:stretch kibanaConfigPath:/var/lib/jenkins/workspace/e2e-tests_e2e-testing-mbp_PR-376/src/github.com/elastic/e2e-testing/e2e/_suites/fleet/configurations/kibana.config.yml stackVersion:8.0.0-SNAPSHOT]" profile=fleet
[2020-10-20T07:55:47.800Z] Synchronizing state of elastic-agent.service with SysV service script with /lib/systemd/systemd-sysv-install.
[2020-10-20T07:55:47.800Z] Executing: /lib/systemd/systemd-sysv-install enable elastic-agent
[2020-10-20T07:55:47.800Z] time="2020-10-20T07:55:47Z" level=debug msg="Docker compose executed." cmd="[exec -T debian-systemd systemctl enable elastic-agent]" composeFilePaths="[/var/lib/jenkins/workspace/e2e-tests_e2e-testing-mbp_PR-376/.op/compose/profiles/fleet/docker-compose.yml /var/lib/jenkins/workspace/e2e-tests_e2e-testing-mbp_PR-376/.op/compose/services/debian-systemd/docker-compose.yml]" env="map[centos_systemdAgentBinarySrcPath:/tmp/elastic-agent-8.0.0-SNAPSHOT-x86_64.rpm768755970 centos_systemdAgentBinaryTargetPath:/elastic-agent-8.0.0-SNAPSHOT-x86_64.rpm centos_systemdContainerName:fleet_centos-systemd_centos-systemd_2 centos_systemdTag:latest debian_systemdAgentBinarySrcPath:/tmp/elastic-agent-8.0.0-SNAPSHOT-amd64.deb887969913 debian_systemdAgentBinaryTargetPath:/elastic-agent-8.0.0-SNAPSHOT-amd64.deb debian_systemdContainerName:fleet_debian-systemd_debian-systemd_2 debian_systemdTag:stretch kibanaConfigPath:/var/lib/jenkins/workspace/e2e-tests_e2e-testing-mbp_PR-376/src/github.com/elastic/e2e-testing/e2e/_suites/fleet/configurations/kibana.config.yml stackVersion:8.0.0-SNAPSHOT]" profile=fleet
[2020-10-20T07:55:48.757Z] The Elastic Agent is currently in BETA and should not be used in production
[2020-10-20T07:55:48.757Z] 
[2020-10-20T07:55:49.029Z] 2020-10-20T07:55:48.964Z	DEBUG	kibana/client.go:170	Request method: POST, path: /api/fleet/agents/enroll
[2020-10-20T07:55:49.291Z] Error: fail to enroll: fail to execute request to Kibana: Status code: 401, Kibana returned an error: Unauthorized, message: [security_exception] missing authentication credentials for REST request [/_security/_authenticate], with { header={ WWW-Authenticate={ 0="Basic realm=\"security\" charset=\"UTF-8\"" & 1="ApiKey" } } }
[2020-10-20T07:55:49.291Z] time="2020-10-20T07:55:49Z" level=error msg="Could not execute command in container" command="[elastic-agent enroll http://kibana:5601 el80QlJYVUJKcG5BbnNXeGt4ejY6aHEyWXFnemFSNktXODVwSEZwbXEwdw== -f --insecure]" error="Could not run compose file: [/var/lib/jenkins/workspace/e2e-tests_e2e-testing-mbp_PR-376/.op/compose/profiles/fleet/docker-compose.yml /var/lib/jenkins/workspace/e2e-tests_e2e-testing-mbp_PR-376/.op/compose/services/debian-systemd/docker-compose.yml] - Local Docker compose exited abnormally whilst running docker-compose: [exec -T debian-systemd elastic-agent enroll http://kibana:5601 el80QlJYVUJKcG5BbnNXeGt4ejY6aHEyWXFnemFSNktXODVwSEZwbXEwdw== -f --insecure]. exit status 1" service=debian-systemd
[2020-10-20T07:55:49.291Z] time="2020-10-20T07:55:49Z" level=error msg="Could not enroll the agent with the token" command="[elastic-agent enroll http://kibana:5601 el80QlJYVUJKcG5BbnNXeGt4ejY6aHEyWXFnemFSNktXODVwSEZwbXEwdw== -f --insecure]" error="Could not run compose file: [/var/lib/jenkins/workspace/e2e-tests_e2e-testing-mbp_PR-376/.op/compose/profiles/fleet/docker-compose.yml /var/lib/jenkins/workspace/e2e-tests_e2e-testing-mbp_PR-376/.op/compose/services/debian-systemd/docker-compose.yml] - Local Docker compose exited abnormally whilst running docker-compose: [exec -T debian-systemd elastic-agent enroll http://kibana:5601 el80QlJYVUJKcG5BbnNXeGt4ejY6aHEyWXFnemFSNktXODVwSEZwbXEwdw== -f --insecure]. exit status 1" image=debian-systemd service=debian-systemd tag=stretch token="el80QlJYVUJKcG5BbnNXeGt4ejY6aHEyWXFnemFSNktXODVwSEZwbXEwdw=="
[2020-10-20T07:55:49.291Z] time="2020-10-20T07:55:49Z" level=debug msg="As expected, it's not possible to enroll an agent with a revoked token" err="Could not run compose file: [/var/lib/jenkins/workspace/e2e-tests_e2e-testing-mbp_PR-376/.op/compose/profiles/fleet/docker-compose.yml /var/lib/jenkins/workspace/e2e-tests_e2e-testing-mbp_PR-376/.op/compose/services/debian-systemd/docker-compose.yml] - Local Docker compose exited abnormally whilst running docker-compose: [exec -T debian-systemd elastic-agent enroll http://kibana:5601 el80QlJYVUJKcG5BbnNXeGt4ejY6aHEyWXFnemFSNktXODVwSEZwbXEwdw== -f --insecure]. exit status 1" token="el80QlJYVUJKcG5BbnNXeGt4ejY6aHEyWXFnemFSNktXODVwSEZwbXEwdw=="
[2020-10-20T07:55:49.291Z] time="2020-10-20T07:55:49Z" level=warning msg="Could not create command in container" command="[cat /etc/elastic-agent/.elastic-agent.active.commit]" container=737eef2541bb detach=false error="Error response from daemon: No such container: 737eef2541bb" tty=false
[2020-10-20T07:55:49.292Z] time="2020-10-20T07:55:49Z" level=error msg="Could not get agent hash in the container" containerName=737eef2541bb error="Error response from daemon: No such container: 737eef2541bb"
[2020-10-20T07:55:49.292Z] time="2020-10-20T07:55:49Z" level=debug msg="Un-enrolling agent in Fleet" agentID=0b09f10b-9f1f-4665-b1aa-0346578daa02 hostname=737eef2541bb
[2020-10-20T07:55:50.239Z] time="2020-10-20T07:55:50Z" level=debug msg="Fleet agent was unenrolled" agentID=0b09f10b-9f1f-4665-b1aa-0346578daa02
[2020-10-20T07:55:50.819Z] Stopping fleet_debian-systemd_debian-systemd_2 ... 
[2020-10-20T07:55:52.090Z] 
Stopping fleet_debian-systemd_debian-systemd_2 ... done
Removing fleet_debian-systemd_debian-systemd_2 ... 
[2020-10-20T07:55:52.359Z] 
Removing fleet_debian-systemd_debian-systemd_2 ... done
Going to remove fleet_debian-systemd_debian-systemd_2
[2020-10-20T07:55:52.359Z] time="2020-10-20T07:55:52Z" level=debug msg="Docker compose executed." cmd="[rm -fvs debian-systemd]" composeFilePaths="[/var/lib/jenkins/workspace/e2e-tests_e2e-testing-mbp_PR-376/.op/compose/profiles/fleet/docker-compose.yml /var/lib/jenkins/workspace/e2e-tests_e2e-testing-mbp_PR-376/.op/compose/services/debian-systemd/docker-compose.yml]" env="map[centos_systemdAgentBinarySrcPath:/tmp/elastic-agent-8.0.0-SNAPSHOT-x86_64.rpm768755970 centos_systemdAgentBinaryTargetPath:/elastic-agent-8.0.0-SNAPSHOT-x86_64.rpm centos_systemdContainerName:fleet_centos-systemd_centos-systemd_2 centos_systemdTag:latest debian_systemdAgentBinarySrcPath:/tmp/elastic-agent-8.0.0-SNAPSHOT-amd64.deb887969913 debian_systemdAgentBinaryTargetPath:/elastic-agent-8.0.0-SNAPSHOT-amd64.deb debian_systemdContainerName:fleet_debian-systemd_debian-systemd_2 debian_systemdTag:stretch kibanaConfigPath:/var/lib/jenkins/workspace/e2e-tests_e2e-testing-mbp_PR-376/src/github.com/elastic/e2e-testing/e2e/_suites/fleet/configurations/kibana.config.yml stackVersion:8.0.0-SNAPSHOT]" profile=fleet
[2020-10-20T07:55:52.359Z] time="2020-10-20T07:55:52Z" level=debug msg="Service removed from compose" profile=fleet service=debian-systemd
[2020-10-20T07:55:53.307Z] time="2020-10-20T07:55:53Z" level=debug msg="The token was deleted" tokenID=950d4ef1-826c-47b1-a50f-2771e7b5fc55
[2020-10-20T07:55:53.307Z] time="2020-10-20T07:55:53Z" level=info msg="Integration deleted from the configuration" integration= packageConfigId= policyID=9995b3b0-12a9-11eb-a90b-15763bb25ebe version=
[2020-10-20T07:55:59.897Z] time="2020-10-20T07:55:59Z" level=debug msg="The policy was deleted" policyID=9995b3b0-12a9-11eb-a90b-15763bb25ebe
[2020-10-20T07:55:59.897Z] time="2020-10-20T07:55:59Z" level=debug msg="Destroying Fleet runtime dependencies"
[2020-10-20T07:55:59.897Z] Stopping fleet_kibana_1           ... 
[2020-10-20T07:55:59.897Z] Stopping fleet_package-registry_1 ... 
[2020-10-20T07:55:59.897Z] Stopping fleet_elasticsearch_1    ... 
[2020-10-20T07:56:01.624Z] 
Stopping fleet_kibana_1           ... done

Stopping fleet_package-registry_1 ... done

Stopping fleet_elasticsearch_1    ... done
Removing fleet_kibana_1           ... 
[2020-10-20T07:56:01.624Z] Removing fleet_package-registry_1 ... 
[2020-10-20T07:56:01.624Z] Removing fleet_elasticsearch_1    ... 
[2020-10-20T07:56:01.624Z] 
Removing fleet_kibana_1           ... done

Removing fleet_package-registry_1 ... done

Removing fleet_elasticsearch_1    ... done
Removing network fleet_default
[2020-10-20T07:56:01.885Z] time="2020-10-20T07:56:01Z" level=debug msg="Docker compose executed." cmd="[down]" composeFilePaths="[/var/lib/jenkins/workspace/e2e-tests_e2e-testing-mbp_PR-376/.op/compose/profiles/fleet/docker-compose.yml]" env="map[centos_systemdAgentBinarySrcPath:/tmp/elastic-agent-8.0.0-SNAPSHOT-x86_64.rpm768755970 centos_systemdAgentBinaryTargetPath:/elastic-agent-8.0.0-SNAPSHOT-x86_64.rpm centos_systemdContainerName:fleet_centos-systemd_centos-systemd_2 centos_systemdTag:latest debian_systemdAgentBinarySrcPath:/tmp/elastic-agent-8.0.0-SNAPSHOT-amd64.deb887969913 debian_systemdAgentBinaryTargetPath:/elastic-agent-8.0.0-SNAPSHOT-amd64.deb debian_systemdContainerName:fleet_debian-systemd_debian-systemd_2 debian_systemdTag:stretch kibanaConfigPath:/var/lib/jenkins/workspace/e2e-tests_e2e-testing-mbp_PR-376/src/github.com/elastic/e2e-testing/e2e/_suites/fleet/configurations/kibana.config.yml stackVersion:8.0.0-SNAPSHOT]" profile=fleet
[2020-10-20T07:56:01.885Z] time="2020-10-20T07:56:01Z" level=debug msg="Elastic Agent binary was removed." installer=centos-systemd path=/tmp/elastic-agent-8.0.0-SNAPSHOT-x86_64.rpm768755970
[2020-10-20T07:56:01.885Z] time="2020-10-20T07:56:01Z" level=debug msg="Elastic Agent binary was removed." installer=debian-systemd path=/tmp/elastic-agent-8.0.0-SNAPSHOT-amd64.deb887969913
[2020-10-20T07:56:01.885Z] <?xml version="1.0" encoding="UTF-8"?>
[2020-10-20T07:56:01.885Z] <testsuites name="main" tests="12" skipped="0" failures="8" errors="0" time="1660.907952703">
[2020-10-20T07:56:01.885Z]   <testsuite name="Fleet Mode Agent" tests="12" skipped="0" failures="8" errors="0" time="1523.625882274">
[2020-10-20T07:56:01.885Z]     <testcase name="Deploying the centos agent" status="failed" time="194.210589886">
[2020-10-20T07:56:01.885Z]       <failure message="Step the &#34;elastic-agent&#34; process is in the &#34;started&#34; state on the host: elastic-agent process is not running in the container yet"></failure>
[2020-10-20T07:56:01.885Z]       <error message="Step the &#34;filebeat&#34; process is in the &#34;started&#34; state on the host" type="skipped"></error>
[2020-10-20T07:56:01.886Z]       <error message="Step the &#34;metricbeat&#34; process is in the &#34;started&#34; state on the host" type="skipped"></error>
[2020-10-20T07:56:01.886Z]       <error message="Step the agent is listed in Fleet as &#34;online&#34;" type="skipped"></error>
[2020-10-20T07:56:01.886Z]       <error message="Step system package dashboards are listed in Fleet" type="skipped"></error>
[2020-10-20T07:56:01.886Z]     </testcase>
[2020-10-20T07:56:01.886Z]     <testcase name="Deploying the debian agent" status="failed" time="193.328958473">
[2020-10-20T07:56:01.886Z]       <failure message="Step the &#34;filebeat&#34; process is in the &#34;started&#34; state on the host: filebeat process is not running in the container yet"></failure>
[2020-10-20T07:56:01.886Z]       <error message="Step the &#34;metricbeat&#34; process is in the &#34;started&#34; state on the host" type="skipped"></error>
[2020-10-20T07:56:01.886Z]       <error message="Step the agent is listed in Fleet as &#34;online&#34;" type="skipped"></error>
[2020-10-20T07:56:01.886Z]       <error message="Step system package dashboards are listed in Fleet" type="skipped"></error>
[2020-10-20T07:56:01.886Z]     </testcase>
[2020-10-20T07:56:01.886Z]     <testcase name="Stopping the centos agent stops backend processes" status="passed" time="12.514375454"></testcase>
[2020-10-20T07:56:01.886Z]     <testcase name="Stopping the debian agent stops backend processes" status="passed" time="14.522820471"></testcase>
[2020-10-20T07:56:01.886Z]     <testcase name="Restarting the centos host with persistent agent restarts backend processes" status="failed" time="203.598845451">
[2020-10-20T07:56:01.886Z]       <failure message="Step the &#34;filebeat&#34; process is in the &#34;started&#34; state on the host: filebeat process is not running in the container yet"></failure>
[2020-10-20T07:56:01.886Z]       <error message="Step the &#34;metricbeat&#34; process is in the &#34;started&#34; state on the host" type="skipped"></error>
[2020-10-20T07:56:01.886Z]     </testcase>
[2020-10-20T07:56:01.886Z]     <testcase name="Restarting the debian host with persistent agent restarts backend processes" status="failed" time="189.976788017">
[2020-10-20T07:56:01.886Z]       <failure message="Step the &#34;filebeat&#34; process is in the &#34;started&#34; state on the host: filebeat process is not running in the container yet"></failure>
[2020-10-20T07:56:01.886Z]       <error message="Step the &#34;metricbeat&#34; process is in the &#34;started&#34; state on the host" type="skipped"></error>
[2020-10-20T07:56:01.886Z]     </testcase>
[2020-10-20T07:56:01.886Z]     <testcase name="Un-enrolling the centos agent" status="failed" time="192.578386156">
[2020-10-20T07:56:01.886Z]       <failure message="Step the &#34;elastic-agent&#34; process is in the &#34;started&#34; state on the host: elastic-agent process is not running in the container yet"></failure>
[2020-10-20T07:56:01.886Z]       <error message="Step the agent is listed in Fleet as &#34;inactive&#34;" type="skipped"></error>
[2020-10-20T07:56:01.886Z]     </testcase>
[2020-10-20T07:56:01.886Z]     <testcase name="Un-enrolling the debian agent" status="failed" time="189.97427959">
[2020-10-20T07:56:01.886Z]       <failure message="Step the &#34;elastic-agent&#34; process is in the &#34;started&#34; state on the host: elastic-agent process is not running in the container yet"></failure>
[2020-10-20T07:56:01.886Z]       <error message="Step the agent is listed in Fleet as &#34;inactive&#34;" type="skipped"></error>
[2020-10-20T07:56:01.886Z]     </testcase>
[2020-10-20T07:56:01.886Z]     <testcase name="Re-enrolling the centos agent" status="failed" time="18.009766538">
[2020-10-20T07:56:01.886Z]       <failure message="Step the &#34;elastic-agent&#34; process is &#34;started&#34; on the host: Could not run compose file: [/var/lib/jenkins/workspace/e2e-tests_e2e-testing-mbp_PR-376/.op/compose/profiles/fleet/docker-compose.yml /var/lib/jenkins/workspace/e2e-tests_e2e-testing-mbp_PR-376/.op/compose/services/centos-systemd/docker-compose.yml] - Local Docker compose exited abnormally whilst running docker-compose: [exec -T centos-systemd systemctl start elastic-agent]. exit status 1"></failure>
[2020-10-20T07:56:01.886Z]       <error message="Step the agent is listed in Fleet as &#34;online&#34;" type="skipped"></error>
[2020-10-20T07:56:01.886Z]     </testcase>
[2020-10-20T07:56:01.886Z]     <testcase name="Re-enrolling the debian agent" status="failed" time="20.220074674">
[2020-10-20T07:56:01.886Z]       <failure message="Step the &#34;elastic-agent&#34; process is &#34;started&#34; on the host: Could not run compose file: [/var/lib/jenkins/workspace/e2e-tests_e2e-testing-mbp_PR-376/.op/compose/profiles/fleet/docker-compose.yml /var/lib/jenkins/workspace/e2e-tests_e2e-testing-mbp_PR-376/.op/compose/services/debian-systemd/docker-compose.yml] - Local Docker compose exited abnormally whilst running docker-compose: [exec -T debian-systemd systemctl start elastic-agent]. exit status 1"></failure>
[2020-10-20T07:56:01.886Z]       <error message="Step the agent is listed in Fleet as &#34;online&#34;" type="skipped"></error>
[2020-10-20T07:56:01.886Z]     </testcase>
[2020-10-20T07:56:01.886Z]     <testcase name="Revoking the enrollment token for the centos agent" status="passed" time="29.501438208"></testcase>
[2020-10-20T07:56:01.886Z]     <testcase name="Revoking the enrollment token for the debian agent" status="passed" time="24.024371286"></testcase>
[2020-10-20T07:56:01.886Z]   </testsuite>
[2020-10-20T07:56:01.886Z] </testsuites>make: *** [functional-test] Error 1
[2020-10-20T07:56:01.886Z] Makefile:45: recipe for target 'functional-test' failed
[2020-10-20T07:56:01.886Z] + echo 'ERROR: functional-test failed'
[2020-10-20T07:56:01.886Z] ERROR: functional-test failed
[2020-10-20T07:56:01.886Z] + exit_status=1
[2020-10-20T07:56:01.886Z] + sed -e 's/^[ \t]*//; s#>.*failed$#>#g' outputs/TEST-fleet-fleet_mode
[2020-10-20T07:56:01.886Z] + grep -E '^<.*>$'
[2020-10-20T07:56:01.886Z] + exit 1
[2020-10-20T07:56:01.947Z] Recording test results
[2020-10-20T07:56:02.482Z] Archiving artifacts
[2020-10-20T07:56:02.602Z] Failed in branch fleet_fleet_mode
[2020-10-20T07:56:03.744Z] Stage "Release" skipped due to earlier failure(s)
[2020-10-20T07:56:05.004Z] Running on worker-395930 in /var/lib/jenkins/workspace/e2e-tests_e2e-testing-mbp_PR-376
[2020-10-20T07:56:05.041Z] [INFO] getVaultSecret: Getting secrets
[2020-10-20T07:56:05.094Z] Masking supported pattern matches of $VAULT_ADDR or $VAULT_ROLE_ID or $VAULT_SECRET_ID
[2020-10-20T07:56:07.033Z] + chmod 755 generate-build-data.sh
[2020-10-20T07:56:07.033Z] + ./generate-build-data.sh https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/e2e-tests/e2e-testing-mbp/PR-376/ https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/e2e-tests/e2e-testing-mbp/PR-376/runs/2 FAILURE 2038663
[2020-10-20T07:56:07.033Z] INFO: curl https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/e2e-tests/e2e-testing-mbp/PR-376/runs/2/steps/?limit=10000 -o steps-info.json
[2020-10-20T07:56:14.808Z] INFO: curl https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/e2e-tests/e2e-testing-mbp/PR-376/runs/2/tests/?status=FAILED -o tests-errors.json
[2020-10-20T07:56:15.510Z] INFO: curl https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/e2e-tests/e2e-testing-mbp/PR-376/runs/2/log/ -o pipeline-log.txt

Copy link
Contributor

@mdelapenya mdelapenya left a comment

Choose a reason for hiding this comment

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

LGTM 👍 Let's wait for CI for merging it, thanks!

image

@elasticmachine
Copy link
Contributor

🐛 Flaky test report

❕ There are not known flaky tests.

Test stats 🧪

Test Results
Failed 13
Passed 62
Skipped 10
Total 85

@michalpristas
Copy link
Contributor Author

Looks like standalone is fixed

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working skip_backport Team:Elastic-Agent Label for the Agent team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants