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

fix: use an agent when building kibana #1030

Merged
merged 2 commits into from
Apr 13, 2021
Merged

Conversation

mdelapenya
Copy link
Contributor

What does this PR do?

It uses an ubuntu 20 agent to build the job.

Why is it important?

It fixes the following error on CI:

ERROR: Attempted to execute a step that requires a node context while ‘agent none’ was specified. Be sure to specify your own ‘node { ... }’ blocks when using ‘agent none’.

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)

@mdelapenya mdelapenya self-assigned this Apr 13, 2021
@mdelapenya mdelapenya requested a review from a team April 13, 2021 15:50
@mdelapenya mdelapenya added the bug Something isn't working label Apr 13, 2021
@mdelapenya mdelapenya marked this pull request as ready for review April 13, 2021 16:01
.ci/e2eKibana.groovy Outdated Show resolved Hide resolved
@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 #1030 opened

  • Start Time: 2021-04-13T15:50:48.716+0000

  • Duration: 32 min 47 sec

  • Commit: 5b0d0c2

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 21 min 10 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-13T16:21:02.939Z] time="2021-04-13T16:21:02Z" level=debug msg="Agent listed in Fleet with online status" agentID=848f5461-980a-4ac8-a9ad-d6b5ee88cf0e hostname=8e3759484fa6
[2021-04-13T16:21:02.939Z] time="2021-04-13T16:21:02Z" level=warning msg="The Agent is not in the online status yet" agentID=848f5461-980a-4ac8-a9ad-d6b5ee88cf0e elapsedTime=1.848516562s hostname=8e3759484fa6 isAgentInStatus=false retry=3 status=online
[2021-04-13T16:21:05.488Z] time="2021-04-13T16:21:05Z" level=debug msg="Agent listed in Fleet with online status" agentID=848f5461-980a-4ac8-a9ad-d6b5ee88cf0e hostname=8e3759484fa6
[2021-04-13T16:21:05.488Z] time="2021-04-13T16:21:05Z" level=warning msg="The Agent is not in the online status yet" agentID=848f5461-980a-4ac8-a9ad-d6b5ee88cf0e elapsedTime=4.274445078s hostname=8e3759484fa6 isAgentInStatus=false retry=4 status=online
[2021-04-13T16:21:08.044Z] time="2021-04-13T16:21:07Z" level=debug msg="Agent listed in Fleet with online status" agentID=848f5461-980a-4ac8-a9ad-d6b5ee88cf0e hostname=8e3759484fa6
[2021-04-13T16:21:08.044Z] time="2021-04-13T16:21:07Z" level=warning msg="The Agent is not in the online status yet" agentID=848f5461-980a-4ac8-a9ad-d6b5ee88cf0e elapsedTime=6.533435347s hostname=8e3759484fa6 isAgentInStatus=false retry=5 status=online
[2021-04-13T16:21:16.199Z] time="2021-04-13T16:21:15Z" level=debug msg="Agent listed in Fleet with online status" agentID=848f5461-980a-4ac8-a9ad-d6b5ee88cf0e hostname=8e3759484fa6
[2021-04-13T16:21:16.199Z] time="2021-04-13T16:21:15Z" level=warning msg="The Agent is not in the online status yet" agentID=848f5461-980a-4ac8-a9ad-d6b5ee88cf0e elapsedTime=14.100035119s hostname=8e3759484fa6 isAgentInStatus=false retry=6 status=online
[2021-04-13T16:21:18.122Z] {"level":"debug","time":"2021-04-13T16:21:17Z","message":"gathering metrics"}
[2021-04-13T16:21:20.043Z] time="2021-04-13T16:21:19Z" level=debug msg="Agent listed in Fleet with online status" agentID=848f5461-980a-4ac8-a9ad-d6b5ee88cf0e hostname=8e3759484fa6
[2021-04-13T16:21:20.043Z] time="2021-04-13T16:21:19Z" level=warning msg="The Agent is not in the online status yet" agentID=848f5461-980a-4ac8-a9ad-d6b5ee88cf0e elapsedTime=18.683434816s hostname=8e3759484fa6 isAgentInStatus=false retry=7 status=online
[2021-04-13T16:21:23.357Z] time="2021-04-13T16:21:22Z" level=debug msg="Agent listed in Fleet with online status" agentID=848f5461-980a-4ac8-a9ad-d6b5ee88cf0e hostname=8e3759484fa6
[2021-04-13T16:21:23.357Z] time="2021-04-13T16:21:22Z" level=warning msg="The Agent is not in the online status yet" agentID=848f5461-980a-4ac8-a9ad-d6b5ee88cf0e elapsedTime=21.770556136s hostname=8e3759484fa6 isAgentInStatus=false retry=8 status=online
[2021-04-13T16:21:28.665Z] {"level":"debug","time":"2021-04-13T16:21:28Z","message":"sent request with 0 transactions, 0 spans, 0 errors, 1 metricset"}
[2021-04-13T16:21:29.239Z] time="2021-04-13T16:21:29Z" level=debug msg="Agent listed in Fleet with online status" agentID=848f5461-980a-4ac8-a9ad-d6b5ee88cf0e hostname=8e3759484fa6
[2021-04-13T16:21:29.502Z] time="2021-04-13T16:21:29Z" level=info msg="The Agent is in the desired status" elapsedTime=28.256026389s hostname=8e3759484fa6 isAgentInStatus=true retries=9 status=online
[2021-04-13T16:21:29.502Z] time="2021-04-13T16:21:29Z" level=debug msg="Integration in latest version found" name=endpoint title="Endpoint Security" version=0.18.0
[2021-04-13T16:21:33.718Z] time="2021-04-13T16:21:32Z" level=info msg="Integration added to the configuration" integration=endpoint integrationConfigurationID=4f0dead3-c482-4a4f-8c0c-e9f06ffc4084 policyID=cc93ae00-9c71-11eb-8817-314a88fc0c63 version=0.18.0
[2021-04-13T16:21:33.718Z] time="2021-04-13T16:21:32Z" level=debug msg="Package policy found in the configuration" package="{4f0dead3-c482-4a4f-8c0c-e9f06ffc4084 endpoint Endpoint Security 0.18.0 0xc00043d030}" policyID=cc93ae00-9c71-11eb-8817-314a88fc0c63
[2021-04-13T16:21:36.277Z] time="2021-04-13T16:21:35Z" level=info msg="Integration deleted from the configuration" integration=endpoint packageConfigId=4f0dead3-c482-4a4f-8c0c-e9f06ffc4084 policyID=cc93ae00-9c71-11eb-8817-314a88fc0c63 version=0.18.0
[2021-04-13T16:21:36.277Z] time="2021-04-13T16:21:35Z" level=debug msg="Agent listed in Fleet with online status" agentID=848f5461-980a-4ac8-a9ad-d6b5ee88cf0e hostname=8e3759484fa6
[2021-04-13T16:21:36.277Z] time="2021-04-13T16:21:35Z" level=info msg="The Agent is in the desired status" elapsedTime=70.553892ms hostname=8e3759484fa6 isAgentInStatus=true retries=1 status=online
[2021-04-13T16:21:36.277Z] time="2021-04-13T16:21:35Z" level=info msg="The Agent is not listed in the Administration view in the Security App" elapsedTime=30.596269ms hostname=8e3759484fa6 retries=1
[2021-04-13T16:21:36.852Z] {"log.level":"info","@timestamp":"2021-04-13T16:21:02.459Z","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-13T16:21:36.852Z] {"log.level":"info","@timestamp":"2021-04-13T16:21:02.459Z","log.origin":{"file.name":"application/application.go","file.line":68},"message":"Detecting execution mode","ecs.version":"1.6.0"}
[2021-04-13T16:21:36.852Z] {"log.level":"info","@timestamp":"2021-04-13T16:21:02.460Z","log.origin":{"file.name":"application/application.go","file.line":93},"message":"Agent is managed by Fleet","ecs.version":"1.6.0"}
[2021-04-13T16:21:36.852Z] {"log.level":"info","@timestamp":"2021-04-13T16:21:02.460Z","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-13T16:21:36.852Z] {"log.level":"info","@timestamp":"2021-04-13T16:21:02.728Z","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-13T16:21:36.852Z] {"log.level":"info","@timestamp":"2021-04-13T16:21:02.831Z","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-13T16:21:36.852Z] {"log.level":"info","@timestamp":"2021-04-13T16:21:02.832Z","log.logger":"api","log.origin":{"file.name":"api/server.go","file.line":62},"message":"Starting stats endpoint","ecs.version":"1.6.0"}
[2021-04-13T16:21:36.852Z] {"log.level":"info","@timestamp":"2021-04-13T16:21:02.832Z","log.origin":{"file.name":"application/managed_mode.go","file.line":289},"message":"Agent is starting","ecs.version":"1.6.0"}
[2021-04-13T16:21:36.852Z] {"log.level":"info","@timestamp":"2021-04-13T16:21:02.832Z","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-13T16:21:36.852Z] {"log.level":"warn","@timestamp":"2021-04-13T16:21:02.932Z","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-13T16:21:36.852Z] {"log.level":"info","@timestamp":"2021-04-13T16:21:04.856Z","log.origin":{"file.name":"stateresolver/stateresolver.go","file.line":48},"message":"New State ID is Vvfj7gtL","ecs.version":"1.6.0"}
[2021-04-13T16:21:36.852Z] {"log.level":"info","@timestamp":"2021-04-13T16:21:04.856Z","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-13T16:21:36.852Z] {"log.level":"info","@timestamp":"2021-04-13T16:21:04.856Z","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-13T16:21:36.853Z] {"log.level":"info","@timestamp":"2021-04-13T16:21:04.856Z","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-13T16:21:36.853Z] {"log.level":"info","@timestamp":"2021-04-13T16:21:08.224Z","log.origin":{"file.name":"log/reporter.go","file.line":40},"message":"2021-04-13T16:21:08Z: type: 'STATE': sub_type: 'STARTING' message: Application: metricbeat--8.0.0-SNAPSHOT[848f5461-980a-4ac8-a9ad-d6b5ee88cf0e]: State changed to STARTING: Starting","ecs.version":"1.6.0"}
[2021-04-13T16:21:36.853Z] {"log.level":"info","@timestamp":"2021-04-13T16:21:08.226Z","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-13T16:21:36.853Z] {"log.level":"info","@timestamp":"2021-04-13T16:21:08.226Z","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-13T16:21:36.853Z] {"log.level":"info","@timestamp":"2021-04-13T16:21:09.505Z","log.origin":{"file.name":"log/reporter.go","file.line":40},"message":"2021-04-13T16:21:09Z: type: 'STATE': sub_type: 'RUNNING' message: Application: metricbeat--8.0.0-SNAPSHOT[848f5461-980a-4ac8-a9ad-d6b5ee88cf0e]: State changed to RUNNING: Running","ecs.version":"1.6.0"}
[2021-04-13T16:21:36.853Z] {"log.level":"info","@timestamp":"2021-04-13T16:21:12.641Z","log.origin":{"file.name":"log/reporter.go","file.line":40},"message":"2021-04-13T16:21:12Z: type: 'STATE': sub_type: 'STARTING' message: Application: filebeat--8.0.0-SNAPSHOT[848f5461-980a-4ac8-a9ad-d6b5ee88cf0e]: State changed to STARTING: Starting","ecs.version":"1.6.0"}
[2021-04-13T16:21:36.853Z] {"log.level":"info","@timestamp":"2021-04-13T16:21:12.643Z","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-13T16:21:36.853Z] {"log.level":"info","@timestamp":"2021-04-13T16:21:12.643Z","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-13T16:21:36.853Z] {"log.level":"info","@timestamp":"2021-04-13T16:21:12.842Z","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-13T16:21:36.853Z] {"log.level":"info","@timestamp":"2021-04-13T16:21:13.252Z","log.origin":{"file.name":"log/reporter.go","file.line":40},"message":"2021-04-13T16:21:13Z: type: 'STATE': sub_type: 'STARTING' message: Application: filebeat--8.0.0-SNAPSHOT--36643631373035623733363936343635[848f5461-980a-4ac8-a9ad-d6b5ee88cf0e]: State changed to STARTING: Starting","ecs.version":"1.6.0"}
[2021-04-13T16:21:36.854Z] {"log.level":"info","@timestamp":"2021-04-13T16:21:13.253Z","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-13T16:21:36.854Z] {"log.level":"info","@timestamp":"2021-04-13T16:21:13.253Z","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-13T16:21:36.854Z] {"log.level":"info","@timestamp":"2021-04-13T16:21:13.486Z","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-13T16:21:36.854Z] {"log.level":"info","@timestamp":"2021-04-13T16:21:13.809Z","log.origin":{"file.name":"log/reporter.go","file.line":40},"message":"2021-04-13T16:21:13Z: type: 'STATE': sub_type: 'RUNNING' message: Application: filebeat--8.0.0-SNAPSHOT[848f5461-980a-4ac8-a9ad-d6b5ee88cf0e]: State changed to RUNNING: Running","ecs.version":"1.6.0"}
[2021-04-13T16:21:36.854Z] {"log.level":"info","@timestamp":"2021-04-13T16:21:13.862Z","log.origin":{"file.name":"log/reporter.go","file.line":40},"message":"2021-04-13T16:21:13Z: type: 'STATE': sub_type: 'STARTING' message: Application: metricbeat--8.0.0-SNAPSHOT--36643631373035623733363936343635[848f5461-980a-4ac8-a9ad-d6b5ee88cf0e]: State changed to STARTING: Starting","ecs.version":"1.6.0"}
[2021-04-13T16:21:36.854Z] {"log.level":"info","@timestamp":"2021-04-13T16:21:13.863Z","log.origin":{"file.name":"stateresolver/stateresolver.go","file.line":66},"message":"Updating internal state","ecs.version":"1.6.0"}
[2021-04-13T16:21:36.854Z] {"log.level":"info","@timestamp":"2021-04-13T16:21:14.412Z","log.origin":{"file.name":"log/reporter.go","file.line":40},"message":"2021-04-13T16:21:14Z: type: 'STATE': sub_type: 'RUNNING' message: Application: filebeat--8.0.0-SNAPSHOT--36643631373035623733363936343635[848f5461-980a-4ac8-a9ad-d6b5ee88cf0e]: State changed to RUNNING: Running","ecs.version":"1.6.0"}
[2021-04-13T16:21:36.854Z] {"log.level":"info","@timestamp":"2021-04-13T16:21:15.090Z","log.origin":{"file.name":"log/reporter.go","file.line":40},"message":"2021-04-13T16:21:15Z: type: 'STATE': sub_type: 'RUNNING' message: Application: metricbeat--8.0.0-SNAPSHOT--36643631373035623733363936343635[848f5461-980a-4ac8-a9ad-d6b5ee88cf0e]: State changed to RUNNING: Running","ecs.version":"1.6.0"}
[2021-04-13T16:21:36.854Z] time="2021-04-13T16:21:36Z" 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-1030-1-d8b8a027-98aa-4caa-8e9f-6ea20233e31b/.op/compose/profiles/fleet/docker-compose.yml /var/lib/jenkins/workspace/PR-1030-1-d8b8a027-98aa-4caa-8e9f-6ea20233e31b/.op/compose/services/centos-systemd/docker-compose.yml]" env="map[centos_systemdAgentBinarySrcPath:/tmp/elastic-agent-8.0.0-SNAPSHOT-linux-x86_64.tar.gz906183032 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-13T16:21:49.151Z] {"level":"debug","time":"2021-04-13T16:21:48Z","message":"gathering metrics"}
[2021-04-13T16:21:59.223Z] {"level":"debug","time":"2021-04-13T16:21:58Z","message":"sent request with 0 transactions, 0 spans, 0 errors, 1 metricset"}
[2021-04-13T16:22:09.481Z] Elastic Agent has been uninstalled.
[2021-04-13T16:22:09.481Z] time="2021-04-13T16:22:08Z" level=debug msg="Docker compose executed." cmd="[exec -T centos-systemd elastic-agent uninstall -f]" composeFilePaths="[/var/lib/jenkins/workspace/PR-1030-1-d8b8a027-98aa-4caa-8e9f-6ea20233e31b/.op/compose/profiles/fleet/docker-compose.yml /var/lib/jenkins/workspace/PR-1030-1-d8b8a027-98aa-4caa-8e9f-6ea20233e31b/.op/compose/services/centos-systemd/docker-compose.yml]" env="map[centos_systemdAgentBinarySrcPath:/tmp/elastic-agent-8.0.0-SNAPSHOT-linux-x86_64.tar.gz906183032 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-13T16:22:09.482Z] time="2021-04-13T16:22:08Z" level=debug msg="Un-enrolling agent in Fleet" agentID=848f5461-980a-4ac8-a9ad-d6b5ee88cf0e hostname=8e3759484fa6
[2021-04-13T16:22:10.878Z] time="2021-04-13T16:22:10Z" level=debug msg="Fleet agent was unenrolled" agentID=848f5461-980a-4ac8-a9ad-d6b5ee88cf0e
[2021-04-13T16:22:11.854Z] Stopping fleet_centos-systemd_elastic-agent_1 ... 
[2021-04-13T16:22:18.514Z] {"level":"debug","time":"2021-04-13T16:22:18Z","message":"gathering metrics"}
[2021-04-13T16:22:22.747Z] 
Stopping fleet_centos-systemd_elastic-agent_1 ... done
Removing fleet_centos-systemd_elastic-agent_1 ... 
[2021-04-13T16:22:22.748Z] 
Removing fleet_centos-systemd_elastic-agent_1 ... done
Going to remove fleet_centos-systemd_elastic-agent_1
[2021-04-13T16:22:22.748Z] time="2021-04-13T16:22:22Z" level=debug msg="Docker compose executed." cmd="[rm -fvs centos-systemd]" composeFilePaths="[/var/lib/jenkins/workspace/PR-1030-1-d8b8a027-98aa-4caa-8e9f-6ea20233e31b/.op/compose/profiles/fleet/docker-compose.yml /var/lib/jenkins/workspace/PR-1030-1-d8b8a027-98aa-4caa-8e9f-6ea20233e31b/.op/compose/services/centos-systemd/docker-compose.yml]" env="map[centos_systemdAgentBinarySrcPath:/tmp/elastic-agent-8.0.0-SNAPSHOT-linux-x86_64.tar.gz906183032 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-13T16:22:22.748Z] time="2021-04-13T16:22:22Z" level=debug msg="Service removed from compose" profile=fleet service=centos-systemd
[2021-04-13T16:22:23.703Z] time="2021-04-13T16:22:23Z" level=debug msg="The token was deleted" tokenID=78e1d867-fe1b-48d8-80f6-c9986052a21e
[2021-04-13T16:22:23.703Z] time="2021-04-13T16:22:23Z" level=info msg="Integration deleted from the configuration" integration=endpoint packageConfigId=4f0dead3-c482-4a4f-8c0c-e9f06ffc4084 policyID=cc93ae00-9c71-11eb-8817-314a88fc0c63 version=0.18.0
[2021-04-13T16:22:23.703Z] time="2021-04-13T16:22:23Z" level=debug msg="Destroying Fleet runtime dependencies"
[2021-04-13T16:22:24.280Z] Stopping fleet_kibana_1           ... 
[2021-04-13T16:22:24.280Z] Stopping fleet_package-registry_1 ... 
[2021-04-13T16:22:24.280Z] Stopping fleet_elasticsearch_1    ... 
[2021-04-13T16:22:26.345Z] 
Stopping fleet_kibana_1           ... done

Stopping fleet_package-registry_1 ... done

Stopping fleet_elasticsearch_1    ... done
Removing fleet_kibana_1           ... 
[2021-04-13T16:22:26.345Z] Removing fleet_package-registry_1 ... 
[2021-04-13T16:22:26.345Z] Removing fleet_elasticsearch_1    ... 
[2021-04-13T16:22:26.345Z] 
Removing fleet_package-registry_1 ... done

Removing fleet_kibana_1           ... done

Removing fleet_elasticsearch_1    ... done
Removing network fleet_default
[2021-04-13T16:22:26.923Z] time="2021-04-13T16:22:26Z" level=debug msg="Docker compose executed." cmd="[down --remove-orphans]" composeFilePaths="[/var/lib/jenkins/workspace/PR-1030-1-d8b8a027-98aa-4caa-8e9f-6ea20233e31b/.op/compose/profiles/fleet/docker-compose.yml]" env="map[centos_systemdAgentBinarySrcPath:/tmp/elastic-agent-8.0.0-SNAPSHOT-linux-x86_64.tar.gz906183032 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-13T16:22:26.923Z] time="2021-04-13T16:22:26Z" 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.gz906183032
[2021-04-13T16:22:26.923Z] Makefile:73: recipe for target 'functional-test' failed
[2021-04-13T16:22:26.923Z] make: *** [functional-test] Error 1
[2021-04-13T16:22:27.319Z] [INFO] Stopping Filebeat Docker container
[2021-04-13T16:22:27.633Z] + docker exec -t 9b4f992784330927d542adae6746ec8fe03fe6125d1994f16ec6e3f332b0ba92 chmod -R ugo+rw /output
[2021-04-13T16:22:28.210Z] + docker stop --time 30 9b4f992784330927d542adae6746ec8fe03fe6125d1994f16ec6e3f332b0ba92
[2021-04-13T16:22:28.472Z] 9b4f992784330927d542adae6746ec8fe03fe6125d1994f16ec6e3f332b0ba92
[2021-04-13T16:22:28.562Z] Archiving artifacts
[2021-04-13T16:22:29.723Z] Recording test results
[2021-04-13T16:22:30.302Z] [Checks API] No suitable checks publisher found.
[2021-04-13T16:22:30.341Z] Archiving artifacts
[2021-04-13T16:22:30.466Z] Running in /var/lib/jenkins/workspace/PR-1030-1-d8b8a027-98aa-4caa-8e9f-6ea20233e31b/src/github.com/elastic/e2e-testing
[2021-04-13T16:22:30.851Z] + go clean -modcache
[2021-04-13T16:22:31.846Z] Failed in branch ubuntu-18.04_fleet_agent_endpoint_integration
[2021-04-13T16:22:34.139Z] Stage "Release" skipped due to earlier failure(s)
[2021-04-13T16:22:35.068Z] Running on Jenkins in /var/lib/jenkins/workspace/2e-tests_e2e-testing-mbp_PR-1030
[2021-04-13T16:22:35.190Z] [INFO] getVaultSecret: Getting secrets
[2021-04-13T16:22:35.322Z] Masking supported pattern matches of $VAULT_ADDR or $VAULT_ROLE_ID or $VAULT_SECRET_ID
[2021-04-13T16:22:36.526Z] + chmod 755 generate-build-data.sh
[2021-04-13T16:22:36.526Z] + ./generate-build-data.sh https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/e2e-tests/e2e-testing-mbp/PR-1030/ https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/e2e-tests/e2e-testing-mbp/PR-1030/runs/1 FAILURE 1907492
[2021-04-13T16:22:36.776Z] INFO: curl https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/e2e-tests/e2e-testing-mbp/PR-1030/runs/1/steps/?limit=10000 -o steps-info.json
[2021-04-13T16:22:38.151Z] INFO: curl https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/e2e-tests/e2e-testing-mbp/PR-1030/runs/1/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

@mdelapenya mdelapenya requested a review from v1v April 13, 2021 16:25
@mdelapenya mdelapenya merged commit c0f3ed2 into master Apr 13, 2021
mergify bot pushed a commit that referenced this pull request Apr 13, 2021
* fix: use an agent when building kibana

* chore: move agent to the inner stage

(cherry picked from commit c0f3ed2)
mergify bot pushed a commit that referenced this pull request Apr 13, 2021
* fix: use an agent when building kibana

* chore: move agent to the inner stage

(cherry picked from commit c0f3ed2)
mergify bot pushed a commit that referenced this pull request Apr 13, 2021
* fix: use an agent when building kibana

* chore: move agent to the inner stage

(cherry picked from commit c0f3ed2)
@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 #1030 updated

  • Start Time: 2021-04-13T16:18:27.928+0000

  • Duration: 34 min 2 sec

  • Commit: b4ef61b

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 21 min 34 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-13T16:51:51.972Z] {"log.level":"info","@timestamp":"2021-04-13T16:51:28.624Z","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-13T16:51:51.972Z] {"log.level":"info","@timestamp":"2021-04-13T16:51:28.624Z","log.origin":{"file.name":"application/application.go","file.line":68},"message":"Detecting execution mode","ecs.version":"1.6.0"}
[2021-04-13T16:51:51.972Z] {"log.level":"info","@timestamp":"2021-04-13T16:51:28.625Z","log.origin":{"file.name":"application/application.go","file.line":93},"message":"Agent is managed by Fleet","ecs.version":"1.6.0"}
[2021-04-13T16:51:51.972Z] {"log.level":"info","@timestamp":"2021-04-13T16:51:28.625Z","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-13T16:51:51.972Z] {"log.level":"info","@timestamp":"2021-04-13T16:51:28.890Z","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-13T16:51:51.972Z] {"log.level":"info","@timestamp":"2021-04-13T16:51:28.994Z","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-13T16:51:51.972Z] {"log.level":"info","@timestamp":"2021-04-13T16:51:28.995Z","log.logger":"api","log.origin":{"file.name":"api/server.go","file.line":62},"message":"Starting stats endpoint","ecs.version":"1.6.0"}
[2021-04-13T16:51:51.972Z] {"log.level":"info","@timestamp":"2021-04-13T16:51:28.995Z","log.origin":{"file.name":"application/managed_mode.go","file.line":289},"message":"Agent is starting","ecs.version":"1.6.0"}
[2021-04-13T16:51:51.972Z] {"log.level":"info","@timestamp":"2021-04-13T16:51:28.995Z","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-13T16:51:51.973Z] {"log.level":"warn","@timestamp":"2021-04-13T16:51:29.095Z","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-13T16:51:51.973Z] {"log.level":"info","@timestamp":"2021-04-13T16:51:31.119Z","log.origin":{"file.name":"stateresolver/stateresolver.go","file.line":48},"message":"New State ID is Ga5Twa4D","ecs.version":"1.6.0"}
[2021-04-13T16:51:51.973Z] {"log.level":"info","@timestamp":"2021-04-13T16:51:31.119Z","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-13T16:51:51.973Z] {"log.level":"info","@timestamp":"2021-04-13T16:51:31.119Z","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-13T16:51:51.973Z] {"log.level":"info","@timestamp":"2021-04-13T16:51:31.119Z","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-13T16:51:51.973Z] {"log.level":"info","@timestamp":"2021-04-13T16:51:36.095Z","log.origin":{"file.name":"log/reporter.go","file.line":40},"message":"2021-04-13T16:51:36Z: type: 'STATE': sub_type: 'STARTING' message: Application: filebeat--8.0.0-SNAPSHOT[9d4611cb-599d-4a79-9e18-e95c2669f6a4]: State changed to STARTING: Starting","ecs.version":"1.6.0"}
[2021-04-13T16:51:51.973Z] {"log.level":"info","@timestamp":"2021-04-13T16:51:36.096Z","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-13T16:51:51.973Z] {"log.level":"info","@timestamp":"2021-04-13T16:51:36.096Z","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-13T16:51:51.973Z] {"log.level":"info","@timestamp":"2021-04-13T16:51:37.318Z","log.origin":{"file.name":"log/reporter.go","file.line":40},"message":"2021-04-13T16:51:37Z: type: 'STATE': sub_type: 'RUNNING' message: Application: filebeat--8.0.0-SNAPSHOT[9d4611cb-599d-4a79-9e18-e95c2669f6a4]: State changed to RUNNING: Running","ecs.version":"1.6.0"}
[2021-04-13T16:51:51.973Z] {"log.level":"info","@timestamp":"2021-04-13T16:51:39.787Z","log.origin":{"file.name":"log/reporter.go","file.line":40},"message":"2021-04-13T16:51:39Z: type: 'STATE': sub_type: 'STARTING' message: Application: metricbeat--8.0.0-SNAPSHOT[9d4611cb-599d-4a79-9e18-e95c2669f6a4]: State changed to STARTING: Starting","ecs.version":"1.6.0"}
[2021-04-13T16:51:51.973Z] {"log.level":"info","@timestamp":"2021-04-13T16:51:39.791Z","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-13T16:51:51.973Z] {"log.level":"info","@timestamp":"2021-04-13T16:51:39.791Z","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-13T16:51:51.973Z] {"log.level":"info","@timestamp":"2021-04-13T16:51:40.004Z","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-13T16:51:51.973Z] {"log.level":"info","@timestamp":"2021-04-13T16:51:40.214Z","log.origin":{"file.name":"log/reporter.go","file.line":40},"message":"2021-04-13T16:51:40Z: type: 'STATE': sub_type: 'STARTING' message: Application: filebeat--8.0.0-SNAPSHOT--36643631373035623733363936343635[9d4611cb-599d-4a79-9e18-e95c2669f6a4]: State changed to STARTING: Starting","ecs.version":"1.6.0"}
[2021-04-13T16:51:51.973Z] {"log.level":"info","@timestamp":"2021-04-13T16:51:40.216Z","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-13T16:51:51.974Z] {"log.level":"info","@timestamp":"2021-04-13T16:51:40.216Z","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-13T16:51:51.974Z] {"log.level":"info","@timestamp":"2021-04-13T16:51:40.485Z","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-13T16:51:51.974Z] {"log.level":"info","@timestamp":"2021-04-13T16:51:40.687Z","log.origin":{"file.name":"log/reporter.go","file.line":40},"message":"2021-04-13T16:51:40Z: type: 'STATE': sub_type: 'STARTING' message: Application: metricbeat--8.0.0-SNAPSHOT--36643631373035623733363936343635[9d4611cb-599d-4a79-9e18-e95c2669f6a4]: State changed to STARTING: Starting","ecs.version":"1.6.0"}
[2021-04-13T16:51:51.974Z] {"log.level":"info","@timestamp":"2021-04-13T16:51:40.688Z","log.origin":{"file.name":"stateresolver/stateresolver.go","file.line":66},"message":"Updating internal state","ecs.version":"1.6.0"}
[2021-04-13T16:51:51.974Z] {"log.level":"info","@timestamp":"2021-04-13T16:51:41.051Z","log.origin":{"file.name":"log/reporter.go","file.line":40},"message":"2021-04-13T16:51:41Z: type: 'STATE': sub_type: 'RUNNING' message: Application: metricbeat--8.0.0-SNAPSHOT[9d4611cb-599d-4a79-9e18-e95c2669f6a4]: State changed to RUNNING: Running","ecs.version":"1.6.0"}
[2021-04-13T16:51:51.974Z] {"log.level":"info","@timestamp":"2021-04-13T16:51:41.439Z","log.origin":{"file.name":"log/reporter.go","file.line":40},"message":"2021-04-13T16:51:41Z: type: 'STATE': sub_type: 'RUNNING' message: Application: filebeat--8.0.0-SNAPSHOT--36643631373035623733363936343635[9d4611cb-599d-4a79-9e18-e95c2669f6a4]: State changed to RUNNING: Running","ecs.version":"1.6.0"}
[2021-04-13T16:51:51.974Z] {"log.level":"info","@timestamp":"2021-04-13T16:51:41.975Z","log.origin":{"file.name":"log/reporter.go","file.line":40},"message":"2021-04-13T16:51:41Z: type: 'STATE': sub_type: 'RUNNING' message: Application: metricbeat--8.0.0-SNAPSHOT--36643631373035623733363936343635[9d4611cb-599d-4a79-9e18-e95c2669f6a4]: State changed to RUNNING: Running","ecs.version":"1.6.0"}
[2021-04-13T16:51:51.974Z] {"log.level":"info","@timestamp":"2021-04-13T16:51:48.849Z","log.origin":{"file.name":"stateresolver/stateresolver.go","file.line":48},"message":"New State ID is s9v9rNGD","ecs.version":"1.6.0"}
[2021-04-13T16:51:51.974Z] {"log.level":"info","@timestamp":"2021-04-13T16:51:48.849Z","log.origin":{"file.name":"stateresolver/stateresolver.go","file.line":49},"message":"Converging state requires execution of 4 step(s)","ecs.version":"1.6.0"}
[2021-04-13T16:51:51.974Z] {"log.level":"info","@timestamp":"2021-04-13T16:51:48.849Z","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-13T16:51:51.974Z] {"log.level":"info","@timestamp":"2021-04-13T16:51:48.849Z","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-13T16:51:51.974Z] {"log.level":"info","@timestamp":"2021-04-13T16:51:49.792Z","log.origin":{"file.name":"log/reporter.go","file.line":40},"message":"2021-04-13T16:51:49Z: type: 'STATE': sub_type: 'STARTING' message: Application: endpoint-security--8.0.0-SNAPSHOT[9d4611cb-599d-4a79-9e18-e95c2669f6a4]: State changed to STARTING: Starting","ecs.version":"1.6.0"}
[2021-04-13T16:51:51.974Z] {"log.level":"info","@timestamp":"2021-04-13T16:51:50.168Z","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-13T16:51:51.974Z] {"log.level":"info","@timestamp":"2021-04-13T16:51:50.168Z","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-13T16:51:51.974Z] {"log.level":"info","@timestamp":"2021-04-13T16:51:50.375Z","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-13T16:51:51.974Z] {"log.level":"info","@timestamp":"2021-04-13T16:51:50.375Z","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-13T16:51:51.975Z] {"log.level":"info","@timestamp":"2021-04-13T16:51:50.375Z","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-13T16:51:51.975Z] {"log.level":"info","@timestamp":"2021-04-13T16:51:50.375Z","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-13T16:51:51.975Z] {"log.level":"info","@timestamp":"2021-04-13T16:51:50.622Z","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-13T16:51:51.975Z] {"log.level":"info","@timestamp":"2021-04-13T16:51:50.622Z","log.origin":{"file.name":"operation/operator.go","file.line":259},"message":"operation 'operation-start' skipped for metricbeat.8.0.0-SNAPSHOT","ecs.version":"1.6.0"}
[2021-04-13T16:51:51.975Z] {"log.level":"info","@timestamp":"2021-04-13T16:51:50.624Z","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-13T16:51:51.975Z] {"log.level":"info","@timestamp":"2021-04-13T16:51:50.624Z","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-13T16:51:51.975Z] {"log.level":"info","@timestamp":"2021-04-13T16:51:50.827Z","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-13T16:51:51.975Z] {"log.level":"info","@timestamp":"2021-04-13T16:51:50.827Z","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-13T16:51:51.975Z] {"log.level":"info","@timestamp":"2021-04-13T16:51:50.828Z","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-13T16:51:51.975Z] {"log.level":"info","@timestamp":"2021-04-13T16:51:50.828Z","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-13T16:51:51.975Z] {"log.level":"info","@timestamp":"2021-04-13T16:51:51.137Z","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-13T16:51:51.975Z] {"log.level":"info","@timestamp":"2021-04-13T16:51:51.137Z","log.origin":{"file.name":"operation/operator.go","file.line":259},"message":"operation 'operation-start' skipped for metricbeat.8.0.0-SNAPSHOT","ecs.version":"1.6.0"}
[2021-04-13T16:51:51.975Z] {"log.level":"info","@timestamp":"2021-04-13T16:51:51.141Z","log.origin":{"file.name":"stateresolver/stateresolver.go","file.line":66},"message":"Updating internal state","ecs.version":"1.6.0"}
[2021-04-13T16:51:52.240Z] time="2021-04-13T16:51:52Z" 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-1030-2-50440f66-14e1-4b0c-91bd-0157c95262ef/.op/compose/profiles/fleet/docker-compose.yml /var/lib/jenkins/workspace/PR-1030-2-50440f66-14e1-4b0c-91bd-0157c95262ef/.op/compose/services/centos-systemd/docker-compose.yml]" env="map[centos_systemdAgentBinarySrcPath:/tmp/elastic-agent-8.0.0-SNAPSHOT-linux-x86_64.tar.gz362215953 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-13T16:51:52.508Z] {"level":"debug","time":"2021-04-13T16:51:52Z","message":"gathering metrics"}
[2021-04-13T16:52:02.650Z] {"level":"debug","time":"2021-04-13T16:52:02Z","message":"sent request with 0 transactions, 0 spans, 0 errors, 1 metricset"}
[2021-04-13T16:52:06.084Z] Elastic Agent has been uninstalled.
[2021-04-13T16:52:06.084Z] time="2021-04-13T16:52:05Z" level=debug msg="Docker compose executed." cmd="[exec -T centos-systemd elastic-agent uninstall -f]" composeFilePaths="[/var/lib/jenkins/workspace/PR-1030-2-50440f66-14e1-4b0c-91bd-0157c95262ef/.op/compose/profiles/fleet/docker-compose.yml /var/lib/jenkins/workspace/PR-1030-2-50440f66-14e1-4b0c-91bd-0157c95262ef/.op/compose/services/centos-systemd/docker-compose.yml]" env="map[centos_systemdAgentBinarySrcPath:/tmp/elastic-agent-8.0.0-SNAPSHOT-linux-x86_64.tar.gz362215953 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-13T16:52:06.084Z] time="2021-04-13T16:52:05Z" level=debug msg="Un-enrolling agent in Fleet" agentID=9d4611cb-599d-4a79-9e18-e95c2669f6a4 hostname=8589986c90cc
[2021-04-13T16:52:07.528Z] time="2021-04-13T16:52:07Z" level=debug msg="Fleet agent was unenrolled" agentID=9d4611cb-599d-4a79-9e18-e95c2669f6a4
[2021-04-13T16:52:08.184Z] Stopping fleet_centos-systemd_elastic-agent_1 ... 
[2021-04-13T16:52:20.479Z] 
Stopping fleet_centos-systemd_elastic-agent_1 ... done
Removing fleet_centos-systemd_elastic-agent_1 ... 
[2021-04-13T16:52:20.479Z] 
Removing fleet_centos-systemd_elastic-agent_1 ... done
Going to remove fleet_centos-systemd_elastic-agent_1
[2021-04-13T16:52:20.479Z] time="2021-04-13T16:52:18Z" level=debug msg="Docker compose executed." cmd="[rm -fvs centos-systemd]" composeFilePaths="[/var/lib/jenkins/workspace/PR-1030-2-50440f66-14e1-4b0c-91bd-0157c95262ef/.op/compose/profiles/fleet/docker-compose.yml /var/lib/jenkins/workspace/PR-1030-2-50440f66-14e1-4b0c-91bd-0157c95262ef/.op/compose/services/centos-systemd/docker-compose.yml]" env="map[centos_systemdAgentBinarySrcPath:/tmp/elastic-agent-8.0.0-SNAPSHOT-linux-x86_64.tar.gz362215953 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-13T16:52:20.479Z] time="2021-04-13T16:52:18Z" level=debug msg="Service removed from compose" profile=fleet service=centos-systemd
[2021-04-13T16:52:20.479Z] time="2021-04-13T16:52:20Z" level=debug msg="The token was deleted" tokenID=e473bb0b-1101-4568-b621-17f2ed864741
[2021-04-13T16:52:20.742Z] time="2021-04-13T16:52:20Z" level=info msg="Integration deleted from the configuration" integration=endpoint packageConfigId=fa4ec955-4a99-4e32-b9b9-afbb4bdec71d policyID=159fcbc0-9c76-11eb-843b-d1d3ed0eb6ea version=0.18.0
[2021-04-13T16:52:20.743Z] time="2021-04-13T16:52:20Z" level=debug msg="Destroying Fleet runtime dependencies"
[2021-04-13T16:52:21.319Z] Stopping fleet_kibana_1           ... 
[2021-04-13T16:52:21.319Z] Stopping fleet_package-registry_1 ... 
[2021-04-13T16:52:21.319Z] Stopping fleet_elasticsearch_1    ... 
[2021-04-13T16:52:22.536Z] 
Stopping fleet_kibana_1           ... done

Stopping fleet_package-registry_1 ... done
{"level":"debug","time":"2021-04-13T16:52:22Z","message":"gathering metrics"}
[2021-04-13T16:52:23.489Z] 
Stopping fleet_elasticsearch_1    ... done
Removing fleet_kibana_1           ... 
[2021-04-13T16:52:23.489Z] Removing fleet_package-registry_1 ... 
[2021-04-13T16:52:23.489Z] Removing fleet_elasticsearch_1    ... 
[2021-04-13T16:52:23.490Z] 
Removing fleet_kibana_1           ... done

Removing fleet_package-registry_1 ... done

Removing fleet_elasticsearch_1    ... done
Removing network fleet_default
[2021-04-13T16:52:24.068Z] time="2021-04-13T16:52:23Z" level=debug msg="Docker compose executed." cmd="[down --remove-orphans]" composeFilePaths="[/var/lib/jenkins/workspace/PR-1030-2-50440f66-14e1-4b0c-91bd-0157c95262ef/.op/compose/profiles/fleet/docker-compose.yml]" env="map[centos_systemdAgentBinarySrcPath:/tmp/elastic-agent-8.0.0-SNAPSHOT-linux-x86_64.tar.gz362215953 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-13T16:52:24.069Z] time="2021-04-13T16:52:23Z" 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.gz362215953
[2021-04-13T16:52:24.069Z] Makefile:73: recipe for target 'functional-test' failed
[2021-04-13T16:52:24.069Z] make: *** [functional-test] Error 1
[2021-04-13T16:52:24.240Z] [INFO] Stopping Filebeat Docker container
[2021-04-13T16:52:24.558Z] + docker exec -t fa230d91d80d54e8ad2e48effe652a81d816b699cca0ed55a9233001a5deba75 chmod -R ugo+rw /output
[2021-04-13T16:52:24.821Z] + docker stop --time 30 fa230d91d80d54e8ad2e48effe652a81d816b699cca0ed55a9233001a5deba75
[2021-04-13T16:52:25.401Z] fa230d91d80d54e8ad2e48effe652a81d816b699cca0ed55a9233001a5deba75
[2021-04-13T16:52:25.424Z] Archiving artifacts
[2021-04-13T16:52:26.174Z] Recording test results
[2021-04-13T16:52:26.533Z] [Checks API] No suitable checks publisher found.
[2021-04-13T16:52:26.554Z] Archiving artifacts
[2021-04-13T16:52:26.600Z] Running in /var/lib/jenkins/workspace/PR-1030-2-50440f66-14e1-4b0c-91bd-0157c95262ef/src/github.com/elastic/e2e-testing
[2021-04-13T16:52:26.908Z] + go clean -modcache
[2021-04-13T16:52:27.600Z] Failed in branch ubuntu-18.04_fleet_agent_endpoint_integration
[2021-04-13T16:52:28.756Z] Stage "Release" skipped due to earlier failure(s)
[2021-04-13T16:52:29.294Z] Running on Jenkins in /var/lib/jenkins/workspace/2e-tests_e2e-testing-mbp_PR-1030
[2021-04-13T16:52:29.383Z] [INFO] getVaultSecret: Getting secrets
[2021-04-13T16:52:29.496Z] Masking supported pattern matches of $VAULT_ADDR or $VAULT_ROLE_ID or $VAULT_SECRET_ID
[2021-04-13T16:52:30.259Z] + chmod 755 generate-build-data.sh
[2021-04-13T16:52:30.259Z] + ./generate-build-data.sh https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/e2e-tests/e2e-testing-mbp/PR-1030/ https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/e2e-tests/e2e-testing-mbp/PR-1030/runs/2 FAILURE 2042067
[2021-04-13T16:52:30.509Z] INFO: curl https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/e2e-tests/e2e-testing-mbp/PR-1030/runs/2/steps/?limit=10000 -o steps-info.json
[2021-04-13T16:52:31.421Z] INFO: curl https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/e2e-tests/e2e-testing-mbp/PR-1030/runs/2/tests/?status=FAILED -o tests-errors.json
[2021-04-13T16:52:31.672Z] INFO: curl https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/e2e-tests/e2e-testing-mbp/PR-1030/runs/2/log/ -o pipeline-log.txt

🐛 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

@mdelapenya mdelapenya deleted the fix-kibana-build-agent branch April 14, 2021 06:19
@mdelapenya mdelapenya mentioned this pull request Apr 14, 2021
8 tasks
mdelapenya added a commit that referenced this pull request Apr 14, 2021
* fix: use an agent when building kibana

* chore: move agent to the inner stage

(cherry picked from commit c0f3ed2)

Co-authored-by: Manuel de la Peña <mdelapenya@gmail.com>
mdelapenya added a commit that referenced this pull request Apr 14, 2021
* fix: use an agent when building kibana

* chore: move agent to the inner stage

(cherry picked from commit c0f3ed2)

Co-authored-by: Manuel de la Peña <mdelapenya@gmail.com>
mdelapenya added a commit that referenced this pull request Apr 14, 2021
* fix: use an agent when building kibana

* chore: move agent to the inner stage

(cherry picked from commit c0f3ed2)

Co-authored-by: Manuel de la Peña <mdelapenya@gmail.com>
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)
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