Skip to content

[7.15](backport #27647) Import the references of dashboard assets using the Saved Objects API#27665

Merged
kvch merged 1 commit into7.15from
mergify/bp/7.15/pr-27647
Sep 1, 2021
Merged

[7.15](backport #27647) Import the references of dashboard assets using the Saved Objects API#27665
kvch merged 1 commit into7.15from
mergify/bp/7.15/pr-27647

Conversation

@mergify
Copy link
Copy Markdown
Contributor

@mergify mergify bot commented Aug 31, 2021

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

@mergify mergify bot added backport conflicts There is a conflict in the backported pull request labels Aug 31, 2021
@mergify mergify bot assigned kvch Aug 31, 2021
@botelastic botelastic bot added the needs_team Indicates that the issue/PR needs a Team:* label label Aug 31, 2021
@botelastic
Copy link
Copy Markdown

botelastic bot commented Aug 31, 2021

This pull request doesn't have a Team:<team> label.

@elasticmachine
Copy link
Copy Markdown
Contributor

elasticmachine commented Aug 31, 2021

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

Expand to view the summary

Build stats

  • Start Time: 2021-08-31T16:05:29.080+0000

  • Duration: 157 min 37 sec

  • Commit: fffab99

Test stats 🧪

Test Results
Failed 0
Passed 52984
Skipped 5268
Total 58252

Trends 🧪

Image of Build Times

Image of Tests

Steps errors 1

Expand to view the steps failures

filebeat-pythonIntegTest - mage pythonIntegTest
  • Took 14 min 14 sec . View more details on here
  • Description: mage pythonIntegTest

Log output

Expand to view the last 100 lines of log output

[2021-08-31T18:40:26.614Z] 762b62bb36e7: Retrying in 1 second
[2021-08-31T18:40:26.614Z] 96c5e9a2eadc: Retrying in 16 seconds
[2021-08-31T18:40:27.386Z] 96c5e9a2eadc: Retrying in 15 seconds
[2021-08-31T18:40:28.983Z] 96c5e9a2eadc: Retrying in 14 seconds
[2021-08-31T18:40:29.756Z] 96c5e9a2eadc: Retrying in 13 seconds
[2021-08-31T18:40:29.756Z] 2ba59faacf49: Retrying in 20 seconds
[2021-08-31T18:40:30.333Z] 96c5e9a2eadc: Retrying in 12 seconds
[2021-08-31T18:40:31.108Z] 2ba59faacf49: Retrying in 19 seconds
[2021-08-31T18:40:31.886Z] 96c5e9a2eadc: Retrying in 11 seconds
[2021-08-31T18:40:31.886Z] 2ba59faacf49: Retrying in 18 seconds
[2021-08-31T18:40:32.658Z] 96c5e9a2eadc: Retrying in 10 seconds
[2021-08-31T18:40:32.658Z] 2ba59faacf49: Retrying in 17 seconds
[2021-08-31T18:40:33.433Z] 96c5e9a2eadc: Retrying in 9 seconds
[2021-08-31T18:40:34.209Z] 2ba59faacf49: Retrying in 16 seconds
[2021-08-31T18:40:34.956Z] 96c5e9a2eadc: Retrying in 8 seconds
[2021-08-31T18:40:34.956Z] 2ba59faacf49: Retrying in 15 seconds
[2021-08-31T18:40:35.737Z] 96c5e9a2eadc: Retrying in 7 seconds
[2021-08-31T18:40:35.737Z] 2ba59faacf49: Retrying in 14 seconds
[2021-08-31T18:40:36.519Z] 96c5e9a2eadc: Retrying in 6 seconds
[2021-08-31T18:40:37.266Z] 2ba59faacf49: Retrying in 13 seconds
[2021-08-31T18:40:37.266Z] 96c5e9a2eadc: Retrying in 5 seconds
[2021-08-31T18:40:38.043Z] 2ba59faacf49: Retrying in 12 seconds
[2021-08-31T18:40:40.760Z] 96c5e9a2eadc: Retrying in 4 seconds
[2021-08-31T18:40:40.760Z] 2ba59faacf49: Retrying in 11 seconds
[2021-08-31T18:40:40.760Z] 96c5e9a2eadc: Retrying in 3 seconds
[2021-08-31T18:40:40.760Z] 2ba59faacf49: Retrying in 10 seconds
[2021-08-31T18:40:40.760Z] 94dc982a8d06: Retrying in 5 seconds
[2021-08-31T18:40:40.760Z] 96c5e9a2eadc: Retrying in 2 seconds
[2021-08-31T18:40:40.760Z] 2ba59faacf49: Retrying in 9 seconds
[2021-08-31T18:40:41.533Z] 94dc982a8d06: Retrying in 4 seconds
[2021-08-31T18:40:41.533Z] 96c5e9a2eadc: Retrying in 1 second
[2021-08-31T18:40:42.305Z] 2ba59faacf49: Retrying in 8 seconds
[2021-08-31T18:40:42.305Z] 94dc982a8d06: Retrying in 3 seconds
[2021-08-31T18:40:43.076Z] 2ba59faacf49: Retrying in 7 seconds
[2021-08-31T18:40:43.076Z] 94dc982a8d06: Retrying in 2 seconds
[2021-08-31T18:40:43.848Z] 2ba59faacf49: Retrying in 6 seconds
[2021-08-31T18:40:44.621Z] 94dc982a8d06: Retrying in 1 second
[2021-08-31T18:40:44.621Z] 2ba59faacf49: Retrying in 5 seconds
[2021-08-31T18:40:46.278Z] 2ba59faacf49: Retrying in 4 seconds
[2021-08-31T18:40:47.052Z] 2ba59faacf49: Retrying in 3 seconds
[2021-08-31T18:40:47.824Z] 2ba59faacf49: Retrying in 2 seconds
[2021-08-31T18:40:48.594Z] 2ba59faacf49: Retrying in 1 second
[2021-08-31T18:40:58.501Z] dial tcp 34.68.230.202:443: i/o timeout
[2021-08-31T18:40:58.966Z] [WARN] filebeat doesn't have -ubi8 docker images. See https://github.com/elastic/beats/pull/21621
[2021-08-31T18:40:59.095Z] Timeout set to expire in 5 min 0 sec
[2021-08-31T18:41:00.691Z] Cleaning up /var/lib/jenkins/workspace/PR-27665-2-4ee0065f-e1bf-49ba-8670-b82c06d131a5
[2021-08-31T18:41:00.691Z] Change ownership of all files inside the specific folder from root/root to current user/group
[2021-08-31T18:41:00.691Z] ++ id -u
[2021-08-31T18:41:00.691Z] ++ id -g
[2021-08-31T18:41:00.691Z] + docker run -v /var/lib/jenkins/workspace/PR-27665-2-4ee0065f-e1bf-49ba-8670-b82c06d131a5:/beat arm64v8/alpine:3 sh -c 'find /beat -user 0 -exec chown -h 1167:1167 {} \;'
[2021-08-31T18:41:00.691Z] Unable to find image 'arm64v8/alpine:3' locally
[2021-08-31T18:41:12.561Z] 3: Pulling from arm64v8/alpine
[2021-08-31T18:41:12.561Z] 552d1f2373af: Pulling fs layer
[2021-08-31T18:41:13.334Z] 552d1f2373af: Verifying Checksum
[2021-08-31T18:41:13.334Z] 552d1f2373af: Download complete
[2021-08-31T18:41:13.334Z] 552d1f2373af: Pull complete
[2021-08-31T18:41:17.727Z] Digest: sha256:b06a5cf61b2956088722c4f1b9a6f71dfe95f0b1fe285d44195452b8a1627de7
[2021-08-31T18:41:17.727Z] Status: Downloaded newer image for arm64v8/alpine:3
[2021-08-31T18:41:18.514Z] + set -e
[2021-08-31T18:41:18.514Z] + echo 'Change permissions with write access of all files inside the specific folder'
[2021-08-31T18:41:18.514Z] Change permissions with write access of all files inside the specific folder
[2021-08-31T18:41:18.514Z] + chmod -R +w /var/lib/jenkins/workspace/PR-27665-2-4ee0065f-e1bf-49ba-8670-b82c06d131a5
[2021-08-31T18:41:19.792Z] Running in /var/lib/jenkins/workspace/PR-27665-2-4ee0065f-e1bf-49ba-8670-b82c06d131a5/src/github.com/elastic/beats/build
[2021-08-31T18:41:21.127Z] + rm -rf ve
[2021-08-31T18:41:21.128Z] + find . -type d -name vendor -exec rm -r {} ;
[2021-08-31T18:41:22.969Z] + python .ci/scripts/pre_archive_test.py
[2021-08-31T18:41:26.335Z] Copy ./x-pack/filebeat/build into build/x-pack/filebeat/build
[2021-08-31T18:41:26.335Z] Copy ./x-pack/filebeat/build/package/filebeat/filebeat-linux-arm64.docker/docker-build into build/x-pack/filebeat/build/package/filebeat/filebeat-linux-arm64.docker/docker-build
[2021-08-31T18:41:26.335Z] Copy ./x-pack/filebeat/build/package/filebeat-ubi8/filebeat-linux-arm64.docker/docker-build into build/x-pack/filebeat/build/package/filebeat-ubi8/filebeat-linux-arm64.docker/docker-build
[2021-08-31T18:41:26.335Z] Copy ./x-pack/filebeat/build/golang-crossbuild into build/x-pack/filebeat/build/golang-crossbuild
[2021-08-31T18:41:26.814Z] Running in /var/lib/jenkins/workspace/PR-27665-2-4ee0065f-e1bf-49ba-8670-b82c06d131a5/src/github.com/elastic/beats/build
[2021-08-31T18:41:26.922Z] Recording test results
[2021-08-31T18:41:36.659Z] None of the test reports contained any result
[2021-08-31T18:41:36.667Z] [Checks API] No suitable checks publisher found.
[2021-08-31T18:41:38.185Z] + go clean -modcache
[2021-08-31T18:41:40.278Z] Timeout set to expire in 5 min 0 sec
[2021-08-31T18:41:41.759Z] Cleaning up /var/lib/jenkins/workspace/PR-27665-2-4ee0065f-e1bf-49ba-8670-b82c06d131a5
[2021-08-31T18:41:41.759Z] Change ownership of all files inside the specific folder from root/root to current user/group
[2021-08-31T18:41:41.759Z] ++ id -u
[2021-08-31T18:41:41.759Z] ++ id -g
[2021-08-31T18:41:41.759Z] + docker run -v /var/lib/jenkins/workspace/PR-27665-2-4ee0065f-e1bf-49ba-8670-b82c06d131a5:/beat arm64v8/alpine:3 sh -c 'find /beat -user 0 -exec chown -h 1167:1167 {} \;'
[2021-08-31T18:41:55.539Z] + set -e
[2021-08-31T18:41:55.539Z] + echo 'Change permissions with write access of all files inside the specific folder'
[2021-08-31T18:41:55.539Z] Change permissions with write access of all files inside the specific folder
[2021-08-31T18:41:55.539Z] + chmod -R +w /var/lib/jenkins/workspace/PR-27665-2-4ee0065f-e1bf-49ba-8670-b82c06d131a5
[2021-08-31T18:41:56.068Z] Running in /var/lib/jenkins/workspace/PR-27665-2-4ee0065f-e1bf-49ba-8670-b82c06d131a5
[2021-08-31T18:41:59.868Z] + gsutil --version
[2021-08-31T18:42:01.300Z] Masking supported pattern matches of $FILE_CREDENTIAL
[2021-08-31T18:42:01.635Z] + gcloud auth activate-service-account --key-file ****
[2021-08-31T18:42:02.207Z] Activated service account credentials for: [beats-ci-gcs-plugin@elastic-ci-prod.iam.gserviceaccount.com]
[2021-08-31T18:42:02.792Z] + gsutil -m -q cp eC1wYWNrL2ZpbGViZWF0LXBhY2thZ2luZy1hcm0tYXJtZmZmYWI5OTZkZWZmYWJkYTkyMGIzM2UyZDc2ODQ5YWJmNTU5YmIyZA gs://beats-ci-temp/ci/cache/
[2021-08-31T18:42:04.876Z] Stage "Packaging-Pipeline" skipped due to earlier failure(s)
[2021-08-31T18:42:04.968Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-27665/src/github.com/elastic/beats
[2021-08-31T18:42:05.353Z] Running on Jenkins in /var/lib/jenkins/workspace/Beats_beats_PR-27665
[2021-08-31T18:42:05.430Z] [INFO] getVaultSecret: Getting secrets
[2021-08-31T18:42:05.497Z] Masking supported pattern matches of $VAULT_ADDR or $VAULT_ROLE_ID or $VAULT_SECRET_ID
[2021-08-31T18:42:06.386Z] + chmod 755 generate-build-data.sh
[2021-08-31T18:42:06.386Z] + ./generate-build-data.sh https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats/PR-27665/ https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats/PR-27665/runs/2 FAILURE 9397042
[2021-08-31T18:42:06.386Z] INFO: curl https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats/PR-27665/runs/2/steps/?limit=10000 -o steps-info.json
[2021-08-31T18:42:22.920Z] INFO: curl https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats/PR-27665/runs/2/tests/?status=FAILED -o tests-errors.json

💚 Flaky test report

Tests succeeded.

Expand to view the summary

Test stats 🧪

Test Results
Failed 0
Passed 52984
Skipped 5268
Total 58252

@mergify
Copy link
Copy Markdown
Contributor Author

mergify bot commented Aug 31, 2021

This pull request is now in conflicts. Could you fix it? 🙏
To fixup this pull request, you can check out it locally. See documentation: https://help.github.com/articles/checking-out-pull-requests-locally/

git fetch upstream
git checkout -b mergify/bp/7.15/pr-27647 upstream/mergify/bp/7.15/pr-27647
git merge upstream/7.15
git push upstream mergify/bp/7.15/pr-27647

…#27647)

This PR changes the dashboard loading by first loading its references and then loading the dashboards.

If the assets are not loaded in the proper order, the import can fail with unknown references.

(cherry picked from commit b90370d)
@kvch kvch force-pushed the mergify/bp/7.15/pr-27647 branch from 046671d to fffab99 Compare August 31, 2021 16:05
@kvch kvch merged commit 17797d7 into 7.15 Sep 1, 2021
@mergify mergify bot deleted the mergify/bp/7.15/pr-27647 branch September 1, 2021 07:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport conflicts There is a conflict in the backported pull request needs_team Indicates that the issue/PR needs a Team:* label

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants