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

[7.14.x](backport #1385) Add test case for add_kubernetes_metadata with autodiscover#1387

Merged
mdelapenya merged 1 commit into7.14.xfrom
mergify/bp/7.14.x/pr-1385
Jul 27, 2021
Merged

[7.14.x](backport #1385) Add test case for add_kubernetes_metadata with autodiscover#1387
mdelapenya merged 1 commit into7.14.xfrom
mergify/bp/7.14.x/pr-1385

Conversation

@mergify
Copy link
Copy Markdown
Contributor

@mergify mergify Bot commented Jul 27, 2021

This is an automatic backport of pull request #1385 done by Mergify.


Mergify commands and options

More conditions and actions can be found in the documentation.

You can also trigger Mergify actions by commenting on this pull request:

  • @Mergifyio refresh will re-evaluate the rules
  • @Mergifyio rebase will rebase this PR on its base branch
  • @Mergifyio update will merge the base branch into this PR
  • @Mergifyio backport <destination> will backport this PR on <destination> branch

Additionally, on Mergify dashboard you can:

  • look at your merge queues
  • generate the Mergify configuration with the config editor.

Finally, you can contact us on https://mergify.io/

* Add test case for add_kubernetes_metadata with autodiscover

* Recover processor at the input level

(cherry picked from commit f7a341b)
@elasticmachine
Copy link
Copy Markdown
Contributor

💔 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 preview

Expand to view the summary

Build stats

  • Start Time: 2021-07-27T14:03:08.209+0000

  • Duration: 33 min 12 sec

  • Commit: 8039190

Test stats 🧪

Test Results
Failed 1
Passed 230
Skipped 0
Total 231

Trends 🧪

Image of Build Times

Image of Tests

Test errors 1

Expand to view the tests failures

Initializing / End-To-End Tests / ubuntu-18.04_fleet_agent_endpoint_integration / Deploying an Endpoint makes policies to appear in the Security App – Agent Endpoint Integration
    Expand to view the 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 
    

  • no stacktrace

Steps errors 1

Expand to view the steps failures

Run functional tests for fleet:agent_endpoint_integration && ~@nightly && ~debian && ~@skip:amd64
  • Took 15 min 17 sec . View more details on here
  • Description: .ci/scripts/functional-test.sh "fleet" "agent_endpoint_integration && ~@nightly && ~debian && ~@skip:amd64" "7.14.0-SNAPSHOT" "7.14.0-SNAPSHOT"

Log output

Expand to view the last 100 lines of log output

[2021-07-27T14:34:42.963Z] {"level":"debug","time":"2021-07-27T14:34:41Z","message":"sent request with 0 transactions, 7 spans, 0 errors, 0 metricsets"}
[2021-07-27T14:34:43.963Z] {"level":"debug","time":"2021-07-27T14:34:42Z","message":"sent request with 0 transactions, 17 spans, 0 errors, 0 metricsets"}
[2021-07-27T14:34:43.964Z] {"level":"debug","time":"2021-07-27T14:34:42Z","message":"gathering metrics"}
[2021-07-27T14:34:53.994Z] {"level":"debug","time":"2021-07-27T14:34:52Z","message":"sent request with 0 transactions, 0 spans, 0 errors, 1 metricset"}
[2021-07-27T14:34:54.073Z] {"level":"debug","time":"2021-07-27T14:34:53Z","message":"gathering metrics"}
[2021-07-27T14:35:03.316Z] time="2021-07-27T14:35:02Z" level=debug msg="Un-enrolling agent in Fleet" hostname=c8d02ee73511
[2021-07-27T14:35:03.316Z] {"level":"debug","time":"2021-07-27T14:35:03Z","message":"sent request with 0 transactions, 10 spans, 0 errors, 1 metricset"}
[2021-07-27T14:35:06.538Z] {"level":"debug","time":"2021-07-27T14:35:05Z","message":"sent request with 1 transaction, 9 spans, 0 errors, 0 metricsets"}
[2021-07-27T14:35:06.538Z] time="2021-07-27T14:35:05Z" level=debug msg="Destroying Fleet runtime dependencies"
[2021-07-27T14:35:06.538Z] Stopping fleet_fleet-server_1  ... 
[2021-07-27T14:35:06.538Z] Stopping fleet_kibana_1        ... 
[2021-07-27T14:35:06.538Z] Stopping fleet_elasticsearch_1 ... 
[2021-07-27T14:35:15.950Z] {"level":"debug","time":"2021-07-27T14:35:12Z","message":"gathering metrics"}
[2021-07-27T14:35:20.977Z] 
Stopping fleet_fleet-server_1  ... done

Stopping fleet_kibana_1        ... done

Stopping fleet_elasticsearch_1 ... done
Removing fleet_fleet-server_1  ... 
[2021-07-27T14:35:20.977Z] Removing fleet_kibana_1        ... 
[2021-07-27T14:35:20.977Z] Removing fleet_elasticsearch_1 ... 
[2021-07-27T14:35:20.977Z] 
Removing fleet_kibana_1        ... done

Removing fleet_elasticsearch_1 ... done

Removing fleet_fleet-server_1  ... done
Removing network fleet_default
[2021-07-27T14:35:21.500Z] time="2021-07-27T14:35:21Z" level=debug msg="Docker compose executed." cmd="[down --remove-orphans]" composeFilePaths="[/var/lib/jenkins/workspace/PR-1387-1-ac2b7031-c592-4405-bdec-035720ab3b69/.op/compose/profiles/fleet/docker-compose.yml]" env="map[kibanaDockerNamespace:kibana kibanaVersion:7.14.0-SNAPSHOT stackPlatform:linux/arm64 stackVersion:7.14.0-SNAPSHOT]" profile=fleet
[2021-07-27T14:35:21.500Z] {"level":"debug","time":"2021-07-27T14:35:21Z","message":"sent request with 1 transaction, 4 spans, 0 errors, 0 metricsets"}
[2021-07-27T14:35:21.500Z] testing: warning: no tests to run
[2021-07-27T14:35:21.501Z] PASS
[2021-07-27T14:35:21.501Z] ok  	github.com/elastic/e2e-testing/e2e/_suites/fleet	1018.208s
[2021-07-27T14:35:22.279Z] [INFO] Stopping Filebeat Docker container
[2021-07-27T14:35:23.238Z] + docker exec -t b432a5965e69f2c2fa90df7eedf29c24351aaabceb68909b71b675598a2b5154 chmod -R ugo+rw /output
[2021-07-27T14:35:24.078Z] {"level":"debug","time":"2021-07-27T14:35:22Z","message":"sent request with 0 transactions, 0 spans, 0 errors, 1 metricset"}
[2021-07-27T14:35:24.332Z] + docker stop --time 30 b432a5965e69f2c2fa90df7eedf29c24351aaabceb68909b71b675598a2b5154
[2021-07-27T14:35:24.855Z] b432a5965e69f2c2fa90df7eedf29c24351aaabceb68909b71b675598a2b5154
[2021-07-27T14:35:25.151Z] Archiving artifacts
[2021-07-27T14:35:28.529Z] Recording test results
[2021-07-27T14:35:32.422Z] [Checks API] No suitable checks publisher found.
[2021-07-27T14:35:32.518Z] Archiving artifacts
[2021-07-27T14:35:32.725Z] Running in /var/lib/jenkins/workspace/PR-1387-1-ac2b7031-c592-4405-bdec-035720ab3b69/src/github.com/elastic/e2e-testing
[2021-07-27T14:35:33.657Z] + go clean -modcache
[2021-07-27T14:35:36.046Z] sh: line 1: 46358 Terminated              sleep 3
[2021-07-27T14:35:42.177Z] {"level":"debug","time":"2021-07-27T14:35:39Z","message":"sent request with 1 transaction, 16 spans, 0 errors, 0 metricsets"}
[2021-07-27T14:35:42.177Z] fleet_elasticsearch_1 is up-to-date
[2021-07-27T14:35:42.177Z] Creating fleet_elastic-agent_1 ... 
[2021-07-27T14:35:42.177Z] fleet_kibana_1 is up-to-date
[2021-07-27T14:35:42.177Z] fleet_fleet-server_1 is up-to-date
[2021-07-27T14:35:42.750Z] 
Creating fleet_elastic-agent_1 ... done
time="2021-07-27T14:35:42Z" level=debug msg="Docker compose executed." cmd="[up -d]" composeFilePaths="[/var/lib/jenkins/workspace/PR-1387-1-ecf12c53-f82d-47f6-8db1-767544673af0/.op/compose/profiles/fleet/docker-compose.yml /var/lib/jenkins/workspace/PR-1387-1-ecf12c53-f82d-47f6-8db1-767544673af0/.op/compose/services/elastic-agent/centos/docker-compose.yml]" env="map[kibanaDockerNamespace:kibana kibanaVersion:7.14.0-SNAPSHOT stackPlatform:linux/amd64 stackVersion:7.14.0-SNAPSHOT]" profile=fleet
[2021-07-27T14:35:42.750Z] time="2021-07-27T14:35:42Z" level=debug msg="Golang's architecture is amd64 (amd64)"
[2021-07-27T14:35:42.750Z] time="2021-07-27T14:35:42Z" level=debug msg="The Elastic artifacts API is available" elapsedTime=71.462988ms retries=1 statusEndpoint="https://artifacts-api.elastic.co/v1/search/7.14.0-SNAPSHOT/elastic-agent?x-elastic-no-kpi=true"
[2021-07-27T14:35:42.750Z] time="2021-07-27T14:35:42Z" level=debug msg="Retrieving binary from local cache" URL="https://snapshots.elastic.co/7.14.0-de25a427/downloads/beats/elastic-agent/elastic-agent-7.14.0-SNAPSHOT-linux-x86_64.tar.gz" path=/tmp/692a7c6b-5756-41ce-ae6d-afe3073e428d/elastic-agent-7.14.0-SNAPSHOT-linux-x86_64.tar.gz
[2021-07-27T14:35:42.750Z] {"level":"debug","time":"2021-07-27T14:35:42Z","message":"gathering metrics"}
[2021-07-27T14:35:44.661Z] time="2021-07-27T14:35:44Z" level=debug msg="Fleet Server config created" elasticsearch=elasticsearch elasticsearchPort=9200 token="NGJKazZIb0JqV2dnaU8xaGhmaTA6cm5NVXFKUThUc21WSXNMX3JpenpaUQ=="
[2021-07-27T14:35:51.261Z] {"level":"debug","time":"2021-07-27T14:35:51Z","message":"sent request with 0 transactions, 27 spans, 0 errors, 18 metricsets"}
[2021-07-27T14:35:52.201Z] time="2021-07-27T14:35:51Z" level=error msg="Error executing command" args="[exec -u root -i fleet_elastic-agent_1 pgrep -d , elastic-endpoint]" baseDir=. command=docker error="exit status 1" stderr=
[2021-07-27T14:35:52.201Z] time="2021-07-27T14:35:51Z" level=warning msg="Process is not present and number of occurences is 0" cmds="[pgrep -d , elastic-endpoint]" desiredState=stopped elapsedTime=149.626926ms error="exit status 1" mustBePresent=false ocurrences=0 process=elastic-endpoint retry=1 service=fleet_elastic-agent_1
[2021-07-27T14:35:52.201Z] -- Logs begin at Tue 2021-07-27 14:35:42 UTC, end at Tue 2021-07-27 14:35:48 UTC. --
[2021-07-27T14:35:52.201Z] Jul 27 14:35:45 49e1be4a1350 systemd[1]: Started Elastic Agent is a unified agent to observe, monitor and protect your system..
[2021-07-27T14:35:52.201Z] Jul 27 14:35:45 49e1be4a1350 elastic-agent[70]: 2021-07-27T14:35:45.819Z        INFO        application/application.go:66        Detecting execution mode
[2021-07-27T14:35:52.201Z] Jul 27 14:35:45 49e1be4a1350 elastic-agent[70]: 2021-07-27T14:35:45.820Z        INFO        application/application.go:75        Agent is managed locally
[2021-07-27T14:35:52.201Z] Jul 27 14:35:45 49e1be4a1350 elastic-agent[70]: 2021-07-27T14:35:45.820Z        INFO        capabilities/capabilities.go:59        capabilities file not found in /opt/Elastic/Agent/capabilities.yml
[2021-07-27T14:35:52.201Z] Jul 27 14:35:46 49e1be4a1350 elastic-agent[70]: 2021-07-27T14:35:46.118Z        INFO        [composable.providers.docker]        docker/docker.go:43        Docker provider skipped, unable to connect: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
[2021-07-27T14:35:52.201Z] Jul 27 14:35:46 49e1be4a1350 elastic-agent[70]: 2021-07-27T14:35:46.119Z        INFO        [api]        api/server.go:62        Starting stats endpoint
[2021-07-27T14:35:52.201Z] Jul 27 14:35:46 49e1be4a1350 elastic-agent[70]: 2021-07-27T14:35:46.119Z        INFO        application/local_mode.go:168        Agent is starting
[2021-07-27T14:35:52.201Z] Jul 27 14:35:46 49e1be4a1350 elastic-agent[70]: 2021-07-27T14:35:46.119Z        INFO        [api]        api/server.go:64        Metrics endpoint listening on: /opt/Elastic/Agent/data/tmp/elastic-agent.sock (configured: unix:///opt/Elastic/Agent/data/tmp/elastic-agent.sock)
[2021-07-27T14:35:52.201Z] Jul 27 14:35:46 49e1be4a1350 elastic-agent[70]: 2021-07-27T14:35:46.121Z        INFO        application/local_mode.go:178        Agent is stopped
[2021-07-27T14:35:52.201Z] Jul 27 14:35:46 49e1be4a1350 elastic-agent[70]: 2021-07-27T14:35:46.121Z        INFO        application/periodic.go:77        Configuration changes detected
[2021-07-27T14:35:52.201Z] Jul 27 14:35:46 49e1be4a1350 elastic-agent[70]: 2021-07-27T14:35:46.184Z        INFO        stateresolver/stateresolver.go:48        New State ID is -Uzu6IGe
[2021-07-27T14:35:52.201Z] Jul 27 14:35:46 49e1be4a1350 elastic-agent[70]: 2021-07-27T14:35:46.184Z        INFO        stateresolver/stateresolver.go:49        Converging state requires execution of 2 step(s)
[2021-07-27T14:35:52.201Z] Jul 27 14:35:47 49e1be4a1350 elastic-agent[70]: 2021-07-27T14:35:47.462Z        INFO        operation/operator.go:191        waiting for installer of pipeline 'default' to finish
[2021-07-27T14:35:52.201Z] Jul 27 14:35:48 49e1be4a1350 elastic-agent[70]: 2021-07-27T14:35:48.971Z        ERROR        status/reporter.go:236        Elastic Agent status changed to: 'error'
[2021-07-27T14:35:52.201Z] Jul 27 14:35:48 49e1be4a1350 elastic-agent[70]: 2021-07-27T14:35:48.971Z        INFO        process/app.go:181        Signaling application to stop because of shutdown: metricbeat--7.14.0-SNAPSHOT
[2021-07-27T14:35:52.201Z] Jul 27 14:35:48 49e1be4a1350 elastic-agent[70]: 2021-07-27T14:35:48.971Z        ERROR        log/reporter.go:36        2021-07-27T14:35:48Z - message: Application: metricbeat--7.14.0-SNAPSHOT[6f67c1a3-23f8-4784-810d-f798866427ca]: State changed to FAILED: context canceled - type: 'ERROR' - sub_type: 'FAILED'
[2021-07-27T14:35:52.202Z] Jul 27 14:35:48 49e1be4a1350 elastic-agent[70]: 2021-07-27T14:35:48.971Z        INFO        log/reporter.go:40        2021-07-27T14:35:48Z - message: Application: metricbeat--7.14.0-SNAPSHOT[6f67c1a3-23f8-4784-810d-f798866427ca]: State changed to STOPPED: Stopped - type: 'STATE' - sub_type: 'STOPPED'
[2021-07-27T14:35:52.819Z] time="2021-07-27T14:35:52Z" level=debug msg="Un-enrolling agent in Fleet" hostname=49e1be4a1350
[2021-07-27T14:35:56.114Z] {"level":"debug","time":"2021-07-27T14:35:56Z","message":"sent request with 1 transaction, 26 spans, 0 errors, 0 metricsets"}
[2021-07-27T14:35:56.114Z] time="2021-07-27T14:35:56Z" level=debug msg="Destroying Fleet runtime dependencies"
[2021-07-27T14:35:57.053Z] Stopping fleet_fleet-server_1  ... 
[2021-07-27T14:35:57.053Z] Stopping fleet_kibana_1        ... 
[2021-07-27T14:35:57.053Z] Stopping fleet_elasticsearch_1 ... 
[2021-07-27T14:36:10.982Z] 
Stopping fleet_fleet-server_1  ... done

Stopping fleet_kibana_1        ... done

Stopping fleet_elasticsearch_1 ... done
Removing fleet_fleet-server_1  ... 
[2021-07-27T14:36:10.982Z] Removing fleet_kibana_1        ... 
[2021-07-27T14:36:10.982Z] Removing fleet_elasticsearch_1 ... 
[2021-07-27T14:36:10.982Z] 
Removing fleet_kibana_1        ... done

Removing fleet_elasticsearch_1 ... done

Removing fleet_fleet-server_1  ... done
Removing network fleet_default
[2021-07-27T14:36:11.242Z] time="2021-07-27T14:36:11Z" level=debug msg="Docker compose executed." cmd="[down --remove-orphans]" composeFilePaths="[/var/lib/jenkins/workspace/PR-1387-1-ecf12c53-f82d-47f6-8db1-767544673af0/.op/compose/profiles/fleet/docker-compose.yml]" env="map[kibanaDockerNamespace:kibana kibanaVersion:7.14.0-SNAPSHOT stackPlatform:linux/amd64 stackVersion:7.14.0-SNAPSHOT]" profile=fleet
[2021-07-27T14:36:11.242Z] {"level":"debug","time":"2021-07-27T14:36:11Z","message":"sent request with 1 transaction, 4 spans, 0 errors, 0 metricsets"}
[2021-07-27T14:36:11.242Z] testing: warning: no tests to run
[2021-07-27T14:36:11.242Z] PASS
[2021-07-27T14:36:11.242Z] ok  	github.com/elastic/e2e-testing/e2e/_suites/fleet	1078.589s
[2021-07-27T14:36:11.665Z] [INFO] Stopping Filebeat Docker container
[2021-07-27T14:36:11.963Z] + docker exec -t d7dadb41a03ae555daba7c7c2607aa76bc1caad7f81fa74ef2ee57a880e6d7d7 chmod -R ugo+rw /output
[2021-07-27T14:36:12.222Z] + docker stop --time 30 d7dadb41a03ae555daba7c7c2607aa76bc1caad7f81fa74ef2ee57a880e6d7d7
[2021-07-27T14:36:12.791Z] d7dadb41a03ae555daba7c7c2607aa76bc1caad7f81fa74ef2ee57a880e6d7d7
[2021-07-27T14:36:12.838Z] Archiving artifacts
[2021-07-27T14:36:13.664Z] Recording test results
[2021-07-27T14:36:14.033Z] [Checks API] No suitable checks publisher found.
[2021-07-27T14:36:14.075Z] Archiving artifacts
[2021-07-27T14:36:14.175Z] Running in /var/lib/jenkins/workspace/PR-1387-1-ecf12c53-f82d-47f6-8db1-767544673af0/src/github.com/elastic/e2e-testing
[2021-07-27T14:36:14.556Z] + go clean -modcache
[2021-07-27T14:36:15.530Z] Terminated
[2021-07-27T14:36:18.069Z] Stage "Release" skipped due to earlier failure(s)
[2021-07-27T14:36:18.684Z] Running on Jenkins in /var/lib/jenkins/workspace/2e-tests_e2e-testing-mbp_PR-1387
[2021-07-27T14:36:18.831Z] [INFO] getVaultSecret: Getting secrets
[2021-07-27T14:36:18.903Z] Masking supported pattern matches of $VAULT_ADDR or $VAULT_ROLE_ID or $VAULT_SECRET_ID
[2021-07-27T14:36:20.037Z] + chmod 755 generate-build-data.sh
[2021-07-27T14:36:20.037Z] + ./generate-build-data.sh https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/e2e-tests/e2e-testing-mbp/PR-1387/ https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/e2e-tests/e2e-testing-mbp/PR-1387/runs/1 FAILURE 1991531
[2021-07-27T14:36:20.037Z] INFO: curl https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/e2e-tests/e2e-testing-mbp/PR-1387/runs/1/steps/?limit=10000 -o steps-info.json
[2021-07-27T14:36:22.521Z] INFO: curl https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/e2e-tests/e2e-testing-mbp/PR-1387/runs/1/tests/?status=FAILED -o tests-errors.json

🐛 Flaky test report

❕ There are test failures but not known flaky tests.

Expand to view the summary

Test stats 🧪

Test Results
Failed 1
Passed 230
Skipped 0
Total 231

Genuine test errors 1

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

  • Name: Initializing / End-To-End Tests / ubuntu-18.04_fleet_agent_endpoint_integration / Deploying an Endpoint makes policies to appear in the Security App – Agent Endpoint Integration

@mdelapenya
Copy link
Copy Markdown
Contributor

Error not related and considered flaky. Merging

@mdelapenya mdelapenya merged commit e3284f2 into 7.14.x Jul 27, 2021
@mergify mergify Bot deleted the mergify/bp/7.14.x/pr-1385 branch July 27, 2021 16:00
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants