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] Correctly check for degraded status in agent healthbar #102821

Merged
merged 2 commits into from
Jun 22, 2021

Conversation

nchaulet
Copy link
Member

@nchaulet nchaulet commented Jun 21, 2021

Summary

Resolve #102733

A typo in the query we use for the agent status bar was not handling degraded agent correctly that PR fix it and add a test to cover this.

Before

Screen Shot 2021-06-21 at 5 14 25 PM

After

Screen Shot 2021-06-21 at 5 08 12 PM

@nchaulet nchaulet added bug Fixes for quality problems that affect the customer experience v8.0.0 release_note:skip Skip the PR/issue when compiling release notes Team:Fleet Team label for Observability Data Collection Fleet team v7.14.0 auto-backport Deprecated: Automatically backport this PR after it's merged labels Jun 21, 2021
@nchaulet nchaulet self-assigned this Jun 21, 2021
@nchaulet nchaulet requested a review from a team as a code owner June 21, 2021 21:01
@elasticmachine
Copy link
Contributor

Pinging @elastic/fleet (Team:Fleet)

@nchaulet
Copy link
Member Author

@elasticmachine merge upstream

@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/canvas/lens·ts.Canvas app lens in canvas renders lens visualization

Link to Jenkins

Standard Out

Failed Tests Reporter:
  - Test has not failed recently on tracked branches

[00:00:00]       │
[00:02:13]         └-: Canvas app
[00:02:13]           └-> "before all" hook in "Canvas app"
[00:02:13]           └-> "before all" hook in "Canvas app"
[00:02:13]             │ debg set roles = test_logstash_reader,global_canvas_all
[00:02:13]             │ debg creating user test_user
[00:02:13]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-ubuntu-18-tests-xxl-1624309360173370728] updated user [test_user]
[00:02:13]             │ debg created user test_user
[00:02:13]             │ debg TestSubjects.exists(kibanaChrome)
[00:02:13]             │ debg Find.existsByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=2500
[00:02:14]             │ debg TestSubjects.find(kibanaChrome)
[00:02:14]             │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=100000
[00:02:14]             │ debg browser[INFO] http://localhost:6181/spaces/space_selector 281 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:02:14]             │
[00:02:14]             │ debg browser[INFO] http://localhost:6181/bootstrap.js 41:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:02:15]             │ info [x-pack/test/functional/es_archives/logstash_functional] Loading "mappings.json"
[00:02:15]             │ info [x-pack/test/functional/es_archives/logstash_functional] Loading "data.json.gz"
[00:02:15]             │ info [x-pack/test/functional/es_archives/logstash_functional] Skipped restore for existing index "logstash-2015.09.22"
[00:02:15]             │ info [x-pack/test/functional/es_archives/logstash_functional] Skipped restore for existing index "logstash-2015.09.20"
[00:02:15]             │ info [x-pack/test/functional/es_archives/logstash_functional] Skipped restore for existing index "logstash-2015.09.21"
[00:02:15]             │ proc [kibana]   log   [21:29:22.262] [warning][api-authorization][plugins][security] User not authorized for "/api/fleet/epm/packages?experimental=true": responding with 403
[00:02:15]             │ERROR browser[SEVERE] http://localhost:6181/api/fleet/epm/packages?experimental=true - Failed to load resource: the server responded with a status of 403 (Forbidden)
[00:05:30]           └-: lens in canvas
[00:05:30]             └-> "before all" hook for "renders lens visualization"
[00:05:30]             └-> "before all" hook for "renders lens visualization"
[00:05:30]               │ info [x-pack/test/functional/es_archives/canvas/lens] Loading "mappings.json"
[00:05:30]               │ info [x-pack/test/functional/es_archives/canvas/lens] Loading "data.json"
[00:05:30]               │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1624309360173370728] [.kibana_1/Li5bpsekS6-ErlSrJwoWvQ] deleting index
[00:05:30]               │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1624309360173370728] [.kibana_8.0.0_001/ZSeku8bYQdytWqyQJqHwGA] deleting index
[00:05:30]               │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1624309360173370728] [.kibana_task_manager_8.0.0_001/_rbRaQomShGNpvUSBigzQg] deleting index
[00:05:30]               │ info [x-pack/test/functional/es_archives/canvas/lens] Deleted existing index ".kibana_8.0.0_001"
[00:05:30]               │ info [x-pack/test/functional/es_archives/canvas/lens] Deleted existing index ".kibana_task_manager_8.0.0_001"
[00:05:30]               │ info [x-pack/test/functional/es_archives/canvas/lens] Deleted existing index ".kibana_1"
[00:05:30]               │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1624309360173370728] [.kibana_1] creating index, cause [api], templates [], shards [1]/[1]
[00:05:30]               │ info [x-pack/test/functional/es_archives/canvas/lens] Created index ".kibana_1"
[00:05:30]               │ debg [x-pack/test/functional/es_archives/canvas/lens] ".kibana_1" settings {"index":{"number_of_replicas":"1","number_of_shards":"1"}}
[00:05:30]               │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1624309360173370728] [logstash-lens] creating index, cause [api], templates [], shards [1]/[0]
[00:05:30]               │ info [x-pack/test/functional/es_archives/canvas/lens] Created index "logstash-lens"
[00:05:30]               │ debg [x-pack/test/functional/es_archives/canvas/lens] "logstash-lens" settings {"index":{"number_of_shards":"1","number_of_replicas":"0"}}
[00:05:30]               │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1624309360173370728] [.kibana_1/PlwhILQ6RfyEGwD8GRHlvQ] update_mapping [_doc]
[00:05:30]               │ info [x-pack/test/functional/es_archives/canvas/lens] Indexed 4 docs into ".kibana_1"
[00:05:30]               │ info [x-pack/test/functional/es_archives/canvas/lens] Indexed 1 docs into "logstash-lens"
[00:05:30]               │ debg Migrating saved objects
[00:05:30]               │ proc [kibana]   log   [21:32:37.262] [info][savedobjects-service] [.kibana_task_manager] INIT -> CREATE_NEW_TARGET. took: 3ms.
[00:05:30]               │ proc [kibana]   log   [21:32:37.267] [info][savedobjects-service] [.kibana] INIT -> WAIT_FOR_YELLOW_SOURCE. took: 9ms.
[00:05:30]               │ proc [kibana]   log   [21:32:37.270] [info][savedobjects-service] [.kibana] WAIT_FOR_YELLOW_SOURCE -> SET_SOURCE_WRITE_BLOCK. took: 3ms.
[00:05:30]               │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1624309360173370728] [.kibana_task_manager_8.0.0_001] creating index, cause [api], templates [], shards [1]/[1]
[00:05:30]               │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1624309360173370728] updating number_of_replicas to [0] for indices [.kibana_task_manager_8.0.0_001]
[00:05:30]               │ info [o.e.c.m.MetadataIndexStateService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1624309360173370728] adding block write to indices [[.kibana_1/PlwhILQ6RfyEGwD8GRHlvQ]]
[00:05:30]               │ info [o.e.c.m.MetadataIndexStateService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1624309360173370728] completed adding block write to indices [.kibana_1]
[00:05:30]               │ proc [kibana]   log   [21:32:37.349] [info][savedobjects-service] [.kibana_task_manager] CREATE_NEW_TARGET -> MARK_VERSION_INDEX_READY. took: 87ms.
[00:05:30]               │ proc [kibana]   log   [21:32:37.367] [info][savedobjects-service] [.kibana] SET_SOURCE_WRITE_BLOCK -> CREATE_REINDEX_TEMP. took: 97ms.
[00:05:30]               │ proc [kibana]   log   [21:32:37.392] [info][savedobjects-service] [.kibana_task_manager] MARK_VERSION_INDEX_READY -> DONE. took: 43ms.
[00:05:30]               │ proc [kibana]   log   [21:32:37.392] [info][savedobjects-service] [.kibana_task_manager] Migration completed after 133ms
[00:05:30]               │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1624309360173370728] [.kibana_8.0.0_reindex_temp] creating index, cause [api], templates [], shards [1]/[1]
[00:05:30]               │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1624309360173370728] updating number_of_replicas to [0] for indices [.kibana_8.0.0_reindex_temp]
[00:05:30]               │ proc [kibana]   log   [21:32:37.474] [info][savedobjects-service] [.kibana] CREATE_REINDEX_TEMP -> REINDEX_SOURCE_TO_TEMP_OPEN_PIT. took: 107ms.
[00:05:30]               │ proc [kibana]   log   [21:32:37.479] [info][savedobjects-service] [.kibana] REINDEX_SOURCE_TO_TEMP_OPEN_PIT -> REINDEX_SOURCE_TO_TEMP_READ. took: 5ms.
[00:05:30]               │ proc [kibana]   log   [21:32:37.489] [info][savedobjects-service] [.kibana] Starting to process 4 documents.
[00:05:30]               │ proc [kibana]   log   [21:32:37.490] [info][savedobjects-service] [.kibana] REINDEX_SOURCE_TO_TEMP_READ -> REINDEX_SOURCE_TO_TEMP_INDEX. took: 10ms.
[00:05:30]               │ proc [kibana]   log   [21:32:37.497] [info][savedobjects-service] [.kibana] REINDEX_SOURCE_TO_TEMP_INDEX -> REINDEX_SOURCE_TO_TEMP_INDEX_BULK. took: 8ms.
[00:05:30]               │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1624309360173370728] [.kibana_8.0.0_reindex_temp/QvU-hOjxRkeGykVvJaSDHQ] update_mapping [_doc]
[00:05:30]               │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1624309360173370728] [.kibana_8.0.0_reindex_temp/QvU-hOjxRkeGykVvJaSDHQ] update_mapping [_doc]
[00:05:30]               │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1624309360173370728] [.kibana_8.0.0_reindex_temp/QvU-hOjxRkeGykVvJaSDHQ] update_mapping [_doc]
[00:05:30]               │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1624309360173370728] [.kibana_8.0.0_reindex_temp/QvU-hOjxRkeGykVvJaSDHQ] update_mapping [_doc]
[00:05:30]               │ proc [kibana]   log   [21:32:37.631] [info][savedobjects-service] [.kibana] REINDEX_SOURCE_TO_TEMP_INDEX_BULK -> REINDEX_SOURCE_TO_TEMP_READ. took: 134ms.
[00:05:30]               │ proc [kibana]   log   [21:32:37.638] [info][savedobjects-service] [.kibana] Processed 4 documents out of 4.
[00:05:30]               │ proc [kibana]   log   [21:32:37.639] [info][savedobjects-service] [.kibana] REINDEX_SOURCE_TO_TEMP_READ -> REINDEX_SOURCE_TO_TEMP_CLOSE_PIT. took: 7ms.
[00:05:30]               │ proc [kibana]   log   [21:32:37.642] [info][savedobjects-service] [.kibana] REINDEX_SOURCE_TO_TEMP_CLOSE_PIT -> SET_TEMP_WRITE_BLOCK. took: 4ms.
[00:05:30]               │ info [o.e.c.m.MetadataIndexStateService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1624309360173370728] adding block write to indices [[.kibana_8.0.0_reindex_temp/QvU-hOjxRkeGykVvJaSDHQ]]
[00:05:30]               │ info [o.e.c.m.MetadataIndexStateService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1624309360173370728] completed adding block write to indices [.kibana_8.0.0_reindex_temp]
[00:05:30]               │ proc [kibana]   log   [21:32:37.705] [info][savedobjects-service] [.kibana] SET_TEMP_WRITE_BLOCK -> CLONE_TEMP_TO_TARGET. took: 63ms.
[00:05:30]               │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1624309360173370728] applying create index request using existing index [.kibana_8.0.0_reindex_temp] metadata
[00:05:30]               │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1624309360173370728] [.kibana_8.0.0_001] creating index, cause [clone_index], templates [], shards [1]/[1]
[00:05:30]               │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1624309360173370728] updating number_of_replicas to [0] for indices [.kibana_8.0.0_001]
[00:05:30]               │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1624309360173370728] [.kibana_8.0.0_001/WUcDD1z-TvWKx7ABhXREqw] create_mapping
[00:05:30]               │ proc [kibana]   log   [21:32:37.836] [info][savedobjects-service] [.kibana] CLONE_TEMP_TO_TARGET -> REFRESH_TARGET. took: 131ms.
[00:05:30]               │ proc [kibana]   log   [21:32:37.845] [info][savedobjects-service] [.kibana] REFRESH_TARGET -> OUTDATED_DOCUMENTS_SEARCH_OPEN_PIT. took: 9ms.
[00:05:30]               │ proc [kibana]   log   [21:32:37.850] [info][savedobjects-service] [.kibana] OUTDATED_DOCUMENTS_SEARCH_OPEN_PIT -> OUTDATED_DOCUMENTS_SEARCH_READ. took: 5ms.
[00:05:30]               │ proc [kibana]   log   [21:32:37.858] [info][savedobjects-service] [.kibana] OUTDATED_DOCUMENTS_SEARCH_READ -> OUTDATED_DOCUMENTS_SEARCH_CLOSE_PIT. took: 8ms.
[00:05:30]               │ proc [kibana]   log   [21:32:37.862] [info][savedobjects-service] [.kibana] OUTDATED_DOCUMENTS_SEARCH_CLOSE_PIT -> UPDATE_TARGET_MAPPINGS. took: 4ms.
[00:05:31]               │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1624309360173370728] [.kibana_8.0.0_001/WUcDD1z-TvWKx7ABhXREqw] update_mapping [_doc]
[00:05:31]               │ proc [kibana]   log   [21:32:37.929] [info][savedobjects-service] [.kibana] UPDATE_TARGET_MAPPINGS -> UPDATE_TARGET_MAPPINGS_WAIT_FOR_TASK. took: 67ms.
[00:05:31]               │ info [o.e.t.LoggingTaskListener] [kibana-ci-immutable-ubuntu-18-tests-xxl-1624309360173370728] 13528 finished with response BulkByScrollResponse[took=26.5ms,timed_out=false,sliceId=null,updated=4,created=0,deleted=0,batches=1,versionConflicts=0,noops=0,retries=0,throttledUntil=0s,bulk_failures=[],search_failures=[]]
[00:05:31]               │ proc [kibana]   log   [21:32:38.035] [info][savedobjects-service] [.kibana] UPDATE_TARGET_MAPPINGS_WAIT_FOR_TASK -> MARK_VERSION_INDEX_READY. took: 106ms.
[00:05:31]               │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1624309360173370728] [.kibana_8.0.0_reindex_temp/QvU-hOjxRkeGykVvJaSDHQ] deleting index
[00:05:31]               │ proc [kibana]   log   [21:32:38.080] [info][savedobjects-service] [.kibana] MARK_VERSION_INDEX_READY -> DONE. took: 45ms.
[00:05:31]               │ proc [kibana]   log   [21:32:38.081] [info][savedobjects-service] [.kibana] Migration completed after 823ms
[00:05:31]               │ debg [x-pack/test/functional/es_archives/canvas/lens] Migrated Kibana index after loading Kibana data
[00:05:31]               │ debg [x-pack/test/functional/es_archives/canvas/lens] Ensured that default space exists in .kibana
[00:05:31]               │ debg applying update to kibana config: {"accessibility:disableAnimations":true,"dateFormat:tz":"UTC","visualization:visualize:legacyChartsLibrary":true}
[00:05:31]               │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1624309360173370728] [.kibana_8.0.0_001/WUcDD1z-TvWKx7ABhXREqw] update_mapping [_doc]
[00:05:32]               │ debg navigating to canvas url: http://localhost:6181/app/canvas#/
[00:05:32]               │ debg navigate to: http://localhost:6181/app/canvas#/
[00:05:33]               │ debg browser[INFO] http://localhost:6181/app/canvas?_t=1624311159772#/ 281 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:05:33]               │
[00:05:33]               │ debg browser[INFO] http://localhost:6181/bootstrap.js 41:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:05:33]               │ debg ... sleep(700) start
[00:05:33]               │ debg ... sleep(700) end
[00:05:33]               │ debg returned from get, calling refresh
[00:05:34]               │ debg browser[INFO] http://localhost:6181/app/canvas?_t=1624311159772#/ 281 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:05:34]               │
[00:05:34]               │ debg browser[INFO] http://localhost:6181/bootstrap.js 41:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:05:34]               │ debg currentUrl = http://localhost:6181/app/canvas#/
[00:05:34]               │          appUrl = http://localhost:6181/app/canvas#/
[00:05:34]               │ debg TestSubjects.find(kibanaChrome)
[00:05:34]               │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:05:35]               │ proc [kibana]   log   [21:32:42.647] [warning][api-authorization][plugins][security] User not authorized for "/api/fleet/epm/packages?experimental=true": responding with 403
[00:05:35]               │ debg ... sleep(501) start
[00:05:35]               │ERROR browser[SEVERE] http://localhost:6181/api/fleet/epm/packages?experimental=true - Failed to load resource: the server responded with a status of 403 (Forbidden)
[00:05:36]               │ debg ... sleep(501) end
[00:05:36]               │ debg in navigateTo url = http://localhost:6181/app/canvas#/
[00:05:36]               │ debg navigating to canvas url: http://localhost:6181/app/canvas#/workpad/workpad-1705f884-6224-47de-ba49-ca224fe6ec31/page/1
[00:05:36]               │ debg navigate to: http://localhost:6181/app/canvas#/workpad/workpad-1705f884-6224-47de-ba49-ca224fe6ec31/page/1
[00:05:36]               │ debg browser[INFO] http://localhost:6181/app/canvas?_t=1624311163227#/workpad/workpad-1705f884-6224-47de-ba49-ca224fe6ec31/page/1 281 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:05:36]               │
[00:05:36]               │ debg browser[INFO] http://localhost:6181/bootstrap.js 41:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:05:36]               │ debg ... sleep(700) start
[00:05:37]               │ debg ... sleep(700) end
[00:05:37]               │ debg returned from get, calling refresh
[00:05:37]               │ debg browser[INFO] http://localhost:6181/app/canvas?_t=1624311163227#/workpad/workpad-1705f884-6224-47de-ba49-ca224fe6ec31/page/1 281 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:05:37]               │
[00:05:37]               │ debg browser[INFO] http://localhost:6181/bootstrap.js 41:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:05:37]               │ debg currentUrl = http://localhost:6181/app/canvas#/workpad/workpad-1705f884-6224-47de-ba49-ca224fe6ec31/page/1
[00:05:37]               │          appUrl = http://localhost:6181/app/canvas#/workpad/workpad-1705f884-6224-47de-ba49-ca224fe6ec31/page/1
[00:05:37]               │ debg TestSubjects.find(kibanaChrome)
[00:05:37]               │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:05:39]               │ proc [kibana]   log   [21:32:46.012] [warning][api-authorization][plugins][security] User not authorized for "/api/fleet/epm/packages?experimental=true": responding with 403
[00:05:39]               │ debg ... sleep(501) start
[00:05:39]               │ERROR browser[SEVERE] http://localhost:6181/internal/spaces/_active_space - Failed to load resource: net::ERR_NETWORK_CHANGED
[00:05:39]               │ERROR browser[SEVERE] http://localhost:6181/api/canvas/fns - Failed to load resource: net::ERR_NETWORK_CHANGED
[00:05:39]               │ERROR browser[SEVERE] http://localhost:6181/43682/bundles/core/core.entry.js 12:46180 TypeError: Failed to fetch
[00:05:39]               │          at fetch_Fetch.fetchResponse (http://localhost:6181/43682/bundles/core/core.entry.js:6:26193)
[00:05:39]               │          at async http://localhost:6181/43682/bundles/core/core.entry.js:6:24090
[00:05:39]               │          at async http://localhost:6181/43682/bundles/core/core.entry.js:6:23996
[00:05:39]               │ debg browser[INFO] http://localhost:6181/43682/bundles/core/core.entry.js 12:154115 "Detected an unhandled Promise rejection.
[00:05:39]               │      TypeError: Failed to fetch"
[00:05:39]               │ERROR browser[SEVERE] http://localhost:6181/43682/bundles/core/core.entry.js 5:2514 
[00:05:39]               │ERROR browser[SEVERE] http://localhost:6181/api/fleet/epm/packages?experimental=true - Failed to load resource: the server responded with a status of 403 (Forbidden)
[00:05:39]               │ debg ... sleep(501) end
[00:05:39]               │ debg in navigateTo url = http://localhost:6181/app/canvas#/workpad/workpad-1705f884-6224-47de-ba49-ca224fe6ec31/page/1
[00:05:39]             └-> renders lens visualization
[00:05:39]               └-> "before each" hook: global before each for "renders lens visualization"
[00:05:39]               │ debg isGlobalLoadingIndicatorVisible
[00:05:39]               │ debg TestSubjects.exists(globalLoadingIndicator)
[00:05:39]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="globalLoadingIndicator"]') with timeout=1500
[00:05:41]               │ debg --- retry.tryForTime error: [data-test-subj="globalLoadingIndicator"] is not displayed
[00:05:41]               │ debg TestSubjects.exists(globalLoadingIndicator-hidden)
[00:05:41]               │ debg Find.existsByCssSelector('[data-test-subj="globalLoadingIndicator-hidden"]') with timeout=100000
[00:05:41]               │ debg lensPage.assertMetric('Maximum of bytes', '16,788')
[00:05:41]               │ debg lensPage.assertExactText('[data-test-subj="lns_metric_title"]', 'Maximum of bytes')
[00:05:41]               │ debg lensPage.assertExpectedText('[data-test-subj="lns_metric_title"]', value => value === expectedText)
[00:05:41]               │ debg Waiting up to 1000ms for assertExpectedText...
[00:05:41]               │ debg Find.findByCssSelector('[data-test-subj="lns_metric_title"]') with timeout=10000
[00:05:51]               │ debg --- retry.waitForWithTimeout error: Waiting for element to be located By(css selector, [data-test-subj="lns_metric_title"])
[00:05:51]               │      Wait timed out after 10011ms
[00:05:52]               │ info Taking screenshot "/dev/shm/workspace/parallel/8/kibana/x-pack/test/functional/screenshots/failure/Canvas app lens in canvas renders lens visualization.png"
[00:05:52]               │ info Current URL is: http://localhost:6181/app/canvas#/workpad/workpad-1705f884-6224-47de-ba49-ca224fe6ec31/page/1
[00:05:52]               │ info Saving page source to: /dev/shm/workspace/parallel/8/kibana/x-pack/test/functional/failure_debug/html/Canvas app lens in canvas renders lens visualization.html
[00:05:52]               └- ✖ fail: Canvas app lens in canvas renders lens visualization
[00:05:52]               │      Error: timed out waiting for assertExpectedText -- last error: TimeoutError: Waiting for element to be located By(css selector, [data-test-subj="lns_metric_title"])
[00:05:52]               │ Wait timed out after 10011ms
[00:05:52]               │     at /dev/shm/workspace/parallel/8/kibana/node_modules/selenium-webdriver/lib/webdriver.js:842:17
[00:05:52]               │     at runMicrotasks (<anonymous>)
[00:05:52]               │     at processTicksAndRejections (internal/process/task_queues.js:95:5)
[00:05:52]               │       at onFailure (/dev/shm/workspace/parallel/8/kibana/test/common/services/retry/retry_for_truthy.ts:39:13)
[00:05:52]               │       at retryForSuccess (/dev/shm/workspace/parallel/8/kibana/test/common/services/retry/retry_for_success.ts:57:13)
[00:05:52]               │       at retryForTruthy (/dev/shm/workspace/parallel/8/kibana/test/common/services/retry/retry_for_truthy.ts:27:3)
[00:05:52]               │       at RetryService.waitForWithTimeout (/dev/shm/workspace/parallel/8/kibana/test/common/services/retry/retry.ts:45:5)
[00:05:52]               │       at Object.assertExpectedText (test/functional/page_objects/lens_page.ts:69:7)
[00:05:52]               │       at Object.assertMetric (test/functional/page_objects/lens_page.ts:867:7)
[00:05:52]               │       at Context.<anonymous> (test/functional/apps/canvas/lens.ts:32:7)
[00:05:52]               │       at Object.apply (/dev/shm/workspace/parallel/8/kibana/node_modules/@kbn/test/src/functional_test_runner/lib/mocha/wrap_function.js:73:16)
[00:05:52]               │ 
[00:05:52]               │ 

Stack Trace

Error: timed out waiting for assertExpectedText -- last error: TimeoutError: Waiting for element to be located By(css selector, [data-test-subj="lns_metric_title"])
Wait timed out after 10011ms
    at /dev/shm/workspace/parallel/8/kibana/node_modules/selenium-webdriver/lib/webdriver.js:842:17
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (internal/process/task_queues.js:95:5)
    at onFailure (/dev/shm/workspace/parallel/8/kibana/test/common/services/retry/retry_for_truthy.ts:39:13)
    at retryForSuccess (/dev/shm/workspace/parallel/8/kibana/test/common/services/retry/retry_for_success.ts:57:13)
    at retryForTruthy (/dev/shm/workspace/parallel/8/kibana/test/common/services/retry/retry_for_truthy.ts:27:3)
    at RetryService.waitForWithTimeout (/dev/shm/workspace/parallel/8/kibana/test/common/services/retry/retry.ts:45:5)
    at Object.assertExpectedText (test/functional/page_objects/lens_page.ts:69:7)
    at Object.assertMetric (test/functional/page_objects/lens_page.ts:867:7)
    at Context.<anonymous> (test/functional/apps/canvas/lens.ts:32:7)
    at Object.apply (/dev/shm/workspace/parallel/8/kibana/node_modules/@kbn/test/src/functional_test_runner/lib/mocha/wrap_function.js:73:16)

Metrics [docs]

Page load bundle

Size of the bundles that are downloaded on every page load. Target size is below 100kb

id before after diff
fleet 438.7KB 438.7KB -3.0B

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

cc @nchaulet

Copy link
Contributor

@jfsiii jfsiii left a comment

Choose a reason for hiding this comment

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

🚀 🙌🏻

@nchaulet nchaulet merged commit d792e02 into elastic:master Jun 22, 2021
@nchaulet nchaulet deleted the fix-bug-degraded-status branch June 22, 2021 01:20
kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Jun 22, 2021
@kibanamachine
Copy link
Contributor

💚 Backport successful

Status Branch Result
7.x

This backport PR will be merged automatically after passing CI.

kibanamachine added a commit that referenced this pull request Jun 22, 2021
…) (#102842)

Co-authored-by: Nicolas Chaulet <nicolas.chaulet@elastic.co>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto-backport Deprecated: Automatically backport this PR after it's merged bug Fixes for quality problems that affect the customer experience release_note:skip Skip the PR/issue when compiling release notes Team:Fleet Team label for Observability Data Collection Fleet team v7.14.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Security Solution] The agent status is incorrectly sent as Healthy for Unhealthy
4 participants