Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Fleet] Don't fail on errors in 'update' or 'reupdate' operation in /setup #97404

Merged
merged 5 commits into from
Apr 19, 2021

Conversation

skh
Copy link
Contributor

@skh skh commented Apr 18, 2021

Summary

Completes first implementation of #91864
Follow-up to #95649

This changes /api/fleet/setup such that

  • it doesn't error when an error happens during a package upgrade
  • its response now contains a property nonFatalPackageUpgradeErrors that reports all errors that have happened during package upgrade

This also changes the Fleet UI so that it shows an error toast when nonFatalPackageUpgradeErrors exists.

How to test this:

(NOTE: In all curl commands below, adjust or remove the BASEPATH portion of the URL.)

Craft a system package that has the newest version number of all system packages, and that triggers an error during installation. Serve it from a locally running registry. To do so at the moment of this writing, edit any dashboard in system/0.10.9 to include

"migrationVersion": {
    "dashboard": "9.3.0"
  }

instead of 7.3.0.

Start Kibana. Do NOT open the UI yet.

Install a previous, non-broken version of the package with

curl -X POST -u elastic:changeme http://localhost:5601/rch/api/fleet/epm/packages/system-0.10.7 -H 'kbn-xsrf: xyz' -H "Content-Type: application/json" -d '{"force": true}'

Call the setup API endpoint with

curl -X POST -u elastic:changeme http://localhost:5601/rch/api/fleet/setup -H 'kbn-xsrf: xyz'

Observe that the return value contains a package upgrade error, but also isInitialized: true.


Now navigate to the Fleet UI. Observe that you see the full Fleet UI, with an error toast like this:
image

In dev tools / network, verify that you see the error contained in the response:
image


Now uninstall the nonbroken package (or restart your dev setup to start with an empty database) and call /api/fleet/setup immediately. Verify that it still returns an error (because the error happens during installation, not upgrade).

Open the Fleet UI and verify that you can't use it because the error during installation.


Test against the official registry to verify that setup with good packages still works as expected.

Known issues

When you click on "Show the full error" in the error toast, the next modal is empty. I couldn't find a way to pass the error array to the toast notification in the correct form, any help would be appreciated. The full error is visible in dev tools, so I'd suggest this can be fixed in a follow-up change unless I missed something trivial.

When testing that installation of a broken package still blocks the whole UI, #97401 happens.

Unit tests could be extended.

@skh skh requested a review from a team as a code owner April 18, 2021 15:33
@botelastic botelastic bot added the Team:Fleet Team label for Observability Data Collection Fleet team label Apr 18, 2021
@elasticmachine
Copy link
Contributor

Pinging @elastic/fleet (Team:Fleet)


if (setupStatus.nonFatalPackageUpgradeErrors.length > 0) {
body.nonFatalPackageUpgradeErrors = setupStatus.nonFatalPackageUpgradeErrors;
}

Copy link
Contributor Author

@skh skh Apr 18, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is unrelated to my change, but I noticed that preconfigurationError is not returned here. I didn't have time to dig into it but I'm not sure this is intentional. cc @Zacqary

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I remember some discussion around what should happen on errors. I'm sure @Zacqary will follow up if needed.

@ruflin ruflin requested a review from afgomez April 18, 2021 17:26
@kibanamachine
Copy link
Contributor

💛 Build succeeded, but was flaky


Test Failures

Kibana Pipeline / general / Chrome X-Pack UI Functional Tests.x-pack/test/functional/apps/dashboard/sync_colors·ts.dashboard sync colors should sync colors on dashboard by default

Link to Jenkins

Standard Out

Failed Tests Reporter:
  - Test has failed 1 times on tracked branches: https://github.com/elastic/kibana/issues/97403

[00:00:00]       │
[00:00:00]         └-: dashboard
[00:00:00]           └-> "before all" hook in "dashboard"
[00:19:13]           └-: sync colors
[00:19:13]             └-> "before all" hook for "should sync colors on dashboard by default"
[00:19:13]             └-> "before all" hook for "should sync colors on dashboard by default"
[00:19:13]               │ info [logstash_functional] Loading "mappings.json"
[00:19:13]               │ info [logstash_functional] Loading "data.json.gz"
[00:19:13]               │ info [logstash_functional] Skipped restore for existing index "logstash-2015.09.22"
[00:19:13]               │ info [logstash_functional] Skipped restore for existing index "logstash-2015.09.20"
[00:19:13]               │ info [logstash_functional] Skipped restore for existing index "logstash-2015.09.21"
[00:19:14]               │ info [lens/basic] Loading "mappings.json"
[00:19:14]               │ info [lens/basic] Loading "data.json"
[00:19:14]               │ info [lens/basic] Loading "data.json.gz"
[00:19:14]               │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-centos-tests-xxl-1618766899596596876] [.kibana_pre6.5.0_001/acnyDN_dTCeQoKzgnp97MA] deleting index
[00:19:14]               │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-centos-tests-xxl-1618766899596596876] [.kibana_8.0.0_001/jlr1q0G8RZWUNGN0mMlTug] deleting index
[00:19:14]               │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-centos-tests-xxl-1618766899596596876] [.kibana_task_manager_8.0.0_001/zBHuZArjSSqyS4YElVKGTA] deleting index
[00:19:14]               │ info [lens/basic] Deleted existing index ".kibana_8.0.0_001"
[00:19:14]               │ info [lens/basic] Deleted existing index ".kibana_task_manager_8.0.0_001"
[00:19:14]               │ info [lens/basic] Deleted existing index ".kibana_pre6.5.0_001"
[00:19:14]               │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-centos-tests-xxl-1618766899596596876] [.kibana_1] creating index, cause [api], templates [], shards [1]/[0]
[00:19:14]               │ info [lens/basic] Created index ".kibana_1"
[00:19:14]               │ debg [lens/basic] ".kibana_1" settings {"index":{"auto_expand_replicas":"0-1","number_of_replicas":"0","number_of_shards":"1"}}
[00:19:14]               │ info [lens/basic] Indexed 24 docs into ".kibana_1"
[00:19:15]               │ debg Migrating saved objects
[00:19:15]               │ proc [kibana]   log   [18:29:11.908] [info][savedobjects-service] [.kibana_task_manager] INIT -> CREATE_NEW_TARGET. took: 5ms.
[00:19:15]               │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-centos-tests-xxl-1618766899596596876] [.kibana_task_manager_8.0.0_001] creating index, cause [api], templates [], shards [1]/[1]
[00:19:15]               │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-centos-tests-xxl-1618766899596596876] updating number_of_replicas to [0] for indices [.kibana_task_manager_8.0.0_001]
[00:19:15]               │ proc [kibana]   log   [18:29:11.927] [info][savedobjects-service] [.kibana] INIT -> WAIT_FOR_YELLOW_SOURCE. took: 27ms.
[00:19:15]               │ proc [kibana]   log   [18:29:11.940] [info][savedobjects-service] [.kibana] WAIT_FOR_YELLOW_SOURCE -> SET_SOURCE_WRITE_BLOCK. took: 13ms.
[00:19:15]               │ info [o.e.c.m.MetadataIndexStateService] [kibana-ci-immutable-centos-tests-xxl-1618766899596596876] adding block write to indices [[.kibana_1/0D6463T-T8yEYZylS6EFQw]]
[00:19:15]               │ info [o.e.c.m.MetadataIndexStateService] [kibana-ci-immutable-centos-tests-xxl-1618766899596596876] completed adding block write to indices [.kibana_1]
[00:19:15]               │ proc [kibana]   log   [18:29:11.979] [info][savedobjects-service] [.kibana_task_manager] CREATE_NEW_TARGET -> MARK_VERSION_INDEX_READY. took: 71ms.
[00:19:15]               │ proc [kibana]   log   [18:29:11.998] [info][savedobjects-service] [.kibana] SET_SOURCE_WRITE_BLOCK -> CREATE_REINDEX_TEMP. took: 58ms.
[00:19:15]               │ proc [kibana]   log   [18:29:12.008] [info][savedobjects-service] [.kibana_task_manager] MARK_VERSION_INDEX_READY -> DONE. took: 29ms.
[00:19:15]               │ proc [kibana]   log   [18:29:12.008] [info][savedobjects-service] [.kibana_task_manager] Migration completed after 105ms
[00:19:15]               │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-centos-tests-xxl-1618766899596596876] [.kibana_8.0.0_reindex_temp] creating index, cause [api], templates [], shards [1]/[1]
[00:19:15]               │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-centos-tests-xxl-1618766899596596876] updating number_of_replicas to [0] for indices [.kibana_8.0.0_reindex_temp]
[00:19:15]               │ proc [kibana]   log   [18:29:12.059] [info][savedobjects-service] [.kibana] CREATE_REINDEX_TEMP -> REINDEX_SOURCE_TO_TEMP. took: 61ms.
[00:19:15]               │ proc [kibana]   log   [18:29:12.067] [info][savedobjects-service] [.kibana] REINDEX_SOURCE_TO_TEMP -> REINDEX_SOURCE_TO_TEMP_WAIT_FOR_TASK. took: 8ms.
[00:19:15]               │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-centos-tests-xxl-1618766899596596876] [.kibana_8.0.0_reindex_temp/X-p6Rot3R_OlQESIrPva7Q] update_mapping [_doc]
[00:19:15]               │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-centos-tests-xxl-1618766899596596876] [.kibana_8.0.0_reindex_temp/X-p6Rot3R_OlQESIrPva7Q] update_mapping [_doc]
[00:19:15]               │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-centos-tests-xxl-1618766899596596876] [.kibana_8.0.0_reindex_temp/X-p6Rot3R_OlQESIrPva7Q] update_mapping [_doc]
[00:19:15]               │ info [o.e.t.LoggingTaskListener] [kibana-ci-immutable-centos-tests-xxl-1618766899596596876] 30570 finished with response BulkByScrollResponse[took=80.1ms,timed_out=false,sliceId=null,updated=0,created=12,deleted=0,batches=1,versionConflicts=0,noops=0,retries=0,throttledUntil=0s,bulk_failures=[],search_failures=[]]
[00:19:15]               │ proc [kibana]   log   [18:29:12.178] [info][savedobjects-service] [.kibana] REINDEX_SOURCE_TO_TEMP_WAIT_FOR_TASK -> SET_TEMP_WRITE_BLOCK. took: 111ms.
[00:19:15]               │ info [o.e.c.m.MetadataIndexStateService] [kibana-ci-immutable-centos-tests-xxl-1618766899596596876] adding block write to indices [[.kibana_8.0.0_reindex_temp/X-p6Rot3R_OlQESIrPva7Q]]
[00:19:15]               │ info [o.e.c.m.MetadataIndexStateService] [kibana-ci-immutable-centos-tests-xxl-1618766899596596876] completed adding block write to indices [.kibana_8.0.0_reindex_temp]
[00:19:15]               │ proc [kibana]   log   [18:29:12.219] [info][savedobjects-service] [.kibana] SET_TEMP_WRITE_BLOCK -> CLONE_TEMP_TO_TARGET. took: 41ms.
[00:19:15]               │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-centos-tests-xxl-1618766899596596876] applying create index request using existing index [.kibana_8.0.0_reindex_temp] metadata
[00:19:15]               │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-centos-tests-xxl-1618766899596596876] [.kibana_8.0.0_001] creating index, cause [clone_index], templates [], shards [1]/[1]
[00:19:15]               │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-centos-tests-xxl-1618766899596596876] updating number_of_replicas to [0] for indices [.kibana_8.0.0_001]
[00:19:15]               │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-centos-tests-xxl-1618766899596596876] [.kibana_8.0.0_001/gViX9V-OTFyN1tQn0JdzzA] create_mapping
[00:19:15]               │ proc [kibana]   log   [18:29:12.317] [info][savedobjects-service] [.kibana] CLONE_TEMP_TO_TARGET -> OUTDATED_DOCUMENTS_SEARCH. took: 98ms.
[00:19:15]               │ proc [kibana]   log   [18:29:12.332] [info][savedobjects-service] [.kibana] OUTDATED_DOCUMENTS_SEARCH -> OUTDATED_DOCUMENTS_TRANSFORM. took: 15ms.
[00:19:15]               │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-centos-tests-xxl-1618766899596596876] [.kibana_8.0.0_001/gViX9V-OTFyN1tQn0JdzzA] update_mapping [_doc]
[00:19:15]               │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-centos-tests-xxl-1618766899596596876] [.kibana_8.0.0_001/gViX9V-OTFyN1tQn0JdzzA] update_mapping [_doc]
[00:19:16]               │ proc [kibana]   log   [18:29:13.259] [info][savedobjects-service] [.kibana] OUTDATED_DOCUMENTS_TRANSFORM -> OUTDATED_DOCUMENTS_SEARCH. took: 927ms.
[00:19:16]               │ proc [kibana]   log   [18:29:13.272] [info][savedobjects-service] [.kibana] OUTDATED_DOCUMENTS_SEARCH -> UPDATE_TARGET_MAPPINGS. took: 13ms.
[00:19:16]               │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-centos-tests-xxl-1618766899596596876] [.kibana_8.0.0_001/gViX9V-OTFyN1tQn0JdzzA] update_mapping [_doc]
[00:19:16]               │ proc [kibana]   log   [18:29:13.325] [info][savedobjects-service] [.kibana] UPDATE_TARGET_MAPPINGS -> UPDATE_TARGET_MAPPINGS_WAIT_FOR_TASK. took: 53ms.
[00:19:16]               │ info [o.e.t.LoggingTaskListener] [kibana-ci-immutable-centos-tests-xxl-1618766899596596876] 30640 finished with response BulkByScrollResponse[took=22.1ms,timed_out=false,sliceId=null,updated=12,created=0,deleted=0,batches=1,versionConflicts=0,noops=0,retries=0,throttledUntil=0s,bulk_failures=[],search_failures=[]]
[00:19:16]               │ proc [kibana]   log   [18:29:13.434] [info][savedobjects-service] [.kibana] UPDATE_TARGET_MAPPINGS_WAIT_FOR_TASK -> MARK_VERSION_INDEX_READY. took: 109ms.
[00:19:16]               │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-centos-tests-xxl-1618766899596596876] [.kibana_8.0.0_reindex_temp/X-p6Rot3R_OlQESIrPva7Q] deleting index
[00:19:16]               │ proc [kibana]   log   [18:29:13.473] [info][savedobjects-service] [.kibana] MARK_VERSION_INDEX_READY -> DONE. took: 39ms.
[00:19:16]               │ proc [kibana]   log   [18:29:13.474] [info][savedobjects-service] [.kibana] Migration completed after 1574ms
[00:19:16]               │ debg [lens/basic] Migrated Kibana index after loading Kibana data
[00:19:16]               │ debg [lens/basic] Ensured that default space exists in .kibana
[00:19:16]               │ debg applying update to kibana config: {"accessibility:disableAnimations":true,"dateFormat:tz":"UTC","visualization:visualize:legacyChartsLibrary":true}
[00:19:18]               │ debg applying update to kibana config: {"accessibility:disableAnimations":true,"dateFormat:tz":"UTC","visualization:visualize:legacyChartsLibrary":true}
[00:19:19]             └-> should sync colors on dashboard by default
[00:19:19]               └-> "before each" hook: global before each for "should sync colors on dashboard by default"
[00:19:19]               │ debg navigating to dashboard url: http://localhost:6151/app/dashboards#/list
[00:19:19]               │ debg navigate to: http://localhost:6151/app/dashboards#/list
[00:19:19]               │ debg browser[INFO] http://localhost:6151/app/dashboards?_t=1618770556285#/list 341 Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'unsafe-eval' 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-P5polb1UreUSOe5V/Pv7tc+yeZuJXiOi/3fqhGsU7BE='), or a nonce ('nonce-...') is required to enable inline execution.
[00:19:19]               │
[00:19:19]               │ debg browser[INFO] http://localhost:6151/bootstrap.js 41:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:19:19]               │ debg ... sleep(700) start
[00:19:20]               │ debg ... sleep(700) end
[00:19:20]               │ debg returned from get, calling refresh
[00:19:20]               │ debg browser[INFO] http://localhost:6151/app/dashboards?_t=1618770556285#/list 341 Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'unsafe-eval' 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-P5polb1UreUSOe5V/Pv7tc+yeZuJXiOi/3fqhGsU7BE='), or a nonce ('nonce-...') is required to enable inline execution.
[00:19:20]               │
[00:19:20]               │ debg browser[INFO] http://localhost:6151/bootstrap.js 41:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:19:20]               │ debg currentUrl = http://localhost:6151/app/dashboards#/list
[00:19:20]               │          appUrl = http://localhost:6151/app/dashboards#/list
[00:19:20]               │ debg TestSubjects.find(kibanaChrome)
[00:19:20]               │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:19:21]               │ debg ... sleep(501) start
[00:19:22]               │ debg ... sleep(501) end
[00:19:22]               │ debg in navigateTo url = http://localhost:6151/app/dashboards#/list?_g=(filters:!(),refreshInterval:(pause:!t,value:0),time:(from:now-15m,to:now))
[00:19:22]               │ debg TestSubjects.exists(statusPageContainer)
[00:19:22]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="statusPageContainer"]') with timeout=2500
[00:19:24]               │ debg --- retry.tryForTime error: [data-test-subj="statusPageContainer"] is not displayed
[00:19:25]               │ debg TestSubjects.click(createDashboardPromptButton)
[00:19:25]               │ debg Find.clickByCssSelector('[data-test-subj="createDashboardPromptButton"]') with timeout=10000
[00:19:25]               │ debg Find.findByCssSelector('[data-test-subj="createDashboardPromptButton"]') with timeout=10000
[00:19:25]               │ debg DashboardAddPanel.clickAddNewPanelButton
[00:19:25]               │ debg TestSubjects.click(dashboardAddNewPanelButton)
[00:19:25]               │ debg Find.clickByCssSelector('[data-test-subj="dashboardAddNewPanelButton"]') with timeout=10000
[00:19:25]               │ debg Find.findByCssSelector('[data-test-subj="dashboardAddNewPanelButton"]') with timeout=10000
[00:19:25]               │ debg ... sleep(500) start
[00:19:26]               │ debg ... sleep(500) end
[00:19:26]               │ debg isGlobalLoadingIndicatorVisible
[00:19:26]               │ debg TestSubjects.exists(globalLoadingIndicator)
[00:19:26]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="globalLoadingIndicator"]') with timeout=1500
[00:19:26]               │ debg TestSubjects.exists(globalLoadingIndicator-hidden)
[00:19:26]               │ debg Find.existsByCssSelector('[data-test-subj="globalLoadingIndicator-hidden"]') with timeout=100000
[00:19:26]               │ debg lensPage.goToTimeRange()
[00:19:26]               │ debg TestSubjects.exists(noDataPopoverDismissButton)
[00:19:26]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="noDataPopoverDismissButton"]') with timeout=2500
[00:19:29]               │ debg --- retry.tryForTime error: [data-test-subj="noDataPopoverDismissButton"] is not displayed
[00:19:29]               │ debg Setting absolute range to Sep 19, 2015 @ 06:31:44.000 to Sep 23, 2015 @ 18:31:44.000
[00:19:29]               │ debg TestSubjects.exists(superDatePickerToggleQuickMenuButton)
[00:19:29]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="superDatePickerToggleQuickMenuButton"]') with timeout=20000
[00:19:29]               │ debg TestSubjects.exists(superDatePickerShowDatesButton)
[00:19:29]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="superDatePickerShowDatesButton"]') with timeout=2500
[00:19:29]               │ debg TestSubjects.click(superDatePickerShowDatesButton)
[00:19:29]               │ debg Find.clickByCssSelector('[data-test-subj="superDatePickerShowDatesButton"]') with timeout=10000
[00:19:29]               │ debg Find.findByCssSelector('[data-test-subj="superDatePickerShowDatesButton"]') with timeout=10000
[00:19:29]               │ debg TestSubjects.exists(superDatePickerstartDatePopoverButton)
[00:19:29]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="superDatePickerstartDatePopoverButton"]') with timeout=2500
[00:19:29]               │ debg TestSubjects.click(superDatePickerendDatePopoverButton)
[00:19:29]               │ debg Find.clickByCssSelector('[data-test-subj="superDatePickerendDatePopoverButton"]') with timeout=10000
[00:19:29]               │ debg Find.findByCssSelector('[data-test-subj="superDatePickerendDatePopoverButton"]') with timeout=10000
[00:19:30]               │ debg Find.findByCssSelector('div.euiPopover__panel-isOpen') with timeout=10000
[00:19:30]               │ debg TestSubjects.click(superDatePickerAbsoluteTab)
[00:19:30]               │ debg Find.clickByCssSelector('[data-test-subj="superDatePickerAbsoluteTab"]') with timeout=10000
[00:19:30]               │ debg Find.findByCssSelector('[data-test-subj="superDatePickerAbsoluteTab"]') with timeout=10000
[00:19:30]               │ debg TestSubjects.click(superDatePickerAbsoluteDateInput)
[00:19:30]               │ debg Find.clickByCssSelector('[data-test-subj="superDatePickerAbsoluteDateInput"]') with timeout=10000
[00:19:30]               │ debg Find.findByCssSelector('[data-test-subj="superDatePickerAbsoluteDateInput"]') with timeout=10000
[00:19:30]               │ debg TestSubjects.setValue(superDatePickerAbsoluteDateInput, Sep 23, 2015 @ 18:31:44.000)
[00:19:30]               │ debg TestSubjects.click(superDatePickerAbsoluteDateInput)
[00:19:30]               │ debg Find.clickByCssSelector('[data-test-subj="superDatePickerAbsoluteDateInput"]') with timeout=10000
[00:19:30]               │ debg Find.findByCssSelector('[data-test-subj="superDatePickerAbsoluteDateInput"]') with timeout=10000
[00:19:30]               │ debg TestSubjects.click(superDatePickerstartDatePopoverButton)
[00:19:30]               │ debg Find.clickByCssSelector('[data-test-subj="superDatePickerstartDatePopoverButton"]') with timeout=10000
[00:19:30]               │ debg Find.findByCssSelector('[data-test-subj="superDatePickerstartDatePopoverButton"]') with timeout=10000
[00:19:30]               │ debg Find.waitForElementStale with timeout=10000
[00:19:31]               │ debg Find.findByCssSelector('div.euiPopover__panel-isOpen') with timeout=10000
[00:19:31]               │ debg TestSubjects.click(superDatePickerAbsoluteTab)
[00:19:31]               │ debg Find.clickByCssSelector('[data-test-subj="superDatePickerAbsoluteTab"]') with timeout=10000
[00:19:31]               │ debg Find.findByCssSelector('[data-test-subj="superDatePickerAbsoluteTab"]') with timeout=10000
[00:19:31]               │ debg TestSubjects.click(superDatePickerAbsoluteDateInput)
[00:19:31]               │ debg Find.clickByCssSelector('[data-test-subj="superDatePickerAbsoluteDateInput"]') with timeout=10000
[00:19:31]               │ debg Find.findByCssSelector('[data-test-subj="superDatePickerAbsoluteDateInput"]') with timeout=10000
[00:19:31]               │ debg TestSubjects.setValue(superDatePickerAbsoluteDateInput, Sep 19, 2015 @ 06:31:44.000)
[00:19:31]               │ debg TestSubjects.click(superDatePickerAbsoluteDateInput)
[00:19:31]               │ debg Find.clickByCssSelector('[data-test-subj="superDatePickerAbsoluteDateInput"]') with timeout=10000
[00:19:31]               │ debg Find.findByCssSelector('[data-test-subj="superDatePickerAbsoluteDateInput"]') with timeout=10000
[00:19:31]               │ debg TestSubjects.exists(superDatePickerApplyTimeButton)
[00:19:31]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="superDatePickerApplyTimeButton"]') with timeout=2500
[00:19:34]               │ debg --- retry.tryForTime error: [data-test-subj="superDatePickerApplyTimeButton"] is not displayed
[00:19:34]               │ debg TestSubjects.click(querySubmitButton)
[00:19:34]               │ debg Find.clickByCssSelector('[data-test-subj="querySubmitButton"]') with timeout=10000
[00:19:34]               │ debg Find.findByCssSelector('[data-test-subj="querySubmitButton"]') with timeout=10000
[00:19:34]               │ debg Find.waitForElementStale with timeout=10000
[00:19:35]               │ debg TestSubjects.exists(globalLoadingIndicator-hidden)
[00:19:35]               │ debg Find.existsByCssSelector('[data-test-subj="globalLoadingIndicator-hidden"]') with timeout=100000
[00:19:35]               │ debg lensPage.configureDimension([object Object])
[00:19:35]               │ debg TestSubjects.click(lns-layerPanel-0 > lnsXY_yDimensionPanel > lns-empty-dimension)
[00:19:35]               │ debg Find.clickByCssSelector('[data-test-subj="lns-layerPanel-0"] [data-test-subj="lnsXY_yDimensionPanel"] [data-test-subj="lns-empty-dimension"]') with timeout=10000
[00:19:35]               │ debg Find.findByCssSelector('[data-test-subj="lns-layerPanel-0"] [data-test-subj="lnsXY_yDimensionPanel"] [data-test-subj="lns-empty-dimension"]') with timeout=10000
[00:19:45]               │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="lns-layerPanel-0"] [data-test-subj="lnsXY_yDimensionPanel"] [data-test-subj="lns-empty-dimension"])
[00:19:45]               │      Wait timed out after 10019ms
[00:19:45]               │ debg Find.findByCssSelector('[data-test-subj="lns-layerPanel-0"] [data-test-subj="lnsXY_yDimensionPanel"] [data-test-subj="lns-empty-dimension"]') with timeout=10000
[00:19:55]               │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="lns-layerPanel-0"] [data-test-subj="lnsXY_yDimensionPanel"] [data-test-subj="lns-empty-dimension"])
[00:19:55]               │      Wait timed out after 10057ms
[00:19:56]               │ debg Find.findByCssSelector('[data-test-subj="lns-layerPanel-0"] [data-test-subj="lnsXY_yDimensionPanel"] [data-test-subj="lns-empty-dimension"]') with timeout=10000
[00:20:06]               │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="lns-layerPanel-0"] [data-test-subj="lnsXY_yDimensionPanel"] [data-test-subj="lns-empty-dimension"])
[00:20:06]               │      Wait timed out after 10037ms
[00:20:06]               │ debg Find.findByCssSelector('[data-test-subj="lns-layerPanel-0"] [data-test-subj="lnsXY_yDimensionPanel"] [data-test-subj="lns-empty-dimension"]') with timeout=10000
[00:20:16]               │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="lns-layerPanel-0"] [data-test-subj="lnsXY_yDimensionPanel"] [data-test-subj="lns-empty-dimension"])
[00:20:16]               │      Wait timed out after 10009ms
[00:20:17]               │ debg Find.findByCssSelector('[data-test-subj="lns-layerPanel-0"] [data-test-subj="lnsXY_yDimensionPanel"] [data-test-subj="lns-empty-dimension"]') with timeout=10000
[00:20:27]               │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="lns-layerPanel-0"] [data-test-subj="lnsXY_yDimensionPanel"] [data-test-subj="lns-empty-dimension"])
[00:20:27]               │      Wait timed out after 10053ms
[00:20:27]               │ debg Find.findByCssSelector('[data-test-subj="lns-layerPanel-0"] [data-test-subj="lnsXY_yDimensionPanel"] [data-test-subj="lns-empty-dimension"]') with timeout=10000
[00:20:37]               │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="lns-layerPanel-0"] [data-test-subj="lnsXY_yDimensionPanel"] [data-test-subj="lns-empty-dimension"])
[00:20:37]               │      Wait timed out after 10028ms
[00:20:38]               │ debg Find.findByCssSelector('[data-test-subj="lns-layerPanel-0"] [data-test-subj="lnsXY_yDimensionPanel"] [data-test-subj="lns-empty-dimension"]') with timeout=10000
[00:20:48]               │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="lns-layerPanel-0"] [data-test-subj="lnsXY_yDimensionPanel"] [data-test-subj="lns-empty-dimension"])
[00:20:48]               │      Wait timed out after 10049ms
[00:20:48]               │ debg Find.findByCssSelector('[data-test-subj="lns-layerPanel-0"] [data-test-subj="lnsXY_yDimensionPanel"] [data-test-subj="lns-empty-dimension"]') with timeout=10000
[00:20:58]               │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="lns-layerPanel-0"] [data-test-subj="lnsXY_yDimensionPanel"] [data-test-subj="lns-empty-dimension"])
[00:20:58]               │      Wait timed out after 10050ms
[00:20:59]               │ debg Find.findByCssSelector('[data-test-subj="lns-layerPanel-0"] [data-test-subj="lnsXY_yDimensionPanel"] [data-test-subj="lns-empty-dimension"]') with timeout=10000
[00:21:09]               │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="lns-layerPanel-0"] [data-test-subj="lnsXY_yDimensionPanel"] [data-test-subj="lns-empty-dimension"])
[00:21:09]               │      Wait timed out after 10056ms
[00:21:09]               │ debg Find.findByCssSelector('[data-test-subj="lns-layerPanel-0"] [data-test-subj="lnsXY_yDimensionPanel"] [data-test-subj="lns-empty-dimension"]') with timeout=10000
[00:21:19]               │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="lns-layerPanel-0"] [data-test-subj="lnsXY_yDimensionPanel"] [data-test-subj="lns-empty-dimension"])
[00:21:19]               │      Wait timed out after 10026ms
[00:21:20]               │ debg Find.findByCssSelector('[data-test-subj="lns-layerPanel-0"] [data-test-subj="lnsXY_yDimensionPanel"] [data-test-subj="lns-empty-dimension"]') with timeout=10000
[00:21:30]               │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="lns-layerPanel-0"] [data-test-subj="lnsXY_yDimensionPanel"] [data-test-subj="lns-empty-dimension"])
[00:21:30]               │      Wait timed out after 10023ms
[00:21:30]               │ debg Find.findByCssSelector('[data-test-subj="lns-layerPanel-0"] [data-test-subj="lnsXY_yDimensionPanel"] [data-test-subj="lns-empty-dimension"]') with timeout=10000
[00:21:40]               │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="lns-layerPanel-0"] [data-test-subj="lnsXY_yDimensionPanel"] [data-test-subj="lns-empty-dimension"])
[00:21:40]               │      Wait timed out after 10015ms
[00:21:41]               │ debg --- retry.try error: retry.try timeout: TimeoutError: Waiting for element to be located By(css selector, [data-test-subj="lns-layerPanel-0"] [data-test-subj="lnsXY_yDimensionPanel"] [data-test-subj="lns-empty-dimension"])
[00:21:41]               │      Wait timed out after 10015ms
[00:21:41]               │          at /dev/shm/workspace/parallel/5/kibana/node_modules/selenium-webdriver/lib/webdriver.js:842:17
[00:21:41]               │          at runMicrotasks (<anonymous>)
[00:21:41]               │          at processTicksAndRejections (internal/process/task_queues.js:93:5)
[00:21:42]               │ info Taking screenshot "/dev/shm/workspace/parallel/5/kibana/x-pack/test/functional/screenshots/failure/dashboard sync colors should sync colors on dashboard by default.png"
[00:21:42]               │ info Current URL is: http://localhost:6151/app/dashboards#/create?_g=(filters:!(),refreshInterval:(pause:!t,value:0),time:(from:%272015-09-19T06:31:44.000Z%27,to:%272015-09-23T18:31:44.000Z%27))&_a=(description:%27%27,filters:!(),fullScreenMode:!f,options:(hidePanelTitles:!f,useMargins:!t),query:(language:kuery,query:%27%27),tags:!(),timeRestore:!f,title:%27%27,viewMode:edit)
[00:21:42]               │ info Saving page source to: /dev/shm/workspace/parallel/5/kibana/x-pack/test/functional/failure_debug/html/dashboard sync colors should sync colors on dashboard by default.html
[00:21:42]               └- ✖ fail: dashboard sync colors should sync colors on dashboard by default
[00:21:42]               │      retry.try timeout: Error: retry.try timeout: TimeoutError: Waiting for element to be located By(css selector, [data-test-subj="lns-layerPanel-0"] [data-test-subj="lnsXY_yDimensionPanel"] [data-test-subj="lns-empty-dimension"])
[00:21:42]               │ Wait timed out after 10015ms
[00:21:42]               │     at /dev/shm/workspace/parallel/5/kibana/node_modules/selenium-webdriver/lib/webdriver.js:842:17
[00:21:42]               │     at runMicrotasks (<anonymous>)
[00:21:42]               │     at processTicksAndRejections (internal/process/task_queues.js:93:5)
[00:21:42]               │     at onFailure (/dev/shm/workspace/parallel/5/kibana/test/common/services/retry/retry_for_success.ts:17:9)
[00:21:42]               │     at retryForSuccess (/dev/shm/workspace/parallel/5/kibana/test/common/services/retry/retry_for_success.ts:57:13)
[00:21:42]               │     at Retry.try (/dev/shm/workspace/parallel/5/kibana/test/common/services/retry/retry.ts:32:14)
[00:21:42]               │     at Proxy.clickByCssSelector (/dev/shm/workspace/parallel/5/kibana/test/functional/services/common/find.ts:420:7)
[00:21:42]               │     at TestSubjects.click (/dev/shm/workspace/parallel/5/kibana/test/functional/services/common/test_subjects.ts:109:7)
[00:21:42]               │     at /dev/shm/workspace/parallel/5/kibana/x-pack/test/functional/page_objects/lens_page.ts:114:9
[00:21:42]               │     at runAttempt (/dev/shm/workspace/parallel/5/kibana/test/common/services/retry/retry_for_success.ts:27:15)
[00:21:42]               │     at retryForSuccess (/dev/shm/workspace/parallel/5/kibana/test/common/services/retry/retry_for_success.ts:66:21)
[00:21:42]               │     at Retry.try (/dev/shm/workspace/parallel/5/kibana/test/common/services/retry/retry.ts:32:14)
[00:21:42]               │     at Object.configureDimension (/dev/shm/workspace/parallel/5/kibana/x-pack/test/functional/page_objects/lens_page.ts:113:7)
[00:21:42]               │     at Context.<anonymous> (/dev/shm/workspace/parallel/5/kibana/x-pack/test/functional/apps/dashboard/sync_colors.ts:55:7)
[00:21:42]               │     at Object.apply (/dev/shm/workspace/parallel/5/kibana/node_modules/@kbn/test/src/functional_test_runner/lib/mocha/wrap_function.js:73:16)
[00:21:42]               │   Error: retry.try timeout: Error: retry.try timeout: TimeoutError: Waiting for element to be located By(css selector, [data-test-subj="lns-layerPanel-0"] [data-test-subj="lnsXY_yDimensionPanel"] [data-test-subj="lns-empty-dimension"])
[00:21:42]               │   Wait timed out after 10015ms
[00:21:42]               │       at /dev/shm/workspace/parallel/5/kibana/node_modules/selenium-webdriver/lib/webdriver.js:842:17
[00:21:42]               │       at runMicrotasks (<anonymous>)
[00:21:42]               │       at processTicksAndRejections (internal/process/task_queues.js:93:5)
[00:21:42]               │       at onFailure (/dev/shm/workspace/parallel/5/kibana/test/common/services/retry/retry_for_success.ts:17:9)
[00:21:42]               │       at retryForSuccess (/dev/shm/workspace/parallel/5/kibana/test/common/services/retry/retry_for_success.ts:57:13)
[00:21:42]               │       at Retry.try (/dev/shm/workspace/parallel/5/kibana/test/common/services/retry/retry.ts:32:14)
[00:21:42]               │       at Proxy.clickByCssSelector (/dev/shm/workspace/parallel/5/kibana/test/functional/services/common/find.ts:420:7)
[00:21:42]               │       at TestSubjects.click (/dev/shm/workspace/parallel/5/kibana/test/functional/services/common/test_subjects.ts:109:7)
[00:21:42]               │       at /dev/shm/workspace/parallel/5/kibana/x-pack/test/functional/page_objects/lens_page.ts:114:9
[00:21:42]               │       at runAttempt (/dev/shm/workspace/parallel/5/kibana/test/common/services/retry/retry_for_success.ts:27:15)
[00:21:42]               │       at retryForSuccess (/dev/shm/workspace/parallel/5/kibana/test/common/services/retry/retry_for_success.ts:66:21)
[00:21:42]               │       at Retry.try (/dev/shm/workspace/parallel/5/kibana/test/common/services/retry/retry.ts:32:14)
[00:21:42]               │       at Object.configureDimension (test/functional/page_objects/lens_page.ts:113:7)
[00:21:42]               │       at Context.<anonymous> (test/functional/apps/dashboard/sync_colors.ts:55:7)
[00:21:42]               │       at Object.apply (/dev/shm/workspace/parallel/5/kibana/node_modules/@kbn/test/src/functional_test_runner/lib/mocha/wrap_function.js:73:16)
[00:21:42]               │       at onFailure (/dev/shm/workspace/parallel/5/kibana/test/common/services/retry/retry_for_success.ts:17:9)
[00:21:42]               │       at retryForSuccess (/dev/shm/workspace/parallel/5/kibana/test/common/services/retry/retry_for_success.ts:57:13)
[00:21:42]               │       at Retry.try (/dev/shm/workspace/parallel/5/kibana/test/common/services/retry/retry.ts:32:14)
[00:21:42]               │       at Object.configureDimension (test/functional/page_objects/lens_page.ts:113:7)
[00:21:42]               │       at Context.<anonymous> (test/functional/apps/dashboard/sync_colors.ts:55:7)
[00:21:42]               │       at Object.apply (/dev/shm/workspace/parallel/5/kibana/node_modules/@kbn/test/src/functional_test_runner/lib/mocha/wrap_function.js:73:16)
[00:21:42]               │ 
[00:21:42]               │ 

Stack Trace

Error: retry.try timeout: Error: retry.try timeout: TimeoutError: Waiting for element to be located By(css selector, [data-test-subj="lns-layerPanel-0"] [data-test-subj="lnsXY_yDimensionPanel"] [data-test-subj="lns-empty-dimension"])
Wait timed out after 10015ms
    at /dev/shm/workspace/parallel/5/kibana/node_modules/selenium-webdriver/lib/webdriver.js:842:17
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (internal/process/task_queues.js:93:5)
    at onFailure (/dev/shm/workspace/parallel/5/kibana/test/common/services/retry/retry_for_success.ts:17:9)
    at retryForSuccess (/dev/shm/workspace/parallel/5/kibana/test/common/services/retry/retry_for_success.ts:57:13)
    at Retry.try (/dev/shm/workspace/parallel/5/kibana/test/common/services/retry/retry.ts:32:14)
    at Proxy.clickByCssSelector (/dev/shm/workspace/parallel/5/kibana/test/functional/services/common/find.ts:420:7)
    at TestSubjects.click (/dev/shm/workspace/parallel/5/kibana/test/functional/services/common/test_subjects.ts:109:7)
    at /dev/shm/workspace/parallel/5/kibana/x-pack/test/functional/page_objects/lens_page.ts:114:9
    at runAttempt (/dev/shm/workspace/parallel/5/kibana/test/common/services/retry/retry_for_success.ts:27:15)
    at retryForSuccess (/dev/shm/workspace/parallel/5/kibana/test/common/services/retry/retry_for_success.ts:66:21)
    at Retry.try (/dev/shm/workspace/parallel/5/kibana/test/common/services/retry/retry.ts:32:14)
    at Object.configureDimension (test/functional/page_objects/lens_page.ts:113:7)
    at Context.<anonymous> (test/functional/apps/dashboard/sync_colors.ts:55:7)
    at Object.apply (/dev/shm/workspace/parallel/5/kibana/node_modules/@kbn/test/src/functional_test_runner/lib/mocha/wrap_function.js:73:16)
    at onFailure (/dev/shm/workspace/parallel/5/kibana/test/common/services/retry/retry_for_success.ts:17:9)
    at retryForSuccess (/dev/shm/workspace/parallel/5/kibana/test/common/services/retry/retry_for_success.ts:57:13)
    at Retry.try (/dev/shm/workspace/parallel/5/kibana/test/common/services/retry/retry.ts:32:14)
    at Object.configureDimension (test/functional/page_objects/lens_page.ts:113:7)
    at Context.<anonymous> (test/functional/apps/dashboard/sync_colors.ts:55:7)
    at Object.apply (/dev/shm/workspace/parallel/5/kibana/node_modules/@kbn/test/src/functional_test_runner/lib/mocha/wrap_function.js:73:16)

Metrics [docs]

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
fleet 787.8KB 788.1KB +306.0B
Unknown metric groups

API count

id before after diff
fleet 1071 1075 +4

API count missing comments

id before after diff
fleet 981 985 +4

History

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

cc @skh

Copy link
Contributor

@afgomez afgomez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code LGTM. I downloaded the PR and it works as intended.

Good job 👍🎉!

@skh skh merged commit efcf7d1 into elastic:master Apr 19, 2021
skh added a commit to skh/kibana that referenced this pull request Apr 19, 2021
…setup (elastic#97404)

* Don't fail on, just report, update and reupdate errors.

* Show error toast on update and reupdate errors.

* Don't return empty error array.

* Adjust mock.

* Adjust test.
skh added a commit that referenced this pull request Apr 19, 2021
…setup (#97404) (#97468)

* Don't fail on, just report, update and reupdate errors.

* Show error toast on update and reupdate errors.

* Don't return empty error array.

* Adjust mock.

* Adjust test.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release_note:skip Skip the PR/issue when compiling release notes Team:Fleet Team label for Observability Data Collection Fleet team v7.13.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants