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

fix: "success" was removed from response #278

Merged
merged 4 commits into from
Sep 9, 2020

Conversation

mdelapenya
Copy link
Contributor

@mdelapenya mdelapenya commented Sep 9, 2020

What does this PR do?

It removes the only one check for the success response field, which was removed here: elastic/kibana#73223

Why is it important?

Code will fail with panic because the used conversion was not captured

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

The scenario using that field is tagged with the @endpoint-policy-check annotation

$ cd e2e/_suites/ingest-manager
$ OP_LOG_LEVEL=TRACE DEVELOPER_MODE=true godog -t "agent_endpoint_integration && endpoint-policy-check"

Related issues

@mdelapenya mdelapenya self-assigned this Sep 9, 2020
@mdelapenya mdelapenya requested a review from a team September 9, 2020 06:05
@mdelapenya mdelapenya added bug Something isn't working Team:Elastic-Agent Label for the Agent team labels Sep 9, 2020
@mdelapenya mdelapenya changed the title fix: "success" was remove from response fix: "success" was removed from response Sep 9, 2020
@elasticmachine
Copy link
Contributor

elasticmachine commented Sep 9, 2020

💔 Tests Failed

Pipeline View Test View Changes Artifacts preview

Expand to view the summary

Build stats

  • Build Cause: [Started by user Manuel de la Peña, Replayed #5]

  • Start Time: 2020-09-09T16:22:05.577+0000

  • Duration: 22 min 13 sec

Test stats 🧪

Test Results
Failed 3
Passed 67
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: 253.9426
    • Error Details: Step the "metricbeat" process is in the "started" state on the host
  • Name: Initializing / End-To-End Tests / ingest-manager_stand_alone_mode / Deploying a stand-alone agent – Stand-alone Agent

    • Age: 6
    • Duration: 182.48108
    • Error Details: Step there is new data in the index from agent: Not enough hits in the index yet. Current: 1, Desired: 50
  • Name: Initializing / End-To-End Tests / ingest-manager_fleet_mode / Restarting the centos host with persistent agent restarts backend processes – Fleet Mode Agent

    • Age: 6
    • Duration: 258.61557
    • 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:stand_alone_mode

    • Description:

    • Duration: 12 min 2 sec

    • Start Time: 2020-09-09T16:27:43.068+0000

    • log

  • Name: Error signal

    • Description:

    • Duration: 0 min 0 sec

    • Start Time: 2020-09-09T16:39:44.834+0000

    • log

  • Name: General Build Step

    • Description: [2020-09-09T16:39:45.344Z] Archiving artifacts
      hudson.AbortException: script returned exit code 1

    • Duration: 0 min 0 sec

    • Start Time: 2020-09-09T16:39:45.338+0000

    • log

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

    • Description:

    • Duration: 17 min 32 sec

    • Start Time: 2020-09-09T16:27:43.573+0000

    • log

  • Name: Error signal

    • Description:

    • Duration: 0 min 0 sec

    • Start Time: 2020-09-09T16:44:15.366+0000

    • log

  • Name: General Build Step

    • Description: [2020-09-09T16:44:15.981Z] Archiving artifacts
      hudson.AbortException: script returned exit code 1

    • Duration: 0 min 0 sec

    • Start Time: 2020-09-09T16:44:15.970+0000

    • log

Log output

Expand to view the last 100 lines of log output

[2020-09-09T16:43:50.828Z] 2020-09-09T16:43:50.720Z	DEBUG	kibana/client.go:170	Request method: POST, path: /api/ingest_manager/fleet/agents/enroll
[2020-09-09T16:43:51.409Z] Successfully enrolled the Elastic Agent.
[2020-09-09T16:43:51.673Z] Elastic Agent might not be running; unable to trigger restart
[2020-09-09T16:43:51.673Z] time="2020-09-09T16:43:51Z" level=debug msg="Docker compose executed." cmd="[exec -T debian-systemd elastic-agent enroll http://kibana:5601 TXl6QWMzUUJrd3BrQUQzVWZkbEQ6a3d6Nmg2VkFUODJKX0FjMVRPMVBmZw== -f --insecure]" composeFilePaths="[/var/lib/jenkins/workspace/e2e-tests_e2e-testing-mbp_PR-278/.op/compose/profiles/ingest-manager/docker-compose.yml /var/lib/jenkins/workspace/e2e-tests_e2e-testing-mbp_PR-278/.op/compose/services/debian-systemd/docker-compose.yml]" env="map[centos_systemdAgentBinarySrcPath:/tmp/elastic-agent-8.0.0-SNAPSHOT-x86_64.rpm719761533 centos_systemdAgentBinaryTargetPath:/elastic-agent-8.0.0-SNAPSHOT-linux-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.deb261738936 debian_systemdAgentBinaryTargetPath:/elastic-agent-8.0.0-SNAPSHOT-linux-amd64.deb debian_systemdContainerName:ingest-manager_debian-systemd_elastic-agent_1 debian_systemdTag:stretch kibanaConfigPath:/var/lib/jenkins/workspace/e2e-tests_e2e-testing-mbp_PR-278/src/github.com/elastic/e2e-testing/e2e/_suites/ingest-manager/configurations/kibana.config.yml stackVersion:8.0.0-SNAPSHOT]" profile=ingest-manager
[2020-09-09T16:43:52.635Z] time="2020-09-09T16:43:52Z" level=debug msg="Docker compose executed." cmd="[exec -T debian-systemd systemctl start elastic-agent]" composeFilePaths="[/var/lib/jenkins/workspace/e2e-tests_e2e-testing-mbp_PR-278/.op/compose/profiles/ingest-manager/docker-compose.yml /var/lib/jenkins/workspace/e2e-tests_e2e-testing-mbp_PR-278/.op/compose/services/debian-systemd/docker-compose.yml]" env="map[centos_systemdAgentBinarySrcPath:/tmp/elastic-agent-8.0.0-SNAPSHOT-x86_64.rpm719761533 centos_systemdAgentBinaryTargetPath:/elastic-agent-8.0.0-SNAPSHOT-linux-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.deb261738936 debian_systemdAgentBinaryTargetPath:/elastic-agent-8.0.0-SNAPSHOT-linux-amd64.deb debian_systemdContainerName:ingest-manager_debian-systemd_elastic-agent_1 debian_systemdTag:stretch kibanaConfigPath:/var/lib/jenkins/workspace/e2e-tests_e2e-testing-mbp_PR-278/src/github.com/elastic/e2e-testing/e2e/_suites/ingest-manager/configurations/kibana.config.yml stackVersion:8.0.0-SNAPSHOT]" profile=ingest-manager
[2020-09-09T16:43:53.589Z] time="2020-09-09T16:43:53Z" level=debug msg="Token was revoked" token="TXl6QWMzUUJrd3BrQUQzVWZkbEQ6a3d6Nmg2VkFUODJKX0FjMVRPMVBmZw==" tokenID=f06dfbca-c0bf-4187-8d59-ef1065cc0306
[2020-09-09T16:43:54.570Z] ingest-manager_package-registry_1 is up-to-date
[2020-09-09T16:43:54.571Z] ingest-manager_elasticsearch_1 is up-to-date
[2020-09-09T16:43:54.571Z] Recreating ingest-manager_debian-systemd_elastic-agent_1 ... 
[2020-09-09T16:43:54.571Z] ingest-manager_kibana_1 is up-to-date
[2020-09-09T16:43:56.541Z] 
Recreating ingest-manager_debian-systemd_elastic-agent_1 ... done
time="2020-09-09T16:43:56Z" level=debug msg="Docker compose executed." cmd="[up -d]" composeFilePaths="[/var/lib/jenkins/workspace/e2e-tests_e2e-testing-mbp_PR-278/.op/compose/profiles/ingest-manager/docker-compose.yml /var/lib/jenkins/workspace/e2e-tests_e2e-testing-mbp_PR-278/.op/compose/services/debian-systemd/docker-compose.yml]" env="map[centos_systemdAgentBinarySrcPath:/tmp/elastic-agent-8.0.0-SNAPSHOT-x86_64.rpm719761533 centos_systemdAgentBinaryTargetPath:/elastic-agent-8.0.0-SNAPSHOT-linux-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.deb261738936 debian_systemdAgentBinaryTargetPath:/elastic-agent-8.0.0-SNAPSHOT-linux-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-278/src/github.com/elastic/e2e-testing/e2e/_suites/ingest-manager/configurations/kibana.config.yml stackVersion:8.0.0-SNAPSHOT]" profile=ingest-manager
[2020-09-09T16:43:57.498Z] 
[2020-09-09T16:43:57.498Z] WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
[2020-09-09T16:43:57.498Z] 
[2020-09-09T16:43:57.498Z] Reading package lists...
[2020-09-09T16:43:57.498Z] Building dependency tree...
[2020-09-09T16:43:57.498Z] Reading state information...
[2020-09-09T16:43:57.498Z] The following NEW packages will be installed:
[2020-09-09T16:43:57.498Z]   elastic-agent
[2020-09-09T16:44:00.080Z] 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
[2020-09-09T16:44:00.080Z] Need to get 0 B/110 MB of archives.
[2020-09-09T16:44:00.080Z] After this operation, 130 MB of additional disk space will be used.
[2020-09-09T16:44:00.080Z] Get:1 /elastic-agent-8.0.0-SNAPSHOT-linux-amd64.deb elastic-agent amd64 8.0.0 [110 MB]
[2020-09-09T16:44:00.080Z] debconf: delaying package configuration, since apt-utils is not installed
[2020-09-09T16:44:00.080Z] Selecting previously unselected package elastic-agent.
[2020-09-09T16:44:00.080Z] (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-09T16:44:00.080Z] Preparing to unpack .../elastic-agent-8.0.0-SNAPSHOT-linux-amd64.deb ...
[2020-09-09T16:44:00.080Z] Unpacking elastic-agent (8.0.0) ...
[2020-09-09T16:44:01.514Z] Setting up elastic-agent (8.0.0) ...
[2020-09-09T16:44:01.514Z] Processing triggers for systemd (232-25+deb9u12) ...
[2020-09-09T16:44:01.514Z] time="2020-09-09T16:44:01Z" level=debug msg="Docker compose executed." cmd="[exec -T debian-systemd apt install /elastic-agent-8.0.0-SNAPSHOT-linux-amd64.deb -y]" composeFilePaths="[/var/lib/jenkins/workspace/e2e-tests_e2e-testing-mbp_PR-278/.op/compose/profiles/ingest-manager/docker-compose.yml /var/lib/jenkins/workspace/e2e-tests_e2e-testing-mbp_PR-278/.op/compose/services/debian-systemd/docker-compose.yml]" env="map[centos_systemdAgentBinarySrcPath:/tmp/elastic-agent-8.0.0-SNAPSHOT-x86_64.rpm719761533 centos_systemdAgentBinaryTargetPath:/elastic-agent-8.0.0-SNAPSHOT-linux-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.deb261738936 debian_systemdAgentBinaryTargetPath:/elastic-agent-8.0.0-SNAPSHOT-linux-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-278/src/github.com/elastic/e2e-testing/e2e/_suites/ingest-manager/configurations/kibana.config.yml stackVersion:8.0.0-SNAPSHOT]" profile=ingest-manager
[2020-09-09T16:44:02.512Z] Synchronizing state of elastic-agent.service with SysV service script with /lib/systemd/systemd-sysv-install.
[2020-09-09T16:44:02.512Z] Executing: /lib/systemd/systemd-sysv-install enable elastic-agent
[2020-09-09T16:44:03.093Z] time="2020-09-09T16:44:02Z" 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-278/.op/compose/profiles/ingest-manager/docker-compose.yml /var/lib/jenkins/workspace/e2e-tests_e2e-testing-mbp_PR-278/.op/compose/services/debian-systemd/docker-compose.yml]" env="map[centos_systemdAgentBinarySrcPath:/tmp/elastic-agent-8.0.0-SNAPSHOT-x86_64.rpm719761533 centos_systemdAgentBinaryTargetPath:/elastic-agent-8.0.0-SNAPSHOT-linux-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.deb261738936 debian_systemdAgentBinaryTargetPath:/elastic-agent-8.0.0-SNAPSHOT-linux-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-278/src/github.com/elastic/e2e-testing/e2e/_suites/ingest-manager/configurations/kibana.config.yml stackVersion:8.0.0-SNAPSHOT]" profile=ingest-manager
[2020-09-09T16:44:04.054Z] The Elastic Agent is currently in BETA and should not be used in production
[2020-09-09T16:44:04.055Z] 2020-09-09T16:44:04.033Z	DEBUG	kibana/client.go:170	Request method: POST, path: /api/ingest_manager/fleet/agents/enroll
[2020-09-09T16:44:04.316Z] 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="ApiKey" & 1="Basic realm=\"security\" charset=\"UTF-8\"" } } }
[2020-09-09T16:44:04.317Z] time="2020-09-09T16:44:04Z" level=error msg="Could not execute command in container" command="[elastic-agent enroll http://kibana:5601 TXl6QWMzUUJrd3BrQUQzVWZkbEQ6a3d6Nmg2VkFUODJKX0FjMVRPMVBmZw== -f --insecure]" error="Could not run compose file: [/var/lib/jenkins/workspace/e2e-tests_e2e-testing-mbp_PR-278/.op/compose/profiles/ingest-manager/docker-compose.yml /var/lib/jenkins/workspace/e2e-tests_e2e-testing-mbp_PR-278/.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 TXl6QWMzUUJrd3BrQUQzVWZkbEQ6a3d6Nmg2VkFUODJKX0FjMVRPMVBmZw== -f --insecure]. exit status 1" service=debian-systemd
[2020-09-09T16:44:04.317Z] time="2020-09-09T16:44:04Z" level=error msg="Could not enroll the agent with the token" command="[elastic-agent enroll http://kibana:5601 TXl6QWMzUUJrd3BrQUQzVWZkbEQ6a3d6Nmg2VkFUODJKX0FjMVRPMVBmZw== -f --insecure]" error="Could not run compose file: [/var/lib/jenkins/workspace/e2e-tests_e2e-testing-mbp_PR-278/.op/compose/profiles/ingest-manager/docker-compose.yml /var/lib/jenkins/workspace/e2e-tests_e2e-testing-mbp_PR-278/.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 TXl6QWMzUUJrd3BrQUQzVWZkbEQ6a3d6Nmg2VkFUODJKX0FjMVRPMVBmZw== -f --insecure]. exit status 1" image=debian-systemd service=debian-systemd tag=stretch token="TXl6QWMzUUJrd3BrQUQzVWZkbEQ6a3d6Nmg2VkFUODJKX0FjMVRPMVBmZw=="
[2020-09-09T16:44:04.317Z] time="2020-09-09T16:44:04Z" 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-278/.op/compose/profiles/ingest-manager/docker-compose.yml /var/lib/jenkins/workspace/e2e-tests_e2e-testing-mbp_PR-278/.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 TXl6QWMzUUJrd3BrQUQzVWZkbEQ6a3d6Nmg2VkFUODJKX0FjMVRPMVBmZw== -f --insecure]. exit status 1" token="TXl6QWMzUUJrd3BrQUQzVWZkbEQ6a3d6Nmg2VkFUODJKX0FjMVRPMVBmZw=="
[2020-09-09T16:44:04.317Z] time="2020-09-09T16:44:04Z" level=debug msg="Un-enrolling agent in Fleet" agentID=837a8cab-305f-4782-8f02-61dc638ecc3d hostname=bbee03228084
[2020-09-09T16:44:05.713Z] time="2020-09-09T16:44:05Z" level=debug msg="Fleet agent was unenrolled" agentID=837a8cab-305f-4782-8f02-61dc638ecc3d
[2020-09-09T16:44:06.301Z] Stopping ingest-manager_debian-systemd_debian-systemd_2 ... 
[2020-09-09T16:44:07.699Z] 
Stopping ingest-manager_debian-systemd_debian-systemd_2 ... done
Removing ingest-manager_debian-systemd_debian-systemd_2 ... 
[2020-09-09T16:44:07.699Z] 
Removing ingest-manager_debian-systemd_debian-systemd_2 ... done
Going to remove ingest-manager_debian-systemd_debian-systemd_2
[2020-09-09T16:44:07.699Z] time="2020-09-09T16:44:07Z" level=debug msg="Docker compose executed." cmd="[rm -fvs debian-systemd]" composeFilePaths="[/var/lib/jenkins/workspace/e2e-tests_e2e-testing-mbp_PR-278/.op/compose/profiles/ingest-manager/docker-compose.yml /var/lib/jenkins/workspace/e2e-tests_e2e-testing-mbp_PR-278/.op/compose/services/debian-systemd/docker-compose.yml]" env="map[centos_systemdAgentBinarySrcPath:/tmp/elastic-agent-8.0.0-SNAPSHOT-x86_64.rpm719761533 centos_systemdAgentBinaryTargetPath:/elastic-agent-8.0.0-SNAPSHOT-linux-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.deb261738936 debian_systemdAgentBinaryTargetPath:/elastic-agent-8.0.0-SNAPSHOT-linux-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-278/src/github.com/elastic/e2e-testing/e2e/_suites/ingest-manager/configurations/kibana.config.yml stackVersion:8.0.0-SNAPSHOT]" profile=ingest-manager
[2020-09-09T16:44:07.699Z] time="2020-09-09T16:44:07Z" level=debug msg="Service removed from compose" profile=ingest-manager service=debian-systemd
[2020-09-09T16:44:08.647Z] time="2020-09-09T16:44:08Z" level=info msg="Integration deleted from the configuration" integration= packageConfigId= policyID=e4f42ae0-f2b9-11ea-b6ca-8b136ceaef06 version=
[2020-09-09T16:44:08.647Z] time="2020-09-09T16:44:08Z" level=debug msg="Destroying ingest-manager runtime dependencies"
[2020-09-09T16:44:09.596Z] Stopping ingest-manager_kibana_1           ... 
[2020-09-09T16:44:09.596Z] Stopping ingest-manager_elasticsearch_1    ... 
[2020-09-09T16:44:09.596Z] Stopping ingest-manager_package-registry_1 ... 
[2020-09-09T16:44:15.046Z] 
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-09T16:44:15.047Z] Removing ingest-manager_elasticsearch_1    ... 
[2020-09-09T16:44:15.047Z] Removing ingest-manager_package-registry_1 ... 
[2020-09-09T16:44:15.047Z] 
Removing ingest-manager_package-registry_1 ... done

Removing ingest-manager_elasticsearch_1    ... done

Removing ingest-manager_kibana_1           ... done
Removing network ingest-manager_default
[2020-09-09T16:44:15.047Z] time="2020-09-09T16:44:15Z" level=debug msg="Docker compose executed." cmd="[down]" composeFilePaths="[/var/lib/jenkins/workspace/e2e-tests_e2e-testing-mbp_PR-278/.op/compose/profiles/ingest-manager/docker-compose.yml]" env="map[centos_systemdAgentBinarySrcPath:/tmp/elastic-agent-8.0.0-SNAPSHOT-x86_64.rpm719761533 centos_systemdAgentBinaryTargetPath:/elastic-agent-8.0.0-SNAPSHOT-linux-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.deb261738936 debian_systemdAgentBinaryTargetPath:/elastic-agent-8.0.0-SNAPSHOT-linux-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-278/src/github.com/elastic/e2e-testing/e2e/_suites/ingest-manager/configurations/kibana.config.yml stackVersion:8.0.0-SNAPSHOT]" profile=ingest-manager
[2020-09-09T16:44:15.309Z] time="2020-09-09T16:44:15Z" level=debug msg="Elastic Agent binary was removed." installer=debian-systemd path=/tmp/elastic-agent-8.0.0-SNAPSHOT-amd64.deb261738936
[2020-09-09T16:44:15.309Z] time="2020-09-09T16:44:15Z" level=debug msg="Elastic Agent binary was removed." installer=centos-systemd path=/tmp/elastic-agent-8.0.0-SNAPSHOT-x86_64.rpm719761533
[2020-09-09T16:44:15.309Z] <?xml version="1.0" encoding="UTF-8"?>
[2020-09-09T16:44:15.309Z] <testsuites name="main" tests="14" skipped="0" failures="1" errors="0" time="954.67388852">
[2020-09-09T16:44:15.309Z]   <testsuite name="Fleet Mode Agent" tests="14" skipped="0" failures="1" errors="0" time="747.00474015">
[2020-09-09T16:44:15.309Z]     <testcase name="Deploying the centos agent" status="passed" time="40.527843"></testcase>
[2020-09-09T16:44:15.309Z]     <testcase name="Deploying the debian agent" status="passed" time="49.151288461"></testcase>
[2020-09-09T16:44:15.309Z]     <testcase name="Starting the centos agent starts backend processes" status="passed" time="21.868076578"></testcase>
[2020-09-09T16:44:15.309Z]     <testcase name="Starting the debian agent starts backend processes" status="passed" time="20.078706435"></testcase>
[2020-09-09T16:44:15.309Z]     <testcase name="Stopping the centos agent stops backend processes" status="passed" time="13.222950803"></testcase>
[2020-09-09T16:44:15.309Z]     <testcase name="Stopping the debian agent stops backend processes" status="passed" time="12.32664806"></testcase>
[2020-09-09T16:44:15.309Z]     <testcase name="Restarting the centos host with persistent agent restarts backend processes" status="failed" time="258.615575739">
[2020-09-09T16:44:15.309Z]       <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-09T16:44:15.309Z]       <error message="Step the &#34;metricbeat&#34; process is in the &#34;started&#34; state on the host" type="skipped"></error>
[2020-09-09T16:44:15.309Z]     </testcase>
[2020-09-09T16:44:15.309Z]     <testcase name="Restarting the debian host with persistent agent restarts backend processes" status="passed" time="21.519000317"></testcase>
[2020-09-09T16:44:15.309Z]     <testcase name="Un-enrolling the centos agent" status="passed" time="13.399374827"></testcase>
[2020-09-09T16:44:15.309Z]     <testcase name="Un-enrolling the debian agent" status="passed" time="14.391494933"></testcase>
[2020-09-09T16:44:15.309Z]     <testcase name="Re-enrolling the centos agent" status="passed" time="48.071624059"></testcase>
[2020-09-09T16:44:15.309Z]     <testcase name="Re-enrolling the debian agent" status="passed" time="44.222890825"></testcase>
[2020-09-09T16:44:15.309Z]     <testcase name="Revoking the enrollment token for the centos agent" status="passed" time="32.748943682"></testcase>
[2020-09-09T16:44:15.309Z]     <testcase name="Revoking the enrollment token for the debian agent" status="passed" time="23.846351884"></testcase>
[2020-09-09T16:44:15.309Z]   </testsuite>
[2020-09-09T16:44:15.309Z] </testsuites>make: *** [functional-test] Error 1
[2020-09-09T16:44:15.309Z] Makefile:45: recipe for target 'functional-test' failed
[2020-09-09T16:44:15.309Z] + echo 'ERROR: functional-test failed'
[2020-09-09T16:44:15.309Z] ERROR: functional-test failed
[2020-09-09T16:44:15.309Z] + exit_status=1
[2020-09-09T16:44:15.309Z] + sed -e 's/^[ \t]*//; s#>.*failed$#>#g' outputs/TEST-ingest-manager-fleet_mode
[2020-09-09T16:44:15.309Z] + grep -E '^<.*>$'
[2020-09-09T16:44:15.309Z] + exit 1
[2020-09-09T16:44:15.380Z] Recording test results
[2020-09-09T16:44:15.981Z] Archiving artifacts
[2020-09-09T16:44:16.165Z] Failed in branch ingest-manager_fleet_mode
[2020-09-09T16:44:17.211Z] Stage "Release" skipped due to earlier failure(s)
[2020-09-09T16:44:17.515Z] Running on worker-395930 in /var/lib/jenkins/workspace/e2e-tests_e2e-testing-mbp_PR-278
[2020-09-09T16:44:17.563Z] [INFO] getVaultSecret: Getting secrets
[2020-09-09T16:44:17.632Z] Masking supported pattern matches of $VAULT_ADDR or $VAULT_ROLE_ID or $VAULT_SECRET_ID
[2020-09-09T16:44:19.512Z] + chmod 755 generate-build-data.sh
[2020-09-09T16:44:19.512Z] + ./generate-build-data.sh https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/e2e-tests/e2e-testing-mbp/PR-278/ https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/e2e-tests/e2e-testing-mbp/PR-278/runs/6 FAILURE 1332533
[2020-09-09T16:44:19.512Z] INFO: curl https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/e2e-tests/e2e-testing-mbp/PR-278/runs/6/steps/?limit=10000 -o steps-info.json
[2020-09-09T16:44:25.908Z] INFO: curl https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/e2e-tests/e2e-testing-mbp/PR-278/runs/6/tests/?status=FAILED -o tests-errors.json
[2020-09-09T16:44:26.609Z] INFO: curl https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/e2e-tests/e2e-testing-mbp/PR-278/runs/6/log/ -o pipeline-log.txt

@mdelapenya mdelapenya marked this pull request as ready for review September 9, 2020 15:37
@mdelapenya
Copy link
Contributor Author

Failed test are not related to this change, and we are aware of the stand-alone ones here: elastic/beats#20992

Merging

@mdelapenya mdelapenya merged commit 85231d2 into elastic:master Sep 9, 2020
@mdelapenya
Copy link
Contributor Author

We do not need backport to 7.9.x because of elastic/kibana#73223 (comment)

@mdelapenya mdelapenya deleted the fix-enpdoint-integration branch September 10, 2020 18:02
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working skip_backport Team:Elastic-Agent Label for the Agent team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants