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

[Alerting] [8.0] Prepare for making alerting saved objects sharecapable #109990

Conversation

YulNaumenko
Copy link
Contributor

@YulNaumenko YulNaumenko commented Aug 25, 2021

Summary

Resolves #107084

Change all saved objects created by the alerting plugin to use namespaceType: 'multiple-isolated' (instead of namespaceType: 'single')

@YulNaumenko YulNaumenko self-assigned this Aug 25, 2021
@YulNaumenko YulNaumenko added v8.0.0 Feature:Alerting/RulesFramework Issues related to the Alerting Rules Framework Team:ResponseOps Label for the ResponseOps team (formerly the Cases and Alerting teams) release_note:skip Skip the PR/issue when compiling release notes labels Aug 25, 2021
@YulNaumenko YulNaumenko marked this pull request as ready for review August 25, 2021 16:39
@YulNaumenko YulNaumenko requested a review from a team as a code owner August 25, 2021 16:39
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-alerting-services (Team:Alerting Services)

@YulNaumenko YulNaumenko requested a review from ymao1 August 26, 2021 15:22
Copy link
Contributor

@chrisronline chrisronline left a comment

Choose a reason for hiding this comment

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

LGTM!

Copy link
Contributor

@ymao1 ymao1 left a comment

Choose a reason for hiding this comment

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

LGTM

@YulNaumenko
Copy link
Contributor Author

@elasticmachine merge upstream

@kibanamachine
Copy link
Contributor

kibanamachine commented Aug 26, 2021

💔 Build Failed

Failed CI Steps


Test Failures

Kibana Pipeline / general / X-Pack Alerting API Integration Tests.x-pack/test/alerting_api_integration/security_and_spaces/tests/alerting/rbac_legacy·ts.alerting api integration security and spaces enabled Alerts legacy alerts alerts superuser at space1 should schedule actions on legacy alerts

Link to Jenkins

Standard Out

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

[00:00:00]       │
[00:00:00]         └-: alerting api integration security and spaces enabled
[00:00:00]           └-> "before all" hook in "alerting api integration security and spaces enabled"
[00:04:04]           └-: Alerts
[00:04:04]             └-> "before all" hook in "Alerts"
[00:04:04]             └-: legacy alerts
[00:04:04]               └-> "before all" hook in "legacy alerts"
[00:04:04]               └-> "before all" hook in "legacy alerts"
[00:04:04]                 │ debg creating space
[00:04:05]                 │ debg created space
[00:04:05]                 │ debg creating space
[00:04:06]                 │ debg created space
[00:04:06]                 │ debg creating space
[00:04:07]                 │ debg created space
[00:04:07]                 │ debg creating user no_kibana_privileges
[00:04:07]                 │ info [o.e.x.s.a.u.TransportPutUserAction] [node-01] added user [no_kibana_privileges]
[00:04:07]                 │ debg created user no_kibana_privileges
[00:04:07]                 │ debg creating role no_kibana_privileges
[00:04:07]                 │ info [o.e.x.s.a.r.TransportPutRoleAction] [node-01] added role [no_kibana_privileges]
[00:04:07]                 │ debg creating user superuser
[00:04:07]                 │ info [o.e.x.s.a.u.TransportPutUserAction] [node-01] added user [superuser]
[00:04:07]                 │ debg created user superuser
[00:04:07]                 │ debg creating user global_read
[00:04:07]                 │ info [o.e.x.s.a.u.TransportPutUserAction] [node-01] added user [global_read]
[00:04:07]                 │ debg created user global_read
[00:04:07]                 │ debg creating role global_read_role
[00:04:07]                 │ info [o.e.x.s.a.r.TransportPutRoleAction] [node-01] added role [global_read_role]
[00:04:07]                 │ debg creating user space_1_all
[00:04:08]                 │ info [o.e.x.s.a.u.TransportPutUserAction] [node-01] added user [space_1_all]
[00:04:08]                 │ debg created user space_1_all
[00:04:08]                 │ debg creating role space_1_all_role
[00:04:08]                 │ info [o.e.x.s.a.r.TransportPutRoleAction] [node-01] added role [space_1_all_role]
[00:04:08]                 │ debg creating user space_1_all_with_restricted_fixture
[00:04:08]                 │ info [o.e.x.s.a.u.TransportPutUserAction] [node-01] added user [space_1_all_with_restricted_fixture]
[00:04:08]                 │ debg created user space_1_all_with_restricted_fixture
[00:04:08]                 │ debg creating role space_1_all_with_restricted_fixture_role
[00:04:08]                 │ info [o.e.x.s.a.r.TransportPutRoleAction] [node-01] added role [space_1_all_with_restricted_fixture_role]
[00:04:08]                 │ debg creating user space_1_all_alerts_none_actions
[00:04:08]                 │ info [o.e.x.s.a.u.TransportPutUserAction] [node-01] added user [space_1_all_alerts_none_actions]
[00:04:08]                 │ debg created user space_1_all_alerts_none_actions
[00:04:08]                 │ debg creating role space_1_all_alerts_none_actions_role
[00:04:08]                 │ info [o.e.x.s.a.r.TransportPutRoleAction] [node-01] added role [space_1_all_alerts_none_actions_role]
[00:04:08]               └-: alerts
[00:04:08]                 └-> "before all" hook in "alerts"
[00:04:08]                 └-> "before all" hook in "alerts"
[00:04:08]                   │ info [x-pack/test/functional/es_archives/alerts_legacy] Loading "mappings.json"
[00:04:08]                   │ info [x-pack/test/functional/es_archives/alerts_legacy] Loading "data.json"
[00:04:08]                   │ info [o.e.c.m.MetadataDeleteIndexService] [node-01] [.kibana_task_manager_8.0.0_001/HwVGiVTtSaS8H68GytM4EQ] deleting index
[00:04:08]                   │ info [o.e.c.m.MetadataDeleteIndexService] [node-01] [.kibana_8.0.0_001/jnnnC0_jRg6oD6vEIeabHg] deleting index
[00:04:08]                   │ info [x-pack/test/functional/es_archives/alerts_legacy] Deleted existing index ".kibana_8.0.0_001"
[00:04:08]                   │ info [x-pack/test/functional/es_archives/alerts_legacy] Deleted existing index ".kibana_task_manager_8.0.0_001"
[00:04:08]                   │ info [o.e.c.m.MetadataCreateIndexService] [node-01] [.kibana_1] creating index, cause [api], templates [], shards [1]/[0]
[00:04:08]                   │ info [x-pack/test/functional/es_archives/alerts_legacy] Created index ".kibana_1"
[00:04:08]                   │ debg [x-pack/test/functional/es_archives/alerts_legacy] ".kibana_1" settings {"index":{"auto_expand_replicas":"0-1","number_of_replicas":"0","number_of_shards":"1"}}
[00:04:08]                   │ info [o.e.c.m.MetadataCreateIndexService] [node-01] [.kibana_task_manager_1] creating index, cause [api], templates [], shards [1]/[0]
[00:04:08]                   │ info [x-pack/test/functional/es_archives/alerts_legacy] Created index ".kibana_task_manager_1"
[00:04:08]                   │ debg [x-pack/test/functional/es_archives/alerts_legacy] ".kibana_task_manager_1" settings {"index":{"auto_expand_replicas":"0-1","number_of_replicas":"0","number_of_shards":"1"}}
[00:04:08]                   │ info [x-pack/test/functional/es_archives/alerts_legacy] Indexed 6 docs into ".kibana_1"
[00:04:08]                   │ info [x-pack/test/functional/es_archives/alerts_legacy] Indexed 5 docs into ".kibana_task_manager_1"
[00:04:08]                   │ debg Migrating saved objects
[00:04:08]                   │ proc [kibana]   log   [20:51:51.915] [info][savedobjects-service] [.kibana_task_manager] INIT -> WAIT_FOR_YELLOW_SOURCE. took: 6ms.
[00:04:08]                   │ proc [kibana]   log   [20:51:51.919] [info][savedobjects-service] [.kibana] INIT -> WAIT_FOR_YELLOW_SOURCE. took: 13ms.
[00:04:08]                   │ proc [kibana]   log   [20:51:51.921] [info][savedobjects-service] [.kibana_task_manager] WAIT_FOR_YELLOW_SOURCE -> CHECK_UNKNOWN_DOCUMENTS. took: 6ms.
[00:04:08]                   │ proc [kibana]   log   [20:51:51.923] [info][savedobjects-service] [.kibana] WAIT_FOR_YELLOW_SOURCE -> CHECK_UNKNOWN_DOCUMENTS. took: 4ms.
[00:04:08]                   │ proc [kibana]   log   [20:51:51.927] [info][savedobjects-service] [.kibana_task_manager] CHECK_UNKNOWN_DOCUMENTS -> SET_SOURCE_WRITE_BLOCK. took: 6ms.
[00:04:08]                   │ proc [kibana]   log   [20:51:51.929] [info][savedobjects-service] [.kibana] CHECK_UNKNOWN_DOCUMENTS -> SET_SOURCE_WRITE_BLOCK. took: 6ms.
[00:04:08]                   │ info [o.e.c.m.MetadataIndexStateService] [node-01] adding block write to indices [[.kibana_task_manager_1/awoV2WdjR6SxkZFv2AFmhA]]
[00:04:08]                   │ info [o.e.c.m.MetadataIndexStateService] [node-01] adding block write to indices [[.kibana_1/_D_q03uuTBaCQPRIr267qQ]]
[00:04:08]                   │ info [o.e.c.m.MetadataIndexStateService] [node-01] completed adding block write to indices [.kibana_task_manager_1]
[00:04:08]                   │ info [o.e.c.m.MetadataIndexStateService] [node-01] completed adding block write to indices [.kibana_1]
[00:04:08]                   │ proc [kibana]   log   [20:51:52.007] [info][savedobjects-service] [.kibana_task_manager] SET_SOURCE_WRITE_BLOCK -> CALCULATE_EXCLUDE_FILTERS. took: 80ms.
[00:04:08]                   │ proc [kibana]   log   [20:51:52.016] [info][savedobjects-service] [.kibana_task_manager] CALCULATE_EXCLUDE_FILTERS -> CREATE_REINDEX_TEMP. took: 9ms.
[00:04:08]                   │ proc [kibana]   log   [20:51:52.026] [info][savedobjects-service] [.kibana] SET_SOURCE_WRITE_BLOCK -> CALCULATE_EXCLUDE_FILTERS. took: 97ms.
[00:04:08]                   │ info [o.e.c.m.MetadataCreateIndexService] [node-01] [.kibana_task_manager_8.0.0_reindex_temp] creating index, cause [api], templates [], shards [1]/[1]
[00:04:08]                   │ info [o.e.c.r.a.AllocationService] [node-01] updating number_of_replicas to [0] for indices [.kibana_task_manager_8.0.0_reindex_temp]
[00:04:08]                   │ proc [kibana]   log   [20:51:52.032] [info][savedobjects-service] [.kibana] CALCULATE_EXCLUDE_FILTERS -> CREATE_REINDEX_TEMP. took: 6ms.
[00:04:08]                   │ info [o.e.c.m.MetadataCreateIndexService] [node-01] [.kibana_8.0.0_reindex_temp] creating index, cause [api], templates [], shards [1]/[1]
[00:04:08]                   │ info [o.e.c.r.a.AllocationService] [node-01] updating number_of_replicas to [0] for indices [.kibana_8.0.0_reindex_temp]
[00:04:08]                   │ proc [kibana]   log   [20:51:52.140] [info][savedobjects-service] [.kibana_task_manager] CREATE_REINDEX_TEMP -> REINDEX_SOURCE_TO_TEMP_OPEN_PIT. took: 124ms.
[00:04:08]                   │ proc [kibana]   log   [20:51:52.142] [info][savedobjects-service] [.kibana] CREATE_REINDEX_TEMP -> REINDEX_SOURCE_TO_TEMP_OPEN_PIT. took: 110ms.
[00:04:08]                   │ proc [kibana]   log   [20:51:52.164] [info][savedobjects-service] [.kibana_task_manager] REINDEX_SOURCE_TO_TEMP_OPEN_PIT -> REINDEX_SOURCE_TO_TEMP_READ. took: 24ms.
[00:04:08]                   │ proc [kibana]   log   [20:51:52.167] [info][savedobjects-service] [.kibana] REINDEX_SOURCE_TO_TEMP_OPEN_PIT -> REINDEX_SOURCE_TO_TEMP_READ. took: 24ms.
[00:04:08]                   │ proc [kibana]   log   [20:51:52.177] [info][savedobjects-service] [.kibana] Starting to process 6 documents.
[00:04:08]                   │ proc [kibana]   log   [20:51:52.178] [info][savedobjects-service] [.kibana] REINDEX_SOURCE_TO_TEMP_READ -> REINDEX_SOURCE_TO_TEMP_INDEX. took: 11ms.
[00:04:08]                   │ proc [kibana]   log   [20:51:52.180] [info][savedobjects-service] [.kibana_task_manager] Starting to process 5 documents.
[00:04:08]                   │ proc [kibana]   log   [20:51:52.180] [info][savedobjects-service] [.kibana_task_manager] REINDEX_SOURCE_TO_TEMP_READ -> REINDEX_SOURCE_TO_TEMP_INDEX. took: 16ms.
[00:04:09]                   │ proc [kibana]   log   [20:51:52.656] [info][savedobjects-service] [.kibana_task_manager] REINDEX_SOURCE_TO_TEMP_INDEX -> REINDEX_SOURCE_TO_TEMP_INDEX_BULK. took: 476ms.
[00:04:09]                   │ info [o.e.c.m.MetadataMappingService] [node-01] [.kibana_task_manager_8.0.0_reindex_temp/j7ZIbtY3TOmGioxTiAsvVg] update_mapping [_doc]
[00:04:09]                   │ proc [kibana]   log   [20:51:52.769] [info][savedobjects-service] [.kibana] REINDEX_SOURCE_TO_TEMP_INDEX -> REINDEX_SOURCE_TO_TEMP_INDEX_BULK. took: 592ms.
[00:04:09]                   │ proc [kibana]   log   [20:51:52.771] [info][savedobjects-service] [.kibana_task_manager] REINDEX_SOURCE_TO_TEMP_INDEX_BULK -> REINDEX_SOURCE_TO_TEMP_READ. took: 115ms.
[00:04:09]                   │ info [o.e.c.m.MetadataMappingService] [node-01] [.kibana_8.0.0_reindex_temp/t77uPEsvRxGTk1GVlgWpDA] update_mapping [_doc]
[00:04:09]                   │ proc [kibana]   log   [20:51:52.779] [info][savedobjects-service] [.kibana_task_manager] Processed 5 documents out of 5.
[00:04:09]                   │ proc [kibana]   log   [20:51:52.780] [info][savedobjects-service] [.kibana_task_manager] REINDEX_SOURCE_TO_TEMP_READ -> REINDEX_SOURCE_TO_TEMP_CLOSE_PIT. took: 8ms.
[00:04:09]                   │ proc [kibana]   log   [20:51:52.790] [info][savedobjects-service] [.kibana_task_manager] REINDEX_SOURCE_TO_TEMP_CLOSE_PIT -> SET_TEMP_WRITE_BLOCK. took: 11ms.
[00:04:09]                   │ info [o.e.c.m.MetadataIndexStateService] [node-01] adding block write to indices [[.kibana_task_manager_8.0.0_reindex_temp/j7ZIbtY3TOmGioxTiAsvVg]]
[00:04:09]                   │ info [o.e.c.m.MetadataMappingService] [node-01] [.kibana_8.0.0_reindex_temp/t77uPEsvRxGTk1GVlgWpDA] update_mapping [_doc]
[00:04:09]                   │ info [o.e.c.m.MetadataIndexStateService] [node-01] completed adding block write to indices [.kibana_task_manager_8.0.0_reindex_temp]
[00:04:09]                   │ proc [kibana]   log   [20:51:52.874] [info][savedobjects-service] [.kibana_task_manager] SET_TEMP_WRITE_BLOCK -> CLONE_TEMP_TO_TARGET. took: 84ms.
[00:04:09]                   │ proc [kibana]   log   [20:51:52.881] [info][savedobjects-service] [.kibana] REINDEX_SOURCE_TO_TEMP_INDEX_BULK -> REINDEX_SOURCE_TO_TEMP_READ. took: 112ms.
[00:04:09]                   │ proc [kibana]   log   [20:51:52.888] [info][savedobjects-service] [.kibana] Processed 6 documents out of 6.
[00:04:09]                   │ proc [kibana]   log   [20:51:52.888] [info][savedobjects-service] [.kibana] REINDEX_SOURCE_TO_TEMP_READ -> REINDEX_SOURCE_TO_TEMP_CLOSE_PIT. took: 7ms.
[00:04:09]                   │ info [o.e.c.m.MetadataCreateIndexService] [node-01] applying create index request using existing index [.kibana_task_manager_8.0.0_reindex_temp] metadata
[00:04:09]                   │ proc [kibana]   log   [20:51:52.892] [info][savedobjects-service] [.kibana] REINDEX_SOURCE_TO_TEMP_CLOSE_PIT -> SET_TEMP_WRITE_BLOCK. took: 4ms.
[00:04:09]                   │ info [o.e.c.m.MetadataCreateIndexService] [node-01] [.kibana_task_manager_8.0.0_001] creating index, cause [clone_index], templates [], shards [1]/[1]
[00:04:09]                   │ info [o.e.c.r.a.AllocationService] [node-01] updating number_of_replicas to [0] for indices [.kibana_task_manager_8.0.0_001]
[00:04:09]                   │ info [o.e.c.m.MetadataIndexStateService] [node-01] adding block write to indices [[.kibana_8.0.0_reindex_temp/t77uPEsvRxGTk1GVlgWpDA]]
[00:04:09]                   │ info [o.e.c.m.MetadataMappingService] [node-01] [.kibana_task_manager_8.0.0_001/VWsBlO8uRve1236Z_qPN2g] create_mapping
[00:04:09]                   │ info [o.e.c.m.MetadataIndexStateService] [node-01] completed adding block write to indices [.kibana_8.0.0_reindex_temp]
[00:04:09]                   │ proc [kibana]   log   [20:51:53.008] [info][savedobjects-service] [.kibana] SET_TEMP_WRITE_BLOCK -> CLONE_TEMP_TO_TARGET. took: 116ms.
[00:04:09]                   │ info [o.e.c.m.MetadataCreateIndexService] [node-01] applying create index request using existing index [.kibana_8.0.0_reindex_temp] metadata
[00:04:09]                   │ proc [kibana]   log   [20:51:53.039] [info][savedobjects-service] [.kibana_task_manager] CLONE_TEMP_TO_TARGET -> REFRESH_TARGET. took: 164ms.
[00:04:09]                   │ info [o.e.c.m.MetadataCreateIndexService] [node-01] [.kibana_8.0.0_001] creating index, cause [clone_index], templates [], shards [1]/[1]
[00:04:09]                   │ info [o.e.c.r.a.AllocationService] [node-01] updating number_of_replicas to [0] for indices [.kibana_8.0.0_001]
[00:04:09]                   │ proc [kibana]   log   [20:51:53.043] [info][savedobjects-service] [.kibana_task_manager] REFRESH_TARGET -> OUTDATED_DOCUMENTS_SEARCH_OPEN_PIT. took: 5ms.
[00:04:09]                   │ proc [kibana]   log   [20:51:53.047] [info][savedobjects-service] [.kibana_task_manager] OUTDATED_DOCUMENTS_SEARCH_OPEN_PIT -> OUTDATED_DOCUMENTS_SEARCH_READ. took: 4ms.
[00:04:09]                   │ proc [kibana]   log   [20:51:53.054] [info][savedobjects-service] [.kibana_task_manager] OUTDATED_DOCUMENTS_SEARCH_READ -> OUTDATED_DOCUMENTS_SEARCH_CLOSE_PIT. took: 7ms.
[00:04:09]                   │ proc [kibana]   log   [20:51:53.062] [info][savedobjects-service] [.kibana_task_manager] OUTDATED_DOCUMENTS_SEARCH_CLOSE_PIT -> UPDATE_TARGET_MAPPINGS. took: 8ms.
[00:04:09]                   │ info [o.e.c.m.MetadataMappingService] [node-01] [.kibana_task_manager_8.0.0_001/VWsBlO8uRve1236Z_qPN2g] update_mapping [_doc]
[00:04:09]                   │ info [o.e.c.m.MetadataMappingService] [node-01] [.kibana_8.0.0_001/-J77vvRWTrqXJqqxYgEnzA] create_mapping
[00:04:09]                   │ proc [kibana]   log   [20:51:53.140] [info][savedobjects-service] [.kibana_task_manager] UPDATE_TARGET_MAPPINGS -> UPDATE_TARGET_MAPPINGS_WAIT_FOR_TASK. took: 78ms.
[00:04:10]                   │ proc [kibana]   log   [20:51:53.228] [info][savedobjects-service] [.kibana] CLONE_TEMP_TO_TARGET -> REFRESH_TARGET. took: 219ms.
[00:04:10]                   │ proc [kibana]   log   [20:51:53.236] [info][savedobjects-service] [.kibana] REFRESH_TARGET -> OUTDATED_DOCUMENTS_SEARCH_OPEN_PIT. took: 9ms.
[00:04:10]                   │ info [o.e.c.m.MetadataCreateIndexService] [node-01] [.tasks] creating index, cause [auto(bulk api)], templates [], shards [1]/[1]
[00:04:10]                   │ info [o.e.c.r.a.AllocationService] [node-01] updating number_of_replicas to [0] for indices [.tasks]
[00:04:10]                   │ proc [kibana]   log   [20:51:53.246] [info][savedobjects-service] [.kibana] OUTDATED_DOCUMENTS_SEARCH_OPEN_PIT -> OUTDATED_DOCUMENTS_SEARCH_READ. took: 10ms.
[00:04:10]                   │ proc [kibana]   log   [20:51:53.260] [error][plugins][taskManager] Failed to poll for work: {"took":16,"timed_out":false,"total":5,"updated":0,"deleted":0,"batches":1,"version_conflicts":0,"noops":0,"retries":{"bulk":0,"search":0},"throttled_millis":0,"requests_per_second":-1,"throttled_until_millis":0,"failures":[{"index":".kibana_task_manager_1","id":"task:e39a02f0-eea4-11ea-a285-352ee3aecffa","cause":{"type":"cluster_block_exception","reason":"index [.kibana_task_manager_1] blocked by: [FORBIDDEN/8/index write (api)];"},"status":403},{"index":".kibana_task_manager_1","id":"task:e9c069d0-eea4-11ea-a285-352ee3aecffa","cause":{"type":"cluster_block_exception","reason":"index [.kibana_task_manager_1] blocked by: [FORBIDDEN/8/index write (api)];"},"status":403},{"index":".kibana_task_manager_1","id":"task:e8885f00-eea4-11ea-a285-352ee3aecffa","cause":{"type":"cluster_block_exception","reason":"index [.kibana_task_manager_1] blocked by: [FORBIDDEN/8/index write (api)];"},"status":403},{"index":".kibana_task_manager_1","id":"task:e616c2c0-eea4-11ea-a285-352ee3aecffa","cause":{"type":"cluster_block_exception","reason":"index [.kibana_task_manager_1] blocked by: [FORBIDDEN/8/index write (api)];"},"status":403},{"index":".kibana_task_manager_1","id":"task:e4df5430-eea4-11ea-a285-352ee3aecffa","cause":{"type":"cluster_block_exception","reason":"index [.kibana_task_manager_1] blocked by: [FORBIDDEN/8/index write (api)];"},"status":403}]}
[00:04:10]                   │ proc [kibana]   log   [20:51:53.276] [info][savedobjects-service] [.kibana] OUTDATED_DOCUMENTS_SEARCH_READ -> OUTDATED_DOCUMENTS_SEARCH_CLOSE_PIT. took: 30ms.
[00:04:10]                   │ proc [kibana]   log   [20:51:53.288] [info][savedobjects-service] [.kibana] OUTDATED_DOCUMENTS_SEARCH_CLOSE_PIT -> UPDATE_TARGET_MAPPINGS. took: 12ms.
[00:04:10]                   │ info [o.e.t.LoggingTaskListener] [node-01] 14627 finished with response BulkByScrollResponse[took=40.7ms,timed_out=false,sliceId=null,updated=5,created=0,deleted=0,batches=1,versionConflicts=0,noops=0,retries=0,throttledUntil=0s,bulk_failures=[],search_failures=[]]
[00:04:10]                   │ info [o.e.c.m.MetadataMappingService] [node-01] [.kibana_8.0.0_001/-J77vvRWTrqXJqqxYgEnzA] update_mapping [_doc]
[00:04:10]                   │ proc [kibana]   log   [20:51:53.492] [info][savedobjects-service] [.kibana_task_manager] UPDATE_TARGET_MAPPINGS_WAIT_FOR_TASK -> MARK_VERSION_INDEX_READY. took: 352ms.
[00:04:10]                   │ info [o.e.c.m.MetadataDeleteIndexService] [node-01] [.kibana_task_manager_8.0.0_reindex_temp/j7ZIbtY3TOmGioxTiAsvVg] deleting index
[00:04:10]                   │ proc [kibana]   log   [20:51:53.555] [info][savedobjects-service] [.kibana] UPDATE_TARGET_MAPPINGS -> UPDATE_TARGET_MAPPINGS_WAIT_FOR_TASK. took: 267ms.
[00:04:10]                   │ proc [kibana]   log   [20:51:53.611] [info][savedobjects-service] [.kibana_task_manager] MARK_VERSION_INDEX_READY -> DONE. took: 119ms.
[00:04:10]                   │ proc [kibana]   log   [20:51:53.612] [info][savedobjects-service] [.kibana_task_manager] Migration completed after 1703ms
[00:04:10]                   │ info [o.e.t.LoggingTaskListener] [node-01] 14680 finished with response BulkByScrollResponse[took=94ms,timed_out=false,sliceId=null,updated=11,created=0,deleted=0,batches=1,versionConflicts=0,noops=0,retries=0,throttledUntil=0s,bulk_failures=[],search_failures=[]]
[00:04:10]                   │ proc [kibana]   log   [20:51:53.669] [info][savedobjects-service] [.kibana] UPDATE_TARGET_MAPPINGS_WAIT_FOR_TASK -> MARK_VERSION_INDEX_READY. took: 114ms.
[00:04:10]                   │ info [o.e.c.m.MetadataDeleteIndexService] [node-01] [.kibana_8.0.0_reindex_temp/t77uPEsvRxGTk1GVlgWpDA] deleting index
[00:04:10]                   │ proc [kibana]   log   [20:51:53.767] [info][savedobjects-service] [.kibana] MARK_VERSION_INDEX_READY -> DONE. took: 98ms.
[00:04:10]                   │ proc [kibana]   log   [20:51:53.768] [info][savedobjects-service] [.kibana] Migration completed after 1862ms
[00:04:10]                   │ debg [x-pack/test/functional/es_archives/alerts_legacy] Migrated Kibana index after loading Kibana data
[00:04:10]                   │ debg [x-pack/test/functional/es_archives/alerts_legacy] Ensured that default space exists in .kibana
[00:04:10]                   │ info [o.e.c.m.MetadataCreateIndexService] [node-01] [.kibana-alerting-test-data] creating index, cause [api], templates [], shards [1]/[1]
[00:04:11]                   │ info [o.e.c.m.MetadataCreateIndexService] [node-01] [.kibana-test-authorization] creating index, cause [api], templates [], shards [1]/[1]
[00:04:11]                   │ debg creating space
[00:04:11]                   │ info [o.e.c.m.MetadataMappingService] [node-01] [.kibana_8.0.0_001/-J77vvRWTrqXJqqxYgEnzA] update_mapping [_doc]
[00:04:11]                   │ debg created space
[00:04:11]                   │ debg creating space
[00:04:12]                   │ debg created space
[00:04:12]                   │ debg creating space
[00:04:13]                   │ proc [kibana]   log   [20:51:56.283] [warning][plugins][taskManager] Detected potential performance issue with Task Manager. Set 'xpack.task_manager.monitored_stats_health_verbose_log.enabled: true' in your Kibana.yml to enable debug logging
[00:04:13]                   │ proc [kibana]   log   [20:51:56.522] [warning][eventLog][plugins] invalid event logged: [kibana.task.schedule_delay]: "kibana.task.schedule_delay" must be a safe number; {"@timestamp":"2021-08-26T20:51:56.519Z","event":{"provider":"alerting","action":"execute-start","kind":"alert","category":["alertsFixture"],"start":"2021-08-26T20:51:56.519Z"},"kibana":{"saved_objects":[{"rel":"primary","type":"alert","id":"b384be60-ec53-4b26-857e-0253ee55b277","type_id":"test.always-firing","namespace":"space1"}],"task":{"scheduled":"2020-09-04T11:51:04.804Z","schedule_delay":30790851715000000},"server_uuid":"5b2de169-2785-441b-ae8c-186a1936b17d","version":"8.0.0"},"rule":{"id":"b384be60-ec53-4b26-857e-0253ee55b277","license":"basic","category":"test.always-firing","ruleset":"alertsFixture"},"message":"alert execution start: \"b384be60-ec53-4b26-857e-0253ee55b277\"","ecs":{"version":"1.8.0"}})
[00:04:13]                   │ proc [kibana]   log   [20:51:56.524] [warning][eventLog][plugins] invalid event logged: [kibana.task.schedule_delay]: "kibana.task.schedule_delay" must be a safe number; {"@timestamp":"2021-08-26T20:51:56.523Z","event":{"provider":"alerting","action":"execute-start","kind":"alert","category":["alertsFixture"],"start":"2021-08-26T20:51:56.523Z"},"kibana":{"saved_objects":[{"rel":"primary","type":"alert","id":"6ee9630a-a20e-44af-9465-217a3717d2ab","type_id":"test.always-firing","namespace":"space1"}],"task":{"scheduled":"2020-09-04T11:51:05.197Z","schedule_delay":30790851326000000},"server_uuid":"5b2de169-2785-441b-ae8c-186a1936b17d","version":"8.0.0"},"rule":{"id":"6ee9630a-a20e-44af-9465-217a3717d2ab","license":"basic","category":"test.always-firing","ruleset":"alertsFixture"},"message":"alert execution start: \"6ee9630a-a20e-44af-9465-217a3717d2ab\"","ecs":{"version":"1.8.0"}})
[00:04:13]                   │ proc [kibana]   log   [20:51:56.526] [warning][eventLog][plugins] invalid event logged: [kibana.task.schedule_delay]: "kibana.task.schedule_delay" must be a safe number; {"@timestamp":"2021-08-26T20:51:56.525Z","event":{"provider":"alerting","action":"execute-start","kind":"alert","category":["alertsFixture"],"start":"2021-08-26T20:51:56.525Z"},"kibana":{"saved_objects":[{"rel":"primary","type":"alert","id":"5cc59319-74ee-4edc-8646-a79ea91067cd","type_id":"test.always-firing","namespace":"space1"}],"task":{"scheduled":"2020-09-04T11:51:03.152Z","schedule_delay":30790853373000000},"server_uuid":"5b2de169-2785-441b-ae8c-186a1936b17d","version":"8.0.0"},"rule":{"id":"5cc59319-74ee-4edc-8646-a79ea91067cd","license":"basic","category":"test.always-firing","ruleset":"alertsFixture"},"message":"alert execution start: \"5cc59319-74ee-4edc-8646-a79ea91067cd\"","ecs":{"version":"1.8.0"}})
[00:04:13]                   │ proc [kibana]   log   [20:51:56.527] [warning][eventLog][plugins] invalid event logged: [kibana.task.schedule_delay]: "kibana.task.schedule_delay" must be a safe number; {"@timestamp":"2021-08-26T20:51:56.526Z","event":{"provider":"alerting","action":"execute-start","kind":"alert","category":["alertsFixture"],"start":"2021-08-26T20:51:56.526Z"},"kibana":{"saved_objects":[{"rel":"primary","type":"alert","id":"d41a6abb-b93b-46df-a80a-926221ea847c","type_id":"test.always-firing","namespace":"space1"}],"task":{"scheduled":"2020-09-04T11:51:04.804Z","schedule_delay":30790851722000000},"server_uuid":"5b2de169-2785-441b-ae8c-186a1936b17d","version":"8.0.0"},"rule":{"id":"d41a6abb-b93b-46df-a80a-926221ea847c","license":"basic","category":"test.always-firing","ruleset":"alertsFixture"},"message":"alert execution start: \"d41a6abb-b93b-46df-a80a-926221ea847c\"","ecs":{"version":"1.8.0"}})
[00:04:13]                   │ proc [kibana]   log   [20:51:56.528] [warning][eventLog][plugins] invalid event logged: [kibana.task.schedule_delay]: "kibana.task.schedule_delay" must be a safe number; {"@timestamp":"2021-08-26T20:51:56.527Z","event":{"provider":"alerting","action":"execute-start","kind":"alert","category":["alertsFixture"],"start":"2021-08-26T20:51:56.528Z"},"kibana":{"saved_objects":[{"rel":"primary","type":"alert","id":"362e362b-a137-4aa2-9434-43e3d0d84a34","type_id":"test.always-firing","namespace":"space1"}],"task":{"scheduled":"2020-09-04T11:51:04.804Z","schedule_delay":30790851723000000},"server_uuid":"5b2de169-2785-441b-ae8c-186a1936b17d","version":"8.0.0"},"rule":{"id":"362e362b-a137-4aa2-9434-43e3d0d84a34","license":"basic","category":"test.always-firing","ruleset":"alertsFixture"},"message":"alert execution start: \"362e362b-a137-4aa2-9434-43e3d0d84a34\"","ecs":{"version":"1.8.0"}})
[00:04:13]                   │ proc [kibana]   log   [20:51:56.554] [warning][eventLog][plugins] invalid event logged: [kibana.task.schedule_delay]: "kibana.task.schedule_delay" must be a safe number; {"@timestamp":"2021-08-26T20:51:56.519Z","event":{"provider":"alerting","action":"execute","kind":"alert","category":["alertsFixture"],"start":"2021-08-26T20:51:56.519Z","end":"2021-08-26T20:51:56.553Z","duration":34000000,"reason":"decrypt","outcome":"failure"},"kibana":{"saved_objects":[{"rel":"primary","type":"alert","id":"b384be60-ec53-4b26-857e-0253ee55b277","type_id":"test.always-firing","namespace":"space1"}],"task":{"scheduled":"2020-09-04T11:51:04.804Z","schedule_delay":30790851715000000},"alerting":{"status":"error"},"server_uuid":"5b2de169-2785-441b-ae8c-186a1936b17d","version":"8.0.0"},"rule":{"id":"b384be60-ec53-4b26-857e-0253ee55b277","license":"basic","category":"test.always-firing","ruleset":"alertsFixture"},"error":{"message":"Saved object [alert/b384be60-ec53-4b26-857e-0253ee55b277] not found"},"message":"test.always-firing:b384be60-ec53-4b26-857e-0253ee55b277: execution failed","ecs":{"version":"1.8.0"}})
[00:04:13]                   │ proc [kibana]   log   [20:51:56.558] [warning][eventLog][plugins] invalid event logged: [kibana.task.schedule_delay]: "kibana.task.schedule_delay" must be a safe number; {"@timestamp":"2021-08-26T20:51:56.527Z","event":{"provider":"alerting","action":"execute","kind":"alert","category":["alertsFixture"],"start":"2021-08-26T20:51:56.528Z","end":"2021-08-26T20:51:56.557Z","duration":29000000,"reason":"decrypt","outcome":"failure"},"kibana":{"saved_objects":[{"rel":"primary","type":"alert","id":"362e362b-a137-4aa2-9434-43e3d0d84a34","type_id":"test.always-firing","namespace":"space1"}],"task":{"scheduled":"2020-09-04T11:51:04.804Z","schedule_delay":30790851723000000},"alerting":{"status":"error"},"server_uuid":"5b2de169-2785-441b-ae8c-186a1936b17d","version":"8.0.0"},"rule":{"id":"362e362b-a137-4aa2-9434-43e3d0d84a34","license":"basic","category":"test.always-firing","ruleset":"alertsFixture"},"error":{"message":"Saved object [alert/362e362b-a137-4aa2-9434-43e3d0d84a34] not found"},"message":"test.always-firing:362e362b-a137-4aa2-9434-43e3d0d84a34: execution failed","ecs":{"version":"1.8.0"}})
[00:04:13]                   │ proc [kibana]   log   [20:51:56.560] [warning][eventLog][plugins] invalid event logged: [kibana.task.schedule_delay]: "kibana.task.schedule_delay" must be a safe number; {"@timestamp":"2021-08-26T20:51:56.526Z","event":{"provider":"alerting","action":"execute","kind":"alert","category":["alertsFixture"],"start":"2021-08-26T20:51:56.526Z","end":"2021-08-26T20:51:56.559Z","duration":33000000,"reason":"decrypt","outcome":"failure"},"kibana":{"saved_objects":[{"rel":"primary","type":"alert","id":"d41a6abb-b93b-46df-a80a-926221ea847c","type_id":"test.always-firing","namespace":"space1"}],"task":{"scheduled":"2020-09-04T11:51:04.804Z","schedule_delay":30790851722000000},"alerting":{"status":"error"},"server_uuid":"5b2de169-2785-441b-ae8c-186a1936b17d","version":"8.0.0"},"rule":{"id":"d41a6abb-b93b-46df-a80a-926221ea847c","license":"basic","category":"test.always-firing","ruleset":"alertsFixture"},"error":{"message":"Saved object [alert/d41a6abb-b93b-46df-a80a-926221ea847c] not found"},"message":"test.always-firing:d41a6abb-b93b-46df-a80a-926221ea847c: execution failed","ecs":{"version":"1.8.0"}})
[00:04:13]                   │ proc [kibana]   log   [20:51:56.563] [warning][eventLog][plugins] invalid event logged: [kibana.task.schedule_delay]: "kibana.task.schedule_delay" must be a safe number; {"@timestamp":"2021-08-26T20:51:56.525Z","event":{"provider":"alerting","action":"execute","kind":"alert","category":["alertsFixture"],"start":"2021-08-26T20:51:56.525Z","end":"2021-08-26T20:51:56.562Z","duration":37000000,"reason":"decrypt","outcome":"failure"},"kibana":{"saved_objects":[{"rel":"primary","type":"alert","id":"5cc59319-74ee-4edc-8646-a79ea91067cd","type_id":"test.always-firing","namespace":"space1"}],"task":{"scheduled":"2020-09-04T11:51:03.152Z","schedule_delay":30790853373000000},"alerting":{"status":"error"},"server_uuid":"5b2de169-2785-441b-ae8c-186a1936b17d","version":"8.0.0"},"rule":{"id":"5cc59319-74ee-4edc-8646-a79ea91067cd","license":"basic","category":"test.always-firing","ruleset":"alertsFixture"},"error":{"message":"Saved object [alert/5cc59319-74ee-4edc-8646-a79ea91067cd] not found"},"message":"test.always-firing:5cc59319-74ee-4edc-8646-a79ea91067cd: execution failed","ecs":{"version":"1.8.0"}})
[00:04:13]                   │ proc [kibana]   log   [20:51:56.566] [warning][eventLog][plugins] invalid event logged: [kibana.task.schedule_delay]: "kibana.task.schedule_delay" must be a safe number; {"@timestamp":"2021-08-26T20:51:56.523Z","event":{"provider":"alerting","action":"execute","kind":"alert","category":["alertsFixture"],"start":"2021-08-26T20:51:56.523Z","end":"2021-08-26T20:51:56.564Z","duration":41000000,"reason":"decrypt","outcome":"failure"},"kibana":{"saved_objects":[{"rel":"primary","type":"alert","id":"6ee9630a-a20e-44af-9465-217a3717d2ab","type_id":"test.always-firing","namespace":"space1"}],"task":{"scheduled":"2020-09-04T11:51:05.197Z","schedule_delay":30790851326000000},"alerting":{"status":"error"},"server_uuid":"5b2de169-2785-441b-ae8c-186a1936b17d","version":"8.0.0"},"rule":{"id":"6ee9630a-a20e-44af-9465-217a3717d2ab","license":"basic","category":"test.always-firing","ruleset":"alertsFixture"},"error":{"message":"Saved object [alert/6ee9630a-a20e-44af-9465-217a3717d2ab] not found"},"message":"test.always-firing:6ee9630a-a20e-44af-9465-217a3717d2ab: execution failed","ecs":{"version":"1.8.0"}})
[00:04:13]                   │ proc [kibana]   log   [20:51:56.607] [warning][alerting][plugins] Unable to execute rule "b384be60-ec53-4b26-857e-0253ee55b277" in the "space1" space because Saved object [alert/b384be60-ec53-4b26-857e-0253ee55b277] not found - this rule will not be rescheduled. To restart rule execution, try disabling and re-enabling this rule.
[00:04:13]                   │ proc [kibana]   log   [20:51:56.608] [error][plugins][taskManager] Task alerting:test.always-firing "e39a02f0-eea4-11ea-a285-352ee3aecffa" failed: Error: Saved object [alert/b384be60-ec53-4b26-857e-0253ee55b277] not found
[00:04:13]                   │ proc [kibana]   log   [20:51:56.610] [warning][alerting][plugins] Unable to execute rule "362e362b-a137-4aa2-9434-43e3d0d84a34" in the "space1" space because Saved object [alert/362e362b-a137-4aa2-9434-43e3d0d84a34] not found - this rule will not be rescheduled. To restart rule execution, try disabling and re-enabling this rule.
[00:04:13]                   │ proc [kibana]   log   [20:51:56.611] [error][plugins][taskManager] Task alerting:test.always-firing "e4df5430-eea4-11ea-a285-352ee3aecffa" failed: Error: Saved object [alert/362e362b-a137-4aa2-9434-43e3d0d84a34] not found
[00:04:13]                   │ proc [kibana]   log   [20:51:56.612] [warning][alerting][plugins] Unable to execute rule "d41a6abb-b93b-46df-a80a-926221ea847c" in the "space1" space because Saved object [alert/d41a6abb-b93b-46df-a80a-926221ea847c] not found - this rule will not be rescheduled. To restart rule execution, try disabling and re-enabling this rule.
[00:04:13]                   │ proc [kibana]   log   [20:51:56.613] [error][plugins][taskManager] Task alerting:test.always-firing "e616c2c0-eea4-11ea-a285-352ee3aecffa" failed: Error: Saved object [alert/d41a6abb-b93b-46df-a80a-926221ea847c] not found
[00:04:13]                   │ proc [kibana]   log   [20:51:56.614] [warning][alerting][plugins] Unable to execute rule "5cc59319-74ee-4edc-8646-a79ea91067cd" in the "space1" space because Saved object [alert/5cc59319-74ee-4edc-8646-a79ea91067cd] not found - this rule will not be rescheduled. To restart rule execution, try disabling and re-enabling this rule.
[00:04:13]                   │ proc [kibana]   log   [20:51:56.615] [error][plugins][taskManager] Task alerting:test.always-firing "e8885f00-eea4-11ea-a285-352ee3aecffa" failed: Error: Saved object [alert/5cc59319-74ee-4edc-8646-a79ea91067cd] not found
[00:04:13]                   │ proc [kibana]   log   [20:51:56.616] [warning][alerting][plugins] Unable to execute rule "6ee9630a-a20e-44af-9465-217a3717d2ab" in the "space1" space because Saved object [alert/6ee9630a-a20e-44af-9465-217a3717d2ab] not found - this rule will not be rescheduled. To restart rule execution, try disabling and re-enabling this rule.
[00:04:13]                   │ proc [kibana]   log   [20:51:56.616] [error][plugins][taskManager] Task alerting:test.always-firing "e9c069d0-eea4-11ea-a285-352ee3aecffa" failed: Error: Saved object [alert/6ee9630a-a20e-44af-9465-217a3717d2ab] not found
[00:04:13]                   │ debg created space
[00:04:13]                   │ debg creating user no_kibana_privileges
[00:04:13]                   │ proc [kibana]   log   [20:51:57.149] [info][status] Kibana is now unavailable (was available)
[00:04:14]                   │ info [o.e.x.s.a.u.TransportPutUserAction] [node-01] updated user [no_kibana_privileges]
[00:04:14]                   │ debg created user no_kibana_privileges
[00:04:14]                   │ debg creating role no_kibana_privileges
[00:04:14]                   │ info [o.e.x.s.a.r.TransportPutRoleAction] [node-01] updated role [no_kibana_privileges]
[00:04:14]                   │ debg creating user superuser
[00:04:14]                   │ info [o.e.x.s.a.u.TransportPutUserAction] [node-01] updated user [superuser]
[00:04:14]                   │ debg created user superuser
[00:04:14]                   │ debg creating user global_read
[00:04:14]                   │ info [o.e.x.s.a.u.TransportPutUserAction] [node-01] updated user [global_read]
[00:04:14]                   │ debg created user global_read
[00:04:14]                   │ debg creating role global_read_role
[00:04:14]                   │ info [o.e.x.s.a.r.TransportPutRoleAction] [node-01] updated role [global_read_role]
[00:04:14]                   │ debg creating user space_1_all
[00:04:14]                   │ info [o.e.x.s.a.u.TransportPutUserAction] [node-01] updated user [space_1_all]
[00:04:14]                   │ debg created user space_1_all
[00:04:14]                   │ debg creating role space_1_all_role
[00:04:14]                   │ info [o.e.x.s.a.r.TransportPutRoleAction] [node-01] updated role [space_1_all_role]
[00:04:14]                   │ debg creating user space_1_all_with_restricted_fixture
[00:04:14]                   │ info [o.e.x.s.a.u.TransportPutUserAction] [node-01] updated user [space_1_all_with_restricted_fixture]
[00:04:14]                   │ debg created user space_1_all_with_restricted_fixture
[00:04:14]                   │ debg creating role space_1_all_with_restricted_fixture_role
[00:04:14]                   │ info [o.e.x.s.a.r.TransportPutRoleAction] [node-01] updated role [space_1_all_with_restricted_fixture_role]
[00:04:14]                   │ debg creating user space_1_all_alerts_none_actions
[00:04:14]                   │ info [o.e.x.s.a.u.TransportPutUserAction] [node-01] updated user [space_1_all_alerts_none_actions]
[00:04:14]                   │ debg created user space_1_all_alerts_none_actions
[00:04:14]                   │ debg creating role space_1_all_alerts_none_actions_role
[00:04:14]                   │ info [o.e.x.s.a.r.TransportPutRoleAction] [node-01] updated role [space_1_all_alerts_none_actions_role]
[00:04:14]                 └-: superuser at space1
[00:04:14]                   └-> "before all" hook for "should schedule actions on legacy alerts"
[00:04:14]                   └-> "before all" hook for "should schedule actions on legacy alerts"
[00:04:14]                   └-> should schedule actions on legacy alerts
[00:04:14]                     └-> "before each" hook: global before each for "should schedule actions on legacy alerts"
[00:04:14]                     │ proc [kibana]   log   [20:51:58.013] [error][http] Error: Saved object [alert/b384be60-ec53-4b26-857e-0253ee55b277] not found
[00:04:14]                     │ proc [kibana]     at Function.createGenericNotFoundError (/dev/shm/workspace/kibana-build-21/src/core/server/saved_objects/service/lib/errors.js:125:37)
[00:04:14]                     │ proc [kibana]     at SavedObjectsRepository.get (/dev/shm/workspace/kibana-build-21/src/core/server/saved_objects/service/lib/repository.js:1017:46)
[00:04:14]                     │ proc [kibana]     at runMicrotasks (<anonymous>)
[00:04:14]                     │ proc [kibana]     at processTicksAndRejections (internal/process/task_queues.js:95:5)
[00:04:14]                     │ proc [kibana]     at SavedObjectsClient.get (/dev/shm/workspace/kibana-build-21/src/core/server/saved_objects/service/saved_objects_client.js:116:12)
[00:04:14]                     │ proc [kibana]     at EncryptedSavedObjectsClientWrapper.get (/dev/shm/workspace/kibana-build-21/x-pack/plugins/encrypted_saved_objects/server/saved_objects/encrypted_saved_objects_client_wrapper.js:115:59)
[00:04:14]                     │ proc [kibana]     at SecureSavedObjectsClientWrapper.get (/dev/shm/workspace/kibana-build-21/x-pack/plugins/security/server/saved_objects/secure_saved_objects_client_wrapper.js:310:25)
[00:04:14]                     │ proc [kibana]     at SpacesSavedObjectsClient.get (/dev/shm/workspace/kibana-build-21/x-pack/plugins/spaces/server/saved_objects/spaces_saved_objects_client.js:206:12)
[00:04:14]                     │ proc [kibana]     at /dev/shm/workspace/parallel/21/kibana/x-pack/test/alerting_api_integration/common/fixtures/plugins/alerts/server/routes.ts:237:21
[00:04:14]                     │ proc [kibana]     at Router.handle (/dev/shm/workspace/kibana-build-21/src/core/server/http/router/router.js:163:30)
[00:04:14]                     │ proc [kibana]     at handler (/dev/shm/workspace/kibana-build-21/src/core/server/http/router/router.js:124:50)
[00:04:14]                     │ proc [kibana]     at exports.Manager.execute (/dev/shm/workspace/kibana-build-21/node_modules/@hapi/hapi/lib/toolkit.js:60:28)
[00:04:14]                     │ proc [kibana]     at Object.internals.handler (/dev/shm/workspace/kibana-build-21/node_modules/@hapi/hapi/lib/handler.js:46:20)
[00:04:14]                     │ proc [kibana]     at exports.execute (/dev/shm/workspace/kibana-build-21/node_modules/@hapi/hapi/lib/handler.js:31:20)
[00:04:14]                     │ proc [kibana]     at Request._lifecycle (/dev/shm/workspace/kibana-build-21/node_modules/@hapi/hapi/lib/request.js:370:32)
[00:04:14]                     │ proc [kibana]     at Request._execute (/dev/shm/workspace/kibana-build-21/node_modules/@hapi/hapi/lib/request.js:279:9) {
[00:04:14]                     │ proc [kibana]   data: null,
[00:04:14]                     │ proc [kibana]   isBoom: true,
[00:04:14]                     │ proc [kibana]   isServer: false,
[00:04:14]                     │ proc [kibana]   output: {
[00:04:14]                     │ proc [kibana]     statusCode: 404,
[00:04:14]                     │ proc [kibana]     payload: {
[00:04:14]                     │ proc [kibana]       statusCode: 404,
[00:04:14]                     │ proc [kibana]       error: 'Not Found',
[00:04:14]                     │ proc [kibana]       message: 'Saved object [alert/b384be60-ec53-4b26-857e-0253ee55b277] not found'
[00:04:14]                     │ proc [kibana]     },
[00:04:14]                     │ proc [kibana]     headers: {}
[00:04:14]                     │ proc [kibana]   },
[00:04:14]                     │ proc [kibana]   [Symbol(SavedObjectsClientErrorCode)]: 'SavedObjectsClient/notFound'
[00:04:14]                     │ proc [kibana] }
[00:04:14]                     └- ✖ fail: alerting api integration security and spaces enabled Alerts legacy alerts alerts superuser at space1 should schedule actions on legacy alerts
[00:04:14]                     │      Error: expected 200 "OK", got 500 "Internal Server Error"
[00:04:14]                     │       at Test._assertStatus (/dev/shm/workspace/parallel/21/kibana/node_modules/supertest/lib/test.js:268:12)
[00:04:14]                     │       at Test._assertFunction (/dev/shm/workspace/parallel/21/kibana/node_modules/supertest/lib/test.js:283:11)
[00:04:14]                     │       at Test.assert (/dev/shm/workspace/parallel/21/kibana/node_modules/supertest/lib/test.js:173:18)
[00:04:14]                     │       at assert (/dev/shm/workspace/parallel/21/kibana/node_modules/supertest/lib/test.js:131:12)
[00:04:14]                     │       at /dev/shm/workspace/parallel/21/kibana/node_modules/supertest/lib/test.js:128:5
[00:04:14]                     │       at Test.Request.callback (/dev/shm/workspace/parallel/21/kibana/node_modules/supertest/node_modules/superagent/lib/node/index.js:718:3)
[00:04:14]                     │       at /dev/shm/workspace/parallel/21/kibana/node_modules/supertest/node_modules/superagent/lib/node/index.js:906:18
[00:04:14]                     │       at IncomingMessage.<anonymous> (/dev/shm/workspace/parallel/21/kibana/node_modules/supertest/node_modules/superagent/lib/node/parsers/json.js:19:7)
[00:04:14]                     │       at endReadableNT (internal/streams/readable.js:1317:12)
[00:04:14]                     │       at processTicksAndRejections (internal/process/task_queues.js:82:21)
[00:04:14]                     │ 
[00:04:14]                     │ 

Stack Trace

Error: expected 200 "OK", got 500 "Internal Server Error"
    at Test._assertStatus (/dev/shm/workspace/parallel/21/kibana/node_modules/supertest/lib/test.js:268:12)
    at Test._assertFunction (/dev/shm/workspace/parallel/21/kibana/node_modules/supertest/lib/test.js:283:11)
    at Test.assert (/dev/shm/workspace/parallel/21/kibana/node_modules/supertest/lib/test.js:173:18)
    at assert (/dev/shm/workspace/parallel/21/kibana/node_modules/supertest/lib/test.js:131:12)
    at /dev/shm/workspace/parallel/21/kibana/node_modules/supertest/lib/test.js:128:5
    at Test.Request.callback (/dev/shm/workspace/parallel/21/kibana/node_modules/supertest/node_modules/superagent/lib/node/index.js:718:3)
    at /dev/shm/workspace/parallel/21/kibana/node_modules/supertest/node_modules/superagent/lib/node/index.js:906:18
    at IncomingMessage.<anonymous> (/dev/shm/workspace/parallel/21/kibana/node_modules/supertest/node_modules/superagent/lib/node/parsers/json.js:19:7)
    at endReadableNT (internal/streams/readable.js:1317:12)
    at processTicksAndRejections (internal/process/task_queues.js:82:21)

Kibana Pipeline / general / X-Pack Alerting API Integration Tests.x-pack/test/alerting_api_integration/security_and_spaces/tests/alerting/rbac_legacy·ts.alerting api integration security and spaces enabled Alerts legacy alerts alerts superuser at space1 should schedule actions on legacy alerts

Link to Jenkins

Standard Out

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

[00:00:00]       │
[00:00:00]         └-: alerting api integration security and spaces enabled
[00:00:00]           └-> "before all" hook in "alerting api integration security and spaces enabled"
[00:04:01]           └-: Alerts
[00:04:01]             └-> "before all" hook in "Alerts"
[00:04:01]             └-: legacy alerts
[00:04:01]               └-> "before all" hook in "legacy alerts"
[00:04:01]               └-> "before all" hook in "legacy alerts"
[00:04:01]                 │ debg creating space
[00:04:02]                 │ debg created space
[00:04:02]                 │ debg creating space
[00:04:03]                 │ debg created space
[00:04:03]                 │ debg creating space
[00:04:04]                 │ debg created space
[00:04:04]                 │ debg creating user no_kibana_privileges
[00:04:04]                 │ info [o.e.x.s.a.u.TransportPutUserAction] [node-01] added user [no_kibana_privileges]
[00:04:04]                 │ debg created user no_kibana_privileges
[00:04:04]                 │ debg creating role no_kibana_privileges
[00:04:04]                 │ info [o.e.x.s.a.r.TransportPutRoleAction] [node-01] added role [no_kibana_privileges]
[00:04:04]                 │ debg creating user superuser
[00:04:04]                 │ info [o.e.x.s.a.u.TransportPutUserAction] [node-01] added user [superuser]
[00:04:04]                 │ debg created user superuser
[00:04:04]                 │ debg creating user global_read
[00:04:04]                 │ info [o.e.x.s.a.u.TransportPutUserAction] [node-01] added user [global_read]
[00:04:04]                 │ debg created user global_read
[00:04:04]                 │ debg creating role global_read_role
[00:04:04]                 │ info [o.e.x.s.a.r.TransportPutRoleAction] [node-01] added role [global_read_role]
[00:04:04]                 │ debg creating user space_1_all
[00:04:04]                 │ info [o.e.x.s.a.u.TransportPutUserAction] [node-01] added user [space_1_all]
[00:04:04]                 │ debg created user space_1_all
[00:04:04]                 │ debg creating role space_1_all_role
[00:04:05]                 │ info [o.e.x.s.a.r.TransportPutRoleAction] [node-01] added role [space_1_all_role]
[00:04:05]                 │ debg creating user space_1_all_with_restricted_fixture
[00:04:05]                 │ info [o.e.x.s.a.u.TransportPutUserAction] [node-01] added user [space_1_all_with_restricted_fixture]
[00:04:05]                 │ debg created user space_1_all_with_restricted_fixture
[00:04:05]                 │ debg creating role space_1_all_with_restricted_fixture_role
[00:04:05]                 │ info [o.e.x.s.a.r.TransportPutRoleAction] [node-01] added role [space_1_all_with_restricted_fixture_role]
[00:04:05]                 │ debg creating user space_1_all_alerts_none_actions
[00:04:05]                 │ info [o.e.x.s.a.u.TransportPutUserAction] [node-01] added user [space_1_all_alerts_none_actions]
[00:04:05]                 │ debg created user space_1_all_alerts_none_actions
[00:04:05]                 │ debg creating role space_1_all_alerts_none_actions_role
[00:04:05]                 │ info [o.e.x.s.a.r.TransportPutRoleAction] [node-01] added role [space_1_all_alerts_none_actions_role]
[00:04:05]               └-: alerts
[00:04:05]                 └-> "before all" hook in "alerts"
[00:04:05]                 └-> "before all" hook in "alerts"
[00:04:05]                   │ info [x-pack/test/functional/es_archives/alerts_legacy] Loading "mappings.json"
[00:04:05]                   │ info [x-pack/test/functional/es_archives/alerts_legacy] Loading "data.json"
[00:04:05]                   │ info [o.e.c.m.MetadataDeleteIndexService] [node-01] [.kibana_task_manager_8.0.0_001/WeHwPi3aSuqfMYiqmkX7OA] deleting index
[00:04:05]                   │ info [o.e.c.m.MetadataDeleteIndexService] [node-01] [.kibana_8.0.0_001/K4ae3IcmTBCMxgF9Xwuivg] deleting index
[00:04:05]                   │ info [x-pack/test/functional/es_archives/alerts_legacy] Deleted existing index ".kibana_8.0.0_001"
[00:04:05]                   │ info [x-pack/test/functional/es_archives/alerts_legacy] Deleted existing index ".kibana_task_manager_8.0.0_001"
[00:04:05]                   │ info [o.e.c.m.MetadataCreateIndexService] [node-01] [.kibana_1] creating index, cause [api], templates [], shards [1]/[0]
[00:04:05]                   │ info [x-pack/test/functional/es_archives/alerts_legacy] Created index ".kibana_1"
[00:04:05]                   │ debg [x-pack/test/functional/es_archives/alerts_legacy] ".kibana_1" settings {"index":{"auto_expand_replicas":"0-1","number_of_replicas":"0","number_of_shards":"1"}}
[00:04:05]                   │ info [o.e.c.m.MetadataCreateIndexService] [node-01] [.kibana_task_manager_1] creating index, cause [api], templates [], shards [1]/[0]
[00:04:05]                   │ info [x-pack/test/functional/es_archives/alerts_legacy] Created index ".kibana_task_manager_1"
[00:04:05]                   │ debg [x-pack/test/functional/es_archives/alerts_legacy] ".kibana_task_manager_1" settings {"index":{"auto_expand_replicas":"0-1","number_of_replicas":"0","number_of_shards":"1"}}
[00:04:05]                   │ info [x-pack/test/functional/es_archives/alerts_legacy] Indexed 6 docs into ".kibana_1"
[00:04:05]                   │ info [x-pack/test/functional/es_archives/alerts_legacy] Indexed 5 docs into ".kibana_task_manager_1"
[00:04:05]                   │ debg Migrating saved objects
[00:04:05]                   │ proc [kibana]   log   [20:46:12.828] [info][savedobjects-service] [.kibana_task_manager] INIT -> WAIT_FOR_YELLOW_SOURCE. took: 6ms.
[00:04:05]                   │ proc [kibana]   log   [20:46:12.832] [info][savedobjects-service] [.kibana] INIT -> WAIT_FOR_YELLOW_SOURCE. took: 13ms.
[00:04:05]                   │ proc [kibana]   log   [20:46:12.833] [info][savedobjects-service] [.kibana_task_manager] WAIT_FOR_YELLOW_SOURCE -> CHECK_UNKNOWN_DOCUMENTS. took: 5ms.
[00:04:05]                   │ proc [kibana]   log   [20:46:12.835] [info][savedobjects-service] [.kibana] WAIT_FOR_YELLOW_SOURCE -> CHECK_UNKNOWN_DOCUMENTS. took: 3ms.
[00:04:05]                   │ proc [kibana]   log   [20:46:12.841] [info][savedobjects-service] [.kibana] CHECK_UNKNOWN_DOCUMENTS -> SET_SOURCE_WRITE_BLOCK. took: 6ms.
[00:04:05]                   │ proc [kibana]   log   [20:46:12.842] [info][savedobjects-service] [.kibana_task_manager] CHECK_UNKNOWN_DOCUMENTS -> SET_SOURCE_WRITE_BLOCK. took: 9ms.
[00:04:05]                   │ info [o.e.c.m.MetadataIndexStateService] [node-01] adding block write to indices [[.kibana_1/jEq5h-TWSdmn0NnQ3o3-dQ]]
[00:04:05]                   │ info [o.e.c.m.MetadataIndexStateService] [node-01] adding block write to indices [[.kibana_task_manager_1/6IdqSQimQdesATW7CUKjeQ]]
[00:04:05]                   │ info [o.e.c.m.MetadataIndexStateService] [node-01] completed adding block write to indices [.kibana_1]
[00:04:05]                   │ info [o.e.c.m.MetadataIndexStateService] [node-01] completed adding block write to indices [.kibana_task_manager_1]
[00:04:05]                   │ proc [kibana]   log   [20:46:12.904] [info][savedobjects-service] [.kibana] SET_SOURCE_WRITE_BLOCK -> CALCULATE_EXCLUDE_FILTERS. took: 63ms.
[00:04:05]                   │ proc [kibana]   log   [20:46:12.913] [info][savedobjects-service] [.kibana] CALCULATE_EXCLUDE_FILTERS -> CREATE_REINDEX_TEMP. took: 9ms.
[00:04:05]                   │ proc [kibana]   log   [20:46:12.922] [info][savedobjects-service] [.kibana_task_manager] SET_SOURCE_WRITE_BLOCK -> CALCULATE_EXCLUDE_FILTERS. took: 80ms.
[00:04:05]                   │ info [o.e.c.m.MetadataCreateIndexService] [node-01] [.kibana_8.0.0_reindex_temp] creating index, cause [api], templates [], shards [1]/[1]
[00:04:05]                   │ info [o.e.c.r.a.AllocationService] [node-01] updating number_of_replicas to [0] for indices [.kibana_8.0.0_reindex_temp]
[00:04:05]                   │ proc [kibana]   log   [20:46:12.928] [info][savedobjects-service] [.kibana_task_manager] CALCULATE_EXCLUDE_FILTERS -> CREATE_REINDEX_TEMP. took: 6ms.
[00:04:05]                   │ info [o.e.c.m.MetadataCreateIndexService] [node-01] [.kibana_task_manager_8.0.0_reindex_temp] creating index, cause [api], templates [], shards [1]/[1]
[00:04:05]                   │ info [o.e.c.r.a.AllocationService] [node-01] updating number_of_replicas to [0] for indices [.kibana_task_manager_8.0.0_reindex_temp]
[00:04:05]                   │ proc [kibana]   log   [20:46:13.020] [info][savedobjects-service] [.kibana] CREATE_REINDEX_TEMP -> REINDEX_SOURCE_TO_TEMP_OPEN_PIT. took: 107ms.
[00:04:05]                   │ proc [kibana]   log   [20:46:13.022] [info][savedobjects-service] [.kibana_task_manager] CREATE_REINDEX_TEMP -> REINDEX_SOURCE_TO_TEMP_OPEN_PIT. took: 94ms.
[00:04:05]                   │ proc [kibana]   log   [20:46:13.046] [info][savedobjects-service] [.kibana_task_manager] REINDEX_SOURCE_TO_TEMP_OPEN_PIT -> REINDEX_SOURCE_TO_TEMP_READ. took: 24ms.
[00:04:05]                   │ proc [kibana]   log   [20:46:13.048] [info][savedobjects-service] [.kibana] REINDEX_SOURCE_TO_TEMP_OPEN_PIT -> REINDEX_SOURCE_TO_TEMP_READ. took: 28ms.
[00:04:05]                   │ proc [kibana]   log   [20:46:13.059] [info][savedobjects-service] [.kibana_task_manager] Starting to process 5 documents.
[00:04:05]                   │ proc [kibana]   log   [20:46:13.060] [info][savedobjects-service] [.kibana_task_manager] REINDEX_SOURCE_TO_TEMP_READ -> REINDEX_SOURCE_TO_TEMP_INDEX. took: 13ms.
[00:04:05]                   │ proc [kibana]   log   [20:46:13.062] [info][savedobjects-service] [.kibana] Starting to process 6 documents.
[00:04:05]                   │ proc [kibana]   log   [20:46:13.062] [info][savedobjects-service] [.kibana] REINDEX_SOURCE_TO_TEMP_READ -> REINDEX_SOURCE_TO_TEMP_INDEX. took: 14ms.
[00:04:06]                   │ proc [kibana]   log   [20:46:13.422] [info][savedobjects-service] [.kibana_task_manager] REINDEX_SOURCE_TO_TEMP_INDEX -> REINDEX_SOURCE_TO_TEMP_INDEX_BULK. took: 363ms.
[00:04:06]                   │ info [o.e.c.m.MetadataMappingService] [node-01] [.kibana_task_manager_8.0.0_reindex_temp/wRwKgNQFRyu4nMmlvEOPxA] update_mapping [_doc]
[00:04:06]                   │ proc [kibana]   log   [20:46:13.538] [info][savedobjects-service] [.kibana_task_manager] REINDEX_SOURCE_TO_TEMP_INDEX_BULK -> REINDEX_SOURCE_TO_TEMP_READ. took: 116ms.
[00:04:06]                   │ proc [kibana]   log   [20:46:13.645] [info][savedobjects-service] [.kibana] REINDEX_SOURCE_TO_TEMP_INDEX -> REINDEX_SOURCE_TO_TEMP_INDEX_BULK. took: 583ms.
[00:04:06]                   │ proc [kibana]   log   [20:46:13.648] [info][savedobjects-service] [.kibana_task_manager] Processed 5 documents out of 5.
[00:04:06]                   │ proc [kibana]   log   [20:46:13.648] [info][savedobjects-service] [.kibana_task_manager] REINDEX_SOURCE_TO_TEMP_READ -> REINDEX_SOURCE_TO_TEMP_CLOSE_PIT. took: 110ms.
[00:04:06]                   │ info [o.e.c.m.MetadataMappingService] [node-01] [.kibana_8.0.0_reindex_temp/2XYI4iDDTFmSCl0gGlnX0g] update_mapping [_doc]
[00:04:06]                   │ proc [kibana]   log   [20:46:13.657] [info][savedobjects-service] [.kibana_task_manager] REINDEX_SOURCE_TO_TEMP_CLOSE_PIT -> SET_TEMP_WRITE_BLOCK. took: 9ms.
[00:04:06]                   │ info [o.e.c.m.MetadataIndexStateService] [node-01] adding block write to indices [[.kibana_task_manager_8.0.0_reindex_temp/wRwKgNQFRyu4nMmlvEOPxA]]
[00:04:06]                   │ info [o.e.c.m.MetadataMappingService] [node-01] [.kibana_8.0.0_reindex_temp/2XYI4iDDTFmSCl0gGlnX0g] update_mapping [_doc]
[00:04:06]                   │ info [o.e.c.m.MetadataIndexStateService] [node-01] completed adding block write to indices [.kibana_task_manager_8.0.0_reindex_temp]
[00:04:06]                   │ proc [kibana]   log   [20:46:13.764] [info][savedobjects-service] [.kibana_task_manager] SET_TEMP_WRITE_BLOCK -> CLONE_TEMP_TO_TARGET. took: 107ms.
[00:04:06]                   │ proc [kibana]   log   [20:46:13.771] [info][savedobjects-service] [.kibana] REINDEX_SOURCE_TO_TEMP_INDEX_BULK -> REINDEX_SOURCE_TO_TEMP_READ. took: 126ms.
[00:04:06]                   │ proc [kibana]   log   [20:46:13.777] [info][savedobjects-service] [.kibana] Processed 6 documents out of 6.
[00:04:06]                   │ proc [kibana]   log   [20:46:13.777] [info][savedobjects-service] [.kibana] REINDEX_SOURCE_TO_TEMP_READ -> REINDEX_SOURCE_TO_TEMP_CLOSE_PIT. took: 6ms.
[00:04:06]                   │ proc [kibana]   log   [20:46:13.780] [info][savedobjects-service] [.kibana] REINDEX_SOURCE_TO_TEMP_CLOSE_PIT -> SET_TEMP_WRITE_BLOCK. took: 3ms.
[00:04:06]                   │ info [o.e.c.m.MetadataCreateIndexService] [node-01] applying create index request using existing index [.kibana_task_manager_8.0.0_reindex_temp] metadata
[00:04:06]                   │ info [o.e.c.m.MetadataCreateIndexService] [node-01] [.kibana_task_manager_8.0.0_001] creating index, cause [clone_index], templates [], shards [1]/[1]
[00:04:06]                   │ info [o.e.c.r.a.AllocationService] [node-01] updating number_of_replicas to [0] for indices [.kibana_task_manager_8.0.0_001]
[00:04:06]                   │ info [o.e.c.m.MetadataIndexStateService] [node-01] adding block write to indices [[.kibana_8.0.0_reindex_temp/2XYI4iDDTFmSCl0gGlnX0g]]
[00:04:06]                   │ info [o.e.c.m.MetadataMappingService] [node-01] [.kibana_task_manager_8.0.0_001/BPCQH8CWSpGIaLikt7ybSw] create_mapping
[00:04:06]                   │ info [o.e.c.m.MetadataIndexStateService] [node-01] completed adding block write to indices [.kibana_8.0.0_reindex_temp]
[00:04:06]                   │ proc [kibana]   log   [20:46:13.892] [info][savedobjects-service] [.kibana] SET_TEMP_WRITE_BLOCK -> CLONE_TEMP_TO_TARGET. took: 112ms.
[00:04:06]                   │ info [o.e.c.m.MetadataCreateIndexService] [node-01] applying create index request using existing index [.kibana_8.0.0_reindex_temp] metadata
[00:04:06]                   │ proc [kibana]   log   [20:46:13.922] [info][savedobjects-service] [.kibana_task_manager] CLONE_TEMP_TO_TARGET -> REFRESH_TARGET. took: 158ms.
[00:04:06]                   │ info [o.e.c.m.MetadataCreateIndexService] [node-01] [.kibana_8.0.0_001] creating index, cause [clone_index], templates [], shards [1]/[1]
[00:04:06]                   │ info [o.e.c.r.a.AllocationService] [node-01] updating number_of_replicas to [0] for indices [.kibana_8.0.0_001]
[00:04:06]                   │ proc [kibana]   log   [20:46:13.926] [info][savedobjects-service] [.kibana_task_manager] REFRESH_TARGET -> OUTDATED_DOCUMENTS_SEARCH_OPEN_PIT. took: 4ms.
[00:04:06]                   │ proc [kibana]   log   [20:46:13.929] [info][savedobjects-service] [.kibana_task_manager] OUTDATED_DOCUMENTS_SEARCH_OPEN_PIT -> OUTDATED_DOCUMENTS_SEARCH_READ. took: 3ms.
[00:04:06]                   │ proc [kibana]   log   [20:46:13.936] [info][savedobjects-service] [.kibana_task_manager] OUTDATED_DOCUMENTS_SEARCH_READ -> OUTDATED_DOCUMENTS_SEARCH_CLOSE_PIT. took: 7ms.
[00:04:06]                   │ proc [kibana]   log   [20:46:13.939] [info][savedobjects-service] [.kibana_task_manager] OUTDATED_DOCUMENTS_SEARCH_CLOSE_PIT -> UPDATE_TARGET_MAPPINGS. took: 3ms.
[00:04:06]                   │ info [o.e.c.m.MetadataMappingService] [node-01] [.kibana_task_manager_8.0.0_001/BPCQH8CWSpGIaLikt7ybSw] update_mapping [_doc]
[00:04:06]                   │ info [o.e.c.m.MetadataMappingService] [node-01] [.kibana_8.0.0_001/jwpqI9AFR9ynsWAsss9W-g] create_mapping
[00:04:06]                   │ proc [kibana]   log   [20:46:14.003] [info][savedobjects-service] [.kibana_task_manager] UPDATE_TARGET_MAPPINGS -> UPDATE_TARGET_MAPPINGS_WAIT_FOR_TASK. took: 64ms.
[00:04:06]                   │ proc [kibana]   log   [20:46:14.038] [info][savedobjects-service] [.kibana] CLONE_TEMP_TO_TARGET -> REFRESH_TARGET. took: 146ms.
[00:04:06]                   │ proc [kibana]   log   [20:46:14.041] [info][savedobjects-service] [.kibana] REFRESH_TARGET -> OUTDATED_DOCUMENTS_SEARCH_OPEN_PIT. took: 3ms.
[00:04:06]                   │ info [o.e.c.m.MetadataCreateIndexService] [node-01] [.tasks] creating index, cause [auto(bulk api)], templates [], shards [1]/[1]
[00:04:06]                   │ info [o.e.c.r.a.AllocationService] [node-01] updating number_of_replicas to [0] for indices [.tasks]
[00:04:06]                   │ proc [kibana]   log   [20:46:14.044] [info][savedobjects-service] [.kibana] OUTDATED_DOCUMENTS_SEARCH_OPEN_PIT -> OUTDATED_DOCUMENTS_SEARCH_READ. took: 3ms.
[00:04:06]                   │ proc [kibana]   log   [20:46:14.051] [info][savedobjects-service] [.kibana] OUTDATED_DOCUMENTS_SEARCH_READ -> OUTDATED_DOCUMENTS_SEARCH_CLOSE_PIT. took: 7ms.
[00:04:06]                   │ proc [kibana]   log   [20:46:14.053] [info][savedobjects-service] [.kibana] OUTDATED_DOCUMENTS_SEARCH_CLOSE_PIT -> UPDATE_TARGET_MAPPINGS. took: 2ms.
[00:04:06]                   │ info [o.e.t.LoggingTaskListener] [node-01] 14512 finished with response BulkByScrollResponse[took=18.4ms,timed_out=false,sliceId=null,updated=5,created=0,deleted=0,batches=1,versionConflicts=0,noops=0,retries=0,throttledUntil=0s,bulk_failures=[],search_failures=[]]
[00:04:06]                   │ info [o.e.c.m.MetadataMappingService] [node-01] [.kibana_8.0.0_001/jwpqI9AFR9ynsWAsss9W-g] update_mapping [_doc]
[00:04:06]                   │ proc [kibana]   log   [20:46:14.117] [info][savedobjects-service] [.kibana_task_manager] UPDATE_TARGET_MAPPINGS_WAIT_FOR_TASK -> MARK_VERSION_INDEX_READY. took: 114ms.
[00:04:06]                   │ proc [kibana]   log   [20:46:14.128] [error][plugins][taskManager] Failed to poll for work: {"took":4,"timed_out":false,"total":5,"updated":0,"deleted":0,"batches":1,"version_conflicts":0,"noops":0,"retries":{"bulk":0,"search":0},"throttled_millis":0,"requests_per_second":-1,"throttled_until_millis":0,"failures":[{"index":".kibana_task_manager_1","id":"task:e39a02f0-eea4-11ea-a285-352ee3aecffa","cause":{"type":"cluster_block_exception","reason":"index [.kibana_task_manager_1] blocked by: [FORBIDDEN/8/index write (api)];"},"status":403},{"index":".kibana_task_manager_1","id":"task:e9c069d0-eea4-11ea-a285-352ee3aecffa","cause":{"type":"cluster_block_exception","reason":"index [.kibana_task_manager_1] blocked by: [FORBIDDEN/8/index write (api)];"},"status":403},{"index":".kibana_task_manager_1","id":"task:e8885f00-eea4-11ea-a285-352ee3aecffa","cause":{"type":"cluster_block_exception","reason":"index [.kibana_task_manager_1] blocked by: [FORBIDDEN/8/index write (api)];"},"status":403},{"index":".kibana_task_manager_1","id":"task:e616c2c0-eea4-11ea-a285-352ee3aecffa","cause":{"type":"cluster_block_exception","reason":"index [.kibana_task_manager_1] blocked by: [FORBIDDEN/8/index write (api)];"},"status":403},{"index":".kibana_task_manager_1","id":"task:e4df5430-eea4-11ea-a285-352ee3aecffa","cause":{"type":"cluster_block_exception","reason":"index [.kibana_task_manager_1] blocked by: [FORBIDDEN/8/index write (api)];"},"status":403}]}
[00:04:06]                   │ info [o.e.c.m.MetadataDeleteIndexService] [node-01] [.kibana_task_manager_8.0.0_reindex_temp/wRwKgNQFRyu4nMmlvEOPxA] deleting index
[00:04:06]                   │ proc [kibana]   log   [20:46:14.149] [info][savedobjects-service] [.kibana] UPDATE_TARGET_MAPPINGS -> UPDATE_TARGET_MAPPINGS_WAIT_FOR_TASK. took: 96ms.
[00:04:07]                   │ info [o.e.t.LoggingTaskListener] [node-01] 14571 finished with response BulkByScrollResponse[took=28.5ms,timed_out=false,sliceId=null,updated=11,created=0,deleted=0,batches=1,versionConflicts=0,noops=0,retries=0,throttledUntil=0s,bulk_failures=[],search_failures=[]]
[00:04:07]                   │ proc [kibana]   log   [20:46:14.185] [info][savedobjects-service] [.kibana_task_manager] MARK_VERSION_INDEX_READY -> DONE. took: 68ms.
[00:04:07]                   │ proc [kibana]   log   [20:46:14.187] [info][savedobjects-service] [.kibana_task_manager] Migration completed after 1365ms
[00:04:07]                   │ proc [kibana]   log   [20:46:14.254] [info][savedobjects-service] [.kibana] UPDATE_TARGET_MAPPINGS_WAIT_FOR_TASK -> MARK_VERSION_INDEX_READY. took: 105ms.
[00:04:07]                   │ info [o.e.c.m.MetadataDeleteIndexService] [node-01] [.kibana_8.0.0_reindex_temp/2XYI4iDDTFmSCl0gGlnX0g] deleting index
[00:04:07]                   │ proc [kibana]   log   [20:46:14.295] [info][savedobjects-service] [.kibana] MARK_VERSION_INDEX_READY -> DONE. took: 41ms.
[00:04:07]                   │ proc [kibana]   log   [20:46:14.295] [info][savedobjects-service] [.kibana] Migration completed after 1476ms
[00:04:07]                   │ debg [x-pack/test/functional/es_archives/alerts_legacy] Migrated Kibana index after loading Kibana data
[00:04:07]                   │ debg [x-pack/test/functional/es_archives/alerts_legacy] Ensured that default space exists in .kibana
[00:04:07]                   │ info [o.e.c.m.MetadataCreateIndexService] [node-01] [.kibana-alerting-test-data] creating index, cause [api], templates [], shards [1]/[1]
[00:04:07]                   │ info [o.e.c.m.MetadataCreateIndexService] [node-01] [.kibana-test-authorization] creating index, cause [api], templates [], shards [1]/[1]
[00:04:07]                   │ debg creating space
[00:04:07]                   │ info [o.e.c.m.MetadataMappingService] [node-01] [.kibana_8.0.0_001/jwpqI9AFR9ynsWAsss9W-g] update_mapping [_doc]
[00:04:08]                   │ debg created space
[00:04:08]                   │ debg creating space
[00:04:09]                   │ debg created space
[00:04:09]                   │ debg creating space
[00:04:10]                   │ proc [kibana]   log   [20:46:17.177] [warning][plugins][taskManager] Detected potential performance issue with Task Manager. Set 'xpack.task_manager.monitored_stats_health_verbose_log.enabled: true' in your Kibana.yml to enable debug logging
[00:04:10]                   │ proc [kibana]   log   [20:46:17.534] [warning][eventLog][plugins] invalid event logged: [kibana.task.schedule_delay]: "kibana.task.schedule_delay" must be a safe number; {"@timestamp":"2021-08-26T20:46:17.527Z","event":{"provider":"alerting","action":"execute-start","kind":"alert","category":["alertsFixture"],"start":"2021-08-26T20:46:17.527Z"},"kibana":{"saved_objects":[{"rel":"primary","type":"alert","id":"b384be60-ec53-4b26-857e-0253ee55b277","type_id":"test.always-firing","namespace":"space1"}],"task":{"scheduled":"2020-09-04T11:51:04.804Z","schedule_delay":30790512723000000},"server_uuid":"5b2de169-2785-441b-ae8c-186a1936b17d","version":"8.0.0"},"rule":{"id":"b384be60-ec53-4b26-857e-0253ee55b277","license":"basic","category":"test.always-firing","ruleset":"alertsFixture"},"message":"alert execution start: \"b384be60-ec53-4b26-857e-0253ee55b277\"","ecs":{"version":"1.8.0"}})
[00:04:10]                   │ proc [kibana]   log   [20:46:17.544] [warning][eventLog][plugins] invalid event logged: [kibana.task.schedule_delay]: "kibana.task.schedule_delay" must be a safe number; {"@timestamp":"2021-08-26T20:46:17.538Z","event":{"provider":"alerting","action":"execute-start","kind":"alert","category":["alertsFixture"],"start":"2021-08-26T20:46:17.538Z"},"kibana":{"saved_objects":[{"rel":"primary","type":"alert","id":"6ee9630a-a20e-44af-9465-217a3717d2ab","type_id":"test.always-firing","namespace":"space1"}],"task":{"scheduled":"2020-09-04T11:51:05.197Z","schedule_delay":30790512341000000},"server_uuid":"5b2de169-2785-441b-ae8c-186a1936b17d","version":"8.0.0"},"rule":{"id":"6ee9630a-a20e-44af-9465-217a3717d2ab","license":"basic","category":"test.always-firing","ruleset":"alertsFixture"},"message":"alert execution start: \"6ee9630a-a20e-44af-9465-217a3717d2ab\"","ecs":{"version":"1.8.0"}})
[00:04:10]                   │ proc [kibana]   log   [20:46:17.550] [warning][eventLog][plugins] invalid event logged: [kibana.task.schedule_delay]: "kibana.task.schedule_delay" must be a safe number; {"@timestamp":"2021-08-26T20:46:17.549Z","event":{"provider":"alerting","action":"execute-start","kind":"alert","category":["alertsFixture"],"start":"2021-08-26T20:46:17.549Z"},"kibana":{"saved_objects":[{"rel":"primary","type":"alert","id":"5cc59319-74ee-4edc-8646-a79ea91067cd","type_id":"test.always-firing","namespace":"space1"}],"task":{"scheduled":"2020-09-04T11:51:03.152Z","schedule_delay":30790514397000000},"server_uuid":"5b2de169-2785-441b-ae8c-186a1936b17d","version":"8.0.0"},"rule":{"id":"5cc59319-74ee-4edc-8646-a79ea91067cd","license":"basic","category":"test.always-firing","ruleset":"alertsFixture"},"message":"alert execution start: \"5cc59319-74ee-4edc-8646-a79ea91067cd\"","ecs":{"version":"1.8.0"}})
[00:04:10]                   │ proc [kibana]   log   [20:46:17.551] [warning][eventLog][plugins] invalid event logged: [kibana.task.schedule_delay]: "kibana.task.schedule_delay" must be a safe number; {"@timestamp":"2021-08-26T20:46:17.550Z","event":{"provider":"alerting","action":"execute-start","kind":"alert","category":["alertsFixture"],"start":"2021-08-26T20:46:17.550Z"},"kibana":{"saved_objects":[{"rel":"primary","type":"alert","id":"d41a6abb-b93b-46df-a80a-926221ea847c","type_id":"test.always-firing","namespace":"space1"}],"task":{"scheduled":"2020-09-04T11:51:04.804Z","schedule_delay":30790512746000000},"server_uuid":"5b2de169-2785-441b-ae8c-186a1936b17d","version":"8.0.0"},"rule":{"id":"d41a6abb-b93b-46df-a80a-926221ea847c","license":"basic","category":"test.always-firing","ruleset":"alertsFixture"},"message":"alert execution start: \"d41a6abb-b93b-46df-a80a-926221ea847c\"","ecs":{"version":"1.8.0"}})
[00:04:10]                   │ proc [kibana]   log   [20:46:17.553] [warning][eventLog][plugins] invalid event logged: [kibana.task.schedule_delay]: "kibana.task.schedule_delay" must be a safe number; {"@timestamp":"2021-08-26T20:46:17.552Z","event":{"provider":"alerting","action":"execute-start","kind":"alert","category":["alertsFixture"],"start":"2021-08-26T20:46:17.552Z"},"kibana":{"saved_objects":[{"rel":"primary","type":"alert","id":"362e362b-a137-4aa2-9434-43e3d0d84a34","type_id":"test.always-firing","namespace":"space1"}],"task":{"scheduled":"2020-09-04T11:51:04.804Z","schedule_delay":30790512748000000},"server_uuid":"5b2de169-2785-441b-ae8c-186a1936b17d","version":"8.0.0"},"rule":{"id":"362e362b-a137-4aa2-9434-43e3d0d84a34","license":"basic","category":"test.always-firing","ruleset":"alertsFixture"},"message":"alert execution start: \"362e362b-a137-4aa2-9434-43e3d0d84a34\"","ecs":{"version":"1.8.0"}})
[00:04:10]                   │ proc [kibana]   log   [20:46:17.786] [warning][eventLog][plugins] invalid event logged: [kibana.task.schedule_delay]: "kibana.task.schedule_delay" must be a safe number; {"@timestamp":"2021-08-26T20:46:17.527Z","event":{"provider":"alerting","action":"execute","kind":"alert","category":["alertsFixture"],"start":"2021-08-26T20:46:17.527Z","end":"2021-08-26T20:46:17.785Z","duration":258000000,"reason":"decrypt","outcome":"failure"},"kibana":{"saved_objects":[{"rel":"primary","type":"alert","id":"b384be60-ec53-4b26-857e-0253ee55b277","type_id":"test.always-firing","namespace":"space1"}],"task":{"scheduled":"2020-09-04T11:51:04.804Z","schedule_delay":30790512723000000},"alerting":{"status":"error"},"server_uuid":"5b2de169-2785-441b-ae8c-186a1936b17d","version":"8.0.0"},"rule":{"id":"b384be60-ec53-4b26-857e-0253ee55b277","license":"basic","category":"test.always-firing","ruleset":"alertsFixture"},"error":{"message":"Saved object [alert/b384be60-ec53-4b26-857e-0253ee55b277] not found"},"message":"test.always-firing:b384be60-ec53-4b26-857e-0253ee55b277: execution failed","ecs":{"version":"1.8.0"}})
[00:04:10]                   │ proc [kibana]   log   [20:46:17.788] [warning][eventLog][plugins] invalid event logged: [kibana.task.schedule_delay]: "kibana.task.schedule_delay" must be a safe number; {"@timestamp":"2021-08-26T20:46:17.550Z","event":{"provider":"alerting","action":"execute","kind":"alert","category":["alertsFixture"],"start":"2021-08-26T20:46:17.550Z","end":"2021-08-26T20:46:17.787Z","duration":237000000,"reason":"decrypt","outcome":"failure"},"kibana":{"saved_objects":[{"rel":"primary","type":"alert","id":"d41a6abb-b93b-46df-a80a-926221ea847c","type_id":"test.always-firing","namespace":"space1"}],"task":{"scheduled":"2020-09-04T11:51:04.804Z","schedule_delay":30790512746000000},"alerting":{"status":"error"},"server_uuid":"5b2de169-2785-441b-ae8c-186a1936b17d","version":"8.0.0"},"rule":{"id":"d41a6abb-b93b-46df-a80a-926221ea847c","license":"basic","category":"test.always-firing","ruleset":"alertsFixture"},"error":{"message":"Saved object [alert/d41a6abb-b93b-46df-a80a-926221ea847c] not found"},"message":"test.always-firing:d41a6abb-b93b-46df-a80a-926221ea847c: execution failed","ecs":{"version":"1.8.0"}})
[00:04:10]                   │ proc [kibana]   log   [20:46:17.789] [warning][eventLog][plugins] invalid event logged: [kibana.task.schedule_delay]: "kibana.task.schedule_delay" must be a safe number; {"@timestamp":"2021-08-26T20:46:17.538Z","event":{"provider":"alerting","action":"execute","kind":"alert","category":["alertsFixture"],"start":"2021-08-26T20:46:17.538Z","end":"2021-08-26T20:46:17.789Z","duration":251000000,"reason":"decrypt","outcome":"failure"},"kibana":{"saved_objects":[{"rel":"primary","type":"alert","id":"6ee9630a-a20e-44af-9465-217a3717d2ab","type_id":"test.always-firing","namespace":"space1"}],"task":{"scheduled":"2020-09-04T11:51:05.197Z","schedule_delay":30790512341000000},"alerting":{"status":"error"},"server_uuid":"5b2de169-2785-441b-ae8c-186a1936b17d","version":"8.0.0"},"rule":{"id":"6ee9630a-a20e-44af-9465-217a3717d2ab","license":"basic","category":"test.always-firing","ruleset":"alertsFixture"},"error":{"message":"Saved object [alert/6ee9630a-a20e-44af-9465-217a3717d2ab] not found"},"message":"test.always-firing:6ee9630a-a20e-44af-9465-217a3717d2ab: execution failed","ecs":{"version":"1.8.0"}})
[00:04:10]                   │ proc [kibana]   log   [20:46:17.791] [warning][eventLog][plugins] invalid event logged: [kibana.task.schedule_delay]: "kibana.task.schedule_delay" must be a safe number; {"@timestamp":"2021-08-26T20:46:17.552Z","event":{"provider":"alerting","action":"execute","kind":"alert","category":["alertsFixture"],"start":"2021-08-26T20:46:17.552Z","end":"2021-08-26T20:46:17.790Z","duration":238000000,"reason":"decrypt","outcome":"failure"},"kibana":{"saved_objects":[{"rel":"primary","type":"alert","id":"362e362b-a137-4aa2-9434-43e3d0d84a34","type_id":"test.always-firing","namespace":"space1"}],"task":{"scheduled":"2020-09-04T11:51:04.804Z","schedule_delay":30790512748000000},"alerting":{"status":"error"},"server_uuid":"5b2de169-2785-441b-ae8c-186a1936b17d","version":"8.0.0"},"rule":{"id":"362e362b-a137-4aa2-9434-43e3d0d84a34","license":"basic","category":"test.always-firing","ruleset":"alertsFixture"},"error":{"message":"Saved object [alert/362e362b-a137-4aa2-9434-43e3d0d84a34] not found"},"message":"test.always-firing:362e362b-a137-4aa2-9434-43e3d0d84a34: execution failed","ecs":{"version":"1.8.0"}})
[00:04:10]                   │ proc [kibana]   log   [20:46:17.792] [warning][eventLog][plugins] invalid event logged: [kibana.task.schedule_delay]: "kibana.task.schedule_delay" must be a safe number; {"@timestamp":"2021-08-26T20:46:17.549Z","event":{"provider":"alerting","action":"execute","kind":"alert","category":["alertsFixture"],"start":"2021-08-26T20:46:17.549Z","end":"2021-08-26T20:46:17.792Z","duration":243000000,"reason":"decrypt","outcome":"failure"},"kibana":{"saved_objects":[{"rel":"primary","type":"alert","id":"5cc59319-74ee-4edc-8646-a79ea91067cd","type_id":"test.always-firing","namespace":"space1"}],"task":{"scheduled":"2020-09-04T11:51:03.152Z","schedule_delay":30790514397000000},"alerting":{"status":"error"},"server_uuid":"5b2de169-2785-441b-ae8c-186a1936b17d","version":"8.0.0"},"rule":{"id":"5cc59319-74ee-4edc-8646-a79ea91067cd","license":"basic","category":"test.always-firing","ruleset":"alertsFixture"},"error":{"message":"Saved object [alert/5cc59319-74ee-4edc-8646-a79ea91067cd] not found"},"message":"test.always-firing:5cc59319-74ee-4edc-8646-a79ea91067cd: execution failed","ecs":{"version":"1.8.0"}})
[00:04:10]                   │ proc [kibana]   log   [20:46:17.806] [warning][alerting][plugins] Unable to execute rule "b384be60-ec53-4b26-857e-0253ee55b277" in the "space1" space because Saved object [alert/b384be60-ec53-4b26-857e-0253ee55b277] not found - this rule will not be rescheduled. To restart rule execution, try disabling and re-enabling this rule.
[00:04:10]                   │ proc [kibana]   log   [20:46:17.807] [error][plugins][taskManager] Task alerting:test.always-firing "e39a02f0-eea4-11ea-a285-352ee3aecffa" failed: Error: Saved object [alert/b384be60-ec53-4b26-857e-0253ee55b277] not found
[00:04:10]                   │ proc [kibana]   log   [20:46:17.808] [warning][alerting][plugins] Unable to execute rule "d41a6abb-b93b-46df-a80a-926221ea847c" in the "space1" space because Saved object [alert/d41a6abb-b93b-46df-a80a-926221ea847c] not found - this rule will not be rescheduled. To restart rule execution, try disabling and re-enabling this rule.
[00:04:10]                   │ proc [kibana]   log   [20:46:17.808] [error][plugins][taskManager] Task alerting:test.always-firing "e616c2c0-eea4-11ea-a285-352ee3aecffa" failed: Error: Saved object [alert/d41a6abb-b93b-46df-a80a-926221ea847c] not found
[00:04:10]                   │ proc [kibana]   log   [20:46:17.809] [warning][alerting][plugins] Unable to execute rule "6ee9630a-a20e-44af-9465-217a3717d2ab" in the "space1" space because Saved object [alert/6ee9630a-a20e-44af-9465-217a3717d2ab] not found - this rule will not be rescheduled. To restart rule execution, try disabling and re-enabling this rule.
[00:04:10]                   │ proc [kibana]   log   [20:46:17.809] [error][plugins][taskManager] Task alerting:test.always-firing "e9c069d0-eea4-11ea-a285-352ee3aecffa" failed: Error: Saved object [alert/6ee9630a-a20e-44af-9465-217a3717d2ab] not found
[00:04:10]                   │ proc [kibana]   log   [20:46:17.810] [warning][alerting][plugins] Unable to execute rule "362e362b-a137-4aa2-9434-43e3d0d84a34" in the "space1" space because Saved object [alert/362e362b-a137-4aa2-9434-43e3d0d84a34] not found - this rule will not be rescheduled. To restart rule execution, try disabling and re-enabling this rule.
[00:04:10]                   │ proc [kibana]   log   [20:46:17.810] [error][plugins][taskManager] Task alerting:test.always-firing "e4df5430-eea4-11ea-a285-352ee3aecffa" failed: Error: Saved object [alert/362e362b-a137-4aa2-9434-43e3d0d84a34] not found
[00:04:10]                   │ proc [kibana]   log   [20:46:17.811] [warning][alerting][plugins] Unable to execute rule "5cc59319-74ee-4edc-8646-a79ea91067cd" in the "space1" space because Saved object [alert/5cc59319-74ee-4edc-8646-a79ea91067cd] not found - this rule will not be rescheduled. To restart rule execution, try disabling and re-enabling this rule.
[00:04:10]                   │ proc [kibana]   log   [20:46:17.811] [error][plugins][taskManager] Task alerting:test.always-firing "e8885f00-eea4-11ea-a285-352ee3aecffa" failed: Error: Saved object [alert/5cc59319-74ee-4edc-8646-a79ea91067cd] not found
[00:04:10]                   │ debg created space
[00:04:10]                   │ debg creating user no_kibana_privileges
[00:04:10]                   │ info [o.e.x.s.a.u.TransportPutUserAction] [node-01] updated user [no_kibana_privileges]
[00:04:10]                   │ debg created user no_kibana_privileges
[00:04:10]                   │ debg creating role no_kibana_privileges
[00:04:10]                   │ info [o.e.x.s.a.r.TransportPutRoleAction] [node-01] updated role [no_kibana_privileges]
[00:04:10]                   │ debg creating user superuser
[00:04:11]                   │ info [o.e.x.s.a.u.TransportPutUserAction] [node-01] updated user [superuser]
[00:04:11]                   │ debg created user superuser
[00:04:11]                   │ debg creating user global_read
[00:04:11]                   │ info [o.e.x.s.a.u.TransportPutUserAction] [node-01] updated user [global_read]
[00:04:11]                   │ debg created user global_read
[00:04:11]                   │ debg creating role global_read_role
[00:04:11]                   │ info [o.e.x.s.a.r.TransportPutRoleAction] [node-01] updated role [global_read_role]
[00:04:11]                   │ debg creating user space_1_all
[00:04:11]                   │ proc [kibana]   log   [20:46:18.372] [info][status] Kibana is now unavailable (was available)
[00:04:11]                   │ info [o.e.x.s.a.u.TransportPutUserAction] [node-01] updated user [space_1_all]
[00:04:11]                   │ debg created user space_1_all
[00:04:11]                   │ debg creating role space_1_all_role
[00:04:11]                   │ info [o.e.x.s.a.r.TransportPutRoleAction] [node-01] updated role [space_1_all_role]
[00:04:11]                   │ debg creating user space_1_all_with_restricted_fixture
[00:04:11]                   │ info [o.e.x.s.a.u.TransportPutUserAction] [node-01] updated user [space_1_all_with_restricted_fixture]
[00:04:11]                   │ debg created user space_1_all_with_restricted_fixture
[00:04:11]                   │ debg creating role space_1_all_with_restricted_fixture_role
[00:04:11]                   │ info [o.e.x.s.a.r.TransportPutRoleAction] [node-01] updated role [space_1_all_with_restricted_fixture_role]
[00:04:11]                   │ debg creating user space_1_all_alerts_none_actions
[00:04:11]                   │ info [o.e.x.s.a.u.TransportPutUserAction] [node-01] updated user [space_1_all_alerts_none_actions]
[00:04:11]                   │ debg created user space_1_all_alerts_none_actions
[00:04:11]                   │ debg creating role space_1_all_alerts_none_actions_role
[00:04:11]                   │ info [o.e.x.s.a.r.TransportPutRoleAction] [node-01] updated role [space_1_all_alerts_none_actions_role]
[00:04:11]                 └-: superuser at space1
[00:04:11]                   └-> "before all" hook for "should schedule actions on legacy alerts"
[00:04:11]                   └-> "before all" hook for "should schedule actions on legacy alerts"
[00:04:11]                   └-> should schedule actions on legacy alerts
[00:04:11]                     └-> "before each" hook: global before each for "should schedule actions on legacy alerts"
[00:04:11]                     │ proc [kibana]   log   [20:46:18.839] [error][http] Error: Saved object [alert/b384be60-ec53-4b26-857e-0253ee55b277] not found
[00:04:11]                     │ proc [kibana]     at Function.createGenericNotFoundError (/dev/shm/workspace/kibana-build-21/src/core/server/saved_objects/service/lib/errors.js:125:37)
[00:04:11]                     │ proc [kibana]     at SavedObjectsRepository.get (/dev/shm/workspace/kibana-build-21/src/core/server/saved_objects/service/lib/repository.js:1017:46)
[00:04:11]                     │ proc [kibana]     at runMicrotasks (<anonymous>)
[00:04:11]                     │ proc [kibana]     at processTicksAndRejections (internal/process/task_queues.js:95:5)
[00:04:11]                     │ proc [kibana]     at SavedObjectsClient.get (/dev/shm/workspace/kibana-build-21/src/core/server/saved_objects/service/saved_objects_client.js:116:12)
[00:04:11]                     │ proc [kibana]     at EncryptedSavedObjectsClientWrapper.get (/dev/shm/workspace/kibana-build-21/x-pack/plugins/encrypted_saved_objects/server/saved_objects/encrypted_saved_objects_client_wrapper.js:115:59)
[00:04:11]                     │ proc [kibana]     at SecureSavedObjectsClientWrapper.get (/dev/shm/workspace/kibana-build-21/x-pack/plugins/security/server/saved_objects/secure_saved_objects_client_wrapper.js:310:25)
[00:04:11]                     │ proc [kibana]     at SpacesSavedObjectsClient.get (/dev/shm/workspace/kibana-build-21/x-pack/plugins/spaces/server/saved_objects/spaces_saved_objects_client.js:206:12)
[00:04:11]                     │ proc [kibana]     at /dev/shm/workspace/parallel/21/kibana/x-pack/test/alerting_api_integration/common/fixtures/plugins/alerts/server/routes.ts:237:21
[00:04:11]                     │ proc [kibana]     at Router.handle (/dev/shm/workspace/kibana-build-21/src/core/server/http/router/router.js:163:30)
[00:04:11]                     │ proc [kibana]     at handler (/dev/shm/workspace/kibana-build-21/src/core/server/http/router/router.js:124:50)
[00:04:11]                     │ proc [kibana]     at exports.Manager.execute (/dev/shm/workspace/kibana-build-21/node_modules/@hapi/hapi/lib/toolkit.js:60:28)
[00:04:11]                     │ proc [kibana]     at Object.internals.handler (/dev/shm/workspace/kibana-build-21/node_modules/@hapi/hapi/lib/handler.js:46:20)
[00:04:11]                     │ proc [kibana]     at exports.execute (/dev/shm/workspace/kibana-build-21/node_modules/@hapi/hapi/lib/handler.js:31:20)
[00:04:11]                     │ proc [kibana]     at Request._lifecycle (/dev/shm/workspace/kibana-build-21/node_modules/@hapi/hapi/lib/request.js:370:32)
[00:04:11]                     │ proc [kibana]     at Request._execute (/dev/shm/workspace/kibana-build-21/node_modules/@hapi/hapi/lib/request.js:279:9) {
[00:04:11]                     │ proc [kibana]   data: null,
[00:04:11]                     │ proc [kibana]   isBoom: true,
[00:04:11]                     │ proc [kibana]   isServer: false,
[00:04:11]                     │ proc [kibana]   output: {
[00:04:11]                     │ proc [kibana]     statusCode: 404,
[00:04:11]                     │ proc [kibana]     payload: {
[00:04:11]                     │ proc [kibana]       statusCode: 404,
[00:04:11]                     │ proc [kibana]       error: 'Not Found',
[00:04:11]                     │ proc [kibana]       message: 'Saved object [alert/b384be60-ec53-4b26-857e-0253ee55b277] not found'
[00:04:11]                     │ proc [kibana]     },
[00:04:11]                     │ proc [kibana]     headers: {}
[00:04:11]                     │ proc [kibana]   },
[00:04:11]                     │ proc [kibana]   [Symbol(SavedObjectsClientErrorCode)]: 'SavedObjectsClient/notFound'
[00:04:11]                     │ proc [kibana] }
[00:04:11]                     └- ✖ fail: alerting api integration security and spaces enabled Alerts legacy alerts alerts superuser at space1 should schedule actions on legacy alerts
[00:04:11]                     │      Error: expected 200 "OK", got 500 "Internal Server Error"
[00:04:11]                     │       at Test._assertStatus (/dev/shm/workspace/parallel/21/kibana/node_modules/supertest/lib/test.js:268:12)
[00:04:11]                     │       at Test._assertFunction (/dev/shm/workspace/parallel/21/kibana/node_modules/supertest/lib/test.js:283:11)
[00:04:11]                     │       at Test.assert (/dev/shm/workspace/parallel/21/kibana/node_modules/supertest/lib/test.js:173:18)
[00:04:11]                     │       at assert (/dev/shm/workspace/parallel/21/kibana/node_modules/supertest/lib/test.js:131:12)
[00:04:11]                     │       at /dev/shm/workspace/parallel/21/kibana/node_modules/supertest/lib/test.js:128:5
[00:04:11]                     │       at Test.Request.callback (/dev/shm/workspace/parallel/21/kibana/node_modules/supertest/node_modules/superagent/lib/node/index.js:718:3)
[00:04:11]                     │       at /dev/shm/workspace/parallel/21/kibana/node_modules/supertest/node_modules/superagent/lib/node/index.js:906:18
[00:04:11]                     │       at IncomingMessage.<anonymous> (/dev/shm/workspace/parallel/21/kibana/node_modules/supertest/node_modules/superagent/lib/node/parsers/json.js:19:7)
[00:04:11]                     │       at endReadableNT (internal/streams/readable.js:1317:12)
[00:04:11]                     │       at processTicksAndRejections (internal/process/task_queues.js:82:21)
[00:04:11]                     │ 
[00:04:11]                     │ 

Stack Trace

Error: expected 200 "OK", got 500 "Internal Server Error"
    at Test._assertStatus (/dev/shm/workspace/parallel/21/kibana/node_modules/supertest/lib/test.js:268:12)
    at Test._assertFunction (/dev/shm/workspace/parallel/21/kibana/node_modules/supertest/lib/test.js:283:11)
    at Test.assert (/dev/shm/workspace/parallel/21/kibana/node_modules/supertest/lib/test.js:173:18)
    at assert (/dev/shm/workspace/parallel/21/kibana/node_modules/supertest/lib/test.js:131:12)
    at /dev/shm/workspace/parallel/21/kibana/node_modules/supertest/lib/test.js:128:5
    at Test.Request.callback (/dev/shm/workspace/parallel/21/kibana/node_modules/supertest/node_modules/superagent/lib/node/index.js:718:3)
    at /dev/shm/workspace/parallel/21/kibana/node_modules/supertest/node_modules/superagent/lib/node/index.js:906:18
    at IncomingMessage.<anonymous> (/dev/shm/workspace/parallel/21/kibana/node_modules/supertest/node_modules/superagent/lib/node/parsers/json.js:19:7)
    at endReadableNT (internal/streams/readable.js:1317:12)
    at processTicksAndRejections (internal/process/task_queues.js:82:21)

History

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

cc @YulNaumenko

@YulNaumenko YulNaumenko merged commit 382a5f1 into elastic:prepare-alerting-so-to-sharecapable Aug 26, 2021
YulNaumenko added a commit that referenced this pull request Aug 31, 2021
* [Alerting] [8.0] Prepare for making alerting saved objects sharecapable (#109990)

* [Alerting] [8.0] Prepare for making alerting saved objects sharecapable

* removed v8 check

* removed link

* added no op migration

* fixed name

Co-authored-by: Kibana Machine <[email protected]>

* [Actions] [8.0] Prepare for making action saved objects sharecapable. (#109756)

* [Actions] [8.0] Prepare for making action saved objects sharecapable.

* added more tests

* made it compatible to merge to 7.x

* fixed due to comments

* fixed tests

* added tests

* fixed tests

* fixed due to comments

* added no-opactions migration

* fixed test

* [Task Manager][8.0] Added migrations to savedObject Ids for "actions:* and "alerting:*" task types (#109180)

* [Task Manager][8.0] Added migrations to savedObject Ids for "actions:* and "alerting:*" task types

* fixed due to comments

* fixed typo

* added more tests

* added unit test

* added func test

* added func tests

* fixed test

Co-authored-by: Kibana Machine <[email protected]>

* fixed merge

* fixed legacy tests

* fixed tests

* fixed eslint

* Update migrations.ts

fixed action task

* fixed due to comments

Co-authored-by: Kibana Machine <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature:Alerting/RulesFramework Issues related to the Alerting Rules Framework release_note:skip Skip the PR/issue when compiling release notes Team:ResponseOps Label for the ResponseOps team (formerly the Cases and Alerting teams) v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Alerting] [8.0] Prepare for making alerting saved objects sharecapable
5 participants