Skip to content

Update dependency on elastic-package - #918

Merged
mtojek merged 1 commit into
elastic:masterfrom
mtojek:update-ep-1904
Apr 19, 2021
Merged

Update dependency on elastic-package#918
mtojek merged 1 commit into
elastic:masterfrom
mtojek:update-ep-1904

Conversation

@mtojek

@mtojek mtojek commented Apr 19, 2021

Copy link
Copy Markdown
Contributor

This PR updates dependency on elastic-package to improve the Kubernetes service deployer (wait for healthy status).

Related: #886

@mtojek mtojek self-assigned this Apr 19, 2021
@elasticmachine

Copy link
Copy Markdown

💔 Build 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 #918 opened

  • Start Time: 2021-04-19T11:50:22.698+0000

  • Duration: 39 min 11 sec

  • Commit: b7a74d1

Test stats 🧪

Test Results
Failed 0
Passed 1835
Skipped 3
Total 1838

Trends 🧪

Image of Build Times

Image of Tests

Steps errors 2

Expand to view the steps failures

Boot up the Elastic stack
  • Took 3 min 31 sec . View more details on here
  • Description: ../../build/elastic-package stack up -d -v
Boot up the Elastic stack
  • Took 2 min 22 sec . View more details on here
  • Description: ../../build/elastic-package stack up -d -v

Log output

Expand to view the last 100 lines of log output

[2021-04-19T12:28:36.709Z] 2021/04/19 12:28:36 DEBUG GET http://127.0.0.1:5601/api/fleet/agents/ee842ce3-0c5b-430a-8321-628387b707e6
[2021-04-19T12:28:36.709Z] 2021/04/19 12:28:36 DEBUG Wait until the policy (ID: bd78fd60-a10a-11eb-81e4-ff689f9aa4f2, revision: 2) is assigned to the agent (ID: ee842ce3-0c5b-430a-8321-628387b707e6)...
[2021-04-19T12:28:38.628Z] 2021/04/19 12:28:38 DEBUG GET http://127.0.0.1:5601/api/fleet/agents/ee842ce3-0c5b-430a-8321-628387b707e6
[2021-04-19T12:28:38.628Z] 2021/04/19 12:28:38 DEBUG Wait until the policy (ID: bd78fd60-a10a-11eb-81e4-ff689f9aa4f2, revision: 2) is assigned to the agent (ID: ee842ce3-0c5b-430a-8321-628387b707e6)...
[2021-04-19T12:28:41.182Z] 2021/04/19 12:28:40 DEBUG GET http://127.0.0.1:5601/api/fleet/agents/ee842ce3-0c5b-430a-8321-628387b707e6
[2021-04-19T12:28:41.182Z] 2021/04/19 12:28:40 DEBUG Wait until the policy (ID: bd78fd60-a10a-11eb-81e4-ff689f9aa4f2, revision: 2) is assigned to the agent (ID: ee842ce3-0c5b-430a-8321-628387b707e6)...
[2021-04-19T12:28:43.121Z] 2021/04/19 12:28:42 DEBUG GET http://127.0.0.1:5601/api/fleet/agents/ee842ce3-0c5b-430a-8321-628387b707e6
[2021-04-19T12:28:43.121Z] 2021/04/19 12:28:42 DEBUG Policy revision assigned to the agent (ID: ee842ce3-0c5b-430a-8321-628387b707e6)...
[2021-04-19T12:28:43.121Z] 2021/04/19 12:28:42 DEBUG checking for expected data in data stream...
[2021-04-19T12:28:43.122Z] 2021/04/19 12:28:42 DEBUG found 0 hits in metrics-kubernetes.volume-ep data stream
[2021-04-19T12:28:43.772Z] 2021/04/19 12:28:43 DEBUG found 0 hits in metrics-kubernetes.volume-ep data stream
[2021-04-19T12:28:44.718Z] 2021/04/19 12:28:44 DEBUG found 0 hits in metrics-kubernetes.volume-ep data stream
[2021-04-19T12:28:46.104Z] 2021/04/19 12:28:45 DEBUG found 2 hits in metrics-kubernetes.volume-ep data stream
[2021-04-19T12:28:46.104Z] 2021/04/19 12:28:45 DEBUG reassigning original policy back to agent...
[2021-04-19T12:28:46.104Z] 2021/04/19 12:28:45 DEBUG PUT http://127.0.0.1:5601/api/fleet/agents/ee842ce3-0c5b-430a-8321-628387b707e6/reassign
[2021-04-19T12:28:47.965Z] 2021/04/19 12:28:47 DEBUG GET http://127.0.0.1:5601/api/fleet/agents/ee842ce3-0c5b-430a-8321-628387b707e6
[2021-04-19T12:28:47.965Z] 2021/04/19 12:28:47 DEBUG Wait until the policy (ID: a593ba90-a106-11eb-81e4-ff689f9aa4f2, revision: 1) is assigned to the agent (ID: ee842ce3-0c5b-430a-8321-628387b707e6)...
[2021-04-19T12:28:49.908Z] 2021/04/19 12:28:49 DEBUG GET http://127.0.0.1:5601/api/fleet/agents/ee842ce3-0c5b-430a-8321-628387b707e6
[2021-04-19T12:28:49.908Z] 2021/04/19 12:28:49 DEBUG Wait until the policy (ID: a593ba90-a106-11eb-81e4-ff689f9aa4f2, revision: 1) is assigned to the agent (ID: ee842ce3-0c5b-430a-8321-628387b707e6)...
[2021-04-19T12:28:51.880Z] 2021/04/19 12:28:51 DEBUG GET http://127.0.0.1:5601/api/fleet/agents/ee842ce3-0c5b-430a-8321-628387b707e6
[2021-04-19T12:28:51.880Z] 2021/04/19 12:28:51 DEBUG Wait until the policy (ID: a593ba90-a106-11eb-81e4-ff689f9aa4f2, revision: 1) is assigned to the agent (ID: ee842ce3-0c5b-430a-8321-628387b707e6)...
[2021-04-19T12:28:53.804Z] 2021/04/19 12:28:53 DEBUG GET http://127.0.0.1:5601/api/fleet/agents/ee842ce3-0c5b-430a-8321-628387b707e6
[2021-04-19T12:28:53.804Z] 2021/04/19 12:28:53 DEBUG Wait until the policy (ID: a593ba90-a106-11eb-81e4-ff689f9aa4f2, revision: 1) is assigned to the agent (ID: ee842ce3-0c5b-430a-8321-628387b707e6)...
[2021-04-19T12:28:55.719Z] 2021/04/19 12:28:55 DEBUG GET http://127.0.0.1:5601/api/fleet/agents/ee842ce3-0c5b-430a-8321-628387b707e6
[2021-04-19T12:28:55.719Z] 2021/04/19 12:28:55 DEBUG Policy revision assigned to the agent (ID: ee842ce3-0c5b-430a-8321-628387b707e6)...
[2021-04-19T12:28:55.719Z] 2021/04/19 12:28:55 DEBUG deleting test policy...
[2021-04-19T12:28:55.720Z] 2021/04/19 12:28:55 DEBUG POST http://127.0.0.1:5601/api/fleet/agent_policies/delete
[2021-04-19T12:28:57.779Z] 2021/04/19 12:28:57 DEBUG tearing down service...
[2021-04-19T12:28:57.779Z] 2021/04/19 12:28:57 DEBUG tearing down service using docker compose runner
[2021-04-19T12:28:57.779Z] 2021/04/19 12:28:57 DEBUG running command: /usr/local/bin/docker-compose -f /var/lib/jenkins/workspace/gest-manager_integrations_PR-918/src/github.com/elastic/integrations/packages/kubernetes/_dev/deploy/docker/docker-compose.yml -p elastic-package-service down
[2021-04-19T12:28:58.459Z] Stopping elastic-package-service_kubernetes_1         ... 
[2021-04-19T12:28:58.459Z] Stopping elastic-package-service_proxy_1              ... 
[2021-04-19T12:28:58.459Z] Stopping elastic-package-service_apiserver_1          ... 
[2021-04-19T12:28:58.459Z] Stopping elastic-package-service_scheduler_1          ... 
[2021-04-19T12:28:58.459Z] Stopping elastic-package-service_controllermanager_1  ... 
[2021-04-19T12:28:58.459Z] Stopping elastic-package-service_kubelet_1            ... 
[2021-04-19T12:28:58.459Z] Stopping elastic-package-service_kube-state-metrics_1 ... 
[2021-04-19T12:29:12.159Z] 
Stopping elastic-package-service_kubernetes_1         ... done

Stopping elastic-package-service_controllermanager_1  ... done

Stopping elastic-package-service_scheduler_1          ... done

Stopping elastic-package-service_proxy_1              ... done

Stopping elastic-package-service_apiserver_1          ... done

Stopping elastic-package-service_kube-state-metrics_1 ... done

Stopping elastic-package-service_kubelet_1            ... done
Removing elastic-package-service_kubernetes_is_ready_1 ... 
[2021-04-19T12:29:12.159Z] Removing elastic-package-service_kubernetes_1          ... 
[2021-04-19T12:29:12.159Z] Removing elastic-package-service_proxy_1               ... 
[2021-04-19T12:29:12.159Z] Removing elastic-package-service_apiserver_1           ... 
[2021-04-19T12:29:12.159Z] Removing elastic-package-service_scheduler_1           ... 
[2021-04-19T12:29:12.159Z] Removing elastic-package-service_controllermanager_1   ... 
[2021-04-19T12:29:12.159Z] Removing elastic-package-service_kubelet_1             ... 
[2021-04-19T12:29:12.159Z] Removing elastic-package-service_kube-state-metrics_1  ... 
[2021-04-19T12:29:12.159Z] 
Removing elastic-package-service_controllermanager_1   ... done

Removing elastic-package-service_proxy_1               ... done

Removing elastic-package-service_scheduler_1           ... done

Removing elastic-package-service_apiserver_1           ... done

Removing elastic-package-service_kubernetes_is_ready_1 ... done

Removing elastic-package-service_kubelet_1             ... done

Removing elastic-package-service_kubernetes_1          ... done

Removing elastic-package-service_kube-state-metrics_1  ... done
Removing network elastic-package-service_default
[2021-04-19T12:29:12.159Z] 2021/04/19 12:29:11 DEBUG deleting data in data stream...
[2021-04-19T12:29:12.705Z] + kind delete cluster
[2021-04-19T12:29:12.705Z] Deleting cluster "kind" ...
[2021-04-19T12:29:15.423Z] Running in /var/lib/jenkins/workspace/gest-manager_integrations_PR-918/src/github.com/elastic/integrations
[2021-04-19T12:29:15.508Z] Archiving artifacts
[2021-04-19T12:29:15.837Z] Recording test results
[2021-04-19T12:29:16.289Z] [Checks API] No suitable checks publisher found.
[2021-04-19T12:29:16.615Z] + build/elastic-package stack dump -v --output build/elastic-stack-dump/latest/kubernetes
[2021-04-19T12:29:16.615Z] 2021/04/19 12:29:16 DEBUG Enable verbose logging
[2021-04-19T12:29:16.615Z] 2021/04/19 12:29:16 DEBUG Dump Elastic stack data
[2021-04-19T12:29:16.615Z] 2021/04/19 12:29:16 DEBUG Dump stack logs
[2021-04-19T12:29:16.615Z] 2021/04/19 12:29:16 DEBUG Recreate the output location (path: build/elastic-stack-dump/latest/kubernetes)
[2021-04-19T12:29:16.616Z] 2021/04/19 12:29:16 DEBUG Dump stack logs for elasticsearch
[2021-04-19T12:29:16.616Z] 2021/04/19 12:29:16 DEBUG running command: /usr/local/bin/docker-compose -f /var/lib/jenkins/workspace/gest-manager_integrations_PR-918/.elastic-package/stack/snapshot.yml -p elastic-package-stack logs elasticsearch
[2021-04-19T12:29:17.560Z] 2021/04/19 12:29:17 DEBUG Dump stack logs for elastic-agent
[2021-04-19T12:29:17.560Z] 2021/04/19 12:29:17 DEBUG running command: /usr/local/bin/docker-compose -f /var/lib/jenkins/workspace/gest-manager_integrations_PR-918/.elastic-package/stack/snapshot.yml -p elastic-package-stack logs elastic-agent
[2021-04-19T12:29:18.506Z] 2021/04/19 12:29:18 DEBUG Dump stack logs for fleet-server
[2021-04-19T12:29:18.506Z] 2021/04/19 12:29:18 DEBUG running command: /usr/local/bin/docker-compose -f /var/lib/jenkins/workspace/gest-manager_integrations_PR-918/.elastic-package/stack/snapshot.yml -p elastic-package-stack logs fleet-server
[2021-04-19T12:29:19.450Z] 2021/04/19 12:29:19 DEBUG Dump stack logs for kibana
[2021-04-19T12:29:19.450Z] 2021/04/19 12:29:19 DEBUG running command: /usr/local/bin/docker-compose -f /var/lib/jenkins/workspace/gest-manager_integrations_PR-918/.elastic-package/stack/snapshot.yml -p elastic-package-stack logs kibana
[2021-04-19T12:29:20.839Z] 2021/04/19 12:29:20 DEBUG Dump stack logs for package-registry
[2021-04-19T12:29:20.839Z] 2021/04/19 12:29:20 DEBUG running command: /usr/local/bin/docker-compose -f /var/lib/jenkins/workspace/gest-manager_integrations_PR-918/.elastic-package/stack/snapshot.yml -p elastic-package-stack logs package-registry
[2021-04-19T12:29:21.785Z] Path to stack dump: build/elastic-stack-dump/latest/kubernetes
[2021-04-19T12:29:21.785Z] Done
[2021-04-19T12:29:21.827Z] Archiving artifacts
[2021-04-19T12:29:22.248Z] + build/elastic-package stack down -v
[2021-04-19T12:29:22.248Z] 2021/04/19 12:29:22 DEBUG Enable verbose logging
[2021-04-19T12:29:22.248Z] Take down the Elastic stack
[2021-04-19T12:29:22.248Z] 2021/04/19 12:29:22 DEBUG running command: /usr/local/bin/docker-compose -f /var/lib/jenkins/workspace/gest-manager_integrations_PR-918/.elastic-package/stack/snapshot.yml -p elastic-package-stack down
[2021-04-19T12:29:22.821Z] The ELASTICSEARCH_IMAGE_REF variable is not set. Defaulting to a blank string.
[2021-04-19T12:29:22.821Z] The KIBANA_IMAGE_REF variable is not set. Defaulting to a blank string.
[2021-04-19T12:29:22.821Z] The ELASTIC_AGENT_IMAGE_REF variable is not set. Defaulting to a blank string.
[2021-04-19T12:29:22.821Z] Stopping elastic-package-stack_elastic-agent_1    ... 
[2021-04-19T12:29:22.821Z] Stopping elastic-package-stack_fleet-server_1     ... 
[2021-04-19T12:29:22.821Z] Stopping elastic-package-stack_kibana_1           ... 
[2021-04-19T12:29:22.821Z] Stopping elastic-package-stack_elasticsearch_1    ... 
[2021-04-19T12:29:22.821Z] Stopping elastic-package-stack_package-registry_1 ... 
[2021-04-19T12:29:26.276Z] 
Stopping elastic-package-stack_elastic-agent_1    ... done

Stopping elastic-package-stack_fleet-server_1     ... done

Stopping elastic-package-stack_kibana_1           ... done

Stopping elastic-package-stack_package-registry_1 ... done

Stopping elastic-package-stack_elasticsearch_1    ... done
Removing elastic-package-stack_elastic-agent_is_ready_1    ... 
[2021-04-19T12:29:26.276Z] Removing elastic-package-stack_elastic-agent_1             ... 
[2021-04-19T12:29:26.276Z] Removing elastic-package-stack_fleet-server_1              ... 
[2021-04-19T12:29:26.276Z] Removing elastic-package-stack_kibana_is_ready_1           ... 
[2021-04-19T12:29:26.277Z] Removing elastic-package-stack_kibana_1                    ... 
[2021-04-19T12:29:26.277Z] Removing elastic-package-stack_elasticsearch_is_ready_1    ... 
[2021-04-19T12:29:26.277Z] Removing elastic-package-stack_package-registry_is_ready_1 ... 
[2021-04-19T12:29:26.277Z] Removing elastic-package-stack_elasticsearch_1             ... 
[2021-04-19T12:29:26.277Z] Removing elastic-package-stack_package-registry_1          ... 
[2021-04-19T12:29:26.277Z] 
Removing elastic-package-stack_kibana_1                    ... done

Removing elastic-package-stack_elasticsearch_is_ready_1    ... done

Removing elastic-package-stack_kibana_is_ready_1           ... done

Removing elastic-package-stack_package-registry_is_ready_1 ... done

Removing elastic-package-stack_elastic-agent_is_ready_1    ... done

Removing elastic-package-stack_package-registry_1          ... done

Removing elastic-package-stack_elasticsearch_1             ... done

Removing elastic-package-stack_elastic-agent_1             ... done

Removing elastic-package-stack_fleet-server_1              ... done
Removing network elastic-package-stack_default
[2021-04-19T12:29:26.851Z] Done
[2021-04-19T12:29:32.284Z] Running on Jenkins in /var/lib/jenkins/workspace/gest-manager_integrations_PR-918
[2021-04-19T12:29:32.402Z] [INFO] getVaultSecret: Getting secrets
[2021-04-19T12:29:32.642Z] Masking supported pattern matches of $VAULT_ADDR or $VAULT_ROLE_ID or $VAULT_SECRET_ID
[2021-04-19T12:29:33.757Z] + chmod 755 generate-build-data.sh
[2021-04-19T12:29:33.757Z] + ./generate-build-data.sh https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Ingest-manager/integrations/PR-918/ https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Ingest-manager/integrations/PR-918/runs/1 FAILURE 2350766
[2021-04-19T12:29:34.008Z] INFO: curl https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Ingest-manager/integrations/PR-918/runs/1/steps/?limit=10000 -o steps-info.json

@mtojek

mtojek commented Apr 19, 2021

Copy link
Copy Markdown
Contributor Author

Errors unrelated, so I'll merge it.

@mtojek
mtojek merged commit 0d4e152 into elastic:master Apr 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants