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

fix: wrong interpolation #1042

Merged
merged 1 commit into from
Apr 14, 2021
Merged

Conversation

mdelapenya
Copy link
Contributor

What does this PR do?

Uses the right variable interpolation in groovy:

// incorrect
if ($env.VAR == "true") {}
//correct
if (env.VAR == "true") {}

Why is it important?

Fix error:

java.lang.NoSuchMethodError: No such DSL method '$' found among steps

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

@mdelapenya mdelapenya self-assigned this Apr 14, 2021
@mdelapenya mdelapenya requested a review from a team April 14, 2021 13:01
@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 #1042 opened

  • Start Time: 2021-04-14T13:01:44.222+0000

  • Duration: 46 min 10 sec

  • Commit: 049d150

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 25 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-14T13:47:12.552Z] time="2021-04-14T13:47:12Z" level=debug msg="Agent listed in Fleet with online status" agentID=1b48d5a8-c477-4804-af01-f558d89fc0b4 hostname=18d29646f636
[2021-04-14T13:47:12.552Z] time="2021-04-14T13:47:12Z" level=info msg="The Agent is in the desired status" elapsedTime=74.498495ms hostname=18d29646f636 isAgentInStatus=true retries=1 status=online
[2021-04-14T13:47:12.552Z] time="2021-04-14T13:47:12Z" level=info msg="The Agent is not listed in the Administration view in the Security App" elapsedTime=34.874611ms hostname=18d29646f636 retries=1
[2021-04-14T13:47:13.505Z] {"log.level":"info","@timestamp":"2021-04-14T13:46:53.363Z","log.origin":{"file.name":"warn/warn.go","file.line":18},"message":"The Elastic Agent is currently in BETA and should not be used in production","ecs.version":"1.6.0"}
[2021-04-14T13:47:13.505Z] {"log.level":"info","@timestamp":"2021-04-14T13:46:53.364Z","log.origin":{"file.name":"application/application.go","file.line":68},"message":"Detecting execution mode","ecs.version":"1.6.0"}
[2021-04-14T13:47:13.505Z] {"log.level":"info","@timestamp":"2021-04-14T13:46:53.365Z","log.origin":{"file.name":"application/application.go","file.line":93},"message":"Agent is managed by Fleet","ecs.version":"1.6.0"}
[2021-04-14T13:47:13.505Z] {"log.level":"info","@timestamp":"2021-04-14T13:46:53.365Z","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-14T13:47:13.505Z] {"log.level":"info","@timestamp":"2021-04-14T13:46:53.702Z","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-14T13:47:13.505Z] {"log.level":"info","@timestamp":"2021-04-14T13:46:53.806Z","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-14T13:47:13.505Z] {"log.level":"info","@timestamp":"2021-04-14T13:46:53.807Z","log.logger":"api","log.origin":{"file.name":"api/server.go","file.line":62},"message":"Starting stats endpoint","ecs.version":"1.6.0"}
[2021-04-14T13:47:13.506Z] {"log.level":"info","@timestamp":"2021-04-14T13:46:53.807Z","log.origin":{"file.name":"application/managed_mode.go","file.line":289},"message":"Agent is starting","ecs.version":"1.6.0"}
[2021-04-14T13:47:13.506Z] {"log.level":"info","@timestamp":"2021-04-14T13:46:53.807Z","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-14T13:47:13.506Z] {"log.level":"warn","@timestamp":"2021-04-14T13:46:53.908Z","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-14T13:47:13.506Z] {"log.level":"info","@timestamp":"2021-04-14T13:46:57.182Z","log.origin":{"file.name":"stateresolver/stateresolver.go","file.line":48},"message":"New State ID is XQO72kNJ","ecs.version":"1.6.0"}
[2021-04-14T13:47:13.506Z] {"log.level":"info","@timestamp":"2021-04-14T13:46:57.182Z","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-14T13:47:13.506Z] {"log.level":"info","@timestamp":"2021-04-14T13:46:57.182Z","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-14T13:47:13.506Z] {"log.level":"info","@timestamp":"2021-04-14T13:46:57.182Z","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-14T13:47:13.506Z] {"log.level":"info","@timestamp":"2021-04-14T13:47:00.845Z","log.origin":{"file.name":"log/reporter.go","file.line":40},"message":"2021-04-14T13:47:00Z: type: 'STATE': sub_type: 'STARTING' message: Application: metricbeat--8.0.0-SNAPSHOT[1b48d5a8-c477-4804-af01-f558d89fc0b4]: State changed to STARTING: Starting","ecs.version":"1.6.0"}
[2021-04-14T13:47:13.506Z] {"log.level":"info","@timestamp":"2021-04-14T13:47:00.847Z","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-14T13:47:13.506Z] {"log.level":"info","@timestamp":"2021-04-14T13:47:00.847Z","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-14T13:47:13.506Z] {"log.level":"info","@timestamp":"2021-04-14T13:47:02.233Z","log.origin":{"file.name":"log/reporter.go","file.line":40},"message":"2021-04-14T13:47:02Z: type: 'STATE': sub_type: 'RUNNING' message: Application: metricbeat--8.0.0-SNAPSHOT[1b48d5a8-c477-4804-af01-f558d89fc0b4]: State changed to RUNNING: Running","ecs.version":"1.6.0"}
[2021-04-14T13:47:13.506Z] {"log.level":"info","@timestamp":"2021-04-14T13:47:06.326Z","log.origin":{"file.name":"log/reporter.go","file.line":40},"message":"2021-04-14T13:47:06Z: type: 'STATE': sub_type: 'STARTING' message: Application: filebeat--8.0.0-SNAPSHOT[1b48d5a8-c477-4804-af01-f558d89fc0b4]: State changed to STARTING: Starting","ecs.version":"1.6.0"}
[2021-04-14T13:47:13.506Z] {"log.level":"info","@timestamp":"2021-04-14T13:47:06.327Z","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-14T13:47:13.506Z] {"log.level":"info","@timestamp":"2021-04-14T13:47:06.327Z","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-14T13:47:13.506Z] {"log.level":"info","@timestamp":"2021-04-14T13:47:06.605Z","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-14T13:47:13.507Z] {"log.level":"info","@timestamp":"2021-04-14T13:47:06.796Z","log.origin":{"file.name":"log/reporter.go","file.line":40},"message":"2021-04-14T13:47:06Z: type: 'STATE': sub_type: 'STARTING' message: Application: filebeat--8.0.0-SNAPSHOT--36643631373035623733363936343635[1b48d5a8-c477-4804-af01-f558d89fc0b4]: State changed to STARTING: Starting","ecs.version":"1.6.0"}
[2021-04-14T13:47:13.507Z] {"log.level":"info","@timestamp":"2021-04-14T13:47:06.798Z","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-14T13:47:13.507Z] {"log.level":"info","@timestamp":"2021-04-14T13:47:06.798Z","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-14T13:47:13.507Z] {"log.level":"info","@timestamp":"2021-04-14T13:47:07.043Z","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-14T13:47:13.507Z] {"log.level":"info","@timestamp":"2021-04-14T13:47:07.259Z","log.origin":{"file.name":"log/reporter.go","file.line":40},"message":"2021-04-14T13:47:07Z: type: 'STATE': sub_type: 'STARTING' message: Application: metricbeat--8.0.0-SNAPSHOT--36643631373035623733363936343635[1b48d5a8-c477-4804-af01-f558d89fc0b4]: State changed to STARTING: Starting","ecs.version":"1.6.0"}
[2021-04-14T13:47:13.507Z] {"log.level":"info","@timestamp":"2021-04-14T13:47:07.273Z","log.origin":{"file.name":"stateresolver/stateresolver.go","file.line":66},"message":"Updating internal state","ecs.version":"1.6.0"}
[2021-04-14T13:47:13.507Z] {"log.level":"info","@timestamp":"2021-04-14T13:47:07.602Z","log.origin":{"file.name":"log/reporter.go","file.line":40},"message":"2021-04-14T13:47:07Z: type: 'STATE': sub_type: 'RUNNING' message: Application: filebeat--8.0.0-SNAPSHOT[1b48d5a8-c477-4804-af01-f558d89fc0b4]: State changed to RUNNING: Running","ecs.version":"1.6.0"}
[2021-04-14T13:47:13.507Z] {"log.level":"info","@timestamp":"2021-04-14T13:47:07.986Z","log.origin":{"file.name":"log/reporter.go","file.line":40},"message":"2021-04-14T13:47:07Z: type: 'STATE': sub_type: 'RUNNING' message: Application: filebeat--8.0.0-SNAPSHOT--36643631373035623733363936343635[1b48d5a8-c477-4804-af01-f558d89fc0b4]: State changed to RUNNING: Running","ecs.version":"1.6.0"}
[2021-04-14T13:47:13.507Z] {"log.level":"info","@timestamp":"2021-04-14T13:47:08.554Z","log.origin":{"file.name":"log/reporter.go","file.line":40},"message":"2021-04-14T13:47:08Z: type: 'STATE': sub_type: 'RUNNING' message: Application: metricbeat--8.0.0-SNAPSHOT--36643631373035623733363936343635[1b48d5a8-c477-4804-af01-f558d89fc0b4]: State changed to RUNNING: Running","ecs.version":"1.6.0"}
[2021-04-14T13:47:13.507Z] {"log.level":"info","@timestamp":"2021-04-14T13:47:10.367Z","log.origin":{"file.name":"stateresolver/stateresolver.go","file.line":48},"message":"New State ID is oP54CYp_","ecs.version":"1.6.0"}
[2021-04-14T13:47:13.507Z] {"log.level":"info","@timestamp":"2021-04-14T13:47:10.367Z","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-14T13:47:13.507Z] {"log.level":"info","@timestamp":"2021-04-14T13:47:10.368Z","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-14T13:47:13.507Z] {"log.level":"info","@timestamp":"2021-04-14T13:47:10.368Z","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-14T13:47:13.507Z] {"log.level":"info","@timestamp":"2021-04-14T13:47:10.603Z","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-14T13:47:13.508Z] {"log.level":"info","@timestamp":"2021-04-14T13:47:10.603Z","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-14T13:47:13.508Z] {"log.level":"info","@timestamp":"2021-04-14T13:47:10.605Z","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-14T13:47:13.508Z] {"log.level":"info","@timestamp":"2021-04-14T13:47:10.605Z","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-14T13:47:13.508Z] {"log.level":"info","@timestamp":"2021-04-14T13:47:11.404Z","log.origin":{"file.name":"log/reporter.go","file.line":40},"message":"2021-04-14T13:47:11Z: type: 'STATE': sub_type: 'STARTING' message: Application: endpoint-security--8.0.0-SNAPSHOT[1b48d5a8-c477-4804-af01-f558d89fc0b4]: State changed to STARTING: Starting","ecs.version":"1.6.0"}
[2021-04-14T13:47:13.508Z] {"log.level":"info","@timestamp":"2021-04-14T13:47:11.473Z","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-14T13:47:13.508Z] {"log.level":"info","@timestamp":"2021-04-14T13:47:11.473Z","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-14T13:47:13.508Z] {"log.level":"info","@timestamp":"2021-04-14T13:47:11.669Z","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-14T13:47:13.508Z] {"log.level":"info","@timestamp":"2021-04-14T13:47:11.669Z","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-14T13:47:13.508Z] {"log.level":"info","@timestamp":"2021-04-14T13:47:11.669Z","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-14T13:47:13.508Z] {"log.level":"info","@timestamp":"2021-04-14T13:47:11.669Z","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-14T13:47:13.508Z] {"log.level":"info","@timestamp":"2021-04-14T13:47:11.875Z","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-14T13:47:13.508Z] {"log.level":"info","@timestamp":"2021-04-14T13:47:11.875Z","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-14T13:47:13.508Z] {"log.level":"info","@timestamp":"2021-04-14T13:47:11.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-14T13:47:13.508Z] {"log.level":"info","@timestamp":"2021-04-14T13:47:11.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-14T13:47:13.509Z] {"log.level":"info","@timestamp":"2021-04-14T13:47:12.102Z","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-14T13:47:13.509Z] {"log.level":"info","@timestamp":"2021-04-14T13:47:12.102Z","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-14T13:47:13.509Z] {"log.level":"info","@timestamp":"2021-04-14T13:47:12.103Z","log.origin":{"file.name":"stateresolver/stateresolver.go","file.line":66},"message":"Updating internal state","ecs.version":"1.6.0"}
[2021-04-14T13:47:13.509Z] time="2021-04-14T13:47:13Z" 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-1042-1-2a6ef054-2a6d-41df-aef6-0a965bddd743/.op/compose/profiles/fleet/docker-compose.yml /var/lib/jenkins/workspace/PR-1042-1-2a6ef054-2a6d-41df-aef6-0a965bddd743/.op/compose/services/centos-systemd/docker-compose.yml]" env="map[centos_systemdAgentBinarySrcPath:/tmp/elastic-agent-8.0.0-SNAPSHOT-linux-x86_64.tar.gz523551133 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-14T13:47:21.713Z] {"level":"debug","time":"2021-04-14T13:47:21Z","message":"gathering metrics"}
[2021-04-14T13:47:27.058Z] Elastic Agent has been uninstalled.
[2021-04-14T13:47:27.322Z] time="2021-04-14T13:47:27Z" level=debug msg="Docker compose executed." cmd="[exec -T centos-systemd elastic-agent uninstall -f]" composeFilePaths="[/var/lib/jenkins/workspace/PR-1042-1-2a6ef054-2a6d-41df-aef6-0a965bddd743/.op/compose/profiles/fleet/docker-compose.yml /var/lib/jenkins/workspace/PR-1042-1-2a6ef054-2a6d-41df-aef6-0a965bddd743/.op/compose/services/centos-systemd/docker-compose.yml]" env="map[centos_systemdAgentBinarySrcPath:/tmp/elastic-agent-8.0.0-SNAPSHOT-linux-x86_64.tar.gz523551133 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-14T13:47:27.322Z] time="2021-04-14T13:47:27Z" level=debug msg="Un-enrolling agent in Fleet" agentID=1b48d5a8-c477-4804-af01-f558d89fc0b4 hostname=18d29646f636
[2021-04-14T13:47:29.253Z] time="2021-04-14T13:47:29Z" level=debug msg="Fleet agent was unenrolled" agentID=1b48d5a8-c477-4804-af01-f558d89fc0b4
[2021-04-14T13:47:30.208Z] Stopping fleet_centos-systemd_elastic-agent_1 ... 
[2021-04-14T13:47:31.164Z] {"level":"debug","time":"2021-04-14T13:47:31Z","message":"sent request with 0 transactions, 0 spans, 0 errors, 1 metricset"}
[2021-04-14T13:47:41.233Z] 
Stopping fleet_centos-systemd_elastic-agent_1 ... done
Removing fleet_centos-systemd_elastic-agent_1 ... 
[2021-04-14T13:47:41.233Z] 
Removing fleet_centos-systemd_elastic-agent_1 ... done
Going to remove fleet_centos-systemd_elastic-agent_1
[2021-04-14T13:47:41.234Z] time="2021-04-14T13:47:41Z" level=debug msg="Docker compose executed." cmd="[rm -fvs centos-systemd]" composeFilePaths="[/var/lib/jenkins/workspace/PR-1042-1-2a6ef054-2a6d-41df-aef6-0a965bddd743/.op/compose/profiles/fleet/docker-compose.yml /var/lib/jenkins/workspace/PR-1042-1-2a6ef054-2a6d-41df-aef6-0a965bddd743/.op/compose/services/centos-systemd/docker-compose.yml]" env="map[centos_systemdAgentBinarySrcPath:/tmp/elastic-agent-8.0.0-SNAPSHOT-linux-x86_64.tar.gz523551133 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-14T13:47:41.234Z] time="2021-04-14T13:47:41Z" level=debug msg="Service removed from compose" profile=fleet service=centos-systemd
[2021-04-14T13:47:43.174Z] time="2021-04-14T13:47:43Z" level=debug msg="The token was deleted" tokenID=185fa2ae-46db-4f6b-8f31-0e6a189ec91f
[2021-04-14T13:47:43.174Z] time="2021-04-14T13:47:43Z" level=info msg="Integration deleted from the configuration" integration=endpoint packageConfigId=13d4778e-2e97-4653-9469-aaf76ba44924 policyID=75bd1990-9d25-11eb-9627-5f32364be27a version=0.18.0
[2021-04-14T13:47:43.174Z] time="2021-04-14T13:47:43Z" level=debug msg="Destroying Fleet runtime dependencies"
[2021-04-14T13:47:44.128Z] Stopping fleet_kibana_1           ... 
[2021-04-14T13:47:44.128Z] Stopping fleet_elasticsearch_1    ... 
[2021-04-14T13:47:44.128Z] Stopping fleet_package-registry_1 ... 
[2021-04-14T13:47:45.936Z] 
Stopping fleet_kibana_1           ... done

Stopping fleet_package-registry_1 ... done

Stopping fleet_elasticsearch_1    ... done
Removing fleet_kibana_1           ... 
[2021-04-14T13:47:45.936Z] Removing fleet_elasticsearch_1    ... 
[2021-04-14T13:47:45.936Z] Removing fleet_package-registry_1 ... 
[2021-04-14T13:47:46.202Z] 
Removing fleet_package-registry_1 ... done

Removing fleet_kibana_1           ... done

Removing fleet_elasticsearch_1    ... done
Removing network fleet_default
[2021-04-14T13:47:46.784Z] time="2021-04-14T13:47:46Z" level=debug msg="Docker compose executed." cmd="[down --remove-orphans]" composeFilePaths="[/var/lib/jenkins/workspace/PR-1042-1-2a6ef054-2a6d-41df-aef6-0a965bddd743/.op/compose/profiles/fleet/docker-compose.yml]" env="map[centos_systemdAgentBinarySrcPath:/tmp/elastic-agent-8.0.0-SNAPSHOT-linux-x86_64.tar.gz523551133 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-14T13:47:46.784Z] time="2021-04-14T13:47:46Z" 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.gz523551133
[2021-04-14T13:47:46.784Z] Makefile:73: recipe for target 'functional-test' failed
[2021-04-14T13:47:46.784Z] make: *** [functional-test] Error 1
[2021-04-14T13:47:47.104Z] [INFO] Stopping Filebeat Docker container
[2021-04-14T13:47:47.434Z] + docker exec -t 24e09f3bfa81658abd619da205ed5cc37e555758ee65e3953572d32b1893a16b chmod -R ugo+rw /output
[2021-04-14T13:47:47.699Z] + docker stop --time 30 24e09f3bfa81658abd619da205ed5cc37e555758ee65e3953572d32b1893a16b
[2021-04-14T13:47:48.277Z] 24e09f3bfa81658abd619da205ed5cc37e555758ee65e3953572d32b1893a16b
[2021-04-14T13:47:48.315Z] Archiving artifacts
[2021-04-14T13:47:48.916Z] Recording test results
[2021-04-14T13:47:48.948Z] [Checks API] No suitable checks publisher found.
[2021-04-14T13:47:48.991Z] Archiving artifacts
[2021-04-14T13:47:49.093Z] Running in /var/lib/jenkins/workspace/PR-1042-1-2a6ef054-2a6d-41df-aef6-0a965bddd743/src/github.com/elastic/e2e-testing
[2021-04-14T13:47:49.448Z] + go clean -modcache
[2021-04-14T13:47:50.381Z] Failed in branch ubuntu-18.04_fleet_agent_endpoint_integration
[2021-04-14T13:47:52.317Z] Stage "Release" skipped due to earlier failure(s)
[2021-04-14T13:47:52.940Z] Running on Jenkins in /var/lib/jenkins/workspace/2e-tests_e2e-testing-mbp_PR-1042
[2021-04-14T13:47:53.071Z] [INFO] getVaultSecret: Getting secrets
[2021-04-14T13:47:53.191Z] Masking supported pattern matches of $VAULT_ADDR or $VAULT_ROLE_ID or $VAULT_SECRET_ID
[2021-04-14T13:47:54.223Z] + chmod 755 generate-build-data.sh
[2021-04-14T13:47:54.223Z] + ./generate-build-data.sh https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/e2e-tests/e2e-testing-mbp/PR-1042/ https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/e2e-tests/e2e-testing-mbp/PR-1042/runs/1 FAILURE 2769719
[2021-04-14T13:47:54.473Z] INFO: curl https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/e2e-tests/e2e-testing-mbp/PR-1042/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 marked this pull request as ready for review April 14, 2021 13:56
@mdelapenya mdelapenya merged commit d7d3b93 into elastic:master Apr 14, 2021
@mdelapenya mdelapenya deleted the fix-interpolation branch April 14, 2021 14:53
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)
mdelapenya added a commit to mdelapenya/e2e-testing that referenced this pull request Apr 20, 2021
mdelapenya added a commit to mdelapenya/e2e-testing that referenced this pull request Apr 20, 2021
mdelapenya added a commit to mdelapenya/e2e-testing that referenced this pull request Apr 20, 2021
mdelapenya added a commit that referenced this pull request Apr 20, 2021
…bhook payload (#1043) | chore: add debug info for the payload (#1044) | fix: typo in parameters (#1045) | fix: incorrect variable name (#1046) | fix: do not use GT_REPO va (#1057)

* fix: wrong interpolation (#1042)

* chore: add debug traces for the webhook payload (#1043)

* chore: add debug info for the payload (#1044)

* fix: do not use variable names as variable prefix

* chore: print payload

* fix: perform another API call to fetch PR data

We need a second API request, as the issue_comment API does not retrieve
data about the pull request. See
https://docs.github.com/en/developers/webhooks-and-events/webhook-events-and-payloads#issue_comment

* fix: typo in parameters (#1045)

* fix: incorrect variable name (#1046)

* fix: do not use GT_REPO variable, use fixed repo name instead (#1049)

* fix: do not use GT_REPO variable, use fixed repo name

Because the repo is always Kibana, let's use it

* chore: remove unused echo
mdelapenya added a commit that referenced this pull request Apr 20, 2021
…bhook payload (#1043) | chore: add debug info for the payload (#1044) | fix: typo in parameters (#1045) | fix: incorrect variable name (#1046) | fix: do not use GT_REPO va (#1058)

* fix: wrong interpolation (#1042)

* chore: add debug traces for the webhook payload (#1043)

* chore: add debug info for the payload (#1044)

* fix: do not use variable names as variable prefix

* chore: print payload

* fix: perform another API call to fetch PR data

We need a second API request, as the issue_comment API does not retrieve
data about the pull request. See
https://docs.github.com/en/developers/webhooks-and-events/webhook-events-and-payloads#issue_comment

* fix: typo in parameters (#1045)

* fix: incorrect variable name (#1046)

* fix: do not use GT_REPO variable, use fixed repo name instead (#1049)

* fix: do not use GT_REPO variable, use fixed repo name

Because the repo is always Kibana, let's use it

* chore: remove unused echo
mdelapenya added a commit that referenced this pull request Apr 20, 2021
…bhook payload (#1043) | chore: add debug info for the payload (#1044) | fix: typo in parameters (#1045) | fix: incorrect variable name (#1046) | fix: do not use GT_REPO va (#1059)

* fix: wrong interpolation (#1042)

* chore: add debug traces for the webhook payload (#1043)

* chore: add debug info for the payload (#1044)

* fix: do not use variable names as variable prefix

* chore: print payload

* fix: perform another API call to fetch PR data

We need a second API request, as the issue_comment API does not retrieve
data about the pull request. See
https://docs.github.com/en/developers/webhooks-and-events/webhook-events-and-payloads#issue_comment

* fix: typo in parameters (#1045)

* fix: incorrect variable name (#1046)

* fix: do not use GT_REPO variable, use fixed repo name instead (#1049)

* fix: do not use GT_REPO variable, use fixed repo name

Because the repo is always Kibana, let's use it

* chore: remove unused echo
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants