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

fix: make docker namespace configurable #560

Merged
merged 4 commits into from
Jan 6, 2021

Conversation

mdelapenya
Copy link
Contributor

@mdelapenya mdelapenya commented Jan 5, 2021

If the developer targets a CI snapshot, then it will use observavbility-ci,
otherwise beats will be the default

What does this PR do?

It makes the namespace of the docker image for the elastic-agent configurable, being it possible to set beats and observability-ci. The second one will be used for CI snapshots, setting the ELASTIC_AGENT_USE_CI_SNAPSHOTS env var.

Why is it important?

For Beats PRs targetting a maintenance branch (7.x, 7.10.x) the namespace in the E2E is beats, always, which is wrong, as the snapshots are published under the observvability-ci namespace. With this changes, the image will be located properly.

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

git checkout 7.x
SUITE="fleet" ELASTIC_AGENT_VERSION="pr-23142" \
    ELASTIC_AGENT_USE_CI_SNAPSHOTS=true TAGS="stand_alone_agent" DEVELOPER_MODE=true \ 
    TIMEOUT_FACTOR=3 LOG_LEVEL=TRACE \
    make -C e2e functional-test

Related issues

Logs

[2021-01-05T17:03:03.052Z] Pulling elastic-agent (docker.elastic.co/beats/elastic-agent:pr-23142)...
[2021-01-05T17:03:03.052Z] manifest for docker.elastic.co/beats/elastic-agent:pr-23142 not found: manifest unknown: manifest unknown
[2021-01-05T17:03:03.052Z] time="2021-01-05T17:03:02Z" level=error msg="Could not deploy the elastic-agent"

[2021-01-05T17:01:59.923Z] Pulling metricbeat (docker.elastic.co/beats/metricbeat:pr-23142)...
[2021-01-05T17:01:59.923Z] manifest for docker.elastic.co/beats/metricbeat:pr-23142 not found: manifest unknown: manifest unknown

Follow-ups

Backport to 7.x and 7.10.x

@mdelapenya mdelapenya self-assigned this Jan 5, 2021
@mdelapenya mdelapenya requested review from a team and jsoriano January 5, 2021 19:40
@elasticmachine
Copy link
Contributor

elasticmachine commented Jan 5, 2021

💔 Tests Failed

the below badges are clickable and redirect to their specific view in the CI or DOCS
Pipeline View Test View Changes Artifacts preview

Expand to view the summary

Build stats

  • Build Cause: Pull request #560 updated

  • Start Time: 2021-01-05T19:53:32.995+0000

  • Duration: 33 min 24 sec

Test stats 🧪

Test Results
Failed 7
Passed 76
Skipped 9
Total 92

Test errors 7

Expand to view the tests failures

Initializing / End-To-End Tests / fleet_agent_endpoint_integration / Un-enrolling Elastic Agent stops Elastic Endpoint – Agent Endpoint Integration
    Expand to view the error details

     Step the host name is not shown in the Administration view in the Security App 
    

  • no stacktrace
Initializing / End-To-End Tests / fleet_fleet_mode_agent / Un-enrolling the centos agent – Fleet Mode Agent
    Expand to view the error details

     Step the "filebeat" process is in the "stopped" state on the host 
    

  • no stacktrace
Initializing / End-To-End Tests / fleet_fleet_mode_agent / Un-enrolling the debian agent – Fleet Mode Agent
    Expand to view the error details

     Step the "filebeat" process is in the "stopped" state on the host 
    

  • no stacktrace
Initializing / End-To-End Tests / fleet_fleet_mode_agent / Revoking the enrollment token for the centos agent – Fleet Mode Agent
    Expand to view the error details

     Step an attempt to enroll a new agent fails 
    

  • no stacktrace
Initializing / End-To-End Tests / fleet_fleet_mode_agent / Revoking the enrollment token for the debian agent – Fleet Mode Agent
    Expand to view the error details

     Step an attempt to enroll a new agent fails 
    

  • no stacktrace
Initializing / Pre-Submit / Sanity checks / go vet – pre_commit.lint
    Expand to view the error details

     error 
    

  • no stacktrace
Initializing / Pre-Submit / Sanity checks / golangcilint – pre_commit.lint
    Expand to view the error details

     error 
    

  • no stacktrace

Steps errors 5

Expand to view the steps failures

Run functional tests for fleet:agent_endpoint_integration
  • Took 23 min 58 sec . View more details on here
  • Description: .ci/scripts/functional-test.sh "fleet" "agent_endpoint_integration" "8.0.0-SNAPSHOT" "8.0.0-SNAPSHOT"
Archive the artifacts
  • Took 0 min 0 sec . View more details on here
  • Description: [2021-01-05T20:21:11.856Z] Archiving artifacts hudson.AbortException: script returned exit code 1
Run functional tests for fleet:fleet_mode_agent
  • Took 29 min 40 sec . View more details on here
  • Description: .ci/scripts/functional-test.sh "fleet" "fleet_mode_agent" "8.0.0-SNAPSHOT" "8.0.0-SNAPSHOT"
Archive the artifacts
  • Took 0 min 0 sec . View more details on here
  • Description: [2021-01-05T20:26:54.636Z] Archiving artifacts hudson.AbortException: script returned exit code 1
Error signal
  • Took 0 min 0 sec . View more details on here
  • Description: hudson.AbortException: script returned exit code 1

Log output

Expand to view the last 100 lines of log output

[2021-01-05T20:26:27.188Z] time="2021-01-05T20:26:26Z" level=debug msg="Agent listed in Fleet with online status" agentID=0938e5d0-4f94-11eb-9b1a-67a7f394de15 hostname=84f579e50334
[2021-01-05T20:26:27.188Z] time="2021-01-05T20:26:26Z" level=warning msg="The Agent is not in the offline status yet" agentID=0938e5d0-4f94-11eb-9b1a-67a7f394de15 elapsedTime=1m44.244234894s hostname=84f579e50334 isAgentInStatus=false retry=23 status=offline
[2021-01-05T20:26:32.454Z] time="2021-01-05T20:26:31Z" level=debug msg="Agent listed in Fleet with online status" agentID=0938e5d0-4f94-11eb-9b1a-67a7f394de15 hostname=84f579e50334
[2021-01-05T20:26:32.454Z] time="2021-01-05T20:26:31Z" level=warning msg="The Agent is not in the offline status yet" agentID=0938e5d0-4f94-11eb-9b1a-67a7f394de15 elapsedTime=1m49.355122286s hostname=84f579e50334 isAgentInStatus=false retry=24 status=offline
[2021-01-05T20:26:39.022Z] time="2021-01-05T20:26:38Z" level=debug msg="Agent listed in Fleet with online status" agentID=0938e5d0-4f94-11eb-9b1a-67a7f394de15 hostname=84f579e50334
[2021-01-05T20:26:39.022Z] time="2021-01-05T20:26:38Z" level=warning msg="The Agent is not in the offline status yet" agentID=0938e5d0-4f94-11eb-9b1a-67a7f394de15 elapsedTime=1m56.099919436s hostname=84f579e50334 isAgentInStatus=false retry=25 status=offline
[2021-01-05T20:26:41.548Z] time="2021-01-05T20:26:41Z" level=debug msg="Agent listed in Fleet with online status" agentID=0938e5d0-4f94-11eb-9b1a-67a7f394de15 hostname=84f579e50334
[2021-01-05T20:26:41.548Z] time="2021-01-05T20:26:41Z" level=warning msg="The Agent is not in the offline status yet" agentID=0938e5d0-4f94-11eb-9b1a-67a7f394de15 elapsedTime=1m58.752556202s hostname=84f579e50334 isAgentInStatus=false retry=26 status=offline
[2021-01-05T20:26:44.831Z] time="2021-01-05T20:26:44Z" level=debug msg="Agent listed in Fleet with online status" agentID=0938e5d0-4f94-11eb-9b1a-67a7f394de15 hostname=84f579e50334
[2021-01-05T20:26:44.831Z] time="2021-01-05T20:26:44Z" level=warning msg="The Agent is not in the offline status yet" agentID=0938e5d0-4f94-11eb-9b1a-67a7f394de15 elapsedTime=2m1.970990435s hostname=84f579e50334 isAgentInStatus=false retry=27 status=offline
[2021-01-05T20:26:48.112Z] time="2021-01-05T20:26:48Z" level=debug msg="Agent listed in Fleet with online status" agentID=0938e5d0-4f94-11eb-9b1a-67a7f394de15 hostname=84f579e50334
[2021-01-05T20:26:48.113Z] time="2021-01-05T20:26:48Z" level=info msg="The Agent is in the desired status" elapsedTime=2m5.821270218s hostname=84f579e50334 isAgentInStatus=true retries=28 status=offline
[2021-01-05T20:26:48.371Z] time="2021-01-05T20:26:48Z" level=debug msg="Agent build hash found" commitFile=/elastic-agent/.elastic-agent.active.commit containerName=84f579e50334 hash=e5bae4ce5bd2508ae2d40ecb762be072c29a1ece shortHash=e5bae4
[2021-01-05T20:26:49.305Z] cat: /opt/Elastic/Agent/elastic-agent.log: No such file or directory
[2021-01-05T20:26:49.306Z] time="2021-01-05T20:26:49Z" level=error msg="Could not execute command in container" command="[cat /opt/Elastic/Agent/elastic-agent.log]" error="Could not run compose file: [/var/lib/jenkins/workspace/e2e-tests_e2e-testing-mbp_PR-560/.op/compose/profiles/fleet/docker-compose.yml /var/lib/jenkins/workspace/e2e-tests_e2e-testing-mbp_PR-560/.op/compose/services/debian-systemd/docker-compose.yml] - Local Docker compose exited abnormally whilst running docker-compose: [exec -T debian-systemd cat /opt/Elastic/Agent/elastic-agent.log]. exit status 1" service=debian-systemd
[2021-01-05T20:26:49.306Z] time="2021-01-05T20:26:49Z" level=error msg="Could not get agent logs in the container" command="[cat /opt/Elastic/Agent/elastic-agent.log]" containerName=84f579e50334 error="Could not run compose file: [/var/lib/jenkins/workspace/e2e-tests_e2e-testing-mbp_PR-560/.op/compose/profiles/fleet/docker-compose.yml /var/lib/jenkins/workspace/e2e-tests_e2e-testing-mbp_PR-560/.op/compose/services/debian-systemd/docker-compose.yml] - Local Docker compose exited abnormally whilst running docker-compose: [exec -T debian-systemd cat /opt/Elastic/Agent/elastic-agent.log]. exit status 1" hash=e5bae4
[2021-01-05T20:26:50.243Z] OCI runtime exec failed: exec failed: container_linux.go:370: starting container process caused: exec: "elastic-agent": executable file not found in $PATH: unknown
[2021-01-05T20:26:50.243Z] time="2021-01-05T20:26:50Z" level=error msg="Could not execute command in container" command="[elastic-agent uninstall -f]" error="Could not run compose file: [/var/lib/jenkins/workspace/e2e-tests_e2e-testing-mbp_PR-560/.op/compose/profiles/fleet/docker-compose.yml /var/lib/jenkins/workspace/e2e-tests_e2e-testing-mbp_PR-560/.op/compose/services/debian-systemd/docker-compose.yml] - Local Docker compose exited abnormally whilst running docker-compose: [exec -T debian-systemd elastic-agent uninstall -f]. exit status 126" service=debian-systemd
[2021-01-05T20:26:50.243Z] time="2021-01-05T20:26:50Z" level=error msg="Could not run agent command in the box" command="[elastic-agent uninstall -f]" error="Could not run compose file: [/var/lib/jenkins/workspace/e2e-tests_e2e-testing-mbp_PR-560/.op/compose/profiles/fleet/docker-compose.yml /var/lib/jenkins/workspace/e2e-tests_e2e-testing-mbp_PR-560/.op/compose/services/debian-systemd/docker-compose.yml] - Local Docker compose exited abnormally whilst running docker-compose: [exec -T debian-systemd elastic-agent uninstall -f]. exit status 126" profile=fleet service=debian-systemd
[2021-01-05T20:26:50.243Z] time="2021-01-05T20:26:50Z" level=error msg="Could not uninstall the agent"
[2021-01-05T20:26:50.243Z] time="2021-01-05T20:26:50Z" level=debug msg="Un-enrolling agent in Fleet" agentID=0938e5d0-4f94-11eb-9b1a-67a7f394de15 hostname=84f579e50334
[2021-01-05T20:26:50.243Z] time="2021-01-05T20:26:50Z" level=error msg="Could unenroll agent" agentID=0938e5d0-4f94-11eb-9b1a-67a7f394de15 body="{\"statusCode\":500,\"error\":\"Internal Server Error\",\"message\":\"x_content_parse_exception\"}" error="POST request failed with 500" url="http://localhost:5601/api/fleet/agents/0938e5d0-4f94-11eb-9b1a-67a7f394de15/unenroll"
[2021-01-05T20:26:50.243Z] time="2021-01-05T20:26:50Z" level=warning msg="The agentIDs for the hostname could not be unenrolled" err="POST request failed with 500" hostname=84f579e50334
[2021-01-05T20:26:50.809Z] Stopping fleet_debian-systemd_elastic-agent_1 ... 
[2021-01-05T20:26:51.376Z] 
Stopping fleet_debian-systemd_elastic-agent_1 ... done
Removing fleet_debian-systemd_elastic-agent_1 ... 
[2021-01-05T20:26:51.634Z] 
Removing fleet_debian-systemd_elastic-agent_1 ... done
Going to remove fleet_debian-systemd_elastic-agent_1
[2021-01-05T20:26:51.634Z] time="2021-01-05T20:26:51Z" level=debug msg="Docker compose executed." cmd="[rm -fvs debian-systemd]" composeFilePaths="[/var/lib/jenkins/workspace/e2e-tests_e2e-testing-mbp_PR-560/.op/compose/profiles/fleet/docker-compose.yml /var/lib/jenkins/workspace/e2e-tests_e2e-testing-mbp_PR-560/.op/compose/services/debian-systemd/docker-compose.yml]" env="map[centos_systemdAgentBinarySrcPath:/tmp/elastic-agent-8.0.0-SNAPSHOT-linux-x86_64.tar.gz362103033 centos_systemdAgentBinaryTargetPath:/elastic-agent-8.0.0-SNAPSHOT-x86_64.tar.gz centos_systemdContainerName:fleet_centos-systemd_elastic-agent_1 centos_systemdTag:latest debian_systemdAgentBinarySrcPath:/tmp/elastic-agent-8.0.0-SNAPSHOT-linux-x86_64.tar.gz362103033 debian_systemdAgentBinaryTargetPath:/elastic-agent-8.0.0-SNAPSHOT-x86_64.tar.gz debian_systemdContainerName:fleet_debian-systemd_elastic-agent_1 debian_systemdTag:stretch kibanaConfigPath:/var/lib/jenkins/workspace/e2e-tests_e2e-testing-mbp_PR-560/src/github.com/elastic/e2e-testing/e2e/_suites/fleet/configurations/kibana.config.yml stackVersion:8.0.0-SNAPSHOT]" profile=fleet
[2021-01-05T20:26:51.634Z] time="2021-01-05T20:26:51Z" level=debug msg="Service removed from compose" profile=fleet service=debian-systemd
[2021-01-05T20:26:51.635Z] time="2021-01-05T20:26:51Z" level=error msg="Could not delete token" body="{\"statusCode\":500,\"error\":\"Internal Server Error\",\"message\":\"x_content_parse_exception\"}" error="DELETE request failed with 500" tokenID=04d9d170-4f94-11eb-9b1a-67a7f394de15 url="http://localhost:5601/api/fleet/enrollment-api-keys/04d9d170-4f94-11eb-9b1a-67a7f394de15"
[2021-01-05T20:26:51.635Z] time="2021-01-05T20:26:51Z" level=warning msg="The enrollment token could not be deleted" err="DELETE request failed with 500" tokenID=04d9d170-4f94-11eb-9b1a-67a7f394de15
[2021-01-05T20:26:51.635Z] time="2021-01-05T20:26:51Z" level=info msg="Integration deleted from the configuration" integration= packageConfigId= policyID=a73b0500-4f90-11eb-9b1a-67a7f394de15 version=
[2021-01-05T20:26:51.635Z] time="2021-01-05T20:26:51Z" level=debug msg="Destroying Fleet runtime dependencies"
[2021-01-05T20:26:52.569Z] Stopping fleet_kibana_1           ... 
[2021-01-05T20:26:52.569Z] Stopping fleet_package-registry_1 ... 
[2021-01-05T20:26:52.569Z] Stopping fleet_elasticsearch_1    ... 
[2021-01-05T20:26:53.667Z] 
Stopping fleet_kibana_1           ... done

Stopping fleet_package-registry_1 ... done

Stopping fleet_elasticsearch_1    ... done
Removing fleet_kibana_1           ... 
[2021-01-05T20:26:53.667Z] Removing fleet_package-registry_1 ... 
[2021-01-05T20:26:53.667Z] Removing fleet_elasticsearch_1    ... 
[2021-01-05T20:26:53.925Z] 
Removing fleet_package-registry_1 ... done

Removing fleet_kibana_1           ... done

Removing fleet_elasticsearch_1    ... done
Removing network fleet_default
[2021-01-05T20:26:53.925Z] time="2021-01-05T20:26:53Z" level=debug msg="Docker compose executed." cmd="[down --remove-orphans]" composeFilePaths="[/var/lib/jenkins/workspace/e2e-tests_e2e-testing-mbp_PR-560/.op/compose/profiles/fleet/docker-compose.yml]" env="map[centos_systemdAgentBinarySrcPath:/tmp/elastic-agent-8.0.0-SNAPSHOT-linux-x86_64.tar.gz362103033 centos_systemdAgentBinaryTargetPath:/elastic-agent-8.0.0-SNAPSHOT-x86_64.tar.gz centos_systemdContainerName:fleet_centos-systemd_elastic-agent_1 centos_systemdTag:latest debian_systemdAgentBinarySrcPath:/tmp/elastic-agent-8.0.0-SNAPSHOT-linux-x86_64.tar.gz362103033 debian_systemdAgentBinaryTargetPath:/elastic-agent-8.0.0-SNAPSHOT-x86_64.tar.gz debian_systemdContainerName:fleet_debian-systemd_elastic-agent_1 debian_systemdTag:stretch kibanaConfigPath:/var/lib/jenkins/workspace/e2e-tests_e2e-testing-mbp_PR-560/src/github.com/elastic/e2e-testing/e2e/_suites/fleet/configurations/kibana.config.yml stackVersion:8.0.0-SNAPSHOT]" profile=fleet
[2021-01-05T20:26:54.183Z] time="2021-01-05T20:26:53Z" level=debug msg="Elastic Agent binary was removed." installer=debian-tar path=/tmp/elastic-agent-8.0.0-SNAPSHOT-linux-x86_64.tar.gz362103033
[2021-01-05T20:26:54.183Z] time="2021-01-05T20:26:53Z" level=debug msg="Elastic Agent binary was removed." installer=centos-systemd path=/tmp/elastic-agent-8.0.0-SNAPSHOT-x86_64.rpm159088514
[2021-01-05T20:26:54.183Z] time="2021-01-05T20:26:53Z" level=debug msg="Elastic Agent binary was removed." installer=debian-systemd path=/tmp/elastic-agent-8.0.0-SNAPSHOT-amd64.deb624391684
[2021-01-05T20:26:54.183Z] <?xml version="1.0" encoding="UTF-8"?>
[2021-01-05T20:26:54.183Z] <testsuites name="main" tests="18" skipped="0" failures="4" errors="0" time="1694.675735579">
[2021-01-05T20:26:54.183Z]   <testsuite name="Fleet Mode Agent" tests="18" skipped="0" failures="4" errors="0" time="1566.322215608">
[2021-01-05T20:26:54.183Z]     <testcase name="Deploying the centos agent" status="passed" time="39.036267076"></testcase>
[2021-01-05T20:26:54.183Z]     <testcase name="Deploying the debian agent" status="passed" time="18.226777696"></testcase>
[2021-01-05T20:26:54.183Z]     <testcase name="Deploying the centos agent with enroll and then run on rpm and deb" status="passed" time="51.445845575"></testcase>
[2021-01-05T20:26:54.183Z]     <testcase name="Deploying the debian agent with enroll and then run on rpm and deb" status="passed" time="53.644071981"></testcase>
[2021-01-05T20:26:54.183Z]     <testcase name="Stopping the centos agent stops backend processes" status="passed" time="10.736046157"></testcase>
[2021-01-05T20:26:54.183Z]     <testcase name="Stopping the debian agent stops backend processes" status="passed" time="9.965787082"></testcase>
[2021-01-05T20:26:54.183Z]     <testcase name="Restarting the installed centos agent" status="passed" time="41.080773367"></testcase>
[2021-01-05T20:26:54.183Z]     <testcase name="Restarting the installed debian agent" status="passed" time="17.898327258"></testcase>
[2021-01-05T20:26:54.183Z]     <testcase name="Restarting the centos host with persistent agent restarts backend processes" status="passed" time="22.124117477"></testcase>
[2021-01-05T20:26:54.183Z]     <testcase name="Restarting the debian host with persistent agent restarts backend processes" status="passed" time="19.357035547"></testcase>
[2021-01-05T20:26:54.183Z]     <testcase name="Un-enrolling the centos agent" status="failed" time="364.547998274">
[2021-01-05T20:26:54.183Z]       <failure message="Step the agent is listed in Fleet as &#34;inactive&#34;: The Agent is not in the inactive status yet"></failure>
[2021-01-05T20:26:54.183Z]       <error message="Step the &#34;filebeat&#34; process is in the &#34;stopped&#34; state on the host" type="skipped"></error>
[2021-01-05T20:26:54.183Z]       <error message="Step the &#34;metricbeat&#34; process is in the &#34;stopped&#34; state on the host" type="skipped"></error>
[2021-01-05T20:26:54.183Z]     </testcase>
[2021-01-05T20:26:54.183Z]     <testcase name="Un-enrolling the debian agent" status="failed" time="368.410764325">
[2021-01-05T20:26:54.183Z]       <failure message="Step the agent is listed in Fleet as &#34;inactive&#34;: The Agent is not in the inactive status yet"></failure>
[2021-01-05T20:26:54.183Z]       <error message="Step the &#34;filebeat&#34; process is in the &#34;stopped&#34; state on the host" type="skipped"></error>
[2021-01-05T20:26:54.183Z]       <error message="Step the &#34;metricbeat&#34; process is in the &#34;stopped&#34; state on the host" type="skipped"></error>
[2021-01-05T20:26:54.183Z]     </testcase>
[2021-01-05T20:26:54.183Z]     <testcase name="Re-enrolling the centos agent" status="passed" time="21.897703743"></testcase>
[2021-01-05T20:26:54.183Z]     <testcase name="Re-enrolling the debian agent" status="passed" time="47.778669227"></testcase>
[2021-01-05T20:26:54.183Z]     <testcase name="Revoking the enrollment token for the centos agent" status="failed" time="9.056951477">
[2021-01-05T20:26:54.183Z]       <failure message="Step the enrollment token is revoked: DELETE request failed with 500"></failure>
[2021-01-05T20:26:54.183Z]       <error message="Step an attempt to enroll a new agent fails" type="skipped"></error>
[2021-01-05T20:26:54.183Z]     </testcase>
[2021-01-05T20:26:54.183Z]     <testcase name="Revoking the enrollment token for the debian agent" status="failed" time="9.859470375">
[2021-01-05T20:26:54.183Z]       <failure message="Step the enrollment token is revoked: DELETE request failed with 500"></failure>
[2021-01-05T20:26:54.183Z]       <error message="Step an attempt to enroll a new agent fails" type="skipped"></error>
[2021-01-05T20:26:54.183Z]     </testcase>
[2021-01-05T20:26:54.183Z]     <testcase name="Un-installing the installed centos agent" status="passed" time="136.067932754"></testcase>
[2021-01-05T20:26:54.183Z]     <testcase name="Un-installing the installed debian agent" status="passed" time="136.542915041"></testcase>
[2021-01-05T20:26:54.183Z]   </testsuite>
[2021-01-05T20:26:54.183Z] </testsuites>make: *** [functional-test] Error 1
[2021-01-05T20:26:54.183Z] Makefile:59: recipe for target 'functional-test' failed
[2021-01-05T20:26:54.183Z] + echo 'ERROR: functional-test failed'
[2021-01-05T20:26:54.183Z] ERROR: functional-test failed
[2021-01-05T20:26:54.183Z] + exit_status=1
[2021-01-05T20:26:54.183Z] + sed -e 's/^[ \t]*//; s#>.*failed$#>#g' outputs/TEST-fleet
[2021-01-05T20:26:54.183Z] + grep -E '^<.*>$'
[2021-01-05T20:26:54.183Z] + exit 1
[2021-01-05T20:26:54.241Z] Recording test results
[2021-01-05T20:26:54.621Z] [Checks API] No suitable checks publisher found.
[2021-01-05T20:26:54.636Z] Archiving artifacts
[2021-01-05T20:26:54.711Z] Failed in branch fleet_fleet_mode_agent
[2021-01-05T20:26:55.772Z] Stage "Release" skipped due to earlier failure(s)
[2021-01-05T20:26:56.428Z] Running on worker-1244230 in /var/lib/jenkins/workspace/e2e-tests_e2e-testing-mbp_PR-560
[2021-01-05T20:26:56.472Z] [INFO] getVaultSecret: Getting secrets
[2021-01-05T20:26:56.535Z] Masking supported pattern matches of $VAULT_ADDR or $VAULT_ROLE_ID or $VAULT_SECRET_ID
[2021-01-05T20:26:58.536Z] + chmod 755 generate-build-data.sh
[2021-01-05T20:26:58.536Z] + ./generate-build-data.sh https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/e2e-tests/e2e-testing-mbp/PR-560/ https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/e2e-tests/e2e-testing-mbp/PR-560/runs/4 FAILURE 2004124
[2021-01-05T20:26:58.536Z] INFO: curl https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/e2e-tests/e2e-testing-mbp/PR-560/runs/4/steps/?limit=10000 -o steps-info.json
[2021-01-05T20:27:03.711Z] INFO: curl https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/e2e-tests/e2e-testing-mbp/PR-560/runs/4/tests/?status=FAILED -o tests-errors.json
[2021-01-05T20:27:03.711Z] INFO: curl https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/e2e-tests/e2e-testing-mbp/PR-560/runs/4/log/ -o pipeline-log.txt

🐛 Flaky test report

❕ There are test failures but not known flaky tests.

Expand to view the summary

Test stats 🧪

Test Results
Failed 7
Passed 76
Skipped 9
Total 92

Genuine test errors 7

💔 There are test failures but not known flaky tests, most likely a genuine test failure.

  • Name: Initializing / End-To-End Tests / fleet_agent_endpoint_integration / Un-enrolling Elastic Agent stops Elastic Endpoint – Agent Endpoint Integration
  • Name: Initializing / End-To-End Tests / fleet_fleet_mode_agent / Un-enrolling the centos agent – Fleet Mode Agent
  • Name: Initializing / End-To-End Tests / fleet_fleet_mode_agent / Un-enrolling the debian agent – Fleet Mode Agent
  • Name: Initializing / End-To-End Tests / fleet_fleet_mode_agent / Revoking the enrollment token for the centos agent – Fleet Mode Agent
  • Name: Initializing / End-To-End Tests / fleet_fleet_mode_agent / Revoking the enrollment token for the debian agent – Fleet Mode Agent
  • Name: Initializing / Pre-Submit / Sanity checks / go vet – pre_commit.lint
  • Name: Initializing / Pre-Submit / Sanity checks / golangcilint – pre_commit.lint

@mdelapenya mdelapenya marked this pull request as ready for review January 5, 2021 20:32
e2e/_suites/fleet/stand-alone.go Show resolved Hide resolved
@mdelapenya mdelapenya merged commit 8de026b into elastic:master Jan 6, 2021
mdelapenya added a commit to mdelapenya/e2e-testing that referenced this pull request Jan 6, 2021
* fix: use observability-ci namespace in snapshots

* fix: forgot to update compose file for the agent

* fix: apply CI snapshots namespace to metricbeat too

* fix: wrong copy paste
# Conflicts:
#	cli/config/compose/services/elastic-agent/docker-compose.yml
#	cli/config/compose/services/metricbeat/docker-compose.yml
mdelapenya added a commit to mdelapenya/e2e-testing that referenced this pull request Jan 6, 2021
* fix: use observability-ci namespace in snapshots

* fix: forgot to update compose file for the agent

* fix: apply CI snapshots namespace to metricbeat too

* fix: wrong copy paste
# Conflicts:
#	cli/config/compose/services/elastic-agent/docker-compose.yml
#	cli/config/compose/services/metricbeat/docker-compose.yml
mdelapenya added a commit that referenced this pull request Jan 7, 2021
* fix: use observability-ci namespace in snapshots

* fix: forgot to update compose file for the agent

* fix: apply CI snapshots namespace to metricbeat too

* fix: wrong copy paste
# Conflicts:
#	cli/config/compose/services/elastic-agent/docker-compose.yml
#	cli/config/compose/services/metricbeat/docker-compose.yml
@mdelapenya mdelapenya deleted the fix-docker-namespace branch January 7, 2021 04:32
mdelapenya added a commit that referenced this pull request Jan 7, 2021
* fix: use observability-ci namespace in snapshots

* fix: forgot to update compose file for the agent

* fix: apply CI snapshots namespace to metricbeat too

* fix: wrong copy paste
# Conflicts:
#	cli/config/compose/services/elastic-agent/docker-compose.yml
#	cli/config/compose/services/metricbeat/docker-compose.yml
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.

4 participants