Skip to content

[7.x] [RAC][Rule Registry] Implement versioning and backing indices (#109276)#110126

Merged
kibanamachine merged 1 commit intoelastic:7.xfrom
kibanamachine:backport/7.x/pr-109276
Aug 25, 2021
Merged

[7.x] [RAC][Rule Registry] Implement versioning and backing indices (#109276)#110126
kibanamachine merged 1 commit intoelastic:7.xfrom
kibanamachine:backport/7.x/pr-109276

Conversation

@kibanamachine
Copy link
Contributor

Backports the following commits to 7.x:

…c#109276)

**Ticket:** elastic#109293

🚨 **This PR is critical for Observability 7.15** 🚨

## Summary

This PR fixes the indexing implementation in `rule_registry`. It implements the suggestions for backwards compatibility described in the ticket:

- changes the naming scheme and introduces the concept of "backing indices", so that names of the concrete ("backing") indices != names of their aliases
- adds versioning based on the current Kibana version

TODO:

- [x] Change index naming (implement the concept of backing indices)
- [x] Include Kibana version into the index template metadata
- [x] Include Kibana version into the document fields
- [x] Remove `version` from `IndexOptions` (parameters provided by solutions/plugins when initializing alerts-as-data indices)
- [x] Fix CI

### Checklist

- [ ] [Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html) was added for features that require explanation or tutorials
- [ ] [Unit or functional tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html) were updated or added to match the most common scenarios
@kibanamachine kibanamachine added the backport This PR is a backport of another PR label Aug 25, 2021
@kibanamachine kibanamachine enabled auto-merge (squash) August 25, 2021 17:57
@kibanamachine
Copy link
Contributor Author

💛 Build succeeded, but was flaky


Test Failures

Kibana Pipeline / general / Chrome X-Pack UI Functional Tests.x-pack/test/functional/apps/observability/feature_controls/observability_security·ts.Observability specs feature controls observability security feature controls no observability privileges "before all" hook for "returns a 403"

Link to Jenkins

Standard Out

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

[00:00:00]       │
[00:15:30]         └-: Observability specs
[00:15:30]           └-> "before all" hook in "Observability specs"
[00:15:30]           └-: feature controls
[00:15:30]             └-> "before all" hook in "feature controls"
[00:15:30]             └-: observability security feature controls
[00:15:30]               └-> "before all" hook in "observability security feature controls"
[00:15:30]               └-> "before all" hook in "observability security feature controls"
[00:15:30]                 │ info [x-pack/test/functional/es_archives/cases/default] Loading "mappings.json"
[00:15:30]                 │ info [x-pack/test/functional/es_archives/cases/default] Loading "data.json.gz"
[00:15:30]                 │ info [o.e.c.m.MetadataDeleteIndexService] [node-01] [.kibana_7.16.0_001/0nOKaQWzSlWlrifGuCgWXQ] deleting index
[00:15:30]                 │ info [o.e.c.m.MetadataDeleteIndexService] [node-01] [.kibana_task_manager_7.16.0_001/fOGH1FzRTpSt3Ojxxx6SxQ] deleting index
[00:15:30]                 │ info [o.e.c.m.MetadataDeleteIndexService] [node-01] [.kibana_1/BddSksFyTIaLPCqqPx9OIA] deleting index
[00:15:30]                 │ info [x-pack/test/functional/es_archives/cases/default] Deleted existing index ".kibana_task_manager_7.16.0_001"
[00:15:30]                 │ info [x-pack/test/functional/es_archives/cases/default] Deleted existing index ".kibana_7.16.0_001"
[00:15:30]                 │ info [x-pack/test/functional/es_archives/cases/default] Deleted existing index ".kibana_1"
[00:15:30]                 │ info [o.e.c.m.MetadataCreateIndexService] [node-01] [.kibana_1] creating index, cause [api], templates [], shards [1]/[1]
[00:15:30]                 │ info [o.e.c.r.a.AllocationService] [node-01] updating number_of_replicas to [0] for indices [.kibana_1]
[00:15:30]                 │ info [o.e.c.r.a.AllocationService] [node-01] Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[.kibana_1][0]]]).
[00:15:30]                 │ info [x-pack/test/functional/es_archives/cases/default] Created index ".kibana_1"
[00:15:30]                 │ debg [x-pack/test/functional/es_archives/cases/default] ".kibana_1" settings {"index":{"auto_expand_replicas":"0-1","number_of_replicas":"1","number_of_shards":"1"}}
[00:15:31]                 │ info [x-pack/test/functional/es_archives/cases/default] Indexed 9 docs into ".kibana_1"
[00:15:31]                 │ debg Migrating saved objects
[00:15:31]                 │ proc [kibana]   log   [18:44:39.340] [info][savedobjects-service] [.kibana_task_manager] INIT -> CREATE_NEW_TARGET. took: 3ms.
[00:15:31]                 │ proc [kibana]   log   [18:44:39.342] [info][savedobjects-service] [.kibana] INIT -> WAIT_FOR_YELLOW_SOURCE. took: 7ms.
[00:15:31]                 │ proc [kibana]   log   [18:44:39.345] [info][savedobjects-service] [.kibana] WAIT_FOR_YELLOW_SOURCE -> CHECK_UNKNOWN_DOCUMENTS. took: 3ms.
[00:15:31]                 │ info [o.e.c.m.MetadataCreateIndexService] [node-01] [.kibana_task_manager_7.16.0_001] creating index, cause [api], templates [], shards [1]/[1]
[00:15:31]                 │ info [o.e.c.r.a.AllocationService] [node-01] updating number_of_replicas to [0] for indices [.kibana_task_manager_7.16.0_001]
[00:15:31]                 │ proc [kibana]   log   [18:44:39.351] [info][savedobjects-service] [.kibana] CHECK_UNKNOWN_DOCUMENTS -> SET_SOURCE_WRITE_BLOCK. took: 6ms.
[00:15:31]                 │ info [o.e.c.m.MetadataIndexStateService] [node-01] adding block write to indices [[.kibana_1/Bl9INjukQRGF_uKvpUQ69g]]
[00:15:31]                 │ info [o.e.c.r.a.AllocationService] [node-01] Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[.kibana_task_manager_7.16.0_001][0]]]).
[00:15:31]                 │ info [o.e.c.m.MetadataIndexStateService] [node-01] completed adding block write to indices [.kibana_1]
[00:15:31]                 │ proc [kibana]   log   [18:44:39.455] [info][savedobjects-service] [.kibana_task_manager] CREATE_NEW_TARGET -> MARK_VERSION_INDEX_READY. took: 115ms.
[00:15:31]                 │ proc [kibana]   log   [18:44:39.482] [info][savedobjects-service] [.kibana] SET_SOURCE_WRITE_BLOCK -> CALCULATE_EXCLUDE_FILTERS. took: 131ms.
[00:15:31]                 │ proc [kibana]   log   [18:44:39.486] [info][savedobjects-service] [.kibana] CALCULATE_EXCLUDE_FILTERS -> CREATE_REINDEX_TEMP. took: 4ms.
[00:15:31]                 │ proc [kibana]   log   [18:44:39.510] [info][savedobjects-service] [.kibana_task_manager] MARK_VERSION_INDEX_READY -> DONE. took: 55ms.
[00:15:31]                 │ proc [kibana]   log   [18:44:39.510] [info][savedobjects-service] [.kibana_task_manager] Migration completed after 173ms
[00:15:31]                 │ info [o.e.c.m.MetadataCreateIndexService] [node-01] [.kibana_7.16.0_reindex_temp] creating index, cause [api], templates [], shards [1]/[1]
[00:15:31]                 │ info [o.e.c.r.a.AllocationService] [node-01] updating number_of_replicas to [0] for indices [.kibana_7.16.0_reindex_temp]
[00:15:31]                 │ info [o.e.c.r.a.AllocationService] [node-01] Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[.kibana_7.16.0_reindex_temp][0]]]).
[00:15:31]                 │ proc [kibana]   log   [18:44:39.580] [info][savedobjects-service] [.kibana] CREATE_REINDEX_TEMP -> REINDEX_SOURCE_TO_TEMP_OPEN_PIT. took: 94ms.
[00:15:31]                 │ proc [kibana]   log   [18:44:39.584] [info][savedobjects-service] [.kibana] REINDEX_SOURCE_TO_TEMP_OPEN_PIT -> REINDEX_SOURCE_TO_TEMP_READ. took: 4ms.
[00:15:31]                 │ proc [kibana]   log   [18:44:39.590] [info][savedobjects-service] [.kibana] Starting to process 9 documents.
[00:15:31]                 │ proc [kibana]   log   [18:44:39.590] [info][savedobjects-service] [.kibana] REINDEX_SOURCE_TO_TEMP_READ -> REINDEX_SOURCE_TO_TEMP_INDEX. took: 6ms.
[00:15:31]                 │ proc [kibana]   log   [18:44:39.596] [info][savedobjects-service] [.kibana] REINDEX_SOURCE_TO_TEMP_INDEX -> REINDEX_SOURCE_TO_TEMP_INDEX_BULK. took: 6ms.
[00:15:31]                 │ info [o.e.c.m.MetadataMappingService] [node-01] [.kibana_7.16.0_reindex_temp/JkaKBWlKSRSImdWPfaINYg] update_mapping [_doc]
[00:15:31]                 │ proc [kibana]   log   [18:44:39.638] [info][savedobjects-service] [.kibana] REINDEX_SOURCE_TO_TEMP_INDEX_BULK -> REINDEX_SOURCE_TO_TEMP_READ. took: 42ms.
[00:15:31]                 │ proc [kibana]   log   [18:44:39.646] [info][savedobjects-service] [.kibana] Processed 9 documents out of 9.
[00:15:31]                 │ proc [kibana]   log   [18:44:39.646] [info][savedobjects-service] [.kibana] REINDEX_SOURCE_TO_TEMP_READ -> REINDEX_SOURCE_TO_TEMP_CLOSE_PIT. took: 8ms.
[00:15:31]                 │ proc [kibana]   log   [18:44:39.649] [info][savedobjects-service] [.kibana] REINDEX_SOURCE_TO_TEMP_CLOSE_PIT -> SET_TEMP_WRITE_BLOCK. took: 3ms.
[00:15:31]                 │ info [o.e.c.m.MetadataIndexStateService] [node-01] adding block write to indices [[.kibana_7.16.0_reindex_temp/JkaKBWlKSRSImdWPfaINYg]]
[00:15:31]                 │ info [o.e.c.m.MetadataIndexStateService] [node-01] completed adding block write to indices [.kibana_7.16.0_reindex_temp]
[00:15:31]                 │ proc [kibana]   log   [18:44:39.707] [info][savedobjects-service] [.kibana] SET_TEMP_WRITE_BLOCK -> CLONE_TEMP_TO_TARGET. took: 58ms.
[00:15:31]                 │ info [o.e.c.m.MetadataCreateIndexService] [node-01] applying create index request using existing index [.kibana_7.16.0_reindex_temp] metadata
[00:15:31]                 │ info [o.e.c.m.MetadataCreateIndexService] [node-01] [.kibana_7.16.0_001] creating index, cause [clone_index], templates [], shards [1]/[1]
[00:15:31]                 │ info [o.e.c.r.a.AllocationService] [node-01] updating number_of_replicas to [0] for indices [.kibana_7.16.0_001]
[00:15:31]                 │ info [o.e.c.m.MetadataMappingService] [node-01] [.kibana_7.16.0_001/ew4a67xzQz20rVa_mXW3Kg] create_mapping [_doc]
[00:15:31]                 │ info [o.e.c.r.a.AllocationService] [node-01] Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[.kibana_7.16.0_001][0]]]).
[00:15:31]                 │ proc [kibana]   log   [18:44:39.842] [info][savedobjects-service] [.kibana] CLONE_TEMP_TO_TARGET -> REFRESH_TARGET. took: 135ms.
[00:15:31]                 │ proc [kibana]   log   [18:44:39.846] [info][savedobjects-service] [.kibana] REFRESH_TARGET -> OUTDATED_DOCUMENTS_SEARCH_OPEN_PIT. took: 4ms.
[00:15:31]                 │ proc [kibana]   log   [18:44:39.849] [info][savedobjects-service] [.kibana] OUTDATED_DOCUMENTS_SEARCH_OPEN_PIT -> OUTDATED_DOCUMENTS_SEARCH_READ. took: 3ms.
[00:15:31]                 │ proc [kibana]   log   [18:44:39.855] [info][savedobjects-service] [.kibana] OUTDATED_DOCUMENTS_SEARCH_READ -> OUTDATED_DOCUMENTS_SEARCH_CLOSE_PIT. took: 6ms.
[00:15:31]                 │ proc [kibana]   log   [18:44:39.858] [info][savedobjects-service] [.kibana] OUTDATED_DOCUMENTS_SEARCH_CLOSE_PIT -> UPDATE_TARGET_MAPPINGS. took: 3ms.
[00:15:31]                 │ info [o.e.c.m.MetadataMappingService] [node-01] [.kibana_7.16.0_001/ew4a67xzQz20rVa_mXW3Kg] update_mapping [_doc]
[00:15:31]                 │ proc [kibana]   log   [18:44:39.923] [info][savedobjects-service] [.kibana] UPDATE_TARGET_MAPPINGS -> UPDATE_TARGET_MAPPINGS_WAIT_FOR_TASK. took: 65ms.
[00:15:31]                 │ info [o.e.t.LoggingTaskListener] [node-01] 36519 finished with response BulkByScrollResponse[took=23.6ms,timed_out=false,sliceId=null,updated=9,created=0,deleted=0,batches=1,versionConflicts=0,noops=0,retries=0,throttledUntil=0s,bulk_failures=[],search_failures=[]]
[00:15:31]                 │ proc [kibana]   log   [18:44:40.027] [info][savedobjects-service] [.kibana] UPDATE_TARGET_MAPPINGS_WAIT_FOR_TASK -> MARK_VERSION_INDEX_READY. took: 104ms.
[00:15:31]                 │ info [o.e.c.m.MetadataDeleteIndexService] [node-01] [.kibana_7.16.0_reindex_temp/JkaKBWlKSRSImdWPfaINYg] deleting index
[00:15:31]                 │ proc [kibana]   log   [18:44:40.117] [info][savedobjects-service] [.kibana] MARK_VERSION_INDEX_READY -> DONE. took: 90ms.
[00:15:31]                 │ proc [kibana]   log   [18:44:40.120] [info][savedobjects-service] [.kibana] Migration completed after 785ms
[00:15:31]                 │ debg [x-pack/test/functional/es_archives/cases/default] Migrated Kibana index after loading Kibana data
[00:15:32]                 │ info [o.e.c.m.MetadataMappingService] [node-01] [.kibana_7.16.0_001/ew4a67xzQz20rVa_mXW3Kg] update_mapping [_doc]
[00:15:32]                 │ debg [x-pack/test/functional/es_archives/cases/default] Ensured that default space exists in .kibana
[00:15:32]                 │ debg applying update to kibana config: {"accessibility:disableAnimations":true,"dateFormat:tz":"UTC","visualization:visualize:legacyChartsLibrary":true,"visualization:visualize:legacyPieChartsLibrary":true}
[00:16:23]               └-: no observability privileges
[00:16:23]                 └-> "before all" hook for "returns a 403"
[00:16:23]                 └-> "before all" hook for "returns a 403"
[00:16:23]                   │ debg creating role no_observability_privileges_role
[00:16:23]                   │ info [o.e.x.s.a.r.TransportPutRoleAction] [node-01] added role [no_observability_privileges_role]
[00:16:23]                   │ debg creating user no_observability_privileges_user
[00:16:23]                   │ info [o.e.x.s.a.u.TransportPutUserAction] [node-01] added user [no_observability_privileges_user]
[00:16:23]                   │ debg created user no_observability_privileges_user
[00:16:23]                   │ debg TestSubjects.exists(loginForm)
[00:16:23]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="loginForm"]') with timeout=2500
[00:16:26]                   │ debg --- retry.tryForTime error: [data-test-subj="loginForm"] is not displayed
[00:16:26]                   │ debg navigating to login url: http://localhost:61151/login
[00:16:26]                   │ debg navigate to: http://localhost:61151/login
[00:16:27]                   │ proc [kibana]   log   [18:45:35.575] [info][authentication][plugins][security] Authentication attempt failed: {"error":{"root_cause":[{"type":"security_exception","reason":"unable to authenticate user [cases_observability_read_user] for REST request [/_security/_authenticate]","header":{"WWW-Authenticate":["Basic realm=\"security\" charset=\"UTF-8\"","ApiKey"]}}],"type":"security_exception","reason":"unable to authenticate user [cases_observability_read_user] for REST request [/_security/_authenticate]","header":{"WWW-Authenticate":["Basic realm=\"security\" charset=\"UTF-8\"","ApiKey"]}},"status":401}
[00:16:27]                   │ debg browser[INFO] http://localhost:61151/login?_t=1629917135077 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:16:27]                   │
[00:16:27]                   │ debg browser[INFO] http://localhost:61151/bootstrap.js 41:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:16:27]                   │ debg ... sleep(700) start
[00:16:28]                   │ERROR browser[SEVERE] http://localhost:61151/api/licensing/info - Failed to load resource: the server responded with a status of 401 (Unauthorized)
[00:16:28]                   │ debg ... sleep(700) end
[00:16:28]                   │ debg returned from get, calling refresh
[00:16:29]                   │ debg browser[INFO] http://localhost:61151/login?_t=1629917135077 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:16:29]                   │
[00:16:29]                   │ debg browser[INFO] http://localhost:61151/bootstrap.js 41:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:16:29]                   │ debg currentUrl = http://localhost:61151/login
[00:16:29]                   │          appUrl = http://localhost:61151/login
[00:16:29]                   │ debg TestSubjects.find(kibanaChrome)
[00:16:29]                   │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:16:29]                   │ debg ... sleep(501) start
[00:16:29]                   │ERROR browser[SEVERE] http://localhost:61151/api/licensing/info - Failed to load resource: the server responded with a status of 401 (Unauthorized)
[00:16:30]                   │ debg ... sleep(501) end
[00:16:30]                   │ debg in navigateTo url = http://localhost:61151/login
[00:16:30]                   │ debg Waiting for Login Form to appear.
[00:16:30]                   │ debg Waiting up to 100000ms for login form...
[00:16:30]                   │ debg TestSubjects.exists(loginForm)
[00:16:30]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="loginForm"]') with timeout=2500
[00:16:30]                   │ debg TestSubjects.setValue(loginUsername, no_observability_privileges_user)
[00:16:30]                   │ debg TestSubjects.click(loginUsername)
[00:16:30]                   │ debg Find.clickByCssSelector('[data-test-subj="loginUsername"]') with timeout=10000
[00:16:30]                   │ debg Find.findByCssSelector('[data-test-subj="loginUsername"]') with timeout=10000
[00:16:30]                   │ debg TestSubjects.setValue(loginPassword, no_observability_privileges_user-password)
[00:16:30]                   │ debg TestSubjects.click(loginPassword)
[00:16:30]                   │ debg Find.clickByCssSelector('[data-test-subj="loginPassword"]') with timeout=10000
[00:16:30]                   │ debg Find.findByCssSelector('[data-test-subj="loginPassword"]') with timeout=10000
[00:16:30]                   │ debg TestSubjects.click(loginSubmit)
[00:16:30]                   │ debg Find.clickByCssSelector('[data-test-subj="loginSubmit"]') with timeout=10000
[00:16:30]                   │ debg Find.findByCssSelector('[data-test-subj="loginSubmit"]') with timeout=10000
[00:16:30]                   │ debg Waiting for login result, expected: undefined.
[00:16:30]                   │ debg Waiting up to 20000ms for logout button visible...
[00:16:30]                   │ debg TestSubjects.exists(userMenuButton)
[00:16:30]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="userMenuButton"]') with timeout=2500
[00:16:30]                   │ proc [kibana]   log   [18:45:39.017] [info][plugins][routes][security] Logging in with provider "basic" (basic)
[00:16:33]                   │ debg browser[INFO] http://localhost:61151/app/home 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:16:33]                   │
[00:16:33]                   │ debg browser[INFO] http://localhost:61151/bootstrap.js 41:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:16:33]                   │ERROR browser[SEVERE] http://localhost:61151/internal/security/me - Failed to load resource: net::ERR_NETWORK_CHANGED
[00:16:33]                   │ debg browser[INFO] http://localhost:61151/43848/bundles/core/core.entry.js 12:156250 "Detected an unhandled Promise rejection.
[00:16:33]                   │      TypeError: Failed to fetch"
[00:16:33]                   │ERROR browser[SEVERE] http://localhost:61151/43848/bundles/core/core.entry.js 5:2474 
[00:16:33]                   │ debg TestSubjects.exists(userMenu)
[00:16:33]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="userMenu"]') with timeout=2500
[00:16:35]                   │ debg --- retry.tryForTime error: [data-test-subj="userMenu"] is not displayed
[00:16:36]                   │ debg TestSubjects.click(userMenuButton)
[00:16:36]                   │ debg Find.clickByCssSelector('[data-test-subj="userMenuButton"]') with timeout=10000
[00:16:36]                   │ debg Find.findByCssSelector('[data-test-subj="userMenuButton"]') with timeout=10000
[00:16:36]                   │ debg TestSubjects.exists(userMenu)
[00:16:36]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="userMenu"]') with timeout=120000
[00:16:38]                   │ debg --- retry.tryForTime error: [data-test-subj="userMenu"] is not displayed
[00:16:41]                   │ debg --- retry.tryForTime failed again with the same message...
[00:16:44]                   │ debg --- retry.tryForTime failed again with the same message...
[00:16:47]                   │ debg --- retry.tryForTime failed again with the same message...
[00:16:50]                   │ debg --- retry.tryForTime failed again with the same message...
[00:16:54]                   │ debg --- retry.tryForTime failed again with the same message...
[00:16:57]                   │ debg --- retry.tryForTime failed again with the same message...
[00:17:00]                   │ debg --- retry.tryForTime failed again with the same message...
[00:17:03]                   │ debg --- retry.tryForTime failed again with the same message...
[00:17:06]                   │ debg --- retry.tryForTime failed again with the same message...
[00:17:09]                   │ debg --- retry.tryForTime failed again with the same message...
[00:17:12]                   │ debg --- retry.tryForTime failed again with the same message...
[00:17:15]                   │ debg --- retry.tryForTime failed again with the same message...
[00:17:18]                   │ debg --- retry.tryForTime failed again with the same message...
[00:17:21]                   │ debg --- retry.tryForTime failed again with the same message...
[00:17:24]                   │ debg --- retry.tryForTime failed again with the same message...
[00:17:27]                   │ debg --- retry.tryForTime failed again with the same message...
[00:17:30]                   │ debg --- retry.tryForTime failed again with the same message...
[00:17:33]                   │ debg --- retry.tryForTime failed again with the same message...
[00:17:36]                   │ debg --- retry.tryForTime failed again with the same message...
[00:17:39]                   │ debg --- retry.tryForTime failed again with the same message...
[00:17:42]                   │ debg --- retry.tryForTime failed again with the same message...
[00:17:45]                   │ debg --- retry.tryForTime failed again with the same message...
[00:17:48]                   │ debg --- retry.tryForTime failed again with the same message...
[00:17:51]                   │ debg --- retry.tryForTime failed again with the same message...
[00:17:54]                   │ debg --- retry.tryForTime failed again with the same message...
[00:17:57]                   │ debg --- retry.tryForTime failed again with the same message...
[00:18:00]                   │ debg --- retry.tryForTime failed again with the same message...
[00:18:03]                   │ debg --- retry.tryForTime failed again with the same message...
[00:18:06]                   │ debg --- retry.tryForTime failed again with the same message...
[00:18:09]                   │ debg --- retry.tryForTime failed again with the same message...
[00:18:12]                   │ debg --- retry.tryForTime failed again with the same message...
[00:18:15]                   │ debg --- retry.tryForTime failed again with the same message...
[00:18:18]                   │ debg --- retry.tryForTime failed again with the same message...
[00:18:22]                   │ debg --- retry.tryForTime failed again with the same message...
[00:18:25]                   │ debg --- retry.tryForTime failed again with the same message...
[00:18:28]                   │ debg --- retry.tryForTime failed again with the same message...
[00:18:31]                   │ debg --- retry.tryForTime failed again with the same message...
[00:18:34]                   │ debg --- retry.tryForTime failed again with the same message...
[00:18:37]                   │ debg --- retry.tryForTime failed again with the same message...
[00:18:37]                   │ debg --- retry.try error: expected testSubject(userMenu) to exist
[00:18:38]                   │ debg --- retry.waitFor error: retry.try timeout: Error: expected testSubject(userMenu) to exist
[00:18:38]                   │          at TestSubjects.existOrFail (/dev/shm/workspace/parallel/15/kibana/test/functional/services/common/test_subjects.ts:45:13)
[00:18:38]                   │          at /dev/shm/workspace/parallel/15/kibana/x-pack/test/functional/services/user_menu.js:48:9
[00:18:38]                   │          at runAttempt (/dev/shm/workspace/parallel/15/kibana/test/common/services/retry/retry_for_success.ts:27:15)
[00:18:38]                   │          at retryForSuccess (/dev/shm/workspace/parallel/15/kibana/test/common/services/retry/retry_for_success.ts:66:21)
[00:18:38]                   │          at RetryService.try (/dev/shm/workspace/parallel/15/kibana/test/common/services/retry/retry.ts:31:12)
[00:18:38]                   │          at UserMenu._ensureMenuOpen (/dev/shm/workspace/parallel/15/kibana/x-pack/test/functional/services/user_menu.js:46:7)
[00:18:38]                   │          at UserMenu.logoutLinkExists (/dev/shm/workspace/parallel/15/kibana/x-pack/test/functional/services/user_menu.js:28:7)
[00:18:38]                   │          at /dev/shm/workspace/parallel/15/kibana/x-pack/test/functional/page_objects/security_page.ts:249:19
[00:18:38]                   │          at runAttempt (/dev/shm/workspace/parallel/15/kibana/test/common/services/retry/retry_for_success.ts:27:15)
[00:18:38]                   │          at retryForSuccess (/dev/shm/workspace/parallel/15/kibana/test/common/services/retry/retry_for_success.ts:66:21)
[00:18:38]                   │          at retryForTruthy (/dev/shm/workspace/parallel/15/kibana/test/common/services/retry/retry_for_truthy.ts:27:3)
[00:18:38]                   │          at RetryService.waitFor (/dev/shm/workspace/parallel/15/kibana/test/common/services/retry/retry.ts:59:5)
[00:18:38]                   │          at SecurityPageObject.login (/dev/shm/workspace/parallel/15/kibana/x-pack/test/functional/page_objects/security_page.ts:247:5)
[00:18:38]                   │          at Context.<anonymous> (/dev/shm/workspace/parallel/15/kibana/x-pack/test/functional/apps/observability/feature_controls/observability_security.ts:191:9)
[00:18:38]                   │          at Object.apply (/dev/shm/workspace/parallel/15/kibana/node_modules/@kbn/test/target_node/functional_test_runner/lib/mocha/wrap_function.js:87:16)
[00:18:38]                   │ info Taking screenshot "/dev/shm/workspace/parallel/15/kibana/x-pack/test/functional/screenshots/failure/Observability specs feature controls observability security feature controls no observability privileges _before all_ hook for _returns a 403_.png"
[00:18:38]                   │ info Current URL is: http://localhost:61151/app/home#/
[00:18:38]                   │ info Saving page source to: /dev/shm/workspace/parallel/15/kibana/x-pack/test/functional/failure_debug/html/Observability specs feature controls observability security feature controls no observability privileges _before all_ hook for _returns a 403_.html
[00:18:38]                   └- ✖ fail: Observability specs feature controls observability security feature controls no observability privileges "before all" hook for "returns a 403"
[00:18:38]                   │      timed out waiting for logout button visible -- last error: Error: retry.try timeout: Error: expected testSubject(userMenu) to exist
[00:18:38]                   │     at TestSubjects.existOrFail (/dev/shm/workspace/parallel/15/kibana/test/functional/services/common/test_subjects.ts:45:13)
[00:18:38]                   │     at /dev/shm/workspace/parallel/15/kibana/x-pack/test/functional/services/user_menu.js:48:9
[00:18:38]                   │     at runAttempt (/dev/shm/workspace/parallel/15/kibana/test/common/services/retry/retry_for_success.ts:27:15)
[00:18:38]                   │     at retryForSuccess (/dev/shm/workspace/parallel/15/kibana/test/common/services/retry/retry_for_success.ts:66:21)
[00:18:38]                   │     at RetryService.try (/dev/shm/workspace/parallel/15/kibana/test/common/services/retry/retry.ts:31:12)
[00:18:38]                   │     at UserMenu._ensureMenuOpen (/dev/shm/workspace/parallel/15/kibana/x-pack/test/functional/services/user_menu.js:46:7)
[00:18:38]                   │     at UserMenu.logoutLinkExists (/dev/shm/workspace/parallel/15/kibana/x-pack/test/functional/services/user_menu.js:28:7)
[00:18:38]                   │     at /dev/shm/workspace/parallel/15/kibana/x-pack/test/functional/page_objects/security_page.ts:249:19
[00:18:38]                   │     at runAttempt (/dev/shm/workspace/parallel/15/kibana/test/common/services/retry/retry_for_success.ts:27:15)
[00:18:38]                   │     at retryForSuccess (/dev/shm/workspace/parallel/15/kibana/test/common/services/retry/retry_for_success.ts:66:21)
[00:18:38]                   │     at retryForTruthy (/dev/shm/workspace/parallel/15/kibana/test/common/services/retry/retry_for_truthy.ts:27:3)
[00:18:38]                   │     at RetryService.waitFor (/dev/shm/workspace/parallel/15/kibana/test/common/services/retry/retry.ts:59:5)
[00:18:38]                   │     at SecurityPageObject.login (/dev/shm/workspace/parallel/15/kibana/x-pack/test/functional/page_objects/security_page.ts:247:5)
[00:18:38]                   │     at Context.<anonymous> (/dev/shm/workspace/parallel/15/kibana/x-pack/test/functional/apps/observability/feature_controls/observability_security.ts:191:9)
[00:18:38]                   │     at Object.apply (/dev/shm/workspace/parallel/15/kibana/node_modules/@kbn/test/target_node/functional_test_runner/lib/mocha/wrap_function.js:87:16)
[00:18:38]                   │     at onFailure (/dev/shm/workspace/parallel/15/kibana/test/common/services/retry/retry_for_success.ts:17:9)
[00:18:38]                   │     at retryForSuccess (/dev/shm/workspace/parallel/15/kibana/test/common/services/retry/retry_for_success.ts:57:13)
[00:18:38]                   │     at RetryService.try (/dev/shm/workspace/parallel/15/kibana/test/common/services/retry/retry.ts:31:12)
[00:18:38]                   │     at UserMenu._ensureMenuOpen (/dev/shm/workspace/parallel/15/kibana/x-pack/test/functional/services/user_menu.js:46:7)
[00:18:38]                   │     at UserMenu.logoutLinkExists (/dev/shm/workspace/parallel/15/kibana/x-pack/test/functional/services/user_menu.js:28:7)
[00:18:38]                   │     at /dev/shm/workspace/parallel/15/kibana/x-pack/test/functional/page_objects/security_page.ts:249:19
[00:18:38]                   │     at runAttempt (/dev/shm/workspace/parallel/15/kibana/test/common/services/retry/retry_for_success.ts:27:15)
[00:18:38]                   │     at retryForSuccess (/dev/shm/workspace/parallel/15/kibana/test/common/services/retry/retry_for_success.ts:66:21)
[00:18:38]                   │     at retryForTruthy (/dev/shm/workspace/parallel/15/kibana/test/common/services/retry/retry_for_truthy.ts:27:3)
[00:18:38]                   │     at RetryService.waitFor (/dev/shm/workspace/parallel/15/kibana/test/common/services/retry/retry.ts:59:5)
[00:18:38]                   │     at SecurityPageObject.login (/dev/shm/workspace/parallel/15/kibana/x-pack/test/functional/page_objects/security_page.ts:247:5)
[00:18:38]                   │     at Context.<anonymous> (/dev/shm/workspace/parallel/15/kibana/x-pack/test/functional/apps/observability/feature_controls/observability_security.ts:191:9)
[00:18:38]                   │     at Object.apply (/dev/shm/workspace/parallel/15/kibana/node_modules/@kbn/test/target_node/functional_test_runner/lib/mocha/wrap_function.js:87:16)
[00:18:38]                   │   Error: timed out waiting for logout button visible -- last error: Error: retry.try timeout: Error: expected testSubject(userMenu) to exist
[00:18:38]                   │       at TestSubjects.existOrFail (/dev/shm/workspace/parallel/15/kibana/test/functional/services/common/test_subjects.ts:45:13)
[00:18:38]                   │       at /dev/shm/workspace/parallel/15/kibana/x-pack/test/functional/services/user_menu.js:48:9
[00:18:38]                   │       at runAttempt (/dev/shm/workspace/parallel/15/kibana/test/common/services/retry/retry_for_success.ts:27:15)
[00:18:38]                   │       at retryForSuccess (/dev/shm/workspace/parallel/15/kibana/test/common/services/retry/retry_for_success.ts:66:21)
[00:18:38]                   │       at RetryService.try (/dev/shm/workspace/parallel/15/kibana/test/common/services/retry/retry.ts:31:12)
[00:18:38]                   │       at UserMenu._ensureMenuOpen (test/functional/services/user_menu.js:46:7)
[00:18:38]                   │       at UserMenu.logoutLinkExists (test/functional/services/user_menu.js:28:7)
[00:18:38]                   │       at /dev/shm/workspace/parallel/15/kibana/x-pack/test/functional/page_objects/security_page.ts:249:19
[00:18:38]                   │       at runAttempt (/dev/shm/workspace/parallel/15/kibana/test/common/services/retry/retry_for_success.ts:27:15)
[00:18:38]                   │       at retryForSuccess (/dev/shm/workspace/parallel/15/kibana/test/common/services/retry/retry_for_success.ts:66:21)
[00:18:38]                   │       at retryForTruthy (/dev/shm/workspace/parallel/15/kibana/test/common/services/retry/retry_for_truthy.ts:27:3)
[00:18:38]                   │       at RetryService.waitFor (/dev/shm/workspace/parallel/15/kibana/test/common/services/retry/retry.ts:59:5)
[00:18:38]                   │       at SecurityPageObject.login (test/functional/page_objects/security_page.ts:247:5)
[00:18:38]                   │       at Context.<anonymous> (test/functional/apps/observability/feature_controls/observability_security.ts:191:9)
[00:18:38]                   │       at Object.apply (/dev/shm/workspace/parallel/15/kibana/node_modules/@kbn/test/target_node/functional_test_runner/lib/mocha/wrap_function.js:87:16)
[00:18:38]                   │       at onFailure (/dev/shm/workspace/parallel/15/kibana/test/common/services/retry/retry_for_success.ts:17:9)
[00:18:38]                   │       at retryForSuccess (/dev/shm/workspace/parallel/15/kibana/test/common/services/retry/retry_for_success.ts:57:13)
[00:18:38]                   │       at RetryService.try (/dev/shm/workspace/parallel/15/kibana/test/common/services/retry/retry.ts:31:12)
[00:18:38]                   │       at UserMenu._ensureMenuOpen (test/functional/services/user_menu.js:46:7)
[00:18:38]                   │       at UserMenu.logoutLinkExists (test/functional/services/user_menu.js:28:7)
[00:18:38]                   │       at /dev/shm/workspace/parallel/15/kibana/x-pack/test/functional/page_objects/security_page.ts:249:19
[00:18:38]                   │       at runAttempt (/dev/shm/workspace/parallel/15/kibana/test/common/services/retry/retry_for_success.ts:27:15)
[00:18:38]                   │       at retryForSuccess (/dev/shm/workspace/parallel/15/kibana/test/common/services/retry/retry_for_success.ts:66:21)
[00:18:38]                   │       at retryForTruthy (/dev/shm/workspace/parallel/15/kibana/test/common/services/retry/retry_for_truthy.ts:27:3)
[00:18:38]                   │       at RetryService.waitFor (/dev/shm/workspace/parallel/15/kibana/test/common/services/retry/retry.ts:59:5)
[00:18:38]                   │       at SecurityPageObject.login (test/functional/page_objects/security_page.ts:247:5)
[00:18:38]                   │       at Context.<anonymous> (test/functional/apps/observability/feature_controls/observability_security.ts:191:9)
[00:18:38]                   │       at Object.apply (/dev/shm/workspace/parallel/15/kibana/node_modules/@kbn/test/target_node/functional_test_runner/lib/mocha/wrap_function.js:87:16)
[00:18:38]                   │       at onFailure (/dev/shm/workspace/parallel/15/kibana/test/common/services/retry/retry_for_truthy.ts:39:13)
[00:18:38]                   │       at retryForSuccess (/dev/shm/workspace/parallel/15/kibana/test/common/services/retry/retry_for_success.ts:57:13)
[00:18:38]                   │       at retryForTruthy (/dev/shm/workspace/parallel/15/kibana/test/common/services/retry/retry_for_truthy.ts:27:3)
[00:18:38]                   │       at RetryService.waitFor (/dev/shm/workspace/parallel/15/kibana/test/common/services/retry/retry.ts:59:5)
[00:18:38]                   │       at SecurityPageObject.login (test/functional/page_objects/security_page.ts:247:5)
[00:18:38]                   │       at Context.<anonymous> (test/functional/apps/observability/feature_controls/observability_security.ts:191:9)
[00:18:38]                   │       at Object.apply (/dev/shm/workspace/parallel/15/kibana/node_modules/@kbn/test/target_node/functional_test_runner/lib/mocha/wrap_function.js:87:16)
[00:18:38]                   │ 
[00:18:38]                   │ 

Stack Trace

Error: timed out waiting for logout button visible -- last error: Error: retry.try timeout: Error: expected testSubject(userMenu) to exist
    at TestSubjects.existOrFail (/dev/shm/workspace/parallel/15/kibana/test/functional/services/common/test_subjects.ts:45:13)
    at /dev/shm/workspace/parallel/15/kibana/x-pack/test/functional/services/user_menu.js:48:9
    at runAttempt (/dev/shm/workspace/parallel/15/kibana/test/common/services/retry/retry_for_success.ts:27:15)
    at retryForSuccess (/dev/shm/workspace/parallel/15/kibana/test/common/services/retry/retry_for_success.ts:66:21)
    at RetryService.try (/dev/shm/workspace/parallel/15/kibana/test/common/services/retry/retry.ts:31:12)
    at UserMenu._ensureMenuOpen (test/functional/services/user_menu.js:46:7)
    at UserMenu.logoutLinkExists (test/functional/services/user_menu.js:28:7)
    at /dev/shm/workspace/parallel/15/kibana/x-pack/test/functional/page_objects/security_page.ts:249:19
    at runAttempt (/dev/shm/workspace/parallel/15/kibana/test/common/services/retry/retry_for_success.ts:27:15)
    at retryForSuccess (/dev/shm/workspace/parallel/15/kibana/test/common/services/retry/retry_for_success.ts:66:21)
    at retryForTruthy (/dev/shm/workspace/parallel/15/kibana/test/common/services/retry/retry_for_truthy.ts:27:3)
    at RetryService.waitFor (/dev/shm/workspace/parallel/15/kibana/test/common/services/retry/retry.ts:59:5)
    at SecurityPageObject.login (test/functional/page_objects/security_page.ts:247:5)
    at Context.<anonymous> (test/functional/apps/observability/feature_controls/observability_security.ts:191:9)
    at Object.apply (/dev/shm/workspace/parallel/15/kibana/node_modules/@kbn/test/target_node/functional_test_runner/lib/mocha/wrap_function.js:87:16)
    at onFailure (/dev/shm/workspace/parallel/15/kibana/test/common/services/retry/retry_for_success.ts:17:9)
    at retryForSuccess (/dev/shm/workspace/parallel/15/kibana/test/common/services/retry/retry_for_success.ts:57:13)
    at RetryService.try (/dev/shm/workspace/parallel/15/kibana/test/common/services/retry/retry.ts:31:12)
    at UserMenu._ensureMenuOpen (test/functional/services/user_menu.js:46:7)
    at UserMenu.logoutLinkExists (test/functional/services/user_menu.js:28:7)
    at /dev/shm/workspace/parallel/15/kibana/x-pack/test/functional/page_objects/security_page.ts:249:19
    at runAttempt (/dev/shm/workspace/parallel/15/kibana/test/common/services/retry/retry_for_success.ts:27:15)
    at retryForSuccess (/dev/shm/workspace/parallel/15/kibana/test/common/services/retry/retry_for_success.ts:66:21)
    at retryForTruthy (/dev/shm/workspace/parallel/15/kibana/test/common/services/retry/retry_for_truthy.ts:27:3)
    at RetryService.waitFor (/dev/shm/workspace/parallel/15/kibana/test/common/services/retry/retry.ts:59:5)
    at SecurityPageObject.login (test/functional/page_objects/security_page.ts:247:5)
    at Context.<anonymous> (test/functional/apps/observability/feature_controls/observability_security.ts:191:9)
    at Object.apply (/dev/shm/workspace/parallel/15/kibana/node_modules/@kbn/test/target_node/functional_test_runner/lib/mocha/wrap_function.js:87:16)
    at onFailure (/dev/shm/workspace/parallel/15/kibana/test/common/services/retry/retry_for_truthy.ts:39:13)
    at retryForSuccess (/dev/shm/workspace/parallel/15/kibana/test/common/services/retry/retry_for_success.ts:57:13)
    at retryForTruthy (/dev/shm/workspace/parallel/15/kibana/test/common/services/retry/retry_for_truthy.ts:27:3)
    at RetryService.waitFor (/dev/shm/workspace/parallel/15/kibana/test/common/services/retry/retry.ts:59:5)
    at SecurityPageObject.login (test/functional/page_objects/security_page.ts:247:5)
    at Context.<anonymous> (test/functional/apps/observability/feature_controls/observability_security.ts:191:9)
    at Object.apply (/dev/shm/workspace/parallel/15/kibana/node_modules/@kbn/test/target_node/functional_test_runner/lib/mocha/wrap_function.js:87:16)

Metrics [docs]

Public APIs missing comments

Total count of every public API that lacks a comment. Target amount is 0. Run node scripts/build_api_docs --plugin [yourplugin] --stats comments for more detailed information.

id before after diff
ruleRegistry 117 118 +1

Async chunks

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

id before after diff
apm 4.4MB 4.4MB +50.0B
observability 567.8KB 567.9KB +50.0B
total +100.0B
Unknown metric groups

API count

id before after diff
ruleRegistry 140 141 +1

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

cc @banderror

@kibanamachine kibanamachine merged commit 15e6d92 into elastic:7.x Aug 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport This PR is a backport of another PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants