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

fix: calculate bucket path properly #318

Merged
merged 1 commit into from
Sep 22, 2020

Conversation

mdelapenya
Copy link
Contributor

What does this PR do?

It uses the agent base version (defined by the target branch) as file name of the cloud-bucket-stored artifact

Why is it important?

The calculation was wrong after a minor (==wrong) refactor

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)

Author's Checklist

  • Run the tests against an existing PR that generated the artifacts

How to test this PR locally

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

Related issues

@mdelapenya mdelapenya self-assigned this Sep 22, 2020
@mdelapenya mdelapenya requested a review from a team September 22, 2020 16:51
@mdelapenya mdelapenya marked this pull request as ready for review September 22, 2020 16:51
@mdelapenya mdelapenya merged commit 875f026 into elastic:master Sep 22, 2020
@mdelapenya mdelapenya deleted the fix-gcp-bucket branch September 22, 2020 16:58
Copy link
Contributor

@EricDavisX EricDavisX left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm;

mdelapenya added a commit to mdelapenya/e2e-testing that referenced this pull request Sep 22, 2020
# Conflicts:
#	e2e/_suites/ingest-manager/services.go
mdelapenya added a commit that referenced this pull request Sep 22, 2020
# Conflicts:
#	e2e/_suites/ingest-manager/services.go
@elasticmachine
Copy link
Contributor

💔 Tests Failed

Pipeline View Test View Changes Artifacts preview

Expand to view the summary

Build stats

  • Build Cause: [Pull request #318 opened]

  • Start Time: 2020-09-22T16:51:43.569+0000

  • Duration: 44 min 55 sec

Test stats 🧪

Test Results
Failed 11
Passed 59
Skipped 10
Total 80

Test errors

Expand to view the tests failures

  • 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: 281.2419
    • Error Details: Step the host name is shown in the Administration view in the Security App as "online": The host 7f5f57f7f8d0 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: 266.27292
    • 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: 272.70837
    • 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: 278.671
    • 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.73154
    • 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: 248.8029
    • 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: 256.89
    • 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: 253.21594
    • 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 / Starting the agent starts backend processes – Stand-alone Agent

    • Age: 1
    • Duration: 247.05325
    • 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: 1
    • Duration: 181.54991
    • Error Details: Step there is new data in the index from agent: Error getting response from Elasticsearch. Status: 404 Not Found, ResponseError: map[error:map[index:logs-elastic.agent-default index_uuid:na reason:no such index [logs-elastic.agent-default] resource.id:logs-elastic.agent-default resource.type:index_or_alias root_cause:[map[index:logs-elastic.agent-default index_uuid:na reason:no such index [logs-elastic.agent-default] resource.id:logs-elastic.agent-default resource.type:index_or_alias type:index_not_found_exception]] type:index_not_found_exception] status:404]
  • Name: Initializing / End-To-End Tests / ingest-manager_stand_alone_mode / Stopping the agent container stops data going into ES – Stand-alone Agent

    • Age: 1
    • Duration: 32.019077
    • Error Details: Step there is no new data in the index after agent shuts down: Error getting response from Elasticsearch. Status: 404 Not Found, ResponseError: map[error:map[index:logs-elastic.agent-default index_uuid:na reason:no such index [logs-elastic.agent-default] resource.id:logs-elastic.agent-default resource.type:index_or_alias root_cause:[map[index:logs-elastic.agent-default index_uuid:na reason:no such index [logs-elastic.agent-default] resource.id:logs-elastic.agent-default resource.type:index_or_alias type:index_not_found_exception]] type:index_not_found_exception] status:404]

Steps errors

Expand to view the steps failures

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

    • Description:

    • Duration: 18 min 34 sec

    • Start Time: 2020-09-22T16:57:29.652+0000

    • log

  • Name: Error signal

    • Description:

    • Duration: 0 min 0 sec

    • Start Time: 2020-09-22T17:15:04.063+0000

    • log

  • Name: General Build Step

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

    • Duration: 0 min 0 sec

    • Start Time: 2020-09-22T17:15:04.862+0000

    • log

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

    • Description:

    • Duration: 12 min 20 sec

    • Start Time: 2020-09-22T16:57:29.115+0000

    • log

  • Name: Error signal

    • Description:

    • Duration: 0 min 0 sec

    • Start Time: 2020-09-22T17:09:49.417+0000

    • log

  • Name: General Build Step

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

    • Duration: 0 min 0 sec

    • Start Time: 2020-09-22T17:09:50.014+0000

    • log

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

    • Description:

    • Duration: 38 min 3 sec

    • Start Time: 2020-09-22T16:57:30.257+0000

    • log

  • Name: Error signal

    • Description:

    • Duration: 0 min 0 sec

    • Start Time: 2020-09-22T17:35:33.166+0000

    • log

  • Name: General Build Step

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

    • Duration: 0 min 0 sec

    • Start Time: 2020-09-22T17:35:33.747+0000

    • log

Log output

Expand to view the last 100 lines of log output

[2020-09-22T17:35:07.902Z] Building dependency tree...
[2020-09-22T17:35:07.902Z] Reading state information...
[2020-09-22T17:35:07.902Z] The following NEW packages will be installed:
[2020-09-22T17:35:07.902Z]   elastic-agent
[2020-09-22T17:35:09.822Z] 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
[2020-09-22T17:35:09.822Z] Need to get 0 B/111 MB of archives.
[2020-09-22T17:35:09.822Z] After this operation, 134 MB of additional disk space will be used.
[2020-09-22T17:35:09.822Z] Get:1 /elastic-agent-8.0.0-SNAPSHOT-amd64.deb elastic-agent amd64 8.0.0 [111 MB]
[2020-09-22T17:35:10.087Z] debconf: delaying package configuration, since apt-utils is not installed
[2020-09-22T17:35:10.087Z] Selecting previously unselected package elastic-agent.
[2020-09-22T17:35:10.087Z] (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-22T17:35:10.087Z] Preparing to unpack .../elastic-agent-8.0.0-SNAPSHOT-amd64.deb ...
[2020-09-22T17:35:10.088Z] Unpacking elastic-agent (8.0.0) ...
[2020-09-22T17:35:11.042Z] Setting up elastic-agent (8.0.0) ...
[2020-09-22T17:35:11.042Z] Processing triggers for systemd (232-25+deb9u12) ...
[2020-09-22T17:35:11.311Z] time="2020-09-22T17:35:11Z" 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-318/.op/compose/profiles/ingest-manager/docker-compose.yml /var/lib/jenkins/workspace/e2e-tests_e2e-testing-mbp_PR-318/.op/compose/services/debian-systemd/docker-compose.yml]" env="map[centos_systemdAgentBinarySrcPath:/tmp/elastic-agent-8.0.0-SNAPSHOT-x86_64.rpm777570175 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.deb744264402 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-318/src/github.com/elastic/e2e-testing/e2e/_suites/ingest-manager/configurations/kibana.config.yml stackVersion:8.0.0-SNAPSHOT]" profile=ingest-manager
[2020-09-22T17:35:12.267Z] Synchronizing state of elastic-agent.service with SysV service script with /lib/systemd/systemd-sysv-install.
[2020-09-22T17:35:12.267Z] Executing: /lib/systemd/systemd-sysv-install enable elastic-agent
[2020-09-22T17:35:12.267Z] time="2020-09-22T17:35:12Z" 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-318/.op/compose/profiles/ingest-manager/docker-compose.yml /var/lib/jenkins/workspace/e2e-tests_e2e-testing-mbp_PR-318/.op/compose/services/debian-systemd/docker-compose.yml]" env="map[centos_systemdAgentBinarySrcPath:/tmp/elastic-agent-8.0.0-SNAPSHOT-x86_64.rpm777570175 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.deb744264402 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-318/src/github.com/elastic/e2e-testing/e2e/_suites/ingest-manager/configurations/kibana.config.yml stackVersion:8.0.0-SNAPSHOT]" profile=ingest-manager
[2020-09-22T17:35:13.222Z] The Elastic Agent is currently in BETA and should not be used in production
[2020-09-22T17:35:13.223Z] 2020-09-22T17:35:13.124Z	DEBUG	kibana/client.go:170	Request method: POST, path: /api/ingest_manager/fleet/agents/enroll
[2020-09-22T17:35:13.223Z] 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-22T17:35:13.486Z] time="2020-09-22T17:35:13Z" level=error msg="Could not execute command in container" command="[elastic-agent enroll http://kibana:5601 amV6aHRuUUJjMThSeFNYTi1jVXQ6eVh4c3FCUUxRSS1BX3ItY0tkd2JzQQ== -f --insecure]" error="Could not run compose file: [/var/lib/jenkins/workspace/e2e-tests_e2e-testing-mbp_PR-318/.op/compose/profiles/ingest-manager/docker-compose.yml /var/lib/jenkins/workspace/e2e-tests_e2e-testing-mbp_PR-318/.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 amV6aHRuUUJjMThSeFNYTi1jVXQ6eVh4c3FCUUxRSS1BX3ItY0tkd2JzQQ== -f --insecure]. exit status 1" service=debian-systemd
[2020-09-22T17:35:13.486Z] time="2020-09-22T17:35:13Z" level=error msg="Could not enroll the agent with the token" command="[elastic-agent enroll http://kibana:5601 amV6aHRuUUJjMThSeFNYTi1jVXQ6eVh4c3FCUUxRSS1BX3ItY0tkd2JzQQ== -f --insecure]" error="Could not run compose file: [/var/lib/jenkins/workspace/e2e-tests_e2e-testing-mbp_PR-318/.op/compose/profiles/ingest-manager/docker-compose.yml /var/lib/jenkins/workspace/e2e-tests_e2e-testing-mbp_PR-318/.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 amV6aHRuUUJjMThSeFNYTi1jVXQ6eVh4c3FCUUxRSS1BX3ItY0tkd2JzQQ== -f --insecure]. exit status 1" image=debian-systemd service=debian-systemd tag=stretch token="amV6aHRuUUJjMThSeFNYTi1jVXQ6eVh4c3FCUUxRSS1BX3ItY0tkd2JzQQ=="
[2020-09-22T17:35:13.486Z] time="2020-09-22T17:35:13Z" 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-318/.op/compose/profiles/ingest-manager/docker-compose.yml /var/lib/jenkins/workspace/e2e-tests_e2e-testing-mbp_PR-318/.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 amV6aHRuUUJjMThSeFNYTi1jVXQ6eVh4c3FCUUxRSS1BX3ItY0tkd2JzQQ== -f --insecure]. exit status 1" token="amV6aHRuUUJjMThSeFNYTi1jVXQ6eVh4c3FCUUxRSS1BX3ItY0tkd2JzQQ=="
[2020-09-22T17:35:13.486Z] time="2020-09-22T17:35:13Z" level=warning msg="Could not create command in container" command="[cat /etc/elastic-agent/.elastic-agent.active.commit]" container=822c4b884c14 detach=false error="Error response from daemon: No such container: 822c4b884c14" tty=false
[2020-09-22T17:35:13.486Z] time="2020-09-22T17:35:13Z" level=error msg="Could not get agent hash in the container" containerName=822c4b884c14 error="Error response from daemon: No such container: 822c4b884c14"
[2020-09-22T17:35:13.486Z] time="2020-09-22T17:35:13Z" level=debug msg="Un-enrolling agent in Fleet" agentID=f97703ba-84cd-4b09-8dd4-ebcb8af1b887 hostname=822c4b884c14
[2020-09-22T17:35:14.068Z] time="2020-09-22T17:35:13Z" level=debug msg="Fleet agent was unenrolled" agentID=f97703ba-84cd-4b09-8dd4-ebcb8af1b887
[2020-09-22T17:35:14.642Z] Stopping ingest-manager_debian-systemd_debian-systemd_2 ... 
[2020-09-22T17:35:16.053Z] 
Stopping ingest-manager_debian-systemd_debian-systemd_2 ... done
Removing ingest-manager_debian-systemd_debian-systemd_2 ... 
[2020-09-22T17:35:16.053Z] 
Removing ingest-manager_debian-systemd_debian-systemd_2 ... done
Going to remove ingest-manager_debian-systemd_debian-systemd_2
[2020-09-22T17:35:16.053Z] time="2020-09-22T17:35:15Z" level=debug msg="Docker compose executed." cmd="[rm -fvs debian-systemd]" composeFilePaths="[/var/lib/jenkins/workspace/e2e-tests_e2e-testing-mbp_PR-318/.op/compose/profiles/ingest-manager/docker-compose.yml /var/lib/jenkins/workspace/e2e-tests_e2e-testing-mbp_PR-318/.op/compose/services/debian-systemd/docker-compose.yml]" env="map[centos_systemdAgentBinarySrcPath:/tmp/elastic-agent-8.0.0-SNAPSHOT-x86_64.rpm777570175 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.deb744264402 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-318/src/github.com/elastic/e2e-testing/e2e/_suites/ingest-manager/configurations/kibana.config.yml stackVersion:8.0.0-SNAPSHOT]" profile=ingest-manager
[2020-09-22T17:35:16.053Z] time="2020-09-22T17:35:15Z" level=debug msg="Service removed from compose" profile=ingest-manager service=debian-systemd
[2020-09-22T17:35:16.053Z] time="2020-09-22T17:35:15Z" level=debug msg="The token was deleted" tokenID=4e8a3fcf-554e-4c6e-bed1-455744d35646
[2020-09-22T17:35:16.053Z] time="2020-09-22T17:35:15Z" level=info msg="Integration deleted from the configuration" integration= packageConfigId= policyID=e639b7e0-fcf9-11ea-b7a3-b1bf417b5062 version=
[2020-09-22T17:35:22.653Z] time="2020-09-22T17:35:21Z" level=debug msg="The policy was deleted" policyID=e639b7e0-fcf9-11ea-b7a3-b1bf417b5062
[2020-09-22T17:35:22.653Z] time="2020-09-22T17:35:21Z" level=debug msg="Destroying ingest-manager runtime dependencies"
[2020-09-22T17:35:22.914Z] Stopping ingest-manager_kibana_1           ... 
[2020-09-22T17:35:22.914Z] Stopping ingest-manager_elasticsearch_1    ... 
[2020-09-22T17:35:22.914Z] Stopping ingest-manager_package-registry_1 ... 
[2020-09-22T17:35:32.993Z] 
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-22T17:35:32.994Z] Removing ingest-manager_elasticsearch_1    ... 
[2020-09-22T17:35:32.994Z] Removing ingest-manager_package-registry_1 ... 
[2020-09-22T17:35:32.994Z] 
Removing ingest-manager_kibana_1           ... done

Removing ingest-manager_package-registry_1 ... done

Removing ingest-manager_elasticsearch_1    ... done
Removing network ingest-manager_default
[2020-09-22T17:35:32.994Z] time="2020-09-22T17:35:32Z" level=debug msg="Docker compose executed." cmd="[down]" composeFilePaths="[/var/lib/jenkins/workspace/e2e-tests_e2e-testing-mbp_PR-318/.op/compose/profiles/ingest-manager/docker-compose.yml]" env="map[centos_systemdAgentBinarySrcPath:/tmp/elastic-agent-8.0.0-SNAPSHOT-x86_64.rpm777570175 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.deb744264402 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-318/src/github.com/elastic/e2e-testing/e2e/_suites/ingest-manager/configurations/kibana.config.yml stackVersion:8.0.0-SNAPSHOT]" profile=ingest-manager
[2020-09-22T17:35:32.994Z] time="2020-09-22T17:35:32Z" level=debug msg="Elastic Agent binary was removed." installer=debian-systemd path=/tmp/elastic-agent-8.0.0-SNAPSHOT-amd64.deb744264402
[2020-09-22T17:35:32.994Z] time="2020-09-22T17:35:32Z" level=debug msg="Elastic Agent binary was removed." installer=centos-systemd path=/tmp/elastic-agent-8.0.0-SNAPSHOT-x86_64.rpm777570175
[2020-09-22T17:35:32.994Z] <?xml version="1.0" encoding="UTF-8"?>
[2020-09-22T17:35:32.994Z] <testsuites name="main" tests="14" skipped="0" failures="6" errors="0" time="2247.485433057">
[2020-09-22T17:35:32.994Z]   <testsuite name="Fleet Mode Agent" tests="14" skipped="0" failures="6" errors="0" time="2027.832473702">
[2020-09-22T17:35:32.994Z]     <testcase name="Deploying the centos agent" status="failed" time="272.708359178">
[2020-09-22T17:35:32.994Z]       <failure message="Step system package dashboards are listed in Fleet: There are no datastreams yet"></failure>
[2020-09-22T17:35:32.994Z]     </testcase>
[2020-09-22T17:35:32.994Z]     <testcase name="Deploying the debian agent" status="failed" time="278.670981354">
[2020-09-22T17:35:32.994Z]       <failure message="Step system package dashboards are listed in Fleet: There are no datastreams yet"></failure>
[2020-09-22T17:35:32.994Z]     </testcase>
[2020-09-22T17:35:32.994Z]     <testcase name="Starting the centos agent starts backend processes" status="failed" time="248.731543554">
[2020-09-22T17:35:32.994Z]       <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-22T17:35:32.994Z]       <error message="Step the &#34;metricbeat&#34; process is in the &#34;started&#34; state on the host" type="skipped"></error>
[2020-09-22T17:35:32.994Z]     </testcase>
[2020-09-22T17:35:32.994Z]     <testcase name="Starting the debian agent starts backend processes" status="failed" time="248.802906574">
[2020-09-22T17:35:32.994Z]       <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-22T17:35:32.994Z]       <error message="Step the &#34;metricbeat&#34; process is in the &#34;started&#34; state on the host" type="skipped"></error>
[2020-09-22T17:35:32.994Z]     </testcase>
[2020-09-22T17:35:32.994Z]     <testcase name="Stopping the centos agent stops backend processes" status="passed" time="12.291466401"></testcase>
[2020-09-22T17:35:32.994Z]     <testcase name="Stopping the debian agent stops backend processes" status="passed" time="15.609991426"></testcase>
[2020-09-22T17:35:32.994Z]     <testcase name="Restarting the centos host with persistent agent restarts backend processes" status="failed" time="256.89001384">
[2020-09-22T17:35:32.994Z]       <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-22T17:35:32.994Z]       <error message="Step the &#34;metricbeat&#34; process is in the &#34;started&#34; state on the host" type="skipped"></error>
[2020-09-22T17:35:32.994Z]     </testcase>
[2020-09-22T17:35:32.994Z]     <testcase name="Restarting the debian host with persistent agent restarts backend processes" status="failed" time="253.215947694">
[2020-09-22T17:35:32.994Z]       <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-22T17:35:32.994Z]       <error message="Step the &#34;metricbeat&#34; process is in the &#34;started&#34; state on the host" type="skipped"></error>
[2020-09-22T17:35:32.994Z]     </testcase>
[2020-09-22T17:35:32.994Z]     <testcase name="Un-enrolling the centos agent" status="passed" time="13.268116721"></testcase>
[2020-09-22T17:35:32.995Z]     <testcase name="Un-enrolling the debian agent" status="passed" time="15.309410095"></testcase>
[2020-09-22T17:35:32.995Z]     <testcase name="Re-enrolling the centos agent" status="passed" time="37.135670443"></testcase>
[2020-09-22T17:35:32.995Z]     <testcase name="Re-enrolling the debian agent" status="passed" time="29.12291581"></testcase>
[2020-09-22T17:35:32.995Z]     <testcase name="Revoking the enrollment token for the centos agent" status="passed" time="33.323730504"></testcase>
[2020-09-22T17:35:32.995Z]     <testcase name="Revoking the enrollment token for the debian agent" status="passed" time="24.421808806"></testcase>
[2020-09-22T17:35:32.995Z]   </testsuite>
[2020-09-22T17:35:32.995Z] </testsuites>make: *** [functional-test] Error 1
[2020-09-22T17:35:32.995Z] Makefile:45: recipe for target 'functional-test' failed
[2020-09-22T17:35:32.995Z] + echo 'ERROR: functional-test failed'
[2020-09-22T17:35:32.995Z] ERROR: functional-test failed
[2020-09-22T17:35:32.995Z] + exit_status=1
[2020-09-22T17:35:32.995Z] + sed -e 's/^[ \t]*//; s#>.*failed$#>#g' outputs/TEST-ingest-manager-fleet_mode
[2020-09-22T17:35:32.995Z] + grep -E '^<.*>$'
[2020-09-22T17:35:32.995Z] + exit 1
[2020-09-22T17:35:33.208Z] Recording test results
[2020-09-22T17:35:33.763Z] Archiving artifacts
[2020-09-22T17:35:33.939Z] Failed in branch ingest-manager_fleet_mode
[2020-09-22T17:35:35.522Z] Stage "Release" skipped due to earlier failure(s)
[2020-09-22T17:35:37.610Z] Running on worker-395930 in /var/lib/jenkins/workspace/e2e-tests_e2e-testing-mbp_PR-318
[2020-09-22T17:35:37.711Z] [INFO] getVaultSecret: Getting secrets
[2020-09-22T17:35:37.808Z] Masking supported pattern matches of $VAULT_ADDR or $VAULT_ROLE_ID or $VAULT_SECRET_ID
[2020-09-22T17:35:40.129Z] + chmod 755 generate-build-data.sh
[2020-09-22T17:35:40.129Z] + ./generate-build-data.sh https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/e2e-tests/e2e-testing-mbp/PR-318/ https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/e2e-tests/e2e-testing-mbp/PR-318/runs/1 FAILURE 2635096
[2020-09-22T17:35:40.129Z] INFO: curl https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/e2e-tests/e2e-testing-mbp/PR-318/runs/1/steps/?limit=10000 -o steps-info.json

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants