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

fix: use observabilty CI namespace for the elastic-agent image #353

Merged
merged 1 commit into from
Oct 7, 2020

Conversation

mdelapenya
Copy link
Contributor

@mdelapenya mdelapenya commented Oct 7, 2020

We should check if we want to always use the 'observability-ci' namespace, even for the maintenance branches. For that we will need to publish there the released artifacts too. Thoughts?

What does this PR do?

It uses the observability-ci namespace in the Docker registry for the elastic-agent

Why is it important?

Otherwise, PRs won't fetch the snapshots generated by the CI

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 Oct 7, 2020
@mdelapenya mdelapenya requested a review from a team October 7, 2020 10:38
@mdelapenya mdelapenya marked this pull request as ready for review October 7, 2020 10:39
@elasticmachine
Copy link
Contributor

💔 Tests Failed

Pipeline View Test View Changes Artifacts preview

Expand to view the summary

Build stats

  • Build Cause: [Pull request #353 opened]

  • Start Time: 2020-10-07T10:38:54.811+0000

  • Duration: 36 min 10 sec

Test stats 🧪

Test Results
Failed 19
Passed 54
Skipped 12
Total 85

Test errors 19

Expand to view the tests failures

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

    • Age: 1
    • Duration: 188.85516
    • 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 ubi8 agent starts backend processes – Stand-alone Agent

    • Age: 1
    • Duration: 1.1288947
    • Error Details: Step the "filebeat" process is in the "started" state on the host
  • Name: Initializing / End-To-End Tests / ingest-manager_stand_alone_mode / Deploying a default stand-alone agent – Stand-alone Agent

    • Age: 1
    • Duration: 179.8095
    • 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 / Deploying a ubi8 stand-alone agent – Stand-alone Agent

    • Age: 1
    • Duration: 1.4427534
    • Error Details: Step there is new data in the index from agent
  • Name: Initializing / End-To-End Tests / ingest-manager_stand_alone_mode / Stopping the default agent container stops data going into ES – Stand-alone Agent

    • Age: 1
    • Duration: 32.36923
    • 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]
  • Name: Initializing / End-To-End Tests / ingest-manager_stand_alone_mode / Stopping the ubi8 agent container stops data going into ES – Stand-alone Agent

    • Age: 1
    • Duration: 1.1208165
    • Error Details: Step the "elastic-agent" docker container is stopped
  • 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: 192.3376
    • Error Details: Step the "Elastic Endpoint Security" integration is "added" in the policy
  • 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: 190.41374
    • Error Details: Step the policy response will be shown in the Security App
  • Name: Initializing / End-To-End Tests / ingest-manager_agent_endpoint_integration / Changing an Agent policy is reflected in the Security App – Agent Endpoint Integration

    • Age: 1
    • Duration: 190.42648
    • Error Details: Step the policy is updated to have "malware" in "detect" mode
  • Name: Initializing / End-To-End Tests / ingest-manager_agent_endpoint_integration / Un-enrolling Elastic Agent stops Elastic Endpoint – Agent Endpoint Integration

    • Age: 1
    • Duration: 188.518
    • Error Details: Step the agent is un-enrolled
  • Name: Initializing / End-To-End Tests / ingest-manager_agent_endpoint_integration / Removing Endpoint from Agent policy stops the connected Endpoint – Agent Endpoint Integration

    • Age: 1
    • Duration: 184.15785
    • Error Details: Step the "Elastic Endpoint Security" integration is "removed" in the policy
  • Name: Initializing / End-To-End Tests / ingest-manager_fleet_mode / Deploying the centos agent – Fleet Mode Agent

    • Age: 1
    • Duration: 194.92279
    • Error Details: Step the "filebeat" process is in the "started" state on the host
  • Name: Initializing / End-To-End Tests / ingest-manager_fleet_mode / Deploying the debian agent – Fleet Mode Agent

    • Age: 1
    • Duration: 193.21118
    • Error Details: Step the "filebeat" 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: 198.82242
    • Error Details: Step the "filebeat" 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: 189.6586
    • Error Details: Step the "filebeat" process is in the "started" state on the host
  • Name: Initializing / End-To-End Tests / ingest-manager_fleet_mode / Un-enrolling the centos agent – Fleet Mode Agent

    • Age: 1
    • Duration: 188.90164
    • Error Details: Step the agent is listed in Fleet as "inactive"
  • Name: Initializing / End-To-End Tests / ingest-manager_fleet_mode / Un-enrolling the debian agent – Fleet Mode Agent

    • Age: 1
    • Duration: 191.65186
    • Error Details: Step the agent is listed in Fleet as "inactive"
  • Name: Initializing / End-To-End Tests / ingest-manager_fleet_mode / Re-enrolling the centos agent – Fleet Mode Agent

    • Age: 1
    • Duration: 15.952063
    • Error Details: Step the agent is listed in Fleet as "online"
  • Name: Initializing / End-To-End Tests / ingest-manager_fleet_mode / Re-enrolling the debian agent – Fleet Mode Agent

    • Age: 1
    • Duration: 18.04221
    • Error Details: Step the agent is listed in Fleet as "online"

Steps errors 9

Expand to view the steps failures

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

    • Description:

    • Duration: 21 min 32 sec

    • Start Time: 2020-10-07T10:47:04.924+0000

    • log

  • Name: Error signal

    • Description:

    • Duration: 0 min 0 sec

    • Start Time: 2020-10-07T11:07:36.976+0000

    • log

  • Name: General Build Step

    • Description: [2020-10-07T11:07:37.501Z] Archiving artifacts
      hudson.AbortException: script returned exit code 1

    • Duration: 0 min 0 sec

    • Start Time: 2020-10-07T11:07:37.489+0000

    • log

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

    • Description:

    • Duration: 10 min 8 sec

    • Start Time: 2020-10-07T10:47:05.744+0000

    • log

  • Name: Error signal

    • Description:

    • Duration: 0 min 0 sec

    • Start Time: 2020-10-07T10:57:13.608+0000

    • log

  • Name: General Build Step

    • Description: [2020-10-07T10:57:14.220Z] Archiving artifacts
      hudson.AbortException: script returned exit code 1

    • Duration: 0 min 0 sec

    • Start Time: 2020-10-07T10:57:14.204+0000

    • log

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

    • Description:

    • Duration: 28 min 1 sec

    • Start Time: 2020-10-07T10:46:59.313+0000

    • log

  • Name: Error signal

    • Description:

    • Duration: 0 min 0 sec

    • Start Time: 2020-10-07T11:15:00.139+0000

    • log

  • Name: General Build Step

    • Description: [2020-10-07T11:15:00.694Z] Archiving artifacts
      hudson.AbortException: script returned exit code 1

    • Duration: 0 min 0 sec

    • Start Time: 2020-10-07T11:15:00.680+0000

    • log

Log output

Expand to view the last 100 lines of log output

[2020-10-07T11:14:47.390Z] Executing: /lib/systemd/systemd-sysv-install enable elastic-agent
[2020-10-07T11:14:47.390Z] time="2020-10-07T11:14:47Z" 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-353/.op/compose/profiles/ingest-manager/docker-compose.yml /var/lib/jenkins/workspace/e2e-tests_e2e-testing-mbp_PR-353/.op/compose/services/debian-systemd/docker-compose.yml]" env="map[centos_systemdAgentBinarySrcPath:/tmp/elastic-agent-8.0.0-SNAPSHOT-x86_64.rpm883819289 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.deb182397860 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-353/src/github.com/elastic/e2e-testing/e2e/_suites/ingest-manager/configurations/kibana.config.yml stackVersion:8.0.0-SNAPSHOT]" profile=ingest-manager
[2020-10-07T11:14:48.339Z] The Elastic Agent is currently in BETA and should not be used in production
[2020-10-07T11:14:48.339Z] 
[2020-10-07T11:14:49.283Z] 2020-10-07T11:14:49.093Z	DEBUG	kibana/client.go:170	Request method: POST, path: /api/ingest_manager/fleet/agents/enroll
[2020-10-07T11:14:49.283Z] 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-10-07T11:14:49.283Z] time="2020-10-07T11:14:49Z" level=error msg="Could not execute command in container" command="[elastic-agent enroll http://kibana:5601 dV83RkFuVUJiQUxNWUsxNEg1M0I6YWNqZGI3NlRRUE9SY0ZfOG9LVTRhQQ== -f --insecure]" error="Could not run compose file: [/var/lib/jenkins/workspace/e2e-tests_e2e-testing-mbp_PR-353/.op/compose/profiles/ingest-manager/docker-compose.yml /var/lib/jenkins/workspace/e2e-tests_e2e-testing-mbp_PR-353/.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 dV83RkFuVUJiQUxNWUsxNEg1M0I6YWNqZGI3NlRRUE9SY0ZfOG9LVTRhQQ== -f --insecure]. exit status 1" service=debian-systemd
[2020-10-07T11:14:49.283Z] time="2020-10-07T11:14:49Z" level=error msg="Could not enroll the agent with the token" command="[elastic-agent enroll http://kibana:5601 dV83RkFuVUJiQUxNWUsxNEg1M0I6YWNqZGI3NlRRUE9SY0ZfOG9LVTRhQQ== -f --insecure]" error="Could not run compose file: [/var/lib/jenkins/workspace/e2e-tests_e2e-testing-mbp_PR-353/.op/compose/profiles/ingest-manager/docker-compose.yml /var/lib/jenkins/workspace/e2e-tests_e2e-testing-mbp_PR-353/.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 dV83RkFuVUJiQUxNWUsxNEg1M0I6YWNqZGI3NlRRUE9SY0ZfOG9LVTRhQQ== -f --insecure]. exit status 1" image=debian-systemd service=debian-systemd tag=stretch token="dV83RkFuVUJiQUxNWUsxNEg1M0I6YWNqZGI3NlRRUE9SY0ZfOG9LVTRhQQ=="
[2020-10-07T11:14:49.283Z] time="2020-10-07T11:14:49Z" 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-353/.op/compose/profiles/ingest-manager/docker-compose.yml /var/lib/jenkins/workspace/e2e-tests_e2e-testing-mbp_PR-353/.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 dV83RkFuVUJiQUxNWUsxNEg1M0I6YWNqZGI3NlRRUE9SY0ZfOG9LVTRhQQ== -f --insecure]. exit status 1" token="dV83RkFuVUJiQUxNWUsxNEg1M0I6YWNqZGI3NlRRUE9SY0ZfOG9LVTRhQQ=="
[2020-10-07T11:14:49.283Z] time="2020-10-07T11:14:49Z" level=warning msg="Could not create command in container" command="[cat /etc/elastic-agent/.elastic-agent.active.commit]" container=94bbe91d5e4c detach=false error="Error response from daemon: No such container: 94bbe91d5e4c" tty=false
[2020-10-07T11:14:49.283Z] time="2020-10-07T11:14:49Z" level=error msg="Could not get agent hash in the container" containerName=94bbe91d5e4c error="Error response from daemon: No such container: 94bbe91d5e4c"
[2020-10-07T11:14:49.545Z] time="2020-10-07T11:14:49Z" level=debug msg="Un-enrolling agent in Fleet" agentID=4fdfb42b-5d72-447b-ae86-b1e2834540cf hostname=94bbe91d5e4c
[2020-10-07T11:14:49.809Z] time="2020-10-07T11:14:49Z" level=debug msg="Fleet agent was unenrolled" agentID=4fdfb42b-5d72-447b-ae86-b1e2834540cf
[2020-10-07T11:14:50.764Z] Stopping ingest-manager_debian-systemd_debian-systemd_2 ... 
[2020-10-07T11:14:51.713Z] 
Stopping ingest-manager_debian-systemd_debian-systemd_2 ... done
Removing ingest-manager_debian-systemd_debian-systemd_2 ... 
[2020-10-07T11:14:51.713Z] 
Removing ingest-manager_debian-systemd_debian-systemd_2 ... done
Going to remove ingest-manager_debian-systemd_debian-systemd_2
[2020-10-07T11:14:51.975Z] time="2020-10-07T11:14:51Z" level=debug msg="Docker compose executed." cmd="[rm -fvs debian-systemd]" composeFilePaths="[/var/lib/jenkins/workspace/e2e-tests_e2e-testing-mbp_PR-353/.op/compose/profiles/ingest-manager/docker-compose.yml /var/lib/jenkins/workspace/e2e-tests_e2e-testing-mbp_PR-353/.op/compose/services/debian-systemd/docker-compose.yml]" env="map[centos_systemdAgentBinarySrcPath:/tmp/elastic-agent-8.0.0-SNAPSHOT-x86_64.rpm883819289 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.deb182397860 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-353/src/github.com/elastic/e2e-testing/e2e/_suites/ingest-manager/configurations/kibana.config.yml stackVersion:8.0.0-SNAPSHOT]" profile=ingest-manager
[2020-10-07T11:14:51.975Z] time="2020-10-07T11:14:51Z" level=debug msg="Service removed from compose" profile=ingest-manager service=debian-systemd
[2020-10-07T11:14:51.975Z] time="2020-10-07T11:14:51Z" level=debug msg="The token was deleted" tokenID=eca0b2de-a40f-41cc-9f8b-9da2933a5c89
[2020-10-07T11:14:51.976Z] time="2020-10-07T11:14:51Z" level=info msg="Integration deleted from the configuration" integration= packageConfigId= policyID=40961d10-088e-11eb-a436-0fba398d069d version=
[2020-10-07T11:14:58.576Z] time="2020-10-07T11:14:57Z" level=debug msg="The policy was deleted" policyID=40961d10-088e-11eb-a436-0fba398d069d
[2020-10-07T11:14:58.576Z] time="2020-10-07T11:14:57Z" level=debug msg="Destroying ingest-manager runtime dependencies"
[2020-10-07T11:14:58.576Z] Stopping ingest-manager_kibana_1           ... 
[2020-10-07T11:14:58.576Z] Stopping ingest-manager_elasticsearch_1    ... 
[2020-10-07T11:14:58.576Z] Stopping ingest-manager_package-registry_1 ... 
[2020-10-07T11:14:59.730Z] 
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-10-07T11:14:59.730Z] Removing ingest-manager_elasticsearch_1    ... 
[2020-10-07T11:14:59.730Z] Removing ingest-manager_package-registry_1 ... 
[2020-10-07T11:14:59.730Z] 
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-10-07T11:14:59.992Z] time="2020-10-07T11:14:59Z" level=debug msg="Docker compose executed." cmd="[down]" composeFilePaths="[/var/lib/jenkins/workspace/e2e-tests_e2e-testing-mbp_PR-353/.op/compose/profiles/ingest-manager/docker-compose.yml]" env="map[centos_systemdAgentBinarySrcPath:/tmp/elastic-agent-8.0.0-SNAPSHOT-x86_64.rpm883819289 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.deb182397860 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-353/src/github.com/elastic/e2e-testing/e2e/_suites/ingest-manager/configurations/kibana.config.yml stackVersion:8.0.0-SNAPSHOT]" profile=ingest-manager
[2020-10-07T11:14:59.992Z] time="2020-10-07T11:14:59Z" level=debug msg="Elastic Agent binary was removed." installer=centos-systemd path=/tmp/elastic-agent-8.0.0-SNAPSHOT-x86_64.rpm883819289
[2020-10-07T11:14:59.992Z] time="2020-10-07T11:14:59Z" level=debug msg="Elastic Agent binary was removed." installer=debian-systemd path=/tmp/elastic-agent-8.0.0-SNAPSHOT-amd64.deb182397860
[2020-10-07T11:14:59.992Z] <?xml version="1.0" encoding="UTF-8"?>
[2020-10-07T11:14:59.992Z] <testsuites name="main" tests="12" skipped="0" failures="8" errors="0" time="1642.54464662">
[2020-10-07T11:14:59.992Z]   <testsuite name="Fleet Mode Agent" tests="12" skipped="0" failures="8" errors="0" time="1502.746706841">
[2020-10-07T11:14:59.992Z]     <testcase name="Deploying the centos agent" status="failed" time="194.922784625">
[2020-10-07T11:14:59.992Z]       <failure message="Step the &#34;elastic-agent&#34; process is in the &#34;started&#34; state on the host: elastic-agent process is not running in the container yet"></failure>
[2020-10-07T11:14:59.992Z]       <error message="Step the &#34;filebeat&#34; process is in the &#34;started&#34; state on the host" type="skipped"></error>
[2020-10-07T11:14:59.992Z]       <error message="Step the &#34;metricbeat&#34; process is in the &#34;started&#34; state on the host" type="skipped"></error>
[2020-10-07T11:14:59.992Z]       <error message="Step the agent is listed in Fleet as &#34;online&#34;" type="skipped"></error>
[2020-10-07T11:14:59.992Z]       <error message="Step system package dashboards are listed in Fleet" type="skipped"></error>
[2020-10-07T11:14:59.992Z]     </testcase>
[2020-10-07T11:14:59.992Z]     <testcase name="Deploying the debian agent" status="failed" time="193.211180574">
[2020-10-07T11:14:59.992Z]       <failure message="Step the &#34;elastic-agent&#34; process is in the &#34;started&#34; state on the host: elastic-agent process is not running in the container yet"></failure>
[2020-10-07T11:14:59.992Z]       <error message="Step the &#34;filebeat&#34; process is in the &#34;started&#34; state on the host" type="skipped"></error>
[2020-10-07T11:14:59.992Z]       <error message="Step the &#34;metricbeat&#34; process is in the &#34;started&#34; state on the host" type="skipped"></error>
[2020-10-07T11:14:59.992Z]       <error message="Step the agent is listed in Fleet as &#34;online&#34;" type="skipped"></error>
[2020-10-07T11:14:59.992Z]       <error message="Step system package dashboards are listed in Fleet" type="skipped"></error>
[2020-10-07T11:14:59.992Z]     </testcase>
[2020-10-07T11:14:59.992Z]     <testcase name="Stopping the centos agent stops backend processes" status="passed" time="11.137705725"></testcase>
[2020-10-07T11:14:59.992Z]     <testcase name="Stopping the debian agent stops backend processes" status="passed" time="12.116696531"></testcase>
[2020-10-07T11:14:59.992Z]     <testcase name="Restarting the centos host with persistent agent restarts backend processes" status="failed" time="198.82242454">
[2020-10-07T11:14:59.992Z]       <failure message="Step the &#34;elastic-agent&#34; process is in the &#34;started&#34; state on the host: elastic-agent process is not running in the container yet"></failure>
[2020-10-07T11:14:59.992Z]       <error message="Step the &#34;filebeat&#34; process is in the &#34;started&#34; state on the host" type="skipped"></error>
[2020-10-07T11:14:59.992Z]       <error message="Step the &#34;metricbeat&#34; process is in the &#34;started&#34; state on the host" type="skipped"></error>
[2020-10-07T11:14:59.992Z]     </testcase>
[2020-10-07T11:14:59.992Z]     <testcase name="Restarting the debian host with persistent agent restarts backend processes" status="failed" time="189.658606231">
[2020-10-07T11:14:59.993Z]       <failure message="Step the &#34;elastic-agent&#34; process is in the &#34;started&#34; state on the host: elastic-agent process is not running in the container yet"></failure>
[2020-10-07T11:14:59.993Z]       <error message="Step the &#34;filebeat&#34; process is in the &#34;started&#34; state on the host" type="skipped"></error>
[2020-10-07T11:14:59.993Z]       <error message="Step the &#34;metricbeat&#34; process is in the &#34;started&#34; state on the host" type="skipped"></error>
[2020-10-07T11:14:59.993Z]     </testcase>
[2020-10-07T11:14:59.993Z]     <testcase name="Un-enrolling the centos agent" status="failed" time="188.90164046">
[2020-10-07T11:14:59.993Z]       <failure message="Step the &#34;elastic-agent&#34; process is in the &#34;started&#34; state on the host: elastic-agent process is not running in the container yet"></failure>
[2020-10-07T11:14:59.993Z]       <error message="Step the agent is listed in Fleet as &#34;inactive&#34;" type="skipped"></error>
[2020-10-07T11:14:59.993Z]     </testcase>
[2020-10-07T11:14:59.993Z]     <testcase name="Un-enrolling the debian agent" status="failed" time="191.651852969">
[2020-10-07T11:14:59.993Z]       <failure message="Step the &#34;elastic-agent&#34; process is in the &#34;started&#34; state on the host: elastic-agent process is not running in the container yet"></failure>
[2020-10-07T11:14:59.993Z]       <error message="Step the agent is listed in Fleet as &#34;inactive&#34;" type="skipped"></error>
[2020-10-07T11:14:59.993Z]     </testcase>
[2020-10-07T11:14:59.993Z]     <testcase name="Re-enrolling the centos agent" status="failed" time="15.952062619">
[2020-10-07T11:14:59.993Z]       <failure message="Step the &#34;elastic-agent&#34; process is &#34;started&#34; on the host: Could not run compose file: [/var/lib/jenkins/workspace/e2e-tests_e2e-testing-mbp_PR-353/.op/compose/profiles/ingest-manager/docker-compose.yml /var/lib/jenkins/workspace/e2e-tests_e2e-testing-mbp_PR-353/.op/compose/services/centos-systemd/docker-compose.yml] - Local Docker compose exited abnormally whilst running docker-compose: [exec -T centos-systemd systemctl start elastic-agent]. exit status 1"></failure>
[2020-10-07T11:14:59.993Z]       <error message="Step the agent is listed in Fleet as &#34;online&#34;" type="skipped"></error>
[2020-10-07T11:14:59.993Z]     </testcase>
[2020-10-07T11:14:59.993Z]     <testcase name="Re-enrolling the debian agent" status="failed" time="18.042209598">
[2020-10-07T11:14:59.993Z]       <failure message="Step the &#34;elastic-agent&#34; process is &#34;started&#34; on the host: Could not run compose file: [/var/lib/jenkins/workspace/e2e-tests_e2e-testing-mbp_PR-353/.op/compose/profiles/ingest-manager/docker-compose.yml /var/lib/jenkins/workspace/e2e-tests_e2e-testing-mbp_PR-353/.op/compose/services/debian-systemd/docker-compose.yml] - Local Docker compose exited abnormally whilst running docker-compose: [exec -T debian-systemd systemctl start elastic-agent]. exit status 1"></failure>
[2020-10-07T11:14:59.993Z]       <error message="Step the agent is listed in Fleet as &#34;online&#34;" type="skipped"></error>
[2020-10-07T11:14:59.993Z]     </testcase>
[2020-10-07T11:14:59.993Z]     <testcase name="Revoking the enrollment token for the centos agent" status="passed" time="28.293054644"></testcase>
[2020-10-07T11:14:59.993Z]     <testcase name="Revoking the enrollment token for the debian agent" status="passed" time="21.475915573"></testcase>
[2020-10-07T11:14:59.993Z]   </testsuite>
[2020-10-07T11:14:59.993Z] </testsuites>make: *** [functional-test] Error 1
[2020-10-07T11:14:59.993Z] Makefile:46: recipe for target 'functional-test' failed
[2020-10-07T11:14:59.993Z] + echo 'ERROR: functional-test failed'
[2020-10-07T11:14:59.993Z] ERROR: functional-test failed
[2020-10-07T11:14:59.993Z] + exit_status=1
[2020-10-07T11:14:59.993Z] + sed -e 's/^[ \t]*//; s#>.*failed$#>#g' outputs/TEST-ingest-manager-fleet_mode
[2020-10-07T11:14:59.993Z] + grep -E '^<.*>$'
[2020-10-07T11:14:59.993Z] + exit 1
[2020-10-07T11:15:00.172Z] Recording test results
[2020-10-07T11:15:00.694Z] Archiving artifacts
[2020-10-07T11:15:00.859Z] Failed in branch ingest-manager_fleet_mode
[2020-10-07T11:15:02.531Z] Stage "Release" skipped due to earlier failure(s)
[2020-10-07T11:15:04.233Z] Running on worker-1244230 in /var/lib/jenkins/workspace/e2e-tests_e2e-testing-mbp_PR-353
[2020-10-07T11:15:04.309Z] [INFO] getVaultSecret: Getting secrets
[2020-10-07T11:15:04.374Z] Masking supported pattern matches of $VAULT_ADDR or $VAULT_ROLE_ID or $VAULT_SECRET_ID
[2020-10-07T11:15:06.565Z] + chmod 755 generate-build-data.sh
[2020-10-07T11:15:06.565Z] + ./generate-build-data.sh https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/e2e-tests/e2e-testing-mbp/PR-353/ https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/e2e-tests/e2e-testing-mbp/PR-353/runs/1 FAILURE 2170340
[2020-10-07T11:15:06.565Z] INFO: curl https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/e2e-tests/e2e-testing-mbp/PR-353/runs/1/steps/?limit=10000 -o steps-info.json
[2020-10-07T11:15:17.560Z] INFO: curl https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/e2e-tests/e2e-testing-mbp/PR-353/runs/1/tests/?status=FAILED -o tests-errors.json
[2020-10-07T11:15:18.320Z] INFO: curl https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/e2e-tests/e2e-testing-mbp/PR-353/runs/1/log/ -o pipeline-log.txt

@mdelapenya
Copy link
Contributor Author

I can see the agent was updated 1h ago. Merging

docker.elastic.co/observability-ci/elastic-agent - 8.0.0-SNAPSHOT - 82e3c0de8f66 - About an hour ago - 410MB

@mdelapenya mdelapenya merged commit 9353dc5 into elastic:master Oct 7, 2020
@mdelapenya mdelapenya deleted the fix-ci-builds branch October 8, 2020 08:24
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.

Use observability-ci namespace for the elastic-agent
2 participants