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

fix: add NodeJS to PATH#1035

Merged
mdelapenya merged 3 commits intoelastic:masterfrom
mdelapenya:fix-kibana-build-from-node
Apr 14, 2021
Merged

fix: add NodeJS to PATH#1035
mdelapenya merged 3 commits intoelastic:masterfrom
mdelapenya:fix-kibana-build-from-node

Conversation

@mdelapenya
Copy link
Copy Markdown
Contributor

@mdelapenya mdelapenya commented Apr 14, 2021

What does this PR do?

It adds Node modules to the PATH on build time. This is a temporary solution meanwhile we release a new version of the shared library.

Besides that, it reuses the existing step to check permissions for who triggered the tests with the comment in Kibana PRs

Why is it important?

It will fix the error for not finding NPM, NODE nor YARN commands on the CI worker when building the Docker image for a kibana PR

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)

Related issues

Follow-ups

We could add exact same code to the shared library step, so any client code will benefit from it

@mdelapenya mdelapenya self-assigned this Apr 14, 2021
@mdelapenya mdelapenya requested a review from a team April 14, 2021 06:23
@mdelapenya mdelapenya marked this pull request as ready for review April 14, 2021 06:44
@elasticmachine
Copy link
Copy Markdown
Contributor

💔 Tests Failed

the below badges are clickable and redirect to their specific view in the CI or DOCS
Pipeline View Test View Changes Artifacts preview

Expand to view the summary

Build stats

  • Build Cause: Pull request #1035 opened

  • Start Time: 2021-04-14T06:23:17.599+0000

  • Duration: 28 min 56 sec

  • Commit: 2fcb9c5

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 1 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-14T06:50:09.587Z] time="2021-04-14T06:50:09Z" level=warning msg="The Agent is not in the online status yet" agentID=03efdc19-4559-4ce5-803d-80932337e8f4 elapsedTime=1.858509109s hostname=566187d776c7 isAgentInStatus=false retry=3 status=online
[2021-04-14T06:50:12.177Z] time="2021-04-14T06:50:11Z" level=debug msg="Agent listed in Fleet with online status" agentID=03efdc19-4559-4ce5-803d-80932337e8f4 hostname=566187d776c7
[2021-04-14T06:50:12.177Z] time="2021-04-14T06:50:11Z" level=warning msg="The Agent is not in the online status yet" agentID=03efdc19-4559-4ce5-803d-80932337e8f4 elapsedTime=4.296042966s hostname=566187d776c7 isAgentInStatus=false retry=4 status=online
[2021-04-14T06:50:14.138Z] time="2021-04-14T06:50:14Z" level=debug msg="Agent listed in Fleet with online status" agentID=03efdc19-4559-4ce5-803d-80932337e8f4 hostname=566187d776c7
[2021-04-14T06:50:14.139Z] time="2021-04-14T06:50:14Z" level=warning msg="The Agent is not in the online status yet" agentID=03efdc19-4559-4ce5-803d-80932337e8f4 elapsedTime=6.568264072s hostname=566187d776c7 isAgentInStatus=false retry=5 status=online
[2021-04-14T06:50:19.505Z] {"level":"debug","time":"2021-04-14T06:50:19Z","message":"sent request with 0 transactions, 0 spans, 0 errors, 1 metricset"}
[2021-04-14T06:50:22.088Z] time="2021-04-14T06:50:21Z" level=debug msg="Agent listed in Fleet with online status" agentID=03efdc19-4559-4ce5-803d-80932337e8f4 hostname=566187d776c7
[2021-04-14T06:50:22.088Z] time="2021-04-14T06:50:21Z" level=warning msg="The Agent is not in the online status yet" agentID=03efdc19-4559-4ce5-803d-80932337e8f4 elapsedTime=14.157081579s hostname=566187d776c7 isAgentInStatus=false retry=6 status=online
[2021-04-14T06:50:26.364Z] time="2021-04-14T06:50:26Z" level=debug msg="Agent listed in Fleet with online status" agentID=03efdc19-4559-4ce5-803d-80932337e8f4 hostname=566187d776c7
[2021-04-14T06:50:26.364Z] time="2021-04-14T06:50:26Z" level=warning msg="The Agent is not in the online status yet" agentID=03efdc19-4559-4ce5-803d-80932337e8f4 elapsedTime=18.746215923s hostname=566187d776c7 isAgentInStatus=false retry=7 status=online
[2021-04-14T06:50:29.713Z] time="2021-04-14T06:50:29Z" level=debug msg="Agent listed in Fleet with online status" agentID=03efdc19-4559-4ce5-803d-80932337e8f4 hostname=566187d776c7
[2021-04-14T06:50:29.713Z] time="2021-04-14T06:50:29Z" level=warning msg="The Agent is not in the online status yet" agentID=03efdc19-4559-4ce5-803d-80932337e8f4 elapsedTime=21.840674344s hostname=566187d776c7 isAgentInStatus=false retry=8 status=online
[2021-04-14T06:50:36.382Z] time="2021-04-14T06:50:35Z" level=debug msg="Agent listed in Fleet with online status" agentID=03efdc19-4559-4ce5-803d-80932337e8f4 hostname=566187d776c7
[2021-04-14T06:50:36.382Z] time="2021-04-14T06:50:35Z" level=info msg="The Agent is in the desired status" elapsedTime=28.320858022s hostname=566187d776c7 isAgentInStatus=true retries=9 status=online
[2021-04-14T06:50:36.382Z] time="2021-04-14T06:50:35Z" level=debug msg="Integration in latest version found" name=endpoint title="Endpoint Security" version=0.18.0
[2021-04-14T06:50:39.726Z] {"level":"debug","time":"2021-04-14T06:50:39Z","message":"gathering metrics"}
[2021-04-14T06:50:39.994Z] time="2021-04-14T06:50:39Z" level=info msg="Integration added to the configuration" integration=endpoint integrationConfigurationID=a18c8c8c-a0ce-4147-abfa-68a57a7fc4e6 policyID=33a52280-9ceb-11eb-9d72-139bcbb32d51 version=0.18.0
[2021-04-14T06:50:39.995Z] time="2021-04-14T06:50:39Z" level=debug msg="Package policy found in the configuration" package="{a18c8c8c-a0ce-4147-abfa-68a57a7fc4e6 endpoint Endpoint Security 0.18.0 0xc000633180}" policyID=33a52280-9ceb-11eb-9d72-139bcbb32d51
[2021-04-14T06:50:43.348Z] time="2021-04-14T06:50:42Z" level=info msg="Integration deleted from the configuration" integration=endpoint packageConfigId=a18c8c8c-a0ce-4147-abfa-68a57a7fc4e6 policyID=33a52280-9ceb-11eb-9d72-139bcbb32d51 version=0.18.0
[2021-04-14T06:50:43.348Z] time="2021-04-14T06:50:42Z" level=debug msg="Agent listed in Fleet with online status" agentID=03efdc19-4559-4ce5-803d-80932337e8f4 hostname=566187d776c7
[2021-04-14T06:50:43.348Z] time="2021-04-14T06:50:42Z" level=info msg="The Agent is in the desired status" elapsedTime=84.833407ms hostname=566187d776c7 isAgentInStatus=true retries=1 status=online
[2021-04-14T06:50:43.348Z] time="2021-04-14T06:50:43Z" level=info msg="The Agent is not listed in the Administration view in the Security App" elapsedTime=45.355045ms hostname=566187d776c7 retries=1
[2021-04-14T06:50:44.357Z] {"log.level":"info","@timestamp":"2021-04-14T06:50:07.545Z","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-14T06:50:44.357Z] {"log.level":"info","@timestamp":"2021-04-14T06:50:07.545Z","log.origin":{"file.name":"application/application.go","file.line":68},"message":"Detecting execution mode","ecs.version":"1.6.0"}
[2021-04-14T06:50:44.357Z] {"log.level":"info","@timestamp":"2021-04-14T06:50:07.546Z","log.origin":{"file.name":"application/application.go","file.line":93},"message":"Agent is managed by Fleet","ecs.version":"1.6.0"}
[2021-04-14T06:50:44.357Z] {"log.level":"info","@timestamp":"2021-04-14T06:50:07.547Z","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-14T06:50:44.357Z] {"log.level":"info","@timestamp":"2021-04-14T06:50:07.759Z","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-14T06:50:44.357Z] {"log.level":"info","@timestamp":"2021-04-14T06:50:07.863Z","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-14T06:50:44.357Z] {"log.level":"info","@timestamp":"2021-04-14T06:50:07.865Z","log.logger":"api","log.origin":{"file.name":"api/server.go","file.line":62},"message":"Starting stats endpoint","ecs.version":"1.6.0"}
[2021-04-14T06:50:44.358Z] {"log.level":"info","@timestamp":"2021-04-14T06:50:07.865Z","log.origin":{"file.name":"application/managed_mode.go","file.line":289},"message":"Agent is starting","ecs.version":"1.6.0"}
[2021-04-14T06:50:44.358Z] {"log.level":"info","@timestamp":"2021-04-14T06:50:07.865Z","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-14T06:50:44.358Z] {"log.level":"warn","@timestamp":"2021-04-14T06:50:07.966Z","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-14T06:50:44.358Z] {"log.level":"info","@timestamp":"2021-04-14T06:50:10.349Z","log.origin":{"file.name":"stateresolver/stateresolver.go","file.line":48},"message":"New State ID is VOzYrkzK","ecs.version":"1.6.0"}
[2021-04-14T06:50:44.358Z] {"log.level":"info","@timestamp":"2021-04-14T06:50:10.350Z","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-14T06:50:44.358Z] {"log.level":"info","@timestamp":"2021-04-14T06:50:10.350Z","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-14T06:50:44.358Z] {"log.level":"info","@timestamp":"2021-04-14T06:50:10.350Z","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-14T06:50:44.358Z] {"log.level":"info","@timestamp":"2021-04-14T06:50:15.690Z","log.origin":{"file.name":"log/reporter.go","file.line":40},"message":"2021-04-14T06:50:15Z: type: 'STATE': sub_type: 'STARTING' message: Application: filebeat--8.0.0-SNAPSHOT[03efdc19-4559-4ce5-803d-80932337e8f4]: State changed to STARTING: Starting","ecs.version":"1.6.0"}
[2021-04-14T06:50:44.358Z] {"log.level":"info","@timestamp":"2021-04-14T06:50:15.692Z","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-14T06:50:44.358Z] {"log.level":"info","@timestamp":"2021-04-14T06:50:15.692Z","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-14T06:50:44.358Z] {"log.level":"info","@timestamp":"2021-04-14T06:50:16.946Z","log.origin":{"file.name":"log/reporter.go","file.line":40},"message":"2021-04-14T06:50:16Z: type: 'STATE': sub_type: 'RUNNING' message: Application: filebeat--8.0.0-SNAPSHOT[03efdc19-4559-4ce5-803d-80932337e8f4]: State changed to RUNNING: Running","ecs.version":"1.6.0"}
[2021-04-14T06:50:44.358Z] {"log.level":"info","@timestamp":"2021-04-14T06:50:19.484Z","log.origin":{"file.name":"log/reporter.go","file.line":40},"message":"2021-04-14T06:50:19Z: type: 'STATE': sub_type: 'STARTING' message: Application: metricbeat--8.0.0-SNAPSHOT[03efdc19-4559-4ce5-803d-80932337e8f4]: State changed to STARTING: Starting","ecs.version":"1.6.0"}
[2021-04-14T06:50:44.358Z] {"log.level":"info","@timestamp":"2021-04-14T06:50:19.487Z","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-14T06:50:44.358Z] {"log.level":"info","@timestamp":"2021-04-14T06:50:19.488Z","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-14T06:50:44.358Z] {"log.level":"info","@timestamp":"2021-04-14T06:50:19.728Z","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-14T06:50:44.358Z] {"log.level":"info","@timestamp":"2021-04-14T06:50:20.165Z","log.origin":{"file.name":"log/reporter.go","file.line":40},"message":"2021-04-14T06:50:20Z: type: 'STATE': sub_type: 'STARTING' message: Application: filebeat--8.0.0-SNAPSHOT--36643631373035623733363936343635[03efdc19-4559-4ce5-803d-80932337e8f4]: State changed to STARTING: Starting","ecs.version":"1.6.0"}
[2021-04-14T06:50:44.358Z] {"log.level":"info","@timestamp":"2021-04-14T06:50:20.166Z","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-14T06:50:44.359Z] {"log.level":"info","@timestamp":"2021-04-14T06:50:20.167Z","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-14T06:50:44.359Z] {"log.level":"info","@timestamp":"2021-04-14T06:50:20.493Z","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-14T06:50:44.359Z] {"log.level":"info","@timestamp":"2021-04-14T06:50:20.571Z","log.origin":{"file.name":"log/reporter.go","file.line":40},"message":"2021-04-14T06:50:20Z: type: 'STATE': sub_type: 'STARTING' message: Application: metricbeat--8.0.0-SNAPSHOT--36643631373035623733363936343635[03efdc19-4559-4ce5-803d-80932337e8f4]: State changed to STARTING: Starting","ecs.version":"1.6.0"}
[2021-04-14T06:50:44.359Z] {"log.level":"info","@timestamp":"2021-04-14T06:50:20.573Z","log.origin":{"file.name":"stateresolver/stateresolver.go","file.line":66},"message":"Updating internal state","ecs.version":"1.6.0"}
[2021-04-14T06:50:44.359Z] {"log.level":"info","@timestamp":"2021-04-14T06:50:20.836Z","log.origin":{"file.name":"log/reporter.go","file.line":40},"message":"2021-04-14T06:50:20Z: type: 'STATE': sub_type: 'RUNNING' message: Application: metricbeat--8.0.0-SNAPSHOT[03efdc19-4559-4ce5-803d-80932337e8f4]: State changed to RUNNING: Running","ecs.version":"1.6.0"}
[2021-04-14T06:50:44.359Z] {"log.level":"info","@timestamp":"2021-04-14T06:50:21.435Z","log.origin":{"file.name":"log/reporter.go","file.line":40},"message":"2021-04-14T06:50:21Z: type: 'STATE': sub_type: 'RUNNING' message: Application: filebeat--8.0.0-SNAPSHOT--36643631373035623733363936343635[03efdc19-4559-4ce5-803d-80932337e8f4]: State changed to RUNNING: Running","ecs.version":"1.6.0"}
[2021-04-14T06:50:44.359Z] {"log.level":"info","@timestamp":"2021-04-14T06:50:21.871Z","log.origin":{"file.name":"log/reporter.go","file.line":40},"message":"2021-04-14T06:50:21Z: type: 'STATE': sub_type: 'RUNNING' message: Application: metricbeat--8.0.0-SNAPSHOT--36643631373035623733363936343635[03efdc19-4559-4ce5-803d-80932337e8f4]: State changed to RUNNING: Running","ecs.version":"1.6.0"}
[2021-04-14T06:50:44.359Z] {"log.level":"info","@timestamp":"2021-04-14T06:50:43.920Z","log.origin":{"file.name":"stateresolver/stateresolver.go","file.line":48},"message":"New State ID is dD1aSeH-","ecs.version":"1.6.0"}
[2021-04-14T06:50:44.359Z] {"log.level":"info","@timestamp":"2021-04-14T06:50:43.920Z","log.origin":{"file.name":"stateresolver/stateresolver.go","file.line":49},"message":"Converging state requires execution of 2 step(s)","ecs.version":"1.6.0"}
[2021-04-14T06:50:44.359Z] {"log.level":"info","@timestamp":"2021-04-14T06:50:43.920Z","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-14T06:50:44.359Z] {"log.level":"info","@timestamp":"2021-04-14T06:50:43.920Z","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-14T06:50:44.359Z] time="2021-04-14T06:50:44Z" 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-1035-1-9b7d8980-77f5-407d-80ae-3ff85a2e2ba5/.op/compose/profiles/fleet/docker-compose.yml /var/lib/jenkins/workspace/PR-1035-1-9b7d8980-77f5-407d-80ae-3ff85a2e2ba5/.op/compose/services/centos-systemd/docker-compose.yml]" env="map[centos_systemdAgentBinarySrcPath:/tmp/elastic-agent-8.0.0-SNAPSHOT-linux-x86_64.tar.gz205117638 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-14T06:50:46.968Z] Elastic Agent has been uninstalled.
[2021-04-14T06:50:46.968Z] time="2021-04-14T06:50:46Z" level=debug msg="Docker compose executed." cmd="[exec -T centos-systemd elastic-agent uninstall -f]" composeFilePaths="[/var/lib/jenkins/workspace/PR-1035-1-9b7d8980-77f5-407d-80ae-3ff85a2e2ba5/.op/compose/profiles/fleet/docker-compose.yml /var/lib/jenkins/workspace/PR-1035-1-9b7d8980-77f5-407d-80ae-3ff85a2e2ba5/.op/compose/services/centos-systemd/docker-compose.yml]" env="map[centos_systemdAgentBinarySrcPath:/tmp/elastic-agent-8.0.0-SNAPSHOT-linux-x86_64.tar.gz205117638 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-14T06:50:46.968Z] time="2021-04-14T06:50:46Z" level=debug msg="Un-enrolling agent in Fleet" agentID=03efdc19-4559-4ce5-803d-80932337e8f4 hostname=566187d776c7
[2021-04-14T06:50:47.571Z] time="2021-04-14T06:50:47Z" level=debug msg="Fleet agent was unenrolled" agentID=03efdc19-4559-4ce5-803d-80932337e8f4
[2021-04-14T06:50:48.561Z] Stopping fleet_centos-systemd_elastic-agent_1 ... 
[2021-04-14T06:50:49.578Z] {"level":"debug","time":"2021-04-14T06:50:49Z","message":"sent request with 0 transactions, 0 spans, 0 errors, 1 metricset"}
[2021-04-14T06:50:59.847Z] 
Stopping fleet_centos-systemd_elastic-agent_1 ... done
Removing fleet_centos-systemd_elastic-agent_1 ... 
[2021-04-14T06:50:59.848Z] 
Removing fleet_centos-systemd_elastic-agent_1 ... done
Going to remove fleet_centos-systemd_elastic-agent_1
[2021-04-14T06:50:59.848Z] time="2021-04-14T06:50:59Z" level=debug msg="Docker compose executed." cmd="[rm -fvs centos-systemd]" composeFilePaths="[/var/lib/jenkins/workspace/PR-1035-1-9b7d8980-77f5-407d-80ae-3ff85a2e2ba5/.op/compose/profiles/fleet/docker-compose.yml /var/lib/jenkins/workspace/PR-1035-1-9b7d8980-77f5-407d-80ae-3ff85a2e2ba5/.op/compose/services/centos-systemd/docker-compose.yml]" env="map[centos_systemdAgentBinarySrcPath:/tmp/elastic-agent-8.0.0-SNAPSHOT-linux-x86_64.tar.gz205117638 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-14T06:50:59.848Z] time="2021-04-14T06:50:59Z" level=debug msg="Service removed from compose" profile=fleet service=centos-systemd
[2021-04-14T06:51:01.258Z] time="2021-04-14T06:51:01Z" level=debug msg="The token was deleted" tokenID=434f75c6-98ca-4dcc-b70a-917b19559e79
[2021-04-14T06:51:01.258Z] time="2021-04-14T06:51:01Z" level=info msg="Integration deleted from the configuration" integration=endpoint packageConfigId=a18c8c8c-a0ce-4147-abfa-68a57a7fc4e6 policyID=33a52280-9ceb-11eb-9d72-139bcbb32d51 version=0.18.0
[2021-04-14T06:51:01.258Z] time="2021-04-14T06:51:01Z" level=debug msg="Destroying Fleet runtime dependencies"
[2021-04-14T06:51:02.223Z] Stopping fleet_kibana_1           ... 
[2021-04-14T06:51:02.223Z] Stopping fleet_package-registry_1 ... 
[2021-04-14T06:51:02.223Z] Stopping fleet_elasticsearch_1    ... 
[2021-04-14T06:51:04.044Z] 
Stopping fleet_kibana_1           ... done

Stopping fleet_package-registry_1 ... done

Stopping fleet_elasticsearch_1    ... done
Removing fleet_kibana_1           ... 
[2021-04-14T06:51:04.045Z] Removing fleet_package-registry_1 ... 
[2021-04-14T06:51:04.045Z] Removing fleet_elasticsearch_1    ... 
[2021-04-14T06:51:04.045Z] 
Removing fleet_package-registry_1 ... done

Removing fleet_kibana_1           ... done

Removing fleet_elasticsearch_1    ... done
Removing network fleet_default
[2021-04-14T06:51:04.633Z] time="2021-04-14T06:51:04Z" level=debug msg="Docker compose executed." cmd="[down --remove-orphans]" composeFilePaths="[/var/lib/jenkins/workspace/PR-1035-1-9b7d8980-77f5-407d-80ae-3ff85a2e2ba5/.op/compose/profiles/fleet/docker-compose.yml]" env="map[centos_systemdAgentBinarySrcPath:/tmp/elastic-agent-8.0.0-SNAPSHOT-linux-x86_64.tar.gz205117638 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-14T06:51:04.633Z] time="2021-04-14T06:51:04Z" 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.gz205117638
[2021-04-14T06:51:04.633Z] Makefile:73: recipe for target 'functional-test' failed
[2021-04-14T06:51:04.633Z] make: *** [functional-test] Error 1
[2021-04-14T06:51:05.102Z] [INFO] Stopping Filebeat Docker container
[2021-04-14T06:51:05.410Z] + docker exec -t 3bc3d19873402fbd39478c3e6de2d229a3ca0057be7de8ebd0e493b579e03648 chmod -R ugo+rw /output
[2021-04-14T06:51:05.992Z] + docker stop --time 30 3bc3d19873402fbd39478c3e6de2d229a3ca0057be7de8ebd0e493b579e03648
[2021-04-14T06:51:06.263Z] 3bc3d19873402fbd39478c3e6de2d229a3ca0057be7de8ebd0e493b579e03648
[2021-04-14T06:51:06.303Z] Archiving artifacts
[2021-04-14T06:51:07.100Z] Recording test results
[2021-04-14T06:51:07.468Z] [Checks API] No suitable checks publisher found.
[2021-04-14T06:51:07.507Z] Archiving artifacts
[2021-04-14T06:51:07.603Z] Running in /var/lib/jenkins/workspace/PR-1035-1-9b7d8980-77f5-407d-80ae-3ff85a2e2ba5/src/github.com/elastic/e2e-testing
[2021-04-14T06:51:07.953Z] + go clean -modcache
[2021-04-14T06:51:09.011Z] Failed in branch ubuntu-18.04_fleet_agent_endpoint_integration
[2021-04-14T06:51:11.014Z] Stage "Release" skipped due to earlier failure(s)
[2021-04-14T06:51:12.083Z] Running on Jenkins in /var/lib/jenkins/workspace/2e-tests_e2e-testing-mbp_PR-1035
[2021-04-14T06:51:12.213Z] [INFO] getVaultSecret: Getting secrets
[2021-04-14T06:51:12.333Z] Masking supported pattern matches of $VAULT_ADDR or $VAULT_ROLE_ID or $VAULT_SECRET_ID
[2021-04-14T06:51:13.413Z] + chmod 755 generate-build-data.sh
[2021-04-14T06:51:13.413Z] + ./generate-build-data.sh https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/e2e-tests/e2e-testing-mbp/PR-1035/ https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/e2e-tests/e2e-testing-mbp/PR-1035/runs/1 FAILURE 1675539
[2021-04-14T06:51:13.664Z] INFO: curl https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/e2e-tests/e2e-testing-mbp/PR-1035/runs/1/steps/?limit=10000 -o steps-info.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 merged commit 880b9d3 into elastic:master Apr 14, 2021
@elasticmachine
Copy link
Copy Markdown
Contributor

💔 Tests Failed

the below badges are clickable and redirect to their specific view in the CI or DOCS
Pipeline View Test View Changes Artifacts preview

Expand to view the summary

Build stats

  • Build Cause: Pull request #1035 updated

  • Start Time: 2021-04-14T08:00:33.831+0000

  • Duration: 34 min 2 sec

  • Commit: d30e6a5

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 30 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-14T08:33:56.298Z] time="2021-04-14T08:33:55Z" level=info msg="The Agent is in the desired status" elapsedTime=19.706898044s hostname=0caaf8402a0f isAgentInStatus=true retries=8 status=online
[2021-04-14T08:33:56.299Z] time="2021-04-14T08:33:55Z" level=debug msg="Integration in latest version found" name=endpoint title="Endpoint Security" version=0.18.0
[2021-04-14T08:33:59.659Z] time="2021-04-14T08:33:59Z" level=info msg="Integration added to the configuration" integration=endpoint integrationConfigurationID=a6c8f043-173d-4956-8775-e0b94ed3721a policyID=cb0a6d20-9cf9-11eb-913c-2733634b8044 version=0.18.0
[2021-04-14T08:33:59.660Z] time="2021-04-14T08:33:59Z" level=debug msg="Package policy found in the configuration" package="{a6c8f043-173d-4956-8775-e0b94ed3721a endpoint Endpoint Security 0.18.0 0xc0003064a0}" policyID=cb0a6d20-9cf9-11eb-913c-2733634b8044
[2021-04-14T08:34:01.099Z] {"level":"debug","time":"2021-04-14T08:34:00Z","message":"sent request with 0 transactions, 0 spans, 0 errors, 1 metricset"}
[2021-04-14T08:34:02.520Z] time="2021-04-14T08:34:02Z" level=info msg="Integration deleted from the configuration" integration=endpoint packageConfigId=a6c8f043-173d-4956-8775-e0b94ed3721a policyID=cb0a6d20-9cf9-11eb-913c-2733634b8044 version=0.18.0
[2021-04-14T08:34:02.790Z] time="2021-04-14T08:34:02Z" level=debug msg="Agent listed in Fleet with online status" agentID=1c902f3a-b750-49ce-850e-ead093f926f7 hostname=0caaf8402a0f
[2021-04-14T08:34:02.790Z] time="2021-04-14T08:34:02Z" level=info msg="The Agent is in the desired status" elapsedTime=75.929832ms hostname=0caaf8402a0f isAgentInStatus=true retries=1 status=online
[2021-04-14T08:34:02.790Z] time="2021-04-14T08:34:02Z" level=info msg="The Agent is not listed in the Administration view in the Security App" elapsedTime=27.984712ms hostname=0caaf8402a0f retries=1
[2021-04-14T08:34:03.775Z] {"log.level":"info","@timestamp":"2021-04-14T08:33:36.921Z","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-14T08:34:03.775Z] {"log.level":"info","@timestamp":"2021-04-14T08:33:36.921Z","log.origin":{"file.name":"application/application.go","file.line":68},"message":"Detecting execution mode","ecs.version":"1.6.0"}
[2021-04-14T08:34:03.775Z] {"log.level":"info","@timestamp":"2021-04-14T08:33:36.922Z","log.origin":{"file.name":"application/application.go","file.line":93},"message":"Agent is managed by Fleet","ecs.version":"1.6.0"}
[2021-04-14T08:34:03.776Z] {"log.level":"info","@timestamp":"2021-04-14T08:33:36.922Z","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-14T08:34:03.776Z] {"log.level":"info","@timestamp":"2021-04-14T08:33:37.240Z","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-14T08:34:03.776Z] {"log.level":"info","@timestamp":"2021-04-14T08:33:37.344Z","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-14T08:34:03.776Z] {"log.level":"info","@timestamp":"2021-04-14T08:33:37.344Z","log.logger":"api","log.origin":{"file.name":"api/server.go","file.line":62},"message":"Starting stats endpoint","ecs.version":"1.6.0"}
[2021-04-14T08:34:03.776Z] {"log.level":"info","@timestamp":"2021-04-14T08:33:37.344Z","log.origin":{"file.name":"application/managed_mode.go","file.line":289},"message":"Agent is starting","ecs.version":"1.6.0"}
[2021-04-14T08:34:03.776Z] {"log.level":"info","@timestamp":"2021-04-14T08:33:37.345Z","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-14T08:34:03.776Z] {"log.level":"warn","@timestamp":"2021-04-14T08:33:37.445Z","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-14T08:34:03.776Z] {"log.level":"info","@timestamp":"2021-04-14T08:33:39.785Z","log.origin":{"file.name":"stateresolver/stateresolver.go","file.line":48},"message":"New State ID is DL7uFiXd","ecs.version":"1.6.0"}
[2021-04-14T08:34:03.776Z] {"log.level":"info","@timestamp":"2021-04-14T08:33:39.786Z","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-14T08:34:03.776Z] {"log.level":"info","@timestamp":"2021-04-14T08:33:39.786Z","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-14T08:34:03.776Z] {"log.level":"info","@timestamp":"2021-04-14T08:33:39.786Z","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-14T08:34:03.776Z] {"log.level":"info","@timestamp":"2021-04-14T08:33:43.082Z","log.origin":{"file.name":"log/reporter.go","file.line":40},"message":"2021-04-14T08:33:43Z: type: 'STATE': sub_type: 'STARTING' message: Application: metricbeat--8.0.0-SNAPSHOT[1c902f3a-b750-49ce-850e-ead093f926f7]: State changed to STARTING: Starting","ecs.version":"1.6.0"}
[2021-04-14T08:34:03.776Z] {"log.level":"info","@timestamp":"2021-04-14T08:33:43.084Z","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-14T08:34:03.776Z] {"log.level":"info","@timestamp":"2021-04-14T08:33:43.084Z","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-14T08:34:03.777Z] {"log.level":"info","@timestamp":"2021-04-14T08:33:44.319Z","log.origin":{"file.name":"log/reporter.go","file.line":40},"message":"2021-04-14T08:33:44Z: type: 'STATE': sub_type: 'RUNNING' message: Application: metricbeat--8.0.0-SNAPSHOT[1c902f3a-b750-49ce-850e-ead093f926f7]: State changed to RUNNING: Running","ecs.version":"1.6.0"}
[2021-04-14T08:34:03.777Z] {"log.level":"info","@timestamp":"2021-04-14T08:33:47.512Z","log.origin":{"file.name":"log/reporter.go","file.line":40},"message":"2021-04-14T08:33:47Z: type: 'STATE': sub_type: 'STARTING' message: Application: filebeat--8.0.0-SNAPSHOT[1c902f3a-b750-49ce-850e-ead093f926f7]: State changed to STARTING: Starting","ecs.version":"1.6.0"}
[2021-04-14T08:34:03.777Z] {"log.level":"info","@timestamp":"2021-04-14T08:33:47.513Z","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-14T08:34:03.777Z] {"log.level":"info","@timestamp":"2021-04-14T08:33:47.513Z","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-14T08:34:03.777Z] {"log.level":"info","@timestamp":"2021-04-14T08:33:47.714Z","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-14T08:34:03.777Z] {"log.level":"info","@timestamp":"2021-04-14T08:33:48.048Z","log.origin":{"file.name":"log/reporter.go","file.line":40},"message":"2021-04-14T08:33:48Z: type: 'STATE': sub_type: 'STARTING' message: Application: filebeat--8.0.0-SNAPSHOT--36643631373035623733363936343635[1c902f3a-b750-49ce-850e-ead093f926f7]: State changed to STARTING: Starting","ecs.version":"1.6.0"}
[2021-04-14T08:34:03.777Z] {"log.level":"info","@timestamp":"2021-04-14T08:33:48.049Z","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-14T08:34:03.777Z] {"log.level":"info","@timestamp":"2021-04-14T08:33:48.049Z","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-14T08:34:03.777Z] {"log.level":"info","@timestamp":"2021-04-14T08:33:48.279Z","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-14T08:34:03.778Z] {"log.level":"info","@timestamp":"2021-04-14T08:33:48.706Z","log.origin":{"file.name":"log/reporter.go","file.line":40},"message":"2021-04-14T08:33:48Z: type: 'STATE': sub_type: 'RUNNING' message: Application: filebeat--8.0.0-SNAPSHOT[1c902f3a-b750-49ce-850e-ead093f926f7]: State changed to RUNNING: Running","ecs.version":"1.6.0"}
[2021-04-14T08:34:03.778Z] {"log.level":"info","@timestamp":"2021-04-14T08:33:48.755Z","log.origin":{"file.name":"log/reporter.go","file.line":40},"message":"2021-04-14T08:33:48Z: type: 'STATE': sub_type: 'STARTING' message: Application: metricbeat--8.0.0-SNAPSHOT--36643631373035623733363936343635[1c902f3a-b750-49ce-850e-ead093f926f7]: State changed to STARTING: Starting","ecs.version":"1.6.0"}
[2021-04-14T08:34:03.778Z] {"log.level":"info","@timestamp":"2021-04-14T08:33:48.756Z","log.origin":{"file.name":"stateresolver/stateresolver.go","file.line":66},"message":"Updating internal state","ecs.version":"1.6.0"}
[2021-04-14T08:34:03.778Z] {"log.level":"info","@timestamp":"2021-04-14T08:33:49.219Z","log.origin":{"file.name":"log/reporter.go","file.line":40},"message":"2021-04-14T08:33:49Z: type: 'STATE': sub_type: 'RUNNING' message: Application: filebeat--8.0.0-SNAPSHOT--36643631373035623733363936343635[1c902f3a-b750-49ce-850e-ead093f926f7]: State changed to RUNNING: Running","ecs.version":"1.6.0"}
[2021-04-14T08:34:03.778Z] {"log.level":"info","@timestamp":"2021-04-14T08:33:50.005Z","log.origin":{"file.name":"log/reporter.go","file.line":40},"message":"2021-04-14T08:33:50Z: type: 'STATE': sub_type: 'RUNNING' message: Application: metricbeat--8.0.0-SNAPSHOT--36643631373035623733363936343635[1c902f3a-b750-49ce-850e-ead093f926f7]: State changed to RUNNING: Running","ecs.version":"1.6.0"}
[2021-04-14T08:34:03.778Z] {"log.level":"info","@timestamp":"2021-04-14T08:34:02.462Z","log.origin":{"file.name":"stateresolver/stateresolver.go","file.line":48},"message":"New State ID is kybRySET","ecs.version":"1.6.0"}
[2021-04-14T08:34:03.778Z] {"log.level":"info","@timestamp":"2021-04-14T08:34:02.462Z","log.origin":{"file.name":"stateresolver/stateresolver.go","file.line":49},"message":"Converging state requires execution of 2 step(s)","ecs.version":"1.6.0"}
[2021-04-14T08:34:03.778Z] {"log.level":"info","@timestamp":"2021-04-14T08:34:02.462Z","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-14T08:34:03.778Z] {"log.level":"info","@timestamp":"2021-04-14T08:34:02.462Z","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-14T08:34:03.778Z] {"log.level":"info","@timestamp":"2021-04-14T08:34:02.691Z","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-14T08:34:03.778Z] {"log.level":"info","@timestamp":"2021-04-14T08:34:02.691Z","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-14T08:34:03.778Z] {"log.level":"info","@timestamp":"2021-04-14T08:34:02.692Z","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-14T08:34:03.779Z] {"log.level":"info","@timestamp":"2021-04-14T08:34:02.692Z","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-14T08:34:03.779Z] {"log.level":"info","@timestamp":"2021-04-14T08:34:02.876Z","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-14T08:34:03.779Z] {"log.level":"info","@timestamp":"2021-04-14T08:34:02.876Z","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-14T08:34:03.779Z] {"log.level":"info","@timestamp":"2021-04-14T08:34:02.876Z","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-14T08:34:03.779Z] {"log.level":"info","@timestamp":"2021-04-14T08:34:02.876Z","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-14T08:34:03.779Z] {"log.level":"info","@timestamp":"2021-04-14T08:34:03.112Z","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-14T08:34:03.779Z] {"log.level":"info","@timestamp":"2021-04-14T08:34:03.112Z","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-14T08:34:03.779Z] {"log.level":"info","@timestamp":"2021-04-14T08:34:03.113Z","log.origin":{"file.name":"stateresolver/stateresolver.go","file.line":66},"message":"Updating internal state","ecs.version":"1.6.0"}
[2021-04-14T08:34:03.779Z] time="2021-04-14T08:34:03Z" 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-1035-2-36455c52-95d1-4e9d-830c-9b0b51fe8edf/.op/compose/profiles/fleet/docker-compose.yml /var/lib/jenkins/workspace/PR-1035-2-36455c52-95d1-4e9d-830c-9b0b51fe8edf/.op/compose/services/centos-systemd/docker-compose.yml]" env="map[centos_systemdAgentBinarySrcPath:/tmp/elastic-agent-8.0.0-SNAPSHOT-linux-x86_64.tar.gz353215060 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-14T08:34:05.749Z] Elastic Agent has been uninstalled.
[2021-04-14T08:34:05.749Z] time="2021-04-14T08:34:05Z" level=debug msg="Docker compose executed." cmd="[exec -T centos-systemd elastic-agent uninstall -f]" composeFilePaths="[/var/lib/jenkins/workspace/PR-1035-2-36455c52-95d1-4e9d-830c-9b0b51fe8edf/.op/compose/profiles/fleet/docker-compose.yml /var/lib/jenkins/workspace/PR-1035-2-36455c52-95d1-4e9d-830c-9b0b51fe8edf/.op/compose/services/centos-systemd/docker-compose.yml]" env="map[centos_systemdAgentBinarySrcPath:/tmp/elastic-agent-8.0.0-SNAPSHOT-linux-x86_64.tar.gz353215060 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-14T08:34:05.750Z] time="2021-04-14T08:34:05Z" level=debug msg="Un-enrolling agent in Fleet" agentID=1c902f3a-b750-49ce-850e-ead093f926f7 hostname=0caaf8402a0f
[2021-04-14T08:34:07.175Z] time="2021-04-14T08:34:06Z" level=debug msg="Fleet agent was unenrolled" agentID=1c902f3a-b750-49ce-850e-ead093f926f7
[2021-04-14T08:34:07.852Z] Stopping fleet_centos-systemd_elastic-agent_1 ... 
[2021-04-14T08:34:18.052Z] 
Stopping fleet_centos-systemd_elastic-agent_1 ... done
Removing fleet_centos-systemd_elastic-agent_1 ... 
[2021-04-14T08:34:18.052Z] 
Removing fleet_centos-systemd_elastic-agent_1 ... done
Going to remove fleet_centos-systemd_elastic-agent_1
[2021-04-14T08:34:18.333Z] time="2021-04-14T08:34:18Z" level=debug msg="Docker compose executed." cmd="[rm -fvs centos-systemd]" composeFilePaths="[/var/lib/jenkins/workspace/PR-1035-2-36455c52-95d1-4e9d-830c-9b0b51fe8edf/.op/compose/profiles/fleet/docker-compose.yml /var/lib/jenkins/workspace/PR-1035-2-36455c52-95d1-4e9d-830c-9b0b51fe8edf/.op/compose/services/centos-systemd/docker-compose.yml]" env="map[centos_systemdAgentBinarySrcPath:/tmp/elastic-agent-8.0.0-SNAPSHOT-linux-x86_64.tar.gz353215060 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-14T08:34:18.333Z] time="2021-04-14T08:34:18Z" level=debug msg="Service removed from compose" profile=fleet service=centos-systemd
[2021-04-14T08:34:19.762Z] time="2021-04-14T08:34:19Z" level=debug msg="The token was deleted" tokenID=34b120a6-6be3-4540-ad5f-83591ffa7e01
[2021-04-14T08:34:19.762Z] time="2021-04-14T08:34:19Z" level=info msg="Integration deleted from the configuration" integration=endpoint packageConfigId=a6c8f043-173d-4956-8775-e0b94ed3721a policyID=cb0a6d20-9cf9-11eb-913c-2733634b8044 version=0.18.0
[2021-04-14T08:34:19.762Z] time="2021-04-14T08:34:19Z" level=debug msg="Destroying Fleet runtime dependencies"
[2021-04-14T08:34:20.356Z] Stopping fleet_kibana_1           ... 
[2021-04-14T08:34:20.356Z] Stopping fleet_elasticsearch_1    ... 
[2021-04-14T08:34:20.356Z] Stopping fleet_package-registry_1 ... 
[2021-04-14T08:34:20.951Z] {"level":"debug","time":"2021-04-14T08:34:20Z","message":"gathering metrics"}
[2021-04-14T08:34:21.810Z] 
Stopping fleet_kibana_1           ... done

Stopping fleet_package-registry_1 ... done

Stopping fleet_elasticsearch_1    ... done
Removing fleet_kibana_1           ... 
[2021-04-14T08:34:21.810Z] Removing fleet_elasticsearch_1    ... 
[2021-04-14T08:34:21.811Z] Removing fleet_package-registry_1 ... 
[2021-04-14T08:34:21.811Z] 
Removing fleet_package-registry_1 ... done

Removing fleet_kibana_1           ... done

Removing fleet_elasticsearch_1    ... done
Removing network fleet_default
[2021-04-14T08:34:22.401Z] time="2021-04-14T08:34:22Z" level=debug msg="Docker compose executed." cmd="[down --remove-orphans]" composeFilePaths="[/var/lib/jenkins/workspace/PR-1035-2-36455c52-95d1-4e9d-830c-9b0b51fe8edf/.op/compose/profiles/fleet/docker-compose.yml]" env="map[centos_systemdAgentBinarySrcPath:/tmp/elastic-agent-8.0.0-SNAPSHOT-linux-x86_64.tar.gz353215060 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-14T08:34:22.401Z] time="2021-04-14T08:34:22Z" 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.gz353215060
[2021-04-14T08:34:22.401Z] Makefile:73: recipe for target 'functional-test' failed
[2021-04-14T08:34:22.401Z] make: *** [functional-test] Error 1
[2021-04-14T08:34:22.547Z] [INFO] Stopping Filebeat Docker container
[2021-04-14T08:34:22.869Z] + docker exec -t 40b74f3d9ffd0f8d3bdcbcaf74788855e28206baf4f5db631f3d287939642543 chmod -R ugo+rw /output
[2021-04-14T08:34:23.150Z] + docker stop --time 30 40b74f3d9ffd0f8d3bdcbcaf74788855e28206baf4f5db631f3d287939642543
[2021-04-14T08:34:23.418Z] 40b74f3d9ffd0f8d3bdcbcaf74788855e28206baf4f5db631f3d287939642543
[2021-04-14T08:34:23.446Z] Archiving artifacts
[2021-04-14T08:34:24.202Z] Recording test results
[2021-04-14T08:34:25.176Z] [Checks API] No suitable checks publisher found.
[2021-04-14T08:34:25.225Z] Archiving artifacts
[2021-04-14T08:34:25.282Z] Running in /var/lib/jenkins/workspace/PR-1035-2-36455c52-95d1-4e9d-830c-9b0b51fe8edf/src/github.com/elastic/e2e-testing
[2021-04-14T08:34:25.601Z] + go clean -modcache
[2021-04-14T08:34:26.377Z] Failed in branch ubuntu-18.04_fleet_agent_endpoint_integration
[2021-04-14T08:34:27.509Z] Stage "Release" skipped due to earlier failure(s)
[2021-04-14T08:34:34.986Z] Running on Jenkins in /var/lib/jenkins/workspace/2e-tests_e2e-testing-mbp_PR-1035
[2021-04-14T08:34:35.053Z] [INFO] getVaultSecret: Getting secrets
[2021-04-14T08:34:35.192Z] Masking supported pattern matches of $VAULT_ADDR or $VAULT_ROLE_ID or $VAULT_SECRET_ID
[2021-04-14T08:34:35.983Z] + chmod 755 generate-build-data.sh
[2021-04-14T08:34:35.983Z] + ./generate-build-data.sh https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/e2e-tests/e2e-testing-mbp/PR-1035/ https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/e2e-tests/e2e-testing-mbp/PR-1035/runs/2 FAILURE 2041882
[2021-04-14T08:34:36.543Z] INFO: curl https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/e2e-tests/e2e-testing-mbp/PR-1035/runs/2/steps/?limit=10000 -o steps-info.json
[2021-04-14T08:34:38.427Z] INFO: curl https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/e2e-tests/e2e-testing-mbp/PR-1035/runs/2/tests/?status=FAILED -o tests-errors.json
[2021-04-14T08:34:38.978Z] INFO: curl https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/e2e-tests/e2e-testing-mbp/PR-1035/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-from-node branch April 14, 2021 09:06
mdelapenya added a commit to mdelapenya/e2e-testing that referenced this pull request Apr 14, 2021
* fix: add NodeJS to PATH

* fix: use proper Github API for retrieving the comment by ID

* chore: use existing step from the shared library
mdelapenya added a commit to mdelapenya/e2e-testing that referenced this pull request Apr 14, 2021
* fix: add NodeJS to PATH

* fix: use proper Github API for retrieving the comment by ID

* chore: use existing step from the shared library
mdelapenya added a commit to mdelapenya/e2e-testing that referenced this pull request Apr 14, 2021
* fix: add NodeJS to PATH

* fix: use proper Github API for retrieving the comment by ID

* chore: use existing step from the shared library
mdelapenya added a commit that referenced this pull request Apr 14, 2021
… branches (#1037) backport for 7.x (#1038)

* fix: add NodeJS to PATH (#1035)

* fix: add NodeJS to PATH

* fix: use proper Github API for retrieving the comment by ID

* chore: use existing step from the shared library

* fix: apply X version for non-master branches (#1037)
mdelapenya added a commit that referenced this pull request Apr 14, 2021
… branches (#1037) backport for 7.12.x (#1039)

* fix: add NodeJS to PATH (#1035)

* fix: add NodeJS to PATH

* fix: use proper Github API for retrieving the comment by ID

* chore: use existing step from the shared library

* fix: apply X version for non-master branches (#1037)
mdelapenya added a commit that referenced this pull request Apr 14, 2021
… branches (#1037) backport for 7.11.x (#1040)

* fix: add NodeJS to PATH (#1035)

* fix: add NodeJS to PATH

* fix: use proper Github API for retrieving the comment by ID

* chore: use existing step from the shared library

* fix: apply X version for non-master branches (#1037)
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

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants