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

Handle 503 responses from the status API #98738

Merged
merged 2 commits into from
Apr 29, 2021

Conversation

legrego
Copy link
Member

@legrego legrego commented Apr 29, 2021

Summary

Allows the status page to render if a 503 response is received from the /api/status endpoint.

Resolves #98614

@legrego legrego marked this pull request as ready for review April 29, 2021 16:00
@legrego legrego requested a review from a team as a code owner April 29, 2021 16:00
@legrego legrego added release_note:skip Skip the PR/issue when compiling release notes v7.13.0 v7.14.0 v8.0.0 labels Apr 29, 2021
@legrego legrego self-assigned this Apr 29, 2021
@legrego legrego added auto-backport Deprecated - use backport:version if exact versions are needed Team:Core Core services & architecture: plugins, logging, config, saved objects, http, ES client, i18n, etc labels Apr 29, 2021
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-core (Team:Core)

@legrego legrego enabled auto-merge (squash) April 29, 2021 16:06
@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/visualize/feature_controls/visualize_security·ts.Visualize visualize feature controls security global visualize read-only privileges can view existing Visualization

Link to Jenkins

Standard Out

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

[00:00:00]       │
[01:05:22]         └-: Visualize
[01:05:22]           └-> "before all" hook in "Visualize"
[01:05:22]           └-: visualize feature controls security
[01:05:22]             └-> "before all" hook in "visualize feature controls security"
[01:05:22]             └-> "before all" hook in "visualize feature controls security"
[01:05:22]               │ info [visualize/default] Loading "mappings.json"
[01:05:22]               │ info [visualize/default] Loading "data.json"
[01:05:22]               │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-centos-tests-xxl-1619712420319434401] [.kibana_task_manager_8.0.0_001/EdAegUTaS3q6Fmy4NRYw4g] deleting index
[01:05:22]               │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-centos-tests-xxl-1619712420319434401] [.kibana_8.0.0_001/p2rLJo11Sneg6T-_L4LHHw] deleting index
[01:05:22]               │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-centos-tests-xxl-1619712420319434401] [.kibana_pre6.5.0_001/nimEEU_rS4qfY0PTVHCk4A] deleting index
[01:05:22]               │ info [visualize/default] Deleted existing index ".kibana_8.0.0_001"
[01:05:22]               │ info [visualize/default] Deleted existing index ".kibana_task_manager_8.0.0_001"
[01:05:22]               │ info [visualize/default] Deleted existing index ".kibana_pre6.5.0_001"
[01:05:22]               │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-centos-tests-xxl-1619712420319434401] [.kibana_1] creating index, cause [api], templates [], shards [1]/[0]
[01:05:22]               │ info [visualize/default] Created index ".kibana_1"
[01:05:22]               │ debg [visualize/default] ".kibana_1" settings {"index":{"auto_expand_replicas":"0-1","number_of_replicas":"0","number_of_shards":"1"}}
[01:05:22]               │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-centos-tests-xxl-1619712420319434401] [metricbeat-7] creating index, cause [auto(bulk api)], templates [], shards [1]/[1]
[01:05:22]               │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-centos-tests-xxl-1619712420319434401] [metricbeat-7/v9c9HNJVSqC2GVQlh851eQ] create_mapping
[01:05:22]               │ info [visualize/default] Indexed 8 docs into ".kibana_1"
[01:05:22]               │ info [visualize/default] Indexed 1 docs into "metricbeat-7"
[01:05:22]               │ debg Migrating saved objects
[01:05:22]               │ proc [kibana]   log   [17:44:14.911] [info][savedobjects-service] [.kibana_task_manager] INIT -> CREATE_NEW_TARGET. took: 4ms.
[01:05:22]               │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-centos-tests-xxl-1619712420319434401] [.kibana_task_manager_8.0.0_001] creating index, cause [api], templates [], shards [1]/[1]
[01:05:22]               │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-centos-tests-xxl-1619712420319434401] updating number_of_replicas to [0] for indices [.kibana_task_manager_8.0.0_001]
[01:05:22]               │ proc [kibana]   log   [17:44:14.918] [info][savedobjects-service] [.kibana] INIT -> WAIT_FOR_YELLOW_SOURCE. took: 12ms.
[01:05:22]               │ proc [kibana]   log   [17:44:14.926] [info][savedobjects-service] [.kibana] WAIT_FOR_YELLOW_SOURCE -> SET_SOURCE_WRITE_BLOCK. took: 8ms.
[01:05:22]               │ info [o.e.c.m.MetadataIndexStateService] [kibana-ci-immutable-centos-tests-xxl-1619712420319434401] adding block write to indices [[.kibana_1/yfKnHLccR86vhd5AAOds0Q]]
[01:05:22]               │ info [o.e.c.m.MetadataIndexStateService] [kibana-ci-immutable-centos-tests-xxl-1619712420319434401] completed adding block write to indices [.kibana_1]
[01:05:22]               │ proc [kibana]   log   [17:44:14.977] [info][savedobjects-service] [.kibana_task_manager] CREATE_NEW_TARGET -> MARK_VERSION_INDEX_READY. took: 66ms.
[01:05:22]               │ proc [kibana]   log   [17:44:14.995] [info][savedobjects-service] [.kibana] SET_SOURCE_WRITE_BLOCK -> CREATE_REINDEX_TEMP. took: 69ms.
[01:05:22]               │ proc [kibana]   log   [17:44:15.006] [info][savedobjects-service] [.kibana_task_manager] MARK_VERSION_INDEX_READY -> DONE. took: 29ms.
[01:05:22]               │ proc [kibana]   log   [17:44:15.007] [info][savedobjects-service] [.kibana_task_manager] Migration completed after 100ms
[01:05:22]               │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-centos-tests-xxl-1619712420319434401] [.kibana_8.0.0_reindex_temp] creating index, cause [api], templates [], shards [1]/[1]
[01:05:22]               │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-centos-tests-xxl-1619712420319434401] updating number_of_replicas to [0] for indices [.kibana_8.0.0_reindex_temp]
[01:05:22]               │ proc [kibana]   log   [17:44:15.052] [info][savedobjects-service] [.kibana] CREATE_REINDEX_TEMP -> REINDEX_SOURCE_TO_TEMP_OPEN_PIT. took: 57ms.
[01:05:22]               │ proc [kibana]   log   [17:44:15.061] [info][savedobjects-service] [.kibana] REINDEX_SOURCE_TO_TEMP_OPEN_PIT -> REINDEX_SOURCE_TO_TEMP_READ. took: 9ms.
[01:05:22]               │ proc [kibana]   log   [17:44:15.072] [info][savedobjects-service] [.kibana] REINDEX_SOURCE_TO_TEMP_READ -> REINDEX_SOURCE_TO_TEMP_INDEX. took: 11ms.
[01:05:22]               │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-centos-tests-xxl-1619712420319434401] [.kibana_8.0.0_reindex_temp/-Gj60gRuRTeOvd5sXaAsZQ] update_mapping [_doc]
[01:05:22]               │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-centos-tests-xxl-1619712420319434401] [.kibana_8.0.0_reindex_temp/-Gj60gRuRTeOvd5sXaAsZQ] update_mapping [_doc]
[01:05:22]               │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-centos-tests-xxl-1619712420319434401] [.kibana_8.0.0_reindex_temp/-Gj60gRuRTeOvd5sXaAsZQ] update_mapping [_doc]
[01:05:22]               │ proc [kibana]   log   [17:44:15.148] [info][savedobjects-service] [.kibana] REINDEX_SOURCE_TO_TEMP_INDEX -> REINDEX_SOURCE_TO_TEMP_READ. took: 76ms.
[01:05:22]               │ proc [kibana]   log   [17:44:15.157] [info][savedobjects-service] [.kibana] REINDEX_SOURCE_TO_TEMP_READ -> REINDEX_SOURCE_TO_TEMP_CLOSE_PIT. took: 9ms.
[01:05:22]               │ proc [kibana]   log   [17:44:15.165] [info][savedobjects-service] [.kibana] REINDEX_SOURCE_TO_TEMP_CLOSE_PIT -> SET_TEMP_WRITE_BLOCK. took: 8ms.
[01:05:22]               │ info [o.e.c.m.MetadataIndexStateService] [kibana-ci-immutable-centos-tests-xxl-1619712420319434401] adding block write to indices [[.kibana_8.0.0_reindex_temp/-Gj60gRuRTeOvd5sXaAsZQ]]
[01:05:22]               │ info [o.e.c.m.MetadataIndexStateService] [kibana-ci-immutable-centos-tests-xxl-1619712420319434401] completed adding block write to indices [.kibana_8.0.0_reindex_temp]
[01:05:22]               │ proc [kibana]   log   [17:44:15.202] [info][savedobjects-service] [.kibana] SET_TEMP_WRITE_BLOCK -> CLONE_TEMP_TO_TARGET. took: 37ms.
[01:05:22]               │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-centos-tests-xxl-1619712420319434401] applying create index request using existing index [.kibana_8.0.0_reindex_temp] metadata
[01:05:22]               │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-centos-tests-xxl-1619712420319434401] [.kibana_8.0.0_001] creating index, cause [clone_index], templates [], shards [1]/[1]
[01:05:22]               │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-centos-tests-xxl-1619712420319434401] updating number_of_replicas to [0] for indices [.kibana_8.0.0_001]
[01:05:22]               │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-centos-tests-xxl-1619712420319434401] [.kibana_8.0.0_001/67gCgdYnQMuJeY_Y7jWkRw] create_mapping
[01:05:22]               │ proc [kibana]   log   [17:44:15.290] [info][savedobjects-service] [.kibana] CLONE_TEMP_TO_TARGET -> OUTDATED_DOCUMENTS_SEARCH. took: 88ms.
[01:05:22]               │ proc [kibana]   log   [17:44:15.300] [info][savedobjects-service] [.kibana] OUTDATED_DOCUMENTS_SEARCH -> UPDATE_TARGET_MAPPINGS. took: 10ms.
[01:05:22]               │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-centos-tests-xxl-1619712420319434401] [.kibana_8.0.0_001/67gCgdYnQMuJeY_Y7jWkRw] update_mapping [_doc]
[01:05:22]               │ proc [kibana]   log   [17:44:15.354] [info][savedobjects-service] [.kibana] UPDATE_TARGET_MAPPINGS -> UPDATE_TARGET_MAPPINGS_WAIT_FOR_TASK. took: 54ms.
[01:05:22]               │ info [o.e.t.LoggingTaskListener] [kibana-ci-immutable-centos-tests-xxl-1619712420319434401] 100909 finished with response BulkByScrollResponse[took=18.3ms,timed_out=false,sliceId=null,updated=8,created=0,deleted=0,batches=1,versionConflicts=0,noops=0,retries=0,throttledUntil=0s,bulk_failures=[],search_failures=[]]
[01:05:22]               │ proc [kibana]   log   [17:44:15.463] [info][savedobjects-service] [.kibana] UPDATE_TARGET_MAPPINGS_WAIT_FOR_TASK -> MARK_VERSION_INDEX_READY. took: 109ms.
[01:05:22]               │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-centos-tests-xxl-1619712420319434401] [.kibana_8.0.0_reindex_temp/-Gj60gRuRTeOvd5sXaAsZQ] deleting index
[01:05:22]               │ proc [kibana]   log   [17:44:15.503] [info][savedobjects-service] [.kibana] MARK_VERSION_INDEX_READY -> DONE. took: 40ms.
[01:05:22]               │ proc [kibana]   log   [17:44:15.503] [info][savedobjects-service] [.kibana] Migration completed after 597ms
[01:05:22]               │ debg [visualize/default] Migrated Kibana index after loading Kibana data
[01:05:22]               │ debg [visualize/default] Ensured that default space exists in .kibana
[01:05:22]               │ debg applying update to kibana config: {"accessibility:disableAnimations":true,"dateFormat:tz":"UTC","visualization:visualize:legacyChartsLibrary":true}
[01:05:22]               │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-centos-tests-xxl-1619712420319434401] [.kibana_8.0.0_001/67gCgdYnQMuJeY_Y7jWkRw] update_mapping [_doc]
[01:05:24]               │ info [logstash_functional] Loading "mappings.json"
[01:05:24]               │ info [logstash_functional] Loading "data.json.gz"
[01:05:24]               │ info [logstash_functional] Skipped restore for existing index "logstash-2015.09.22"
[01:05:24]               │ info [logstash_functional] Skipped restore for existing index "logstash-2015.09.20"
[01:05:24]               │ info [logstash_functional] Skipped restore for existing index "logstash-2015.09.21"
[01:07:08]             └-: global visualize read-only privileges
[01:07:08]               └-> "before all" hook for "shows visualize navlink"
[01:07:08]               └-> "before all" hook for "shows visualize navlink"
[01:07:08]                 │ debg creating role global_visualize_read_role
[01:07:08]                 │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-centos-tests-xxl-1619712420319434401] added role [global_visualize_read_role]
[01:07:08]                 │ debg creating user global_visualize_read_user
[01:07:08]                 │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-centos-tests-xxl-1619712420319434401] added user [global_visualize_read_user]
[01:07:08]                 │ debg created user global_visualize_read_user
[01:07:08]                 │ debg TestSubjects.exists(loginForm)
[01:07:08]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="loginForm"]') with timeout=2500
[01:07:08]                 │ debg Waiting for Login Form to appear.
[01:07:08]                 │ debg Waiting up to 100000ms for login form...
[01:07:08]                 │ debg TestSubjects.exists(loginForm)
[01:07:08]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="loginForm"]') with timeout=2500
[01:07:08]                 │ debg TestSubjects.setValue(loginUsername, global_visualize_read_user)
[01:07:08]                 │ debg TestSubjects.click(loginUsername)
[01:07:08]                 │ debg Find.clickByCssSelector('[data-test-subj="loginUsername"]') with timeout=10000
[01:07:08]                 │ debg Find.findByCssSelector('[data-test-subj="loginUsername"]') with timeout=10000
[01:07:08]                 │ debg TestSubjects.setValue(loginPassword, global_visualize_read_user-password)
[01:07:08]                 │ debg TestSubjects.click(loginPassword)
[01:07:08]                 │ debg Find.clickByCssSelector('[data-test-subj="loginPassword"]') with timeout=10000
[01:07:08]                 │ debg Find.findByCssSelector('[data-test-subj="loginPassword"]') with timeout=10000
[01:07:08]                 │ debg TestSubjects.click(loginSubmit)
[01:07:08]                 │ debg Find.clickByCssSelector('[data-test-subj="loginSubmit"]') with timeout=10000
[01:07:08]                 │ debg Find.findByCssSelector('[data-test-subj="loginSubmit"]') with timeout=10000
[01:07:09]                 │ debg Waiting for login result, expected: undefined.
[01:07:09]                 │ debg Waiting up to 20000ms for logout button visible...
[01:07:09]                 │ debg TestSubjects.exists(userMenuButton)
[01:07:09]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="userMenuButton"]') with timeout=2500
[01:07:09]                 │ proc [kibana]   log   [17:46:01.625] [info][plugins][routes][security] Logging in with provider "basic" (basic)
[01:07:11]                 │ debg browser[INFO] http://localhost:6131/app/home 340 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.
[01:07:11]                 │
[01:07:11]                 │ debg browser[INFO] http://localhost:6131/bootstrap.js 41:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[01:07:11]                 │ proc [kibana]   log   [17:46:03.870] [warning][api-authorization][plugins][security] User not authorized for "/api/fleet/epm/packages?experimental=true": responding with 403
[01:07:11]                 │ debg TestSubjects.exists(userMenu)
[01:07:11]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="userMenu"]') with timeout=2500
[01:07:13]                 │ERROR browser[SEVERE] http://localhost:6131/api/fleet/epm/packages?experimental=true - Failed to load resource: the server responded with a status of 403 (Forbidden)
[01:07:13]                 │ debg --- retry.tryForTime error: [data-test-subj="userMenu"] is not displayed
[01:07:14]                 │ debg TestSubjects.click(userMenuButton)
[01:07:14]                 │ debg Find.clickByCssSelector('[data-test-subj="userMenuButton"]') with timeout=10000
[01:07:14]                 │ debg Find.findByCssSelector('[data-test-subj="userMenuButton"]') with timeout=10000
[01:07:14]                 │ debg TestSubjects.exists(userMenu)
[01:07:14]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="userMenu"]') with timeout=120000
[01:07:14]                 │ debg TestSubjects.exists(userMenu > logoutLink)
[01:07:14]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="userMenu"] [data-test-subj="logoutLink"]') with timeout=2500
[01:07:14]               └-> shows visualize navlink
[01:07:14]                 └-> "before each" hook: global before each for "shows visualize navlink"
[01:07:14]                 │ debg isGlobalLoadingIndicatorVisible
[01:07:14]                 │ debg TestSubjects.exists(globalLoadingIndicator)
[01:07:14]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="globalLoadingIndicator"]') with timeout=1500
[01:07:16]                 │ debg --- retry.tryForTime error: [data-test-subj="globalLoadingIndicator"] is not displayed
[01:07:16]                 │ debg TestSubjects.exists(globalLoadingIndicator-hidden)
[01:07:16]                 │ debg Find.existsByCssSelector('[data-test-subj="globalLoadingIndicator-hidden"]') with timeout=100000
[01:07:16]                 │ debg TestSubjects.exists(collapsibleNav)
[01:07:16]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="collapsibleNav"]') with timeout=2500
[01:07:19]                 │ debg --- retry.tryForTime error: [data-test-subj="collapsibleNav"] is not displayed
[01:07:19]                 │ debg TestSubjects.click(toggleNavButton)
[01:07:19]                 │ debg Find.clickByCssSelector('[data-test-subj="toggleNavButton"]') with timeout=10000
[01:07:19]                 │ debg Find.findByCssSelector('[data-test-subj="toggleNavButton"]') with timeout=10000
[01:07:19]                 │ debg TestSubjects.find(collapsibleNav)
[01:07:19]                 │ debg Find.findByCssSelector('[data-test-subj="collapsibleNav"]') with timeout=10000
[01:07:19]                 │ debg Find.existsByCssSelector('[data-test-subj=collapsibleNav] > button') with timeout=2500
[01:07:19]                 │ debg Find.findByCssSelector('[data-test-subj=collapsibleNav] > button') with timeout=10000
[01:07:19]                 │ debg Find.clickByCssSelector('[data-test-subj=collapsibleNav] > button') with timeout=10000
[01:07:19]                 │ debg Find.findByCssSelector('[data-test-subj=collapsibleNav] > button') with timeout=10000
[01:07:20]                 └- ✓ pass  (5.4s) "Visualize visualize feature controls security global visualize read-only privileges shows visualize navlink"
[01:07:20]               └-> landing page shows "Create new Visualization" button
[01:07:20]                 └-> "before each" hook: global before each for "landing page shows "Create new Visualization" button"
[01:07:20]                 │ debg navigating to visualize url: http://localhost:6131/app/visualize#/
[01:07:20]                 │ debg navigate to: http://localhost:6131/app/visualize#/
[01:07:20]                 │ debg browser[INFO] http://localhost:6131/app/visualize?_t=1619718372608#/ 340 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.
[01:07:20]                 │
[01:07:20]                 │ debg browser[INFO] http://localhost:6131/bootstrap.js 41:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[01:07:20]                 │ debg ... sleep(700) start
[01:07:20]                 │ debg ... sleep(700) end
[01:07:20]                 │ debg returned from get, calling refresh
[01:07:21]                 │ERROR browser[SEVERE] http://localhost:6131/42493/bundles/core/core.entry.js 12:151013 TypeError: Failed to fetch
[01:07:21]                 │          at fetch_Fetch.fetchResponse (http://localhost:6131/42493/bundles/core/core.entry.js:6:26193)
[01:07:21]                 │          at async http://localhost:6131/42493/bundles/core/core.entry.js:6:24090
[01:07:21]                 │          at async http://localhost:6131/42493/bundles/core/core.entry.js:6:23996
[01:07:21]                 │ debg browser[INFO] http://localhost:6131/app/visualize?_t=1619718372608#/ 340 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.
[01:07:21]                 │
[01:07:21]                 │ debg browser[INFO] http://localhost:6131/bootstrap.js 41:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[01:07:21]                 │ debg currentUrl = http://localhost:6131/app/visualize#/
[01:07:21]                 │          appUrl = http://localhost:6131/app/visualize#/
[01:07:21]                 │ debg TestSubjects.find(kibanaChrome)
[01:07:21]                 │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[01:07:22]                 │ debg ... sleep(501) start
[01:07:22]                 │ proc [kibana]   log   [17:46:14.655] [warning][api-authorization][plugins][security] User not authorized for "/api/fleet/epm/packages?experimental=true": responding with 403
[01:07:22]                 │ERROR browser[SEVERE] http://localhost:6131/api/fleet/epm/packages?experimental=true - Failed to load resource: the server responded with a status of 403 (Forbidden)
[01:07:22]                 │ERROR browser[SEVERE] http://localhost:6131/api/kibana/settings - Failed to load resource: the server responded with a status of 403 (Forbidden)
[01:07:22]                 │ debg ... sleep(501) end
[01:07:22]                 │ debg in navigateTo url = http://localhost:6131/app/visualize#/?_g=(filters:!(),refreshInterval:(pause:!t,value:0),time:(from:now-15m,to:now))
[01:07:22]                 │ debg --- retry.try error: URL changed, waiting for it to settle
[01:07:23]                 │ debg ... sleep(501) start
[01:07:23]                 │ debg ... sleep(501) end
[01:07:23]                 │ debg in navigateTo url = http://localhost:6131/app/visualize#/?_g=(filters:!(),refreshInterval:(pause:!t,value:0),time:(from:now-15m,to:now))
[01:07:23]                 │ debg TestSubjects.exists(statusPageContainer)
[01:07:23]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="statusPageContainer"]') with timeout=2500
[01:07:26]                 │ debg --- retry.tryForTime error: [data-test-subj="statusPageContainer"] is not displayed
[01:07:26]                 │ debg TestSubjects.exists(visualizationLandingPage)
[01:07:26]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="visualizationLandingPage"]') with timeout=20000
[01:07:26]                 │ debg TestSubjects.exists(newItemButton)
[01:07:26]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="newItemButton"]') with timeout=120000
[01:07:26]                 └- ✓ pass  (6.6s) "Visualize visualize feature controls security global visualize read-only privileges landing page shows "Create new Visualization" button"
[01:07:26]               └-> shows read-only badge
[01:07:26]                 └-> "before each" hook: global before each for "shows read-only badge"
[01:07:26]                 │ debg TestSubjects.exists(headerBadge)
[01:07:26]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="headerBadge"]') with timeout=120000
[01:07:26]                 │ debg TestSubjects.getAttribute(headerBadge, data-test-badge-label, tryTimeout=120000, findTimeout=10000)
[01:07:26]                 │ debg TestSubjects.find(headerBadge)
[01:07:26]                 │ debg Find.findByCssSelector('[data-test-subj="headerBadge"]') with timeout=10000
[01:07:26]                 └- ✓ pass  (58ms) "Visualize visualize feature controls security global visualize read-only privileges shows read-only badge"
[01:07:26]               └-> can view existing Visualization
[01:07:26]                 └-> "before each" hook: global before each for "can view existing Visualization"
[01:07:26]                 │ debg navigateToActualUrl http://localhost:6131/app/visualize#/edit/i-exist
[01:07:26]                 │ debg browser[INFO] http://localhost:6131/app/visualize?_t=1619718379275#/edit/i-exist 340 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.
[01:07:26]                 │
[01:07:26]                 │ debg browser[INFO] http://localhost:6131/bootstrap.js 41:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[01:07:26]                 │ debg TestSubjects.exists(visualizationLoader)
[01:07:26]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="visualizationLoader"]') with timeout=20000
[01:07:29]                 │ERROR browser[SEVERE] http://localhost:6131/api/fleet/epm/packages?experimental=true - Failed to load resource: net::ERR_NETWORK_CHANGED
[01:07:29]                 │ERROR browser[SEVERE] http://localhost:6131/api/saved_objects/_find?fields=title&per_page=10000&type=index-pattern - Failed to load resource: net::ERR_NETWORK_CHANGED
[01:07:29]                 │ERROR browser[SEVERE] http://localhost:6131/42493/bundles/core/core.entry.js 12:46186 TypeError: Failed to fetch
[01:07:29]                 │          at fetch_Fetch.fetchResponse (http://localhost:6131/42493/bundles/core/core.entry.js:6:26193)
[01:07:29]                 │          at async http://localhost:6131/42493/bundles/core/core.entry.js:6:24090
[01:07:29]                 │          at async http://localhost:6131/42493/bundles/core/core.entry.js:6:23996
[01:07:29]                 │ERROR browser[SEVERE] http://localhost:6131/internal/global_search/searchable_types - Failed to load resource: net::ERR_NETWORK_CHANGED
[01:07:29]                 │ERROR browser[SEVERE] http://localhost:6131/api/_newsfeed-FTS-external-service-simulators/kibana/v8.0.0.json - Failed to load resource: net::ERR_NETWORK_CHANGED
[01:07:29]                 │ERROR browser[SEVERE] http://localhost:6131/42493/bundles/plugin/newsfeed/kibana/newsfeed.plugin.js 0:18527 TypeError: Failed to fetch
[01:07:29]                 │          at fetch_Fetch.fetchResponse (http://localhost:6131/42493/bundles/core/core.entry.js:6:26193)
[01:07:29]                 │          at async http://localhost:6131/42493/bundles/core/core.entry.js:6:24090
[01:07:29]                 │          at async http://localhost:6131/42493/bundles/core/core.entry.js:6:23996
[01:07:29]                 │ debg browser[INFO] http://localhost:6131/42493/bundles/core/core.entry.js 12:151941 "Detected an unhandled Promise rejection.
[01:07:29]                 │      TypeError: Failed to fetch"
[01:07:29]                 │ERROR browser[SEVERE] http://localhost:6131/42493/bundles/core/core.entry.js 5:2514 
[01:07:29]                 │ debg --- retry.tryForTime error: [data-test-subj="visualizationLoader"] is not displayed
[01:07:32]                 │ debg --- retry.tryForTime failed again with the same message...
[01:07:35]                 │ debg --- retry.tryForTime failed again with the same message...
[01:07:38]                 │ debg --- retry.tryForTime failed again with the same message...
[01:07:41]                 │ debg --- retry.tryForTime failed again with the same message...
[01:07:44]                 │ debg --- retry.tryForTime failed again with the same message...
[01:07:47]                 │ debg --- retry.tryForTime failed again with the same message...
[01:07:47]                 │ info Taking screenshot "/dev/shm/workspace/parallel/3/kibana/x-pack/test/functional/screenshots/failure/Visualize visualize feature controls security global visualize read-only privileges can view existing Visualization.png"
[01:07:48]                 │ info Current URL is: http://localhost:6131/app/visualize#/edit/i-exist
[01:07:48]                 │ info Saving page source to: /dev/shm/workspace/parallel/3/kibana/x-pack/test/functional/failure_debug/html/Visualize visualize feature controls security global visualize read-only privileges can view existing Visualization.html
[01:07:48]                 └- ✖ fail: Visualize visualize feature controls security global visualize read-only privileges can view existing Visualization
[01:07:48]                 │      Error: expected testSubject(visualizationLoader) to exist
[01:07:48]                 │       at TestSubjects.existOrFail (/dev/shm/workspace/parallel/3/kibana/test/functional/services/common/test_subjects.ts:51:15)
[01:07:48]                 │       at Context.<anonymous> (test/functional/apps/visualize/feature_controls/visualize_security.ts:235:9)
[01:07:48]                 │       at Object.apply (/dev/shm/workspace/parallel/3/kibana/node_modules/@kbn/test/src/functional_test_runner/lib/mocha/wrap_function.js:73:16)
[01:07:48]                 │ 
[01:07:48]                 │ 

Stack Trace

Error: expected testSubject(visualizationLoader) to exist
    at TestSubjects.existOrFail (/dev/shm/workspace/parallel/3/kibana/test/functional/services/common/test_subjects.ts:51:15)
    at Context.<anonymous> (test/functional/apps/visualize/feature_controls/visualize_security.ts:235:9)
    at Object.apply (/dev/shm/workspace/parallel/3/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
core 400.3KB 400.5KB +220.0B

History

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

cc @legrego

@legrego legrego merged commit 10961cd into elastic:master Apr 29, 2021
@legrego legrego deleted the legrego/issue98614 branch April 29, 2021 19:11
kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Apr 29, 2021
* Handle 503 responses from the status API

* PR feedback: additional test
kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Apr 29, 2021
* Handle 503 responses from the status API

* PR feedback: additional test
@kibanamachine
Copy link
Contributor

💚 Backport successful

Status Branch Result
7.13
7.x

The backport PRs will be merged automatically after passing CI.

kibanamachine added a commit that referenced this pull request Apr 29, 2021
* Handle 503 responses from the status API

* PR feedback: additional test

Co-authored-by: Larry Gregory <[email protected]>
kibanamachine added a commit that referenced this pull request Apr 29, 2021
* Handle 503 responses from the status API

* PR feedback: additional test

Co-authored-by: Larry Gregory <[email protected]>
spalger added a commit that referenced this pull request Apr 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto-backport Deprecated - use backport:version if exact versions are needed release_note:skip Skip the PR/issue when compiling release notes Team:Core Core services & architecture: plugins, logging, config, saved objects, http, ES client, i18n, etc v7.13.0 v7.14.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Unable to load status page if red
4 participants