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

chore: fail warm-up if the installers could not be downloaded #320

Merged
merged 1 commit into from
Sep 22, 2020

Conversation

mdelapenya
Copy link
Contributor

What does this PR do?

It fails test execution (error level > 0) if the runtime dependencies represented by the agent binaries cannot be downloaded.

Why is it important?

If this error is not handled, the test ramework will continue using an empty file as the binary, causing not real errors.

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)

How to test this PR locally

Try to download a non existing binary:

$ OP_LOG_LEVEL=TRACE DEVELOPER_MODE=true ELASTIC_AGENT_USE_CI_SNAPSHOTS=true ELASTIC_AGENT_VERSION=pr-21asdasd godog -t "fleet_mode && enroll"

Expected output:

ERRO[0034] Could not download the binary for the agent   arch=x86_64 artifact=elastic-agent error="Reached the end of the pages and the pull-requests/pr-21asdasd/elastic-agent/elastic-agent-8.0.0-SNAPSHOT-x86_64.rpm object was not found for the beats-ci-artifacts bucket" extension=rpm os=linux version=pr-21asdasd
FATA[0036] Sorry, we could not download the installer    error="Reached the end of the pages and the pull-requests/pr-21asdasd/elastic-agent/elastic-agent-8.0.0-SNAPSHOT-x86_64.rpm object was not found for the beats-ci-artifacts bucket" image=centos-systemd

Related issues

Follow-ups

Please backport to 7.9.x

@mdelapenya mdelapenya self-assigned this Sep 22, 2020
@mdelapenya mdelapenya requested review from a team and EricDavisX September 22, 2020 17:51
@mdelapenya mdelapenya marked this pull request as ready for review September 22, 2020 17:52
@elasticmachine
Copy link
Contributor

💔 Tests Failed

Pipeline View Test View Changes Artifacts preview

Expand to view the summary

Build stats

  • Build Cause: [Pull request #320 opened]

  • Start Time: 2020-09-22T17:51:21.032+0000

  • Duration: 44 min 7 sec

Test stats 🧪

Test Results
Failed 9
Passed 61
Skipped 10
Total 80

Test errors

Expand to view the tests failures

  • Name: Initializing / End-To-End Tests / ingest-manager_stand_alone_mode / Starting the agent starts backend processes – Stand-alone Agent

    • Age: 1
    • Duration: 247.044
    • Error Details: Step the "metricbeat" process is in the "started" state on the host
  • Name: Initializing / End-To-End Tests / ingest-manager_agent_endpoint_integration / Adding the Endpoint Integration to an Agent makes the host to show in Security App – Agent Endpoint Integration

    • Age: 1
    • Duration: 279.04324
    • Error Details: Step the host name is shown in the Administration view in the Security App as "online": The host 148eaf6e96e4 is not listed in the Administration view in the Security App
  • Name: Initializing / End-To-End Tests / ingest-manager_agent_endpoint_integration / Deploying an Endpoint makes policies to appear in the Security App – Agent Endpoint Integration

    • Age: 1
    • Duration: 263.218
    • 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
  • Name: Initializing / End-To-End Tests / ingest-manager_fleet_mode / Deploying the centos agent – Fleet Mode Agent

    • Age: 1
    • Duration: 267.84357
    • Error Details: Step system package dashboards are listed in Fleet: There are no datastreams yet
  • Name: Initializing / End-To-End Tests / ingest-manager_fleet_mode / Deploying the debian agent – Fleet Mode Agent

    • Age: 1
    • Duration: 276.74557
    • Error Details: Step system package dashboards are listed in Fleet: There are no datastreams yet
  • Name: Initializing / End-To-End Tests / ingest-manager_fleet_mode / Starting the centos agent starts backend processes – Fleet Mode Agent

    • Age: 1
    • Duration: 248.76517
    • Error Details: Step the "metricbeat" process is in the "started" state on the host
  • Name: Initializing / End-To-End Tests / ingest-manager_fleet_mode / Starting the debian agent starts backend processes – Fleet Mode Agent

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

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

    • Age: 1
    • Duration: 252.0882
    • Error Details: Step the "metricbeat" process is in the "started" state on the host

Steps errors

Expand to view the steps failures

  • Name: Run functional tests for ingest-manager:agent_endpoint_integration

    • Description:

    • Duration: 18 min 39 sec

    • Start Time: 2020-09-22T17:57:31.253+0000

    • log

  • Name: Error signal

    • Description:

    • Duration: 0 min 0 sec

    • Start Time: 2020-09-22T18:15:10.653+0000

    • log

  • Name: General Build Step

    • Description: [2020-09-22T18:15:11.237Z] Archiving artifacts
      hudson.AbortException: script returned exit code 1

    • Duration: 0 min 0 sec

    • Start Time: 2020-09-22T18:15:11.223+0000

    • log

  • Name: Run functional tests for ingest-manager:stand_alone_mode

    • Description:

    • Duration: 9 min 19 sec

    • Start Time: 2020-09-22T17:57:30.057+0000

    • log

  • Name: Error signal

    • Description:

    • Duration: 0 min 0 sec

    • Start Time: 2020-09-22T18:06:49.667+0000

    • log

  • Name: General Build Step

    • Description: [2020-09-22T18:06:50.204Z] Archiving artifacts
      hudson.AbortException: script returned exit code 1

    • Duration: 0 min 0 sec

    • Start Time: 2020-09-22T18:06:50.189+0000

    • log

  • Name: Run functional tests for ingest-manager:fleet_mode

    • Description:

    • Duration: 38 min 52 sec

    • Start Time: 2020-09-22T17:57:30.855+0000

    • log

  • Name: Error signal

    • Description:

    • Duration: 0 min 0 sec

    • Start Time: 2020-09-22T18:35:23.110+0000

    • log

  • Name: General Build Step

    • Description: [2020-09-22T18:35:23.687Z] Archiving artifacts
      hudson.AbortException: script returned exit code 1

    • Duration: 0 min 0 sec

    • Start Time: 2020-09-22T18:35:23.674+0000

    • log

Log output

Expand to view the last 100 lines of log output

[2020-09-22T18:34:55.875Z] The following NEW packages will be installed:
[2020-09-22T18:34:55.875Z]   elastic-agent
[2020-09-22T18:34:57.814Z] 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
[2020-09-22T18:34:57.814Z] Need to get 0 B/111 MB of archives.
[2020-09-22T18:34:57.814Z] After this operation, 134 MB of additional disk space will be used.
[2020-09-22T18:34:57.814Z] Get:1 /elastic-agent-8.0.0-SNAPSHOT-amd64.deb elastic-agent amd64 8.0.0 [111 MB]
[2020-09-22T18:34:57.814Z] debconf: delaying package configuration, since apt-utils is not installed
[2020-09-22T18:34:57.814Z] Selecting previously unselected package elastic-agent.
[2020-09-22T18:34:57.814Z] (Reading database ... 
(Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
(Reading database ... 90%
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 7400 files and directories currently installed.)
[2020-09-22T18:34:57.814Z] Preparing to unpack .../elastic-agent-8.0.0-SNAPSHOT-amd64.deb ...
[2020-09-22T18:34:57.815Z] Unpacking elastic-agent (8.0.0) ...
[2020-09-22T18:34:58.757Z] Setting up elastic-agent (8.0.0) ...
[2020-09-22T18:34:59.017Z] Processing triggers for systemd (232-25+deb9u12) ...
[2020-09-22T18:34:59.278Z] time="2020-09-22T18:34:59Z" level=debug msg="Docker compose executed." cmd="[exec -T debian-systemd apt install /elastic-agent-8.0.0-SNAPSHOT-amd64.deb -y]" composeFilePaths="[/var/lib/jenkins/workspace/e2e-tests_e2e-testing-mbp_PR-320/.op/compose/profiles/ingest-manager/docker-compose.yml /var/lib/jenkins/workspace/e2e-tests_e2e-testing-mbp_PR-320/.op/compose/services/debian-systemd/docker-compose.yml]" env="map[centos_systemdAgentBinarySrcPath:/tmp/elastic-agent-8.0.0-SNAPSHOT-x86_64.rpm004016251 centos_systemdAgentBinaryTargetPath:/elastic-agent-8.0.0-SNAPSHOT-x86_64.rpm centos_systemdContainerName:ingest-manager_centos-systemd_centos-systemd_2 centos_systemdTag:latest debian_systemdAgentBinarySrcPath:/tmp/elastic-agent-8.0.0-SNAPSHOT-amd64.deb943055262 debian_systemdAgentBinaryTargetPath:/elastic-agent-8.0.0-SNAPSHOT-amd64.deb debian_systemdContainerName:ingest-manager_debian-systemd_debian-systemd_2 debian_systemdTag:stretch kibanaConfigPath:/var/lib/jenkins/workspace/e2e-tests_e2e-testing-mbp_PR-320/src/github.com/elastic/e2e-testing/e2e/_suites/ingest-manager/configurations/kibana.config.yml stackVersion:8.0.0-SNAPSHOT]" profile=ingest-manager
[2020-09-22T18:34:59.854Z] Synchronizing state of elastic-agent.service with SysV service script with /lib/systemd/systemd-sysv-install.
[2020-09-22T18:34:59.854Z] Executing: /lib/systemd/systemd-sysv-install enable elastic-agent
[2020-09-22T18:35:00.182Z] time="2020-09-22T18:35:00Z" level=debug msg="Docker compose executed." cmd="[exec -T debian-systemd systemctl enable elastic-agent]" composeFilePaths="[/var/lib/jenkins/workspace/e2e-tests_e2e-testing-mbp_PR-320/.op/compose/profiles/ingest-manager/docker-compose.yml /var/lib/jenkins/workspace/e2e-tests_e2e-testing-mbp_PR-320/.op/compose/services/debian-systemd/docker-compose.yml]" env="map[centos_systemdAgentBinarySrcPath:/tmp/elastic-agent-8.0.0-SNAPSHOT-x86_64.rpm004016251 centos_systemdAgentBinaryTargetPath:/elastic-agent-8.0.0-SNAPSHOT-x86_64.rpm centos_systemdContainerName:ingest-manager_centos-systemd_centos-systemd_2 centos_systemdTag:latest debian_systemdAgentBinarySrcPath:/tmp/elastic-agent-8.0.0-SNAPSHOT-amd64.deb943055262 debian_systemdAgentBinaryTargetPath:/elastic-agent-8.0.0-SNAPSHOT-amd64.deb debian_systemdContainerName:ingest-manager_debian-systemd_debian-systemd_2 debian_systemdTag:stretch kibanaConfigPath:/var/lib/jenkins/workspace/e2e-tests_e2e-testing-mbp_PR-320/src/github.com/elastic/e2e-testing/e2e/_suites/ingest-manager/configurations/kibana.config.yml stackVersion:8.0.0-SNAPSHOT]" profile=ingest-manager
[2020-09-22T18:35:01.244Z] The Elastic Agent is currently in BETA and should not be used in production
[2020-09-22T18:35:02.193Z] 2020-09-22T18:35:02.092Z	DEBUG	kibana/client.go:170	Request method: POST, path: /api/ingest_manager/fleet/agents/enroll
[2020-09-22T18:35:02.193Z] fail to enroll: fail to execute request to Kibana: Status code: 401, Kibana returned an error: Unauthorized, message: [security_exception] missing authentication credentials for REST request [/_security/_authenticate], with { header={ WWW-Authenticate={ 0="Basic realm=\"security\" charset=\"UTF-8\"" & 1="ApiKey" } } }
[2020-09-22T18:35:02.457Z] time="2020-09-22T18:35:02Z" level=error msg="Could not execute command in container" command="[elastic-agent enroll http://kibana:5601 QmR3WXQzUUJxY2V6S2ZGdXYtczE6QzFScE1CcWtUUFNNRklOUm1pMmFRdw== -f --insecure]" error="Could not run compose file: [/var/lib/jenkins/workspace/e2e-tests_e2e-testing-mbp_PR-320/.op/compose/profiles/ingest-manager/docker-compose.yml /var/lib/jenkins/workspace/e2e-tests_e2e-testing-mbp_PR-320/.op/compose/services/debian-systemd/docker-compose.yml] - Local Docker compose exited abnormally whilst running docker-compose: [exec -T debian-systemd elastic-agent enroll http://kibana:5601 QmR3WXQzUUJxY2V6S2ZGdXYtczE6QzFScE1CcWtUUFNNRklOUm1pMmFRdw== -f --insecure]. exit status 1" service=debian-systemd
[2020-09-22T18:35:02.457Z] time="2020-09-22T18:35:02Z" level=error msg="Could not enroll the agent with the token" command="[elastic-agent enroll http://kibana:5601 QmR3WXQzUUJxY2V6S2ZGdXYtczE6QzFScE1CcWtUUFNNRklOUm1pMmFRdw== -f --insecure]" error="Could not run compose file: [/var/lib/jenkins/workspace/e2e-tests_e2e-testing-mbp_PR-320/.op/compose/profiles/ingest-manager/docker-compose.yml /var/lib/jenkins/workspace/e2e-tests_e2e-testing-mbp_PR-320/.op/compose/services/debian-systemd/docker-compose.yml] - Local Docker compose exited abnormally whilst running docker-compose: [exec -T debian-systemd elastic-agent enroll http://kibana:5601 QmR3WXQzUUJxY2V6S2ZGdXYtczE6QzFScE1CcWtUUFNNRklOUm1pMmFRdw== -f --insecure]. exit status 1" image=debian-systemd service=debian-systemd tag=stretch token="QmR3WXQzUUJxY2V6S2ZGdXYtczE6QzFScE1CcWtUUFNNRklOUm1pMmFRdw=="
[2020-09-22T18:35:02.457Z] time="2020-09-22T18:35:02Z" level=debug msg="As expected, it's not possible to enroll an agent with a revoked token" err="Could not run compose file: [/var/lib/jenkins/workspace/e2e-tests_e2e-testing-mbp_PR-320/.op/compose/profiles/ingest-manager/docker-compose.yml /var/lib/jenkins/workspace/e2e-tests_e2e-testing-mbp_PR-320/.op/compose/services/debian-systemd/docker-compose.yml] - Local Docker compose exited abnormally whilst running docker-compose: [exec -T debian-systemd elastic-agent enroll http://kibana:5601 QmR3WXQzUUJxY2V6S2ZGdXYtczE6QzFScE1CcWtUUFNNRklOUm1pMmFRdw== -f --insecure]. exit status 1" token="QmR3WXQzUUJxY2V6S2ZGdXYtczE6QzFScE1CcWtUUFNNRklOUm1pMmFRdw=="
[2020-09-22T18:35:02.457Z] time="2020-09-22T18:35:02Z" level=warning msg="Could not create command in container" command="[cat /etc/elastic-agent/.elastic-agent.active.commit]" container=4859e784e3e2 detach=false error="Error response from daemon: No such container: 4859e784e3e2" tty=false
[2020-09-22T18:35:02.457Z] time="2020-09-22T18:35:02Z" level=error msg="Could not get agent hash in the container" containerName=4859e784e3e2 error="Error response from daemon: No such container: 4859e784e3e2"
[2020-09-22T18:35:02.457Z] time="2020-09-22T18:35:02Z" level=debug msg="Un-enrolling agent in Fleet" agentID=d9ca9a91-a055-4243-bc16-4f88249252e3 hostname=4859e784e3e2
[2020-09-22T18:35:03.030Z] time="2020-09-22T18:35:02Z" level=debug msg="Fleet agent was unenrolled" agentID=d9ca9a91-a055-4243-bc16-4f88249252e3
[2020-09-22T18:35:03.977Z] Stopping ingest-manager_debian-systemd_debian-systemd_2 ... 
[2020-09-22T18:35:05.208Z] 
Stopping ingest-manager_debian-systemd_debian-systemd_2 ... done
Removing ingest-manager_debian-systemd_debian-systemd_2 ... 
[2020-09-22T18:35:05.208Z] 
Removing ingest-manager_debian-systemd_debian-systemd_2 ... done
Going to remove ingest-manager_debian-systemd_debian-systemd_2
[2020-09-22T18:35:05.470Z] time="2020-09-22T18:35:05Z" level=debug msg="Docker compose executed." cmd="[rm -fvs debian-systemd]" composeFilePaths="[/var/lib/jenkins/workspace/e2e-tests_e2e-testing-mbp_PR-320/.op/compose/profiles/ingest-manager/docker-compose.yml /var/lib/jenkins/workspace/e2e-tests_e2e-testing-mbp_PR-320/.op/compose/services/debian-systemd/docker-compose.yml]" env="map[centos_systemdAgentBinarySrcPath:/tmp/elastic-agent-8.0.0-SNAPSHOT-x86_64.rpm004016251 centos_systemdAgentBinaryTargetPath:/elastic-agent-8.0.0-SNAPSHOT-x86_64.rpm centos_systemdContainerName:ingest-manager_centos-systemd_centos-systemd_2 centos_systemdTag:latest debian_systemdAgentBinarySrcPath:/tmp/elastic-agent-8.0.0-SNAPSHOT-amd64.deb943055262 debian_systemdAgentBinaryTargetPath:/elastic-agent-8.0.0-SNAPSHOT-amd64.deb debian_systemdContainerName:ingest-manager_debian-systemd_debian-systemd_2 debian_systemdTag:stretch kibanaConfigPath:/var/lib/jenkins/workspace/e2e-tests_e2e-testing-mbp_PR-320/src/github.com/elastic/e2e-testing/e2e/_suites/ingest-manager/configurations/kibana.config.yml stackVersion:8.0.0-SNAPSHOT]" profile=ingest-manager
[2020-09-22T18:35:05.470Z] time="2020-09-22T18:35:05Z" level=debug msg="Service removed from compose" profile=ingest-manager service=debian-systemd
[2020-09-22T18:35:06.041Z] time="2020-09-22T18:35:06Z" level=debug msg="The token was deleted" tokenID=23d90741-4d29-486f-aa44-add17c439eb5
[2020-09-22T18:35:06.041Z] time="2020-09-22T18:35:06Z" level=info msg="Integration deleted from the configuration" integration= packageConfigId= policyID=42b0b3e0-fd02-11ea-9eea-7987b62e2275 version=
[2020-09-22T18:35:12.659Z] time="2020-09-22T18:35:12Z" level=debug msg="The policy was deleted" policyID=42b0b3e0-fd02-11ea-9eea-7987b62e2275
[2020-09-22T18:35:12.659Z] time="2020-09-22T18:35:12Z" level=debug msg="Destroying ingest-manager runtime dependencies"
[2020-09-22T18:35:12.920Z] Stopping ingest-manager_kibana_1           ... 
[2020-09-22T18:35:12.920Z] Stopping ingest-manager_package-registry_1 ... 
[2020-09-22T18:35:12.920Z] Stopping ingest-manager_elasticsearch_1    ... 
[2020-09-22T18:35:22.954Z] 
Stopping ingest-manager_kibana_1           ... done

Stopping ingest-manager_package-registry_1 ... done

Stopping ingest-manager_elasticsearch_1    ... done
Removing ingest-manager_kibana_1           ... 
[2020-09-22T18:35:22.955Z] Removing ingest-manager_package-registry_1 ... 
[2020-09-22T18:35:22.955Z] Removing ingest-manager_elasticsearch_1    ... 
[2020-09-22T18:35:22.955Z] 
Removing ingest-manager_package-registry_1 ... done

Removing ingest-manager_kibana_1           ... done

Removing ingest-manager_elasticsearch_1    ... done
Removing network ingest-manager_default
[2020-09-22T18:35:22.955Z] time="2020-09-22T18:35:22Z" level=debug msg="Docker compose executed." cmd="[down]" composeFilePaths="[/var/lib/jenkins/workspace/e2e-tests_e2e-testing-mbp_PR-320/.op/compose/profiles/ingest-manager/docker-compose.yml]" env="map[centos_systemdAgentBinarySrcPath:/tmp/elastic-agent-8.0.0-SNAPSHOT-x86_64.rpm004016251 centos_systemdAgentBinaryTargetPath:/elastic-agent-8.0.0-SNAPSHOT-x86_64.rpm centos_systemdContainerName:ingest-manager_centos-systemd_centos-systemd_2 centos_systemdTag:latest debian_systemdAgentBinarySrcPath:/tmp/elastic-agent-8.0.0-SNAPSHOT-amd64.deb943055262 debian_systemdAgentBinaryTargetPath:/elastic-agent-8.0.0-SNAPSHOT-amd64.deb debian_systemdContainerName:ingest-manager_debian-systemd_debian-systemd_2 debian_systemdTag:stretch kibanaConfigPath:/var/lib/jenkins/workspace/e2e-tests_e2e-testing-mbp_PR-320/src/github.com/elastic/e2e-testing/e2e/_suites/ingest-manager/configurations/kibana.config.yml stackVersion:8.0.0-SNAPSHOT]" profile=ingest-manager
[2020-09-22T18:35:22.955Z] time="2020-09-22T18:35:22Z" level=debug msg="Elastic Agent binary was removed." installer=centos-systemd path=/tmp/elastic-agent-8.0.0-SNAPSHOT-x86_64.rpm004016251
[2020-09-22T18:35:22.955Z] time="2020-09-22T18:35:22Z" level=debug msg="Elastic Agent binary was removed." installer=debian-systemd path=/tmp/elastic-agent-8.0.0-SNAPSHOT-amd64.deb943055262
[2020-09-22T18:35:22.955Z] <?xml version="1.0" encoding="UTF-8"?>
[2020-09-22T18:35:22.955Z] <testsuites name="main" tests="14" skipped="0" failures="6" errors="0" time="2236.249006894">
[2020-09-22T18:35:22.955Z]   <testsuite name="Fleet Mode Agent" tests="14" skipped="0" failures="6" errors="0" time="2019.910179354">
[2020-09-22T18:35:22.955Z]     <testcase name="Deploying the centos agent" status="failed" time="267.843552879">
[2020-09-22T18:35:22.955Z]       <failure message="Step system package dashboards are listed in Fleet: There are no datastreams yet"></failure>
[2020-09-22T18:35:22.955Z]     </testcase>
[2020-09-22T18:35:22.955Z]     <testcase name="Deploying the debian agent" status="failed" time="276.745580153">
[2020-09-22T18:35:22.955Z]       <failure message="Step system package dashboards are listed in Fleet: There are no datastreams yet"></failure>
[2020-09-22T18:35:22.955Z]     </testcase>
[2020-09-22T18:35:22.955Z]     <testcase name="Starting the centos agent starts backend processes" status="failed" time="248.76516941">
[2020-09-22T18:35:22.955Z]       <failure message="Step the &#34;filebeat&#34; process is in the &#34;started&#34; state on the host: filebeat process is not running in the container yet"></failure>
[2020-09-22T18:35:22.955Z]       <error message="Step the &#34;metricbeat&#34; process is in the &#34;started&#34; state on the host" type="skipped"></error>
[2020-09-22T18:35:22.955Z]     </testcase>
[2020-09-22T18:35:22.955Z]     <testcase name="Starting the debian agent starts backend processes" status="failed" time="250.93864418">
[2020-09-22T18:35:22.955Z]       <failure message="Step the &#34;filebeat&#34; process is in the &#34;started&#34; state on the host: filebeat process is not running in the container yet"></failure>
[2020-09-22T18:35:22.955Z]       <error message="Step the &#34;metricbeat&#34; process is in the &#34;started&#34; state on the host" type="skipped"></error>
[2020-09-22T18:35:22.955Z]     </testcase>
[2020-09-22T18:35:22.955Z]     <testcase name="Stopping the centos agent stops backend processes" status="passed" time="11.610117036"></testcase>
[2020-09-22T18:35:22.955Z]     <testcase name="Stopping the debian agent stops backend processes" status="passed" time="14.525079816"></testcase>
[2020-09-22T18:35:22.955Z]     <testcase name="Restarting the centos host with persistent agent restarts backend processes" status="failed" time="263.746416852">
[2020-09-22T18:35:22.955Z]       <failure message="Step the &#34;filebeat&#34; process is in the &#34;started&#34; state on the host: filebeat process is not running in the container yet"></failure>
[2020-09-22T18:35:22.955Z]       <error message="Step the &#34;metricbeat&#34; process is in the &#34;started&#34; state on the host" type="skipped"></error>
[2020-09-22T18:35:22.955Z]     </testcase>
[2020-09-22T18:35:22.955Z]     <testcase name="Restarting the debian host with persistent agent restarts backend processes" status="failed" time="252.088190417">
[2020-09-22T18:35:22.956Z]       <failure message="Step the &#34;filebeat&#34; process is in the &#34;started&#34; state on the host: filebeat process is not running in the container yet"></failure>
[2020-09-22T18:35:22.956Z]       <error message="Step the &#34;metricbeat&#34; process is in the &#34;started&#34; state on the host" type="skipped"></error>
[2020-09-22T18:35:22.956Z]     </testcase>
[2020-09-22T18:35:22.956Z]     <testcase name="Un-enrolling the centos agent" status="passed" time="13.242746269"></testcase>
[2020-09-22T18:35:22.956Z]     <testcase name="Un-enrolling the debian agent" status="passed" time="14.288928112"></testcase>
[2020-09-22T18:35:22.956Z]     <testcase name="Re-enrolling the centos agent" status="passed" time="38.020234405"></testcase>
[2020-09-22T18:35:22.956Z]     <testcase name="Re-enrolling the debian agent" status="passed" time="28.296192391"></testcase>
[2020-09-22T18:35:22.956Z]     <testcase name="Revoking the enrollment token for the centos agent" status="passed" time="29.401187627"></testcase>
[2020-09-22T18:35:22.956Z]     <testcase name="Revoking the enrollment token for the debian agent" status="passed" time="23.367235214"></testcase>
[2020-09-22T18:35:22.956Z]   </testsuite>
[2020-09-22T18:35:22.956Z] </testsuites>make: *** [functional-test] Error 1
[2020-09-22T18:35:22.956Z] Makefile:45: recipe for target 'functional-test' failed
[2020-09-22T18:35:22.956Z] + echo 'ERROR: functional-test failed'
[2020-09-22T18:35:22.956Z] ERROR: functional-test failed
[2020-09-22T18:35:22.956Z] + exit_status=1
[2020-09-22T18:35:22.956Z] + sed -e 's/^[ \t]*//; s#>.*failed$#>#g' outputs/TEST-ingest-manager-fleet_mode
[2020-09-22T18:35:22.956Z] + grep -E '^<.*>$'
[2020-09-22T18:35:22.956Z] + exit 1
[2020-09-22T18:35:23.145Z] Recording test results
[2020-09-22T18:35:23.687Z] Archiving artifacts
[2020-09-22T18:35:23.861Z] Failed in branch ingest-manager_fleet_mode
[2020-09-22T18:35:25.437Z] Stage "Release" skipped due to earlier failure(s)
[2020-09-22T18:35:26.969Z] Running on worker-395930 in /var/lib/jenkins/workspace/e2e-tests_e2e-testing-mbp_PR-320
[2020-09-22T18:35:27.062Z] [INFO] getVaultSecret: Getting secrets
[2020-09-22T18:35:27.165Z] Masking supported pattern matches of $VAULT_ADDR or $VAULT_ROLE_ID or $VAULT_SECRET_ID
[2020-09-22T18:35:29.584Z] + chmod 755 generate-build-data.sh
[2020-09-22T18:35:29.584Z] + ./generate-build-data.sh https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/e2e-tests/e2e-testing-mbp/PR-320/ https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/e2e-tests/e2e-testing-mbp/PR-320/runs/1 FAILURE 2647087
[2020-09-22T18:35:29.584Z] INFO: curl https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/e2e-tests/e2e-testing-mbp/PR-320/runs/1/steps/?limit=10000 -o steps-info.json
[2020-09-22T18:35:39.021Z] INFO: curl https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/e2e-tests/e2e-testing-mbp/PR-320/runs/1/tests/?status=FAILED -o tests-errors.json
[2020-09-22T18:35:39.745Z] INFO: curl https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/e2e-tests/e2e-testing-mbp/PR-320/runs/1/log/ -o pipeline-log.txt

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