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

[Endpoint] Sample data generator for endpoint app #58936

Merged
merged 31 commits into from
Mar 10, 2020

Conversation

marshallmain
Copy link
Contributor

@marshallmain marshallmain commented Feb 28, 2020

Summary

This PR adds a generator that provides sample events, alerts, and endpoint metadata documents for use in testing. Documents created using an instance of the generator will have corresponding host and agent information so they can be correlated. Additionally, helper functions generateResolverTree and generateEventAncestry automatically create a set of events that have parent-child relationships defined by their entity_ids. generateResolverTree expects a root event to be passed in and generates and returns a list of events and alerts that form the tree of children as well as related events for some random child processes.

Checklist

Delete any items that are not applicable to this PR.

For maintainers

@peluja1012 peluja1012 added the Feature:Endpoint Elastic Endpoint feature label Feb 28, 2020
@elasticmachine
Copy link
Contributor

Pinging @elastic/endpoint-app-team (Feature:Endpoint)

@peluja1012 peluja1012 added the Team:Endpoint Response Endpoint Response Team label Feb 28, 2020
@elasticmachine
Copy link
Contributor

Pinging @elastic/endpoint-response (Team:Endpoint Response)

@marshallmain marshallmain added the release_note:skip Skip the PR/issue when compiling release notes label Mar 2, 2020
@marshallmain marshallmain changed the title [WIP] Sample data generator for endpoint app [Endpoint] Sample data generator for endpoint app Mar 3, 2020
for (let i = 0; i < generations; i++) {
const newParents: EndpointEvent[] = [];
parents.forEach(element => {
// const numChildren = randomN(maxChildrenPerNode);
Copy link
Contributor

Choose a reason for hiding this comment

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

you might still be working on stuff, but probably can delete this

Copy link
Contributor Author

Choose a reason for hiding this comment

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

oops yeah i need to replace the random generator with a seeded random generator so we can have determinism but also a simple way to get variety

start: number;
malware_classifier: MalwareClassifierFields;
malware_classifier?: MalwareClassifierFields;
Copy link
Contributor

Choose a reason for hiding this comment

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

just a general question, what was the criteria of making some of these fields optional?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I made as many things optional as I could without breaking the type checker

@marshallmain marshallmain requested a review from a team as a code owner March 6, 2020 18:19
@marshallmain
Copy link
Contributor Author

@elasticmachine merge upstream

@marshallmain
Copy link
Contributor Author

@elasticmachine merge upstream

@kibanamachine
Copy link
Contributor

💛 Build succeeded, but was flaky


Test Failures

Kibana Pipeline / kibana-xpack-agent / X-Pack Spaces API Integration Tests -- security_and_spaces.x-pack/test/spaces_api_integration/security_and_spaces/apis/resolve_copy_to_space_conflicts·ts.spaces api with security resolve copy to spaces conflicts user with no access from the default space "before each" hook for "should return 404 when overwriting, with references"

Link to Jenkins

Standard Out

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

[00:00:00]       │
[00:00:00]         └-: spaces api with security
[00:00:00]           └-> "before all" hook
[00:00:00]           └-> "before all" hook
[00:00:01]             │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-centos-tests-xl-1583850458410397687] added role [kibana_legacy_user]
[00:00:01]             │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-centos-tests-xl-1583850458410397687] added role [kibana_dual_privileges_user]
[00:00:01]             │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-centos-tests-xl-1583850458410397687] added role [kibana_dual_privileges_dashboard_only_user]
[00:00:01]             │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-centos-tests-xl-1583850458410397687] added role [kibana_rbac_user]
[00:00:01]             │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-centos-tests-xl-1583850458410397687] added role [kibana_rbac_dashboard_only_user]
[00:00:01]             │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-centos-tests-xl-1583850458410397687] added role [kibana_rbac_default_space_all_user]
[00:00:01]             │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-centos-tests-xl-1583850458410397687] added role [kibana_rbac_default_space_read_user]
[00:00:01]             │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-centos-tests-xl-1583850458410397687] added role [kibana_rbac_space_1_all_user]
[00:00:01]             │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-centos-tests-xl-1583850458410397687] added role [kibana_rbac_space_1_read_user]
[00:00:02]             │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-centos-tests-xl-1583850458410397687] added role [kibana_rbac_space_2_all_user]
[00:00:02]             │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-centos-tests-xl-1583850458410397687] added role [kibana_rbac_space_2_read_user]
[00:00:02]             │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-centos-tests-xl-1583850458410397687] added role [kibana_rbac_space_1_2_all_user]
[00:00:02]             │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-centos-tests-xl-1583850458410397687] added role [kibana_rbac_space_1_2_read_user]
[00:00:02]             │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-centos-tests-xl-1583850458410397687] added role [kibana_rbac_default_space_saved_objects_all_user]
[00:00:02]             │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-centos-tests-xl-1583850458410397687] added role [kibana_rbac_default_space_saved_objects_read_user]
[00:00:02]             │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-centos-tests-xl-1583850458410397687] added role [kibana_rbac_space_1_saved_objects_all_user]
[00:00:02]             │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-centos-tests-xl-1583850458410397687] added role [kibana_rbac_space_1_saved_objects_read_user]
[00:00:02]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-centos-tests-xl-1583850458410397687] added user [not_a_kibana_user]
[00:00:02]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-centos-tests-xl-1583850458410397687] added user [a_kibana_legacy_user]
[00:00:03]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-centos-tests-xl-1583850458410397687] added user [a_kibana_dual_privileges_user]
[00:00:03]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-centos-tests-xl-1583850458410397687] added user [a_kibana_dual_privileges_dashboard_only_user]
[00:00:03]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-centos-tests-xl-1583850458410397687] added user [a_kibana_rbac_user]
[00:00:03]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-centos-tests-xl-1583850458410397687] added user [a_kibana_rbac_dashboard_only_user]
[00:00:03]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-centos-tests-xl-1583850458410397687] added user [a_kibana_rbac_default_space_all_user]
[00:00:03]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-centos-tests-xl-1583850458410397687] added user [a_kibana_rbac_default_space_read_user]
[00:00:03]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-centos-tests-xl-1583850458410397687] added user [a_kibana_rbac_space_1_all_user]
[00:00:04]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-centos-tests-xl-1583850458410397687] added user [a_kibana_rbac_space_1_read_user]
[00:00:04]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-centos-tests-xl-1583850458410397687] added user [a_kibana_rbac_space_2_all_user]
[00:00:04]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-centos-tests-xl-1583850458410397687] added user [a_kibana_rbac_space_2_read_user]
[00:00:04]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-centos-tests-xl-1583850458410397687] added user [a_kibana_rbac_space_1_2_all_user]
[00:00:04]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-centos-tests-xl-1583850458410397687] added user [a_kibana_rbac_space_1_2_read_user]
[00:00:04]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-centos-tests-xl-1583850458410397687] added user [a_kibana_rbac_default_space_saved_objects_all_user]
[00:00:04]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-centos-tests-xl-1583850458410397687] added user [a_kibana_rbac_default_space_saved_objects_read_user]
[00:00:05]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-centos-tests-xl-1583850458410397687] added user [a_kibana_rbac_space_1_saved_objects_all_user]
[00:00:05]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-centos-tests-xl-1583850458410397687] added user [a_kibana_rbac_space_1_saved_objects_read_user]
[00:00:05]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-centos-tests-xl-1583850458410397687] added user [a_apm_user]
[00:00:05]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-centos-tests-xl-1583850458410397687] added user [a_machine_learning_admin]
[00:00:05]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-centos-tests-xl-1583850458410397687] added user [a_machine_learning_user]
[00:00:05]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-centos-tests-xl-1583850458410397687] added user [a_monitoring_user]
[00:04:56]           └-: resolve copy to spaces conflicts
[00:04:56]             └-> "before all" hook
[00:04:56]             └-: user with no access from the default space
[00:04:56]               └-> "before all" hook
[00:04:56]               └-> "before all" hook
[00:04:56]               └-> should return 404 when not overwriting, with references
[00:04:56]                 └-> "before each" hook: global before each
[00:04:56]                 └-> "before each" hook
[00:04:57]                   │ info [saved_objects/spaces] Loading "mappings.json"
[00:04:57]                   │ info [saved_objects/spaces] Loading "data.json"
[00:04:57]                   │ info [o.e.c.m.MetaDataDeleteIndexService] [kibana-ci-immutable-centos-tests-xl-1583850458410397687] [.kibana_1/g7Zo1SZCQmyAWY-AO3yaMg] deleting index
[00:04:57]                   │ info [o.e.c.m.MetaDataDeleteIndexService] [kibana-ci-immutable-centos-tests-xl-1583850458410397687] [.kibana_2/4r4CHh78Sg2cUrEyCNn-MQ] deleting index
[00:04:57]                   │ info [saved_objects/spaces] Deleted existing index [".kibana_2",".kibana_1"]
[00:04:57]                   │ info [o.e.c.m.MetaDataCreateIndexService] [kibana-ci-immutable-centos-tests-xl-1583850458410397687] [.kibana] creating index, cause [api], templates [], shards [1]/[0], mappings [_doc]
[00:04:57]                   │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-centos-tests-xl-1583850458410397687] Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[.kibana][0]]]).
[00:04:57]                   │ info [saved_objects/spaces] Created index ".kibana"
[00:04:57]                   │ debg [saved_objects/spaces] ".kibana" settings {"index":{"auto_expand_replicas":"0-1","number_of_replicas":"0","number_of_shards":"1"}}
[00:04:57]                   │ info [saved_objects/spaces] Indexed 16 docs into ".kibana"
[00:04:57]                   │ info [o.e.c.m.MetaDataMappingService] [kibana-ci-immutable-centos-tests-xl-1583850458410397687] [.kibana/Xg7F3hB_T8WjD2XHrIzvlQ] update_mapping [_doc]
[00:04:57]                   │ debg Migrating saved objects
[00:04:58]                   │ proc [kibana]   log   [15:26:14.687] [info][savedobjects-service] Creating index .kibana_2.
[00:04:58]                   │ info [o.e.c.m.MetaDataCreateIndexService] [kibana-ci-immutable-centos-tests-xl-1583850458410397687] [.kibana_2] creating index, cause [api], templates [], shards [1]/[1], mappings [_doc]
[00:04:58]                   │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-centos-tests-xl-1583850458410397687] updating number_of_replicas to [0] for indices [.kibana_2]
[00:04:58]                   │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-centos-tests-xl-1583850458410397687] Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[.kibana_2][0]]]).
[00:04:58]                   │ proc [kibana]   log   [15:26:14.768] [info][savedobjects-service] Reindexing .kibana to .kibana_1
[00:04:58]                   │ info [o.e.c.m.MetaDataCreateIndexService] [kibana-ci-immutable-centos-tests-xl-1583850458410397687] [.kibana_1] creating index, cause [api], templates [], shards [1]/[1], mappings [_doc]
[00:04:58]                   │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-centos-tests-xl-1583850458410397687] updating number_of_replicas to [0] for indices [.kibana_1]
[00:04:58]                   │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-centos-tests-xl-1583850458410397687] Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[.kibana_1][0]]]).
[00:04:58]                   │ info [o.e.t.LoggingTaskListener] [kibana-ci-immutable-centos-tests-xl-1583850458410397687] 28050 finished with response BulkByScrollResponse[took=33.1ms,timed_out=false,sliceId=null,updated=0,created=17,deleted=0,batches=1,versionConflicts=0,noops=0,retries=0,throttledUntil=0s,bulk_failures=[],search_failures=[]]
[00:04:58]                   │ info [o.e.c.m.MetaDataDeleteIndexService] [kibana-ci-immutable-centos-tests-xl-1583850458410397687] [.kibana/Xg7F3hB_T8WjD2XHrIzvlQ] deleting index
[00:04:58]                   │ proc [kibana]   log   [15:26:15.157] [info][savedobjects-service] Migrating .kibana_1 saved objects to .kibana_2
[00:04:58]                   │ info [o.e.c.m.MetaDataMappingService] [kibana-ci-immutable-centos-tests-xl-1583850458410397687] [.kibana_2/Kplky2i1ROqjVuwU_yb3zQ] update_mapping [_doc]
[00:04:58]                   │ info [o.e.c.m.MetaDataMappingService] [kibana-ci-immutable-centos-tests-xl-1583850458410397687] [.kibana_2/Kplky2i1ROqjVuwU_yb3zQ] update_mapping [_doc]
[00:04:58]                   │ info [o.e.c.m.MetaDataMappingService] [kibana-ci-immutable-centos-tests-xl-1583850458410397687] [.kibana_2/Kplky2i1ROqjVuwU_yb3zQ] update_mapping [_doc]
[00:04:58]                   │ info [o.e.c.m.MetaDataMappingService] [kibana-ci-immutable-centos-tests-xl-1583850458410397687] [.kibana_2/Kplky2i1ROqjVuwU_yb3zQ] update_mapping [_doc]
[00:04:58]                   │ proc [kibana]   log   [15:26:15.362] [info][savedobjects-service] Pointing alias .kibana to .kibana_2.
[00:04:59]                   │ proc [kibana]   log   [15:26:15.434] [info][savedobjects-service] Finished in 748ms.
[00:04:59]                 └- ✓ pass  (80ms) "spaces api with security resolve copy to spaces conflicts user with no access from the default space should return 404 when not overwriting, with references"
[00:04:59]               └-> "after each" hook
[00:04:59]                 │ info [saved_objects/spaces] Unloading indices from "mappings.json"
[00:04:59]                 │ warn since spaces are enabled, all objects other than the default space were deleted from .kibana rather than deleting the whole index
[00:04:59]                 │ info [saved_objects/spaces] Deleted existing index ".kibana"
[00:04:59]                 │ info [saved_objects/spaces] Unloading indices from "data.json"
[00:04:59]               └-> should return 404 when overwriting, with references
[00:04:59]                 └-> "before each" hook: global before each
[00:04:59]                 └-> "before each" hook
[00:04:59]                   │ info [saved_objects/spaces] Loading "mappings.json"
[00:04:59]                   │ info [saved_objects/spaces] Loading "data.json"
[00:04:59]                   │ info [o.e.c.m.MetaDataDeleteIndexService] [kibana-ci-immutable-centos-tests-xl-1583850458410397687] [.kibana_2/Kplky2i1ROqjVuwU_yb3zQ] deleting index
[00:04:59]                   │ info [o.e.c.m.MetaDataDeleteIndexService] [kibana-ci-immutable-centos-tests-xl-1583850458410397687] [.kibana_1/VGuoRR2qStC4zztPSkb_XQ] deleting index
[00:04:59]                   │ info [saved_objects/spaces] Deleted existing index [".kibana_2",".kibana_1"]
[00:04:59]                   │ info [o.e.c.m.MetaDataCreateIndexService] [kibana-ci-immutable-centos-tests-xl-1583850458410397687] [.kibana] creating index, cause [api], templates [], shards [1]/[0], mappings [_doc]
[00:04:59]                   │ info [r.suppressed] [kibana-ci-immutable-centos-tests-xl-1583850458410397687] path: /.kibana/_doc/telemetry%3Atelemetry, params: {index=.kibana, id=telemetry:telemetry}
[00:04:59]                   │      org.elasticsearch.action.NoShardAvailableActionException: No shard available for [get [.kibana][telemetry:telemetry]: routing [null]]
[00:04:59]                   │      	at org.elasticsearch.action.support.single.shard.TransportSingleShardAction$AsyncSingleAction.perform(TransportSingleShardAction.java:224) [elasticsearch-8.0.0-SNAPSHOT.jar:8.0.0-SNAPSHOT]
[00:04:59]                   │      	at org.elasticsearch.action.support.single.shard.TransportSingleShardAction$AsyncSingleAction.onFailure(TransportSingleShardAction.java:210) [elasticsearch-8.0.0-SNAPSHOT.jar:8.0.0-SNAPSHOT]
[00:04:59]                   │      	at org.elasticsearch.action.support.single.shard.TransportSingleShardAction$AsyncSingleAction$2.handleException(TransportSingleShardAction.java:266) [elasticsearch-8.0.0-SNAPSHOT.jar:8.0.0-SNAPSHOT]
[00:04:59]                   │      	at org.elasticsearch.transport.TransportService$ContextRestoreResponseHandler.handleException(TransportService.java:1067) [elasticsearch-8.0.0-SNAPSHOT.jar:8.0.0-SNAPSHOT]
[00:04:59]                   │      	at org.elasticsearch.transport.TransportService$DirectResponseChannel.processException(TransportService.java:1176) [elasticsearch-8.0.0-SNAPSHOT.jar:8.0.0-SNAPSHOT]
[00:04:59]                   │      	at org.elasticsearch.transport.TransportService$DirectResponseChannel.sendResponse(TransportService.java:1150) [elasticsearch-8.0.0-SNAPSHOT.jar:8.0.0-SNAPSHOT]
[00:04:59]                   │      	at org.elasticsearch.transport.TaskTransportChannel.sendResponse(TaskTransportChannel.java:60) [elasticsearch-8.0.0-SNAPSHOT.jar:8.0.0-SNAPSHOT]
[00:04:59]                   │      	at org.elasticsearch.action.support.ChannelActionListener.onFailure(ChannelActionListener.java:56) [elasticsearch-8.0.0-SNAPSHOT.jar:8.0.0-SNAPSHOT]
[00:04:59]                   │      	at org.elasticsearch.action.ActionRunnable.onFailure(ActionRunnable.java:88) [elasticsearch-8.0.0-SNAPSHOT.jar:8.0.0-SNAPSHOT]
[00:04:59]                   │      	at org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingAbstractRunnable.onFailure(ThreadContext.java:676) [elasticsearch-8.0.0-SNAPSHOT.jar:8.0.0-SNAPSHOT]
[00:04:59]                   │      	at org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:39) [elasticsearch-8.0.0-SNAPSHOT.jar:8.0.0-SNAPSHOT]
[00:04:59]                   │      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) [?:?]
[00:04:59]                   │      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) [?:?]
[00:04:59]                   │      	at java.lang.Thread.run(Thread.java:830) [?:?]
[00:04:59]                   │      Caused by: org.elasticsearch.transport.RemoteTransportException: [kibana-ci-immutable-centos-tests-xl-1583850458410397687][127.0.0.1:6183][indices:data/read/get[s]]
[00:04:59]                   │      Caused by: org.elasticsearch.index.shard.IllegalIndexShardStateException: CurrentState[RECOVERING] operations only allowed when shard state is one of [POST_RECOVERY, STARTED]
[00:04:59]                   │      	at org.elasticsearch.index.shard.IndexShard.readAllowed(IndexShard.java:1685) ~[elasticsearch-8.0.0-SNAPSHOT.jar:8.0.0-SNAPSHOT]
[00:04:59]                   │      	at org.elasticsearch.index.shard.IndexShard.get(IndexShard.java:905) ~[elasticsearch-8.0.0-SNAPSHOT.jar:8.0.0-SNAPSHOT]
[00:04:59]                   │      	at org.elasticsearch.index.get.ShardGetService.innerGet(ShardGetService.java:174) ~[elasticsearch-8.0.0-SNAPSHOT.jar:8.0.0-SNAPSHOT]
[00:04:59]                   │      	at org.elasticsearch.index.get.ShardGetService.get(ShardGetService.java:104) ~[elasticsearch-8.0.0-SNAPSHOT.jar:8.0.0-SNAPSHOT]
[00:04:59]                   │      	at org.elasticsearch.index.get.ShardGetService.get(ShardGetService.java:95) ~[elasticsearch-8.0.0-SNAPSHOT.jar:8.0.0-SNAPSHOT]
[00:04:59]                   │      	at org.elasticsearch.action.get.TransportGetAction.shardOperation(TransportGetAction.java:106) ~[elasticsearch-8.0.0-SNAPSHOT.jar:8.0.0-SNAPSHOT]
[00:04:59]                   │      	at org.elasticsearch.action.get.TransportGetAction.shardOperation(TransportGetAction.java:45) ~[elasticsearch-8.0.0-SNAPSHOT.jar:8.0.0-SNAPSHOT]
[00:04:59]                   │      	at org.elasticsearch.action.support.single.shard.TransportSingleShardAction.lambda$asyncShardOperation$0(TransportSingleShardAction.java:110) ~[elasticsearch-8.0.0-SNAPSHOT.jar:8.0.0-SNAPSHOT]
[00:04:59]                   │      	at org.elasticsearch.action.ActionRunnable.lambda$supply$0(ActionRunnable.java:58) ~[elasticsearch-8.0.0-SNAPSHOT.jar:8.0.0-SNAPSHOT]
[00:04:59]                   │      	at org.elasticsearch.action.ActionRunnable$2.doRun(ActionRunnable.java:73) ~[elasticsearch-8.0.0-SNAPSHOT.jar:8.0.0-SNAPSHOT]
[00:04:59]                   │      	at org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingAbstractRunnable.doRun(ThreadContext.java:688) ~[elasticsearch-8.0.0-SNAPSHOT.jar:8.0.0-SNAPSHOT]
[00:04:59]                   │      	at org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:37) ~[elasticsearch-8.0.0-SNAPSHOT.jar:8.0.0-SNAPSHOT]
[00:04:59]                   │      	... 3 more
[00:04:59]                   │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-centos-tests-xl-1583850458410397687] Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[.kibana][0]]]).
[00:04:59]                   │ proc [kibana] internal/process/warning.js:153
[00:04:59]                   │ proc [kibana]         throw warning;
[00:04:59]                   │ proc [kibana]         ^
[00:04:59]                   │ proc [kibana] 
[00:04:59]                   │ proc [kibana] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
[00:04:59]                   │ proc [kibana]     at emitDeprecationWarning (internal/process/promises.js:111:13)
[00:04:59]                   │ proc [kibana]     at emitWarning (internal/process/promises.js:104:3)
[00:04:59]                   │ proc [kibana]     at emitPromiseRejectionWarnings (internal/process/promises.js:143:7)
[00:04:59]                   │ proc [kibana]     at process._tickCallback (internal/process/next_tick.js:69:34)
[00:04:59]                   │ info [saved_objects/spaces] Created index ".kibana"
[00:04:59]                   │ debg [saved_objects/spaces] ".kibana" settings {"index":{"auto_expand_replicas":"0-1","number_of_replicas":"0","number_of_shards":"1"}}
[00:04:59]                   │ info [saved_objects/spaces] Indexed 16 docs into ".kibana"
[00:04:59]                   │ info [o.e.c.m.MetaDataMappingService] [kibana-ci-immutable-centos-tests-xl-1583850458410397687] [.kibana/UaGLRvkHR2qdccVpThqtmw] update_mapping [_doc]
[00:04:59]                   │ debg Migrating saved objects
[00:04:59]                   │ERROR [migrate saved objects] request failed (attempt=1/5)
[00:04:59]                   └- ✖ fail: "spaces api with security resolve copy to spaces conflicts user with no access from the default space "before each" hook"
[00:04:59]                   │
[00:04:59]                   └-> "after each" hook
[00:04:59]                     │ERROR [GET http://elastic:changeme@localhost:6181/api/status] request failed (attempt=1/5)
[00:05:00]                     │ERROR [migrate saved objects] request failed (attempt=2/5)
[00:05:00]                     │ERROR [GET http://elastic:changeme@localhost:6181/api/status] request failed (attempt=2/5)
[00:05:02]                     │ERROR [migrate saved objects] request failed (attempt=3/5)
[00:05:02]                     │ERROR [GET http://elastic:changeme@localhost:6181/api/status] request failed (attempt=3/5)
[00:05:05]                     │ERROR [migrate saved objects] request failed (attempt=4/5)
[00:05:05]                     │ERROR [GET http://elastic:changeme@localhost:6181/api/status] request failed (attempt=4/5)
[00:05:09]                     │ERROR [migrate saved objects] request failed (attempt=5/5)
[00:05:09]                     └- ✖ fail: "spaces api with security resolve copy to spaces conflicts user with no access from the default space "before each" hook for "should return 404 when overwriting, with references""
[00:05:09]                     │

Stack Trace

{ DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
    at emitDeprecationWarning (internal/process/promises.js:111:13)
    at emitWarning (internal/process/promises.js:104:3)
    at emitPromiseRejectionWarnings (internal/process/promises.js:143:7)
    at process._tickCallback (internal/process/next_tick.js:69:34)
  name: 'DeprecationWarning',
  code: 'DEP0018',
  uncaught: true,
  multiple:
   [ Error: [migrate saved objects] request failed (attempt=5/5) -- and ran out of retries
         at KbnClientRequester.request (/dev/shm/workspace/kibana/packages/kbn-dev-utils/target/kbn_client/kbn_client_requester.js:99:23)
         at process._tickCallback (internal/process/next_tick.js:68:7) ] }

Kibana Pipeline / kibana-xpack-agent / X-Pack Spaces API Integration Tests -- security_and_spaces.x-pack/test/spaces_api_integration/security_and_spaces/apis/resolve_copy_to_space_conflicts·ts.spaces api with security resolve copy to spaces conflicts user with no access from the default space "before each" hook for "should return 404 when overwriting, with references"

Link to Jenkins

Standard Out

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

[00:00:00]       │
[00:00:00]         └-: spaces api with security
[00:00:00]           └-> "before all" hook
[00:00:00]           └-> "before all" hook
[00:00:01]             │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-centos-tests-xl-1583850458410397687] added role [kibana_legacy_user]
[00:00:01]             │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-centos-tests-xl-1583850458410397687] added role [kibana_dual_privileges_user]
[00:00:01]             │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-centos-tests-xl-1583850458410397687] added role [kibana_dual_privileges_dashboard_only_user]
[00:00:01]             │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-centos-tests-xl-1583850458410397687] added role [kibana_rbac_user]
[00:00:01]             │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-centos-tests-xl-1583850458410397687] added role [kibana_rbac_dashboard_only_user]
[00:00:01]             │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-centos-tests-xl-1583850458410397687] added role [kibana_rbac_default_space_all_user]
[00:00:01]             │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-centos-tests-xl-1583850458410397687] added role [kibana_rbac_default_space_read_user]
[00:00:01]             │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-centos-tests-xl-1583850458410397687] added role [kibana_rbac_space_1_all_user]
[00:00:01]             │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-centos-tests-xl-1583850458410397687] added role [kibana_rbac_space_1_read_user]
[00:00:02]             │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-centos-tests-xl-1583850458410397687] added role [kibana_rbac_space_2_all_user]
[00:00:02]             │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-centos-tests-xl-1583850458410397687] added role [kibana_rbac_space_2_read_user]
[00:00:02]             │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-centos-tests-xl-1583850458410397687] added role [kibana_rbac_space_1_2_all_user]
[00:00:02]             │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-centos-tests-xl-1583850458410397687] added role [kibana_rbac_space_1_2_read_user]
[00:00:02]             │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-centos-tests-xl-1583850458410397687] added role [kibana_rbac_default_space_saved_objects_all_user]
[00:00:02]             │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-centos-tests-xl-1583850458410397687] added role [kibana_rbac_default_space_saved_objects_read_user]
[00:00:02]             │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-centos-tests-xl-1583850458410397687] added role [kibana_rbac_space_1_saved_objects_all_user]
[00:00:02]             │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-centos-tests-xl-1583850458410397687] added role [kibana_rbac_space_1_saved_objects_read_user]
[00:00:02]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-centos-tests-xl-1583850458410397687] added user [not_a_kibana_user]
[00:00:02]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-centos-tests-xl-1583850458410397687] added user [a_kibana_legacy_user]
[00:00:03]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-centos-tests-xl-1583850458410397687] added user [a_kibana_dual_privileges_user]
[00:00:03]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-centos-tests-xl-1583850458410397687] added user [a_kibana_dual_privileges_dashboard_only_user]
[00:00:03]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-centos-tests-xl-1583850458410397687] added user [a_kibana_rbac_user]
[00:00:03]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-centos-tests-xl-1583850458410397687] added user [a_kibana_rbac_dashboard_only_user]
[00:00:03]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-centos-tests-xl-1583850458410397687] added user [a_kibana_rbac_default_space_all_user]
[00:00:03]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-centos-tests-xl-1583850458410397687] added user [a_kibana_rbac_default_space_read_user]
[00:00:03]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-centos-tests-xl-1583850458410397687] added user [a_kibana_rbac_space_1_all_user]
[00:00:04]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-centos-tests-xl-1583850458410397687] added user [a_kibana_rbac_space_1_read_user]
[00:00:04]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-centos-tests-xl-1583850458410397687] added user [a_kibana_rbac_space_2_all_user]
[00:00:04]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-centos-tests-xl-1583850458410397687] added user [a_kibana_rbac_space_2_read_user]
[00:00:04]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-centos-tests-xl-1583850458410397687] added user [a_kibana_rbac_space_1_2_all_user]
[00:00:04]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-centos-tests-xl-1583850458410397687] added user [a_kibana_rbac_space_1_2_read_user]
[00:00:04]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-centos-tests-xl-1583850458410397687] added user [a_kibana_rbac_default_space_saved_objects_all_user]
[00:00:04]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-centos-tests-xl-1583850458410397687] added user [a_kibana_rbac_default_space_saved_objects_read_user]
[00:00:05]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-centos-tests-xl-1583850458410397687] added user [a_kibana_rbac_space_1_saved_objects_all_user]
[00:00:05]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-centos-tests-xl-1583850458410397687] added user [a_kibana_rbac_space_1_saved_objects_read_user]
[00:00:05]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-centos-tests-xl-1583850458410397687] added user [a_apm_user]
[00:00:05]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-centos-tests-xl-1583850458410397687] added user [a_machine_learning_admin]
[00:00:05]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-centos-tests-xl-1583850458410397687] added user [a_machine_learning_user]
[00:00:05]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-centos-tests-xl-1583850458410397687] added user [a_monitoring_user]
[00:04:56]           └-: resolve copy to spaces conflicts
[00:04:56]             └-> "before all" hook
[00:04:56]             └-: user with no access from the default space
[00:04:56]               └-> "before all" hook
[00:04:56]               └-> "before all" hook
[00:04:56]               └-> should return 404 when not overwriting, with references
[00:04:56]                 └-> "before each" hook: global before each
[00:04:56]                 └-> "before each" hook
[00:04:57]                   │ info [saved_objects/spaces] Loading "mappings.json"
[00:04:57]                   │ info [saved_objects/spaces] Loading "data.json"
[00:04:57]                   │ info [o.e.c.m.MetaDataDeleteIndexService] [kibana-ci-immutable-centos-tests-xl-1583850458410397687] [.kibana_1/g7Zo1SZCQmyAWY-AO3yaMg] deleting index
[00:04:57]                   │ info [o.e.c.m.MetaDataDeleteIndexService] [kibana-ci-immutable-centos-tests-xl-1583850458410397687] [.kibana_2/4r4CHh78Sg2cUrEyCNn-MQ] deleting index
[00:04:57]                   │ info [saved_objects/spaces] Deleted existing index [".kibana_2",".kibana_1"]
[00:04:57]                   │ info [o.e.c.m.MetaDataCreateIndexService] [kibana-ci-immutable-centos-tests-xl-1583850458410397687] [.kibana] creating index, cause [api], templates [], shards [1]/[0], mappings [_doc]
[00:04:57]                   │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-centos-tests-xl-1583850458410397687] Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[.kibana][0]]]).
[00:04:57]                   │ info [saved_objects/spaces] Created index ".kibana"
[00:04:57]                   │ debg [saved_objects/spaces] ".kibana" settings {"index":{"auto_expand_replicas":"0-1","number_of_replicas":"0","number_of_shards":"1"}}
[00:04:57]                   │ info [saved_objects/spaces] Indexed 16 docs into ".kibana"
[00:04:57]                   │ info [o.e.c.m.MetaDataMappingService] [kibana-ci-immutable-centos-tests-xl-1583850458410397687] [.kibana/Xg7F3hB_T8WjD2XHrIzvlQ] update_mapping [_doc]
[00:04:57]                   │ debg Migrating saved objects
[00:04:58]                   │ proc [kibana]   log   [15:26:14.687] [info][savedobjects-service] Creating index .kibana_2.
[00:04:58]                   │ info [o.e.c.m.MetaDataCreateIndexService] [kibana-ci-immutable-centos-tests-xl-1583850458410397687] [.kibana_2] creating index, cause [api], templates [], shards [1]/[1], mappings [_doc]
[00:04:58]                   │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-centos-tests-xl-1583850458410397687] updating number_of_replicas to [0] for indices [.kibana_2]
[00:04:58]                   │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-centos-tests-xl-1583850458410397687] Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[.kibana_2][0]]]).
[00:04:58]                   │ proc [kibana]   log   [15:26:14.768] [info][savedobjects-service] Reindexing .kibana to .kibana_1
[00:04:58]                   │ info [o.e.c.m.MetaDataCreateIndexService] [kibana-ci-immutable-centos-tests-xl-1583850458410397687] [.kibana_1] creating index, cause [api], templates [], shards [1]/[1], mappings [_doc]
[00:04:58]                   │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-centos-tests-xl-1583850458410397687] updating number_of_replicas to [0] for indices [.kibana_1]
[00:04:58]                   │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-centos-tests-xl-1583850458410397687] Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[.kibana_1][0]]]).
[00:04:58]                   │ info [o.e.t.LoggingTaskListener] [kibana-ci-immutable-centos-tests-xl-1583850458410397687] 28050 finished with response BulkByScrollResponse[took=33.1ms,timed_out=false,sliceId=null,updated=0,created=17,deleted=0,batches=1,versionConflicts=0,noops=0,retries=0,throttledUntil=0s,bulk_failures=[],search_failures=[]]
[00:04:58]                   │ info [o.e.c.m.MetaDataDeleteIndexService] [kibana-ci-immutable-centos-tests-xl-1583850458410397687] [.kibana/Xg7F3hB_T8WjD2XHrIzvlQ] deleting index
[00:04:58]                   │ proc [kibana]   log   [15:26:15.157] [info][savedobjects-service] Migrating .kibana_1 saved objects to .kibana_2
[00:04:58]                   │ info [o.e.c.m.MetaDataMappingService] [kibana-ci-immutable-centos-tests-xl-1583850458410397687] [.kibana_2/Kplky2i1ROqjVuwU_yb3zQ] update_mapping [_doc]
[00:04:58]                   │ info [o.e.c.m.MetaDataMappingService] [kibana-ci-immutable-centos-tests-xl-1583850458410397687] [.kibana_2/Kplky2i1ROqjVuwU_yb3zQ] update_mapping [_doc]
[00:04:58]                   │ info [o.e.c.m.MetaDataMappingService] [kibana-ci-immutable-centos-tests-xl-1583850458410397687] [.kibana_2/Kplky2i1ROqjVuwU_yb3zQ] update_mapping [_doc]
[00:04:58]                   │ info [o.e.c.m.MetaDataMappingService] [kibana-ci-immutable-centos-tests-xl-1583850458410397687] [.kibana_2/Kplky2i1ROqjVuwU_yb3zQ] update_mapping [_doc]
[00:04:58]                   │ proc [kibana]   log   [15:26:15.362] [info][savedobjects-service] Pointing alias .kibana to .kibana_2.
[00:04:59]                   │ proc [kibana]   log   [15:26:15.434] [info][savedobjects-service] Finished in 748ms.
[00:04:59]                 └- ✓ pass  (80ms) "spaces api with security resolve copy to spaces conflicts user with no access from the default space should return 404 when not overwriting, with references"
[00:04:59]               └-> "after each" hook
[00:04:59]                 │ info [saved_objects/spaces] Unloading indices from "mappings.json"
[00:04:59]                 │ warn since spaces are enabled, all objects other than the default space were deleted from .kibana rather than deleting the whole index
[00:04:59]                 │ info [saved_objects/spaces] Deleted existing index ".kibana"
[00:04:59]                 │ info [saved_objects/spaces] Unloading indices from "data.json"
[00:04:59]               └-> should return 404 when overwriting, with references
[00:04:59]                 └-> "before each" hook: global before each
[00:04:59]                 └-> "before each" hook
[00:04:59]                   │ info [saved_objects/spaces] Loading "mappings.json"
[00:04:59]                   │ info [saved_objects/spaces] Loading "data.json"
[00:04:59]                   │ info [o.e.c.m.MetaDataDeleteIndexService] [kibana-ci-immutable-centos-tests-xl-1583850458410397687] [.kibana_2/Kplky2i1ROqjVuwU_yb3zQ] deleting index
[00:04:59]                   │ info [o.e.c.m.MetaDataDeleteIndexService] [kibana-ci-immutable-centos-tests-xl-1583850458410397687] [.kibana_1/VGuoRR2qStC4zztPSkb_XQ] deleting index
[00:04:59]                   │ info [saved_objects/spaces] Deleted existing index [".kibana_2",".kibana_1"]
[00:04:59]                   │ info [o.e.c.m.MetaDataCreateIndexService] [kibana-ci-immutable-centos-tests-xl-1583850458410397687] [.kibana] creating index, cause [api], templates [], shards [1]/[0], mappings [_doc]
[00:04:59]                   │ info [r.suppressed] [kibana-ci-immutable-centos-tests-xl-1583850458410397687] path: /.kibana/_doc/telemetry%3Atelemetry, params: {index=.kibana, id=telemetry:telemetry}
[00:04:59]                   │      org.elasticsearch.action.NoShardAvailableActionException: No shard available for [get [.kibana][telemetry:telemetry]: routing [null]]
[00:04:59]                   │      	at org.elasticsearch.action.support.single.shard.TransportSingleShardAction$AsyncSingleAction.perform(TransportSingleShardAction.java:224) [elasticsearch-8.0.0-SNAPSHOT.jar:8.0.0-SNAPSHOT]
[00:04:59]                   │      	at org.elasticsearch.action.support.single.shard.TransportSingleShardAction$AsyncSingleAction.onFailure(TransportSingleShardAction.java:210) [elasticsearch-8.0.0-SNAPSHOT.jar:8.0.0-SNAPSHOT]
[00:04:59]                   │      	at org.elasticsearch.action.support.single.shard.TransportSingleShardAction$AsyncSingleAction$2.handleException(TransportSingleShardAction.java:266) [elasticsearch-8.0.0-SNAPSHOT.jar:8.0.0-SNAPSHOT]
[00:04:59]                   │      	at org.elasticsearch.transport.TransportService$ContextRestoreResponseHandler.handleException(TransportService.java:1067) [elasticsearch-8.0.0-SNAPSHOT.jar:8.0.0-SNAPSHOT]
[00:04:59]                   │      	at org.elasticsearch.transport.TransportService$DirectResponseChannel.processException(TransportService.java:1176) [elasticsearch-8.0.0-SNAPSHOT.jar:8.0.0-SNAPSHOT]
[00:04:59]                   │      	at org.elasticsearch.transport.TransportService$DirectResponseChannel.sendResponse(TransportService.java:1150) [elasticsearch-8.0.0-SNAPSHOT.jar:8.0.0-SNAPSHOT]
[00:04:59]                   │      	at org.elasticsearch.transport.TaskTransportChannel.sendResponse(TaskTransportChannel.java:60) [elasticsearch-8.0.0-SNAPSHOT.jar:8.0.0-SNAPSHOT]
[00:04:59]                   │      	at org.elasticsearch.action.support.ChannelActionListener.onFailure(ChannelActionListener.java:56) [elasticsearch-8.0.0-SNAPSHOT.jar:8.0.0-SNAPSHOT]
[00:04:59]                   │      	at org.elasticsearch.action.ActionRunnable.onFailure(ActionRunnable.java:88) [elasticsearch-8.0.0-SNAPSHOT.jar:8.0.0-SNAPSHOT]
[00:04:59]                   │      	at org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingAbstractRunnable.onFailure(ThreadContext.java:676) [elasticsearch-8.0.0-SNAPSHOT.jar:8.0.0-SNAPSHOT]
[00:04:59]                   │      	at org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:39) [elasticsearch-8.0.0-SNAPSHOT.jar:8.0.0-SNAPSHOT]
[00:04:59]                   │      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) [?:?]
[00:04:59]                   │      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) [?:?]
[00:04:59]                   │      	at java.lang.Thread.run(Thread.java:830) [?:?]
[00:04:59]                   │      Caused by: org.elasticsearch.transport.RemoteTransportException: [kibana-ci-immutable-centos-tests-xl-1583850458410397687][127.0.0.1:6183][indices:data/read/get[s]]
[00:04:59]                   │      Caused by: org.elasticsearch.index.shard.IllegalIndexShardStateException: CurrentState[RECOVERING] operations only allowed when shard state is one of [POST_RECOVERY, STARTED]
[00:04:59]                   │      	at org.elasticsearch.index.shard.IndexShard.readAllowed(IndexShard.java:1685) ~[elasticsearch-8.0.0-SNAPSHOT.jar:8.0.0-SNAPSHOT]
[00:04:59]                   │      	at org.elasticsearch.index.shard.IndexShard.get(IndexShard.java:905) ~[elasticsearch-8.0.0-SNAPSHOT.jar:8.0.0-SNAPSHOT]
[00:04:59]                   │      	at org.elasticsearch.index.get.ShardGetService.innerGet(ShardGetService.java:174) ~[elasticsearch-8.0.0-SNAPSHOT.jar:8.0.0-SNAPSHOT]
[00:04:59]                   │      	at org.elasticsearch.index.get.ShardGetService.get(ShardGetService.java:104) ~[elasticsearch-8.0.0-SNAPSHOT.jar:8.0.0-SNAPSHOT]
[00:04:59]                   │      	at org.elasticsearch.index.get.ShardGetService.get(ShardGetService.java:95) ~[elasticsearch-8.0.0-SNAPSHOT.jar:8.0.0-SNAPSHOT]
[00:04:59]                   │      	at org.elasticsearch.action.get.TransportGetAction.shardOperation(TransportGetAction.java:106) ~[elasticsearch-8.0.0-SNAPSHOT.jar:8.0.0-SNAPSHOT]
[00:04:59]                   │      	at org.elasticsearch.action.get.TransportGetAction.shardOperation(TransportGetAction.java:45) ~[elasticsearch-8.0.0-SNAPSHOT.jar:8.0.0-SNAPSHOT]
[00:04:59]                   │      	at org.elasticsearch.action.support.single.shard.TransportSingleShardAction.lambda$asyncShardOperation$0(TransportSingleShardAction.java:110) ~[elasticsearch-8.0.0-SNAPSHOT.jar:8.0.0-SNAPSHOT]
[00:04:59]                   │      	at org.elasticsearch.action.ActionRunnable.lambda$supply$0(ActionRunnable.java:58) ~[elasticsearch-8.0.0-SNAPSHOT.jar:8.0.0-SNAPSHOT]
[00:04:59]                   │      	at org.elasticsearch.action.ActionRunnable$2.doRun(ActionRunnable.java:73) ~[elasticsearch-8.0.0-SNAPSHOT.jar:8.0.0-SNAPSHOT]
[00:04:59]                   │      	at org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingAbstractRunnable.doRun(ThreadContext.java:688) ~[elasticsearch-8.0.0-SNAPSHOT.jar:8.0.0-SNAPSHOT]
[00:04:59]                   │      	at org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:37) ~[elasticsearch-8.0.0-SNAPSHOT.jar:8.0.0-SNAPSHOT]
[00:04:59]                   │      	... 3 more
[00:04:59]                   │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-centos-tests-xl-1583850458410397687] Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[.kibana][0]]]).
[00:04:59]                   │ proc [kibana] internal/process/warning.js:153
[00:04:59]                   │ proc [kibana]         throw warning;
[00:04:59]                   │ proc [kibana]         ^
[00:04:59]                   │ proc [kibana] 
[00:04:59]                   │ proc [kibana] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
[00:04:59]                   │ proc [kibana]     at emitDeprecationWarning (internal/process/promises.js:111:13)
[00:04:59]                   │ proc [kibana]     at emitWarning (internal/process/promises.js:104:3)
[00:04:59]                   │ proc [kibana]     at emitPromiseRejectionWarnings (internal/process/promises.js:143:7)
[00:04:59]                   │ proc [kibana]     at process._tickCallback (internal/process/next_tick.js:69:34)
[00:04:59]                   │ info [saved_objects/spaces] Created index ".kibana"
[00:04:59]                   │ debg [saved_objects/spaces] ".kibana" settings {"index":{"auto_expand_replicas":"0-1","number_of_replicas":"0","number_of_shards":"1"}}
[00:04:59]                   │ info [saved_objects/spaces] Indexed 16 docs into ".kibana"
[00:04:59]                   │ info [o.e.c.m.MetaDataMappingService] [kibana-ci-immutable-centos-tests-xl-1583850458410397687] [.kibana/UaGLRvkHR2qdccVpThqtmw] update_mapping [_doc]
[00:04:59]                   │ debg Migrating saved objects
[00:04:59]                   │ERROR [migrate saved objects] request failed (attempt=1/5)
[00:04:59]                   └- ✖ fail: "spaces api with security resolve copy to spaces conflicts user with no access from the default space "before each" hook"
[00:04:59]                   │
[00:04:59]                   └-> "after each" hook
[00:04:59]                     │ERROR [GET http://elastic:changeme@localhost:6181/api/status] request failed (attempt=1/5)
[00:05:00]                     │ERROR [migrate saved objects] request failed (attempt=2/5)
[00:05:00]                     │ERROR [GET http://elastic:changeme@localhost:6181/api/status] request failed (attempt=2/5)
[00:05:02]                     │ERROR [migrate saved objects] request failed (attempt=3/5)
[00:05:02]                     │ERROR [GET http://elastic:changeme@localhost:6181/api/status] request failed (attempt=3/5)
[00:05:05]                     │ERROR [migrate saved objects] request failed (attempt=4/5)
[00:05:05]                     │ERROR [GET http://elastic:changeme@localhost:6181/api/status] request failed (attempt=4/5)
[00:05:09]                     │ERROR [migrate saved objects] request failed (attempt=5/5)
[00:05:09]                     └- ✖ fail: "spaces api with security resolve copy to spaces conflicts user with no access from the default space "before each" hook for "should return 404 when overwriting, with references""
[00:05:09]                     │

Stack Trace

Error: [migrate saved objects] request failed (attempt=5/5) -- and ran out of retries
    at KbnClientRequester.request (/dev/shm/workspace/kibana/packages/kbn-dev-utils/target/kbn_client/kbn_client_requester.js:99:23)
    at process._tickCallback (internal/process/next_tick.js:68:7)

Kibana Pipeline / kibana-xpack-agent / X-Pack Spaces API Integration Tests -- security_and_spaces.x-pack/test/spaces_api_integration/security_and_spaces/apis/resolve_copy_to_space_conflicts·ts.spaces api with security resolve copy to spaces conflicts user with no access from the default space "after each" hook for "should return 404 when overwriting, with references"

Link to Jenkins

Standard Out

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

[00:00:00]       │
[00:00:00]         └-: spaces api with security
[00:00:00]           └-> "before all" hook
[00:00:00]           └-> "before all" hook
[00:00:01]             │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-centos-tests-xl-1583850458410397687] added role [kibana_legacy_user]
[00:00:01]             │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-centos-tests-xl-1583850458410397687] added role [kibana_dual_privileges_user]
[00:00:01]             │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-centos-tests-xl-1583850458410397687] added role [kibana_dual_privileges_dashboard_only_user]
[00:00:01]             │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-centos-tests-xl-1583850458410397687] added role [kibana_rbac_user]
[00:00:01]             │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-centos-tests-xl-1583850458410397687] added role [kibana_rbac_dashboard_only_user]
[00:00:01]             │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-centos-tests-xl-1583850458410397687] added role [kibana_rbac_default_space_all_user]
[00:00:01]             │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-centos-tests-xl-1583850458410397687] added role [kibana_rbac_default_space_read_user]
[00:00:01]             │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-centos-tests-xl-1583850458410397687] added role [kibana_rbac_space_1_all_user]
[00:00:01]             │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-centos-tests-xl-1583850458410397687] added role [kibana_rbac_space_1_read_user]
[00:00:02]             │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-centos-tests-xl-1583850458410397687] added role [kibana_rbac_space_2_all_user]
[00:00:02]             │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-centos-tests-xl-1583850458410397687] added role [kibana_rbac_space_2_read_user]
[00:00:02]             │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-centos-tests-xl-1583850458410397687] added role [kibana_rbac_space_1_2_all_user]
[00:00:02]             │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-centos-tests-xl-1583850458410397687] added role [kibana_rbac_space_1_2_read_user]
[00:00:02]             │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-centos-tests-xl-1583850458410397687] added role [kibana_rbac_default_space_saved_objects_all_user]
[00:00:02]             │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-centos-tests-xl-1583850458410397687] added role [kibana_rbac_default_space_saved_objects_read_user]
[00:00:02]             │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-centos-tests-xl-1583850458410397687] added role [kibana_rbac_space_1_saved_objects_all_user]
[00:00:02]             │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-centos-tests-xl-1583850458410397687] added role [kibana_rbac_space_1_saved_objects_read_user]
[00:00:02]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-centos-tests-xl-1583850458410397687] added user [not_a_kibana_user]
[00:00:02]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-centos-tests-xl-1583850458410397687] added user [a_kibana_legacy_user]
[00:00:03]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-centos-tests-xl-1583850458410397687] added user [a_kibana_dual_privileges_user]
[00:00:03]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-centos-tests-xl-1583850458410397687] added user [a_kibana_dual_privileges_dashboard_only_user]
[00:00:03]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-centos-tests-xl-1583850458410397687] added user [a_kibana_rbac_user]
[00:00:03]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-centos-tests-xl-1583850458410397687] added user [a_kibana_rbac_dashboard_only_user]
[00:00:03]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-centos-tests-xl-1583850458410397687] added user [a_kibana_rbac_default_space_all_user]
[00:00:03]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-centos-tests-xl-1583850458410397687] added user [a_kibana_rbac_default_space_read_user]
[00:00:03]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-centos-tests-xl-1583850458410397687] added user [a_kibana_rbac_space_1_all_user]
[00:00:04]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-centos-tests-xl-1583850458410397687] added user [a_kibana_rbac_space_1_read_user]
[00:00:04]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-centos-tests-xl-1583850458410397687] added user [a_kibana_rbac_space_2_all_user]
[00:00:04]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-centos-tests-xl-1583850458410397687] added user [a_kibana_rbac_space_2_read_user]
[00:00:04]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-centos-tests-xl-1583850458410397687] added user [a_kibana_rbac_space_1_2_all_user]
[00:00:04]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-centos-tests-xl-1583850458410397687] added user [a_kibana_rbac_space_1_2_read_user]
[00:00:04]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-centos-tests-xl-1583850458410397687] added user [a_kibana_rbac_default_space_saved_objects_all_user]
[00:00:04]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-centos-tests-xl-1583850458410397687] added user [a_kibana_rbac_default_space_saved_objects_read_user]
[00:00:05]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-centos-tests-xl-1583850458410397687] added user [a_kibana_rbac_space_1_saved_objects_all_user]
[00:00:05]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-centos-tests-xl-1583850458410397687] added user [a_kibana_rbac_space_1_saved_objects_read_user]
[00:00:05]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-centos-tests-xl-1583850458410397687] added user [a_apm_user]
[00:00:05]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-centos-tests-xl-1583850458410397687] added user [a_machine_learning_admin]
[00:00:05]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-centos-tests-xl-1583850458410397687] added user [a_machine_learning_user]
[00:00:05]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-centos-tests-xl-1583850458410397687] added user [a_monitoring_user]
[00:04:56]           └-: resolve copy to spaces conflicts
[00:04:56]             └-> "before all" hook
[00:04:56]             └-: user with no access from the default space
[00:04:56]               └-> "before all" hook
[00:04:56]               └-> "before all" hook
[00:04:56]               └-> should return 404 when not overwriting, with references
[00:04:56]                 └-> "before each" hook: global before each
[00:04:56]                 └-> "before each" hook
[00:04:57]                   │ info [saved_objects/spaces] Loading "mappings.json"
[00:04:57]                   │ info [saved_objects/spaces] Loading "data.json"
[00:04:57]                   │ info [o.e.c.m.MetaDataDeleteIndexService] [kibana-ci-immutable-centos-tests-xl-1583850458410397687] [.kibana_1/g7Zo1SZCQmyAWY-AO3yaMg] deleting index
[00:04:57]                   │ info [o.e.c.m.MetaDataDeleteIndexService] [kibana-ci-immutable-centos-tests-xl-1583850458410397687] [.kibana_2/4r4CHh78Sg2cUrEyCNn-MQ] deleting index
[00:04:57]                   │ info [saved_objects/spaces] Deleted existing index [".kibana_2",".kibana_1"]
[00:04:57]                   │ info [o.e.c.m.MetaDataCreateIndexService] [kibana-ci-immutable-centos-tests-xl-1583850458410397687] [.kibana] creating index, cause [api], templates [], shards [1]/[0], mappings [_doc]
[00:04:57]                   │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-centos-tests-xl-1583850458410397687] Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[.kibana][0]]]).
[00:04:57]                   │ info [saved_objects/spaces] Created index ".kibana"
[00:04:57]                   │ debg [saved_objects/spaces] ".kibana" settings {"index":{"auto_expand_replicas":"0-1","number_of_replicas":"0","number_of_shards":"1"}}
[00:04:57]                   │ info [saved_objects/spaces] Indexed 16 docs into ".kibana"
[00:04:57]                   │ info [o.e.c.m.MetaDataMappingService] [kibana-ci-immutable-centos-tests-xl-1583850458410397687] [.kibana/Xg7F3hB_T8WjD2XHrIzvlQ] update_mapping [_doc]
[00:04:57]                   │ debg Migrating saved objects
[00:04:58]                   │ proc [kibana]   log   [15:26:14.687] [info][savedobjects-service] Creating index .kibana_2.
[00:04:58]                   │ info [o.e.c.m.MetaDataCreateIndexService] [kibana-ci-immutable-centos-tests-xl-1583850458410397687] [.kibana_2] creating index, cause [api], templates [], shards [1]/[1], mappings [_doc]
[00:04:58]                   │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-centos-tests-xl-1583850458410397687] updating number_of_replicas to [0] for indices [.kibana_2]
[00:04:58]                   │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-centos-tests-xl-1583850458410397687] Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[.kibana_2][0]]]).
[00:04:58]                   │ proc [kibana]   log   [15:26:14.768] [info][savedobjects-service] Reindexing .kibana to .kibana_1
[00:04:58]                   │ info [o.e.c.m.MetaDataCreateIndexService] [kibana-ci-immutable-centos-tests-xl-1583850458410397687] [.kibana_1] creating index, cause [api], templates [], shards [1]/[1], mappings [_doc]
[00:04:58]                   │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-centos-tests-xl-1583850458410397687] updating number_of_replicas to [0] for indices [.kibana_1]
[00:04:58]                   │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-centos-tests-xl-1583850458410397687] Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[.kibana_1][0]]]).
[00:04:58]                   │ info [o.e.t.LoggingTaskListener] [kibana-ci-immutable-centos-tests-xl-1583850458410397687] 28050 finished with response BulkByScrollResponse[took=33.1ms,timed_out=false,sliceId=null,updated=0,created=17,deleted=0,batches=1,versionConflicts=0,noops=0,retries=0,throttledUntil=0s,bulk_failures=[],search_failures=[]]
[00:04:58]                   │ info [o.e.c.m.MetaDataDeleteIndexService] [kibana-ci-immutable-centos-tests-xl-1583850458410397687] [.kibana/Xg7F3hB_T8WjD2XHrIzvlQ] deleting index
[00:04:58]                   │ proc [kibana]   log   [15:26:15.157] [info][savedobjects-service] Migrating .kibana_1 saved objects to .kibana_2
[00:04:58]                   │ info [o.e.c.m.MetaDataMappingService] [kibana-ci-immutable-centos-tests-xl-1583850458410397687] [.kibana_2/Kplky2i1ROqjVuwU_yb3zQ] update_mapping [_doc]
[00:04:58]                   │ info [o.e.c.m.MetaDataMappingService] [kibana-ci-immutable-centos-tests-xl-1583850458410397687] [.kibana_2/Kplky2i1ROqjVuwU_yb3zQ] update_mapping [_doc]
[00:04:58]                   │ info [o.e.c.m.MetaDataMappingService] [kibana-ci-immutable-centos-tests-xl-1583850458410397687] [.kibana_2/Kplky2i1ROqjVuwU_yb3zQ] update_mapping [_doc]
[00:04:58]                   │ info [o.e.c.m.MetaDataMappingService] [kibana-ci-immutable-centos-tests-xl-1583850458410397687] [.kibana_2/Kplky2i1ROqjVuwU_yb3zQ] update_mapping [_doc]
[00:04:58]                   │ proc [kibana]   log   [15:26:15.362] [info][savedobjects-service] Pointing alias .kibana to .kibana_2.
[00:04:59]                   │ proc [kibana]   log   [15:26:15.434] [info][savedobjects-service] Finished in 748ms.
[00:04:59]                 └- ✓ pass  (80ms) "spaces api with security resolve copy to spaces conflicts user with no access from the default space should return 404 when not overwriting, with references"
[00:04:59]               └-> "after each" hook
[00:04:59]                 │ info [saved_objects/spaces] Unloading indices from "mappings.json"
[00:04:59]                 │ warn since spaces are enabled, all objects other than the default space were deleted from .kibana rather than deleting the whole index
[00:04:59]                 │ info [saved_objects/spaces] Deleted existing index ".kibana"
[00:04:59]                 │ info [saved_objects/spaces] Unloading indices from "data.json"
[00:04:59]               └-> should return 404 when overwriting, with references
[00:04:59]                 └-> "before each" hook: global before each
[00:04:59]                 └-> "before each" hook
[00:04:59]                   │ info [saved_objects/spaces] Loading "mappings.json"
[00:04:59]                   │ info [saved_objects/spaces] Loading "data.json"
[00:04:59]                   │ info [o.e.c.m.MetaDataDeleteIndexService] [kibana-ci-immutable-centos-tests-xl-1583850458410397687] [.kibana_2/Kplky2i1ROqjVuwU_yb3zQ] deleting index
[00:04:59]                   │ info [o.e.c.m.MetaDataDeleteIndexService] [kibana-ci-immutable-centos-tests-xl-1583850458410397687] [.kibana_1/VGuoRR2qStC4zztPSkb_XQ] deleting index
[00:04:59]                   │ info [saved_objects/spaces] Deleted existing index [".kibana_2",".kibana_1"]
[00:04:59]                   │ info [o.e.c.m.MetaDataCreateIndexService] [kibana-ci-immutable-centos-tests-xl-1583850458410397687] [.kibana] creating index, cause [api], templates [], shards [1]/[0], mappings [_doc]
[00:04:59]                   │ info [r.suppressed] [kibana-ci-immutable-centos-tests-xl-1583850458410397687] path: /.kibana/_doc/telemetry%3Atelemetry, params: {index=.kibana, id=telemetry:telemetry}
[00:04:59]                   │      org.elasticsearch.action.NoShardAvailableActionException: No shard available for [get [.kibana][telemetry:telemetry]: routing [null]]
[00:04:59]                   │      	at org.elasticsearch.action.support.single.shard.TransportSingleShardAction$AsyncSingleAction.perform(TransportSingleShardAction.java:224) [elasticsearch-8.0.0-SNAPSHOT.jar:8.0.0-SNAPSHOT]
[00:04:59]                   │      	at org.elasticsearch.action.support.single.shard.TransportSingleShardAction$AsyncSingleAction.onFailure(TransportSingleShardAction.java:210) [elasticsearch-8.0.0-SNAPSHOT.jar:8.0.0-SNAPSHOT]
[00:04:59]                   │      	at org.elasticsearch.action.support.single.shard.TransportSingleShardAction$AsyncSingleAction$2.handleException(TransportSingleShardAction.java:266) [elasticsearch-8.0.0-SNAPSHOT.jar:8.0.0-SNAPSHOT]
[00:04:59]                   │      	at org.elasticsearch.transport.TransportService$ContextRestoreResponseHandler.handleException(TransportService.java:1067) [elasticsearch-8.0.0-SNAPSHOT.jar:8.0.0-SNAPSHOT]
[00:04:59]                   │      	at org.elasticsearch.transport.TransportService$DirectResponseChannel.processException(TransportService.java:1176) [elasticsearch-8.0.0-SNAPSHOT.jar:8.0.0-SNAPSHOT]
[00:04:59]                   │      	at org.elasticsearch.transport.TransportService$DirectResponseChannel.sendResponse(TransportService.java:1150) [elasticsearch-8.0.0-SNAPSHOT.jar:8.0.0-SNAPSHOT]
[00:04:59]                   │      	at org.elasticsearch.transport.TaskTransportChannel.sendResponse(TaskTransportChannel.java:60) [elasticsearch-8.0.0-SNAPSHOT.jar:8.0.0-SNAPSHOT]
[00:04:59]                   │      	at org.elasticsearch.action.support.ChannelActionListener.onFailure(ChannelActionListener.java:56) [elasticsearch-8.0.0-SNAPSHOT.jar:8.0.0-SNAPSHOT]
[00:04:59]                   │      	at org.elasticsearch.action.ActionRunnable.onFailure(ActionRunnable.java:88) [elasticsearch-8.0.0-SNAPSHOT.jar:8.0.0-SNAPSHOT]
[00:04:59]                   │      	at org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingAbstractRunnable.onFailure(ThreadContext.java:676) [elasticsearch-8.0.0-SNAPSHOT.jar:8.0.0-SNAPSHOT]
[00:04:59]                   │      	at org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:39) [elasticsearch-8.0.0-SNAPSHOT.jar:8.0.0-SNAPSHOT]
[00:04:59]                   │      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) [?:?]
[00:04:59]                   │      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) [?:?]
[00:04:59]                   │      	at java.lang.Thread.run(Thread.java:830) [?:?]
[00:04:59]                   │      Caused by: org.elasticsearch.transport.RemoteTransportException: [kibana-ci-immutable-centos-tests-xl-1583850458410397687][127.0.0.1:6183][indices:data/read/get[s]]
[00:04:59]                   │      Caused by: org.elasticsearch.index.shard.IllegalIndexShardStateException: CurrentState[RECOVERING] operations only allowed when shard state is one of [POST_RECOVERY, STARTED]
[00:04:59]                   │      	at org.elasticsearch.index.shard.IndexShard.readAllowed(IndexShard.java:1685) ~[elasticsearch-8.0.0-SNAPSHOT.jar:8.0.0-SNAPSHOT]
[00:04:59]                   │      	at org.elasticsearch.index.shard.IndexShard.get(IndexShard.java:905) ~[elasticsearch-8.0.0-SNAPSHOT.jar:8.0.0-SNAPSHOT]
[00:04:59]                   │      	at org.elasticsearch.index.get.ShardGetService.innerGet(ShardGetService.java:174) ~[elasticsearch-8.0.0-SNAPSHOT.jar:8.0.0-SNAPSHOT]
[00:04:59]                   │      	at org.elasticsearch.index.get.ShardGetService.get(ShardGetService.java:104) ~[elasticsearch-8.0.0-SNAPSHOT.jar:8.0.0-SNAPSHOT]
[00:04:59]                   │      	at org.elasticsearch.index.get.ShardGetService.get(ShardGetService.java:95) ~[elasticsearch-8.0.0-SNAPSHOT.jar:8.0.0-SNAPSHOT]
[00:04:59]                   │      	at org.elasticsearch.action.get.TransportGetAction.shardOperation(TransportGetAction.java:106) ~[elasticsearch-8.0.0-SNAPSHOT.jar:8.0.0-SNAPSHOT]
[00:04:59]                   │      	at org.elasticsearch.action.get.TransportGetAction.shardOperation(TransportGetAction.java:45) ~[elasticsearch-8.0.0-SNAPSHOT.jar:8.0.0-SNAPSHOT]
[00:04:59]                   │      	at org.elasticsearch.action.support.single.shard.TransportSingleShardAction.lambda$asyncShardOperation$0(TransportSingleShardAction.java:110) ~[elasticsearch-8.0.0-SNAPSHOT.jar:8.0.0-SNAPSHOT]
[00:04:59]                   │      	at org.elasticsearch.action.ActionRunnable.lambda$supply$0(ActionRunnable.java:58) ~[elasticsearch-8.0.0-SNAPSHOT.jar:8.0.0-SNAPSHOT]
[00:04:59]                   │      	at org.elasticsearch.action.ActionRunnable$2.doRun(ActionRunnable.java:73) ~[elasticsearch-8.0.0-SNAPSHOT.jar:8.0.0-SNAPSHOT]
[00:04:59]                   │      	at org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingAbstractRunnable.doRun(ThreadContext.java:688) ~[elasticsearch-8.0.0-SNAPSHOT.jar:8.0.0-SNAPSHOT]
[00:04:59]                   │      	at org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:37) ~[elasticsearch-8.0.0-SNAPSHOT.jar:8.0.0-SNAPSHOT]
[00:04:59]                   │      	... 3 more
[00:04:59]                   │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-centos-tests-xl-1583850458410397687] Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[.kibana][0]]]).
[00:04:59]                   │ proc [kibana] internal/process/warning.js:153
[00:04:59]                   │ proc [kibana]         throw warning;
[00:04:59]                   │ proc [kibana]         ^
[00:04:59]                   │ proc [kibana] 
[00:04:59]                   │ proc [kibana] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
[00:04:59]                   │ proc [kibana]     at emitDeprecationWarning (internal/process/promises.js:111:13)
[00:04:59]                   │ proc [kibana]     at emitWarning (internal/process/promises.js:104:3)
[00:04:59]                   │ proc [kibana]     at emitPromiseRejectionWarnings (internal/process/promises.js:143:7)
[00:04:59]                   │ proc [kibana]     at process._tickCallback (internal/process/next_tick.js:69:34)
[00:04:59]                   │ info [saved_objects/spaces] Created index ".kibana"
[00:04:59]                   │ debg [saved_objects/spaces] ".kibana" settings {"index":{"auto_expand_replicas":"0-1","number_of_replicas":"0","number_of_shards":"1"}}
[00:04:59]                   │ info [saved_objects/spaces] Indexed 16 docs into ".kibana"
[00:04:59]                   │ info [o.e.c.m.MetaDataMappingService] [kibana-ci-immutable-centos-tests-xl-1583850458410397687] [.kibana/UaGLRvkHR2qdccVpThqtmw] update_mapping [_doc]
[00:04:59]                   │ debg Migrating saved objects
[00:04:59]                   │ERROR [migrate saved objects] request failed (attempt=1/5)
[00:04:59]                   └- ✖ fail: "spaces api with security resolve copy to spaces conflicts user with no access from the default space "before each" hook"
[00:04:59]                   │
[00:04:59]                   └-> "after each" hook
[00:04:59]                     │ERROR [GET http://elastic:changeme@localhost:6181/api/status] request failed (attempt=1/5)
[00:05:00]                     │ERROR [migrate saved objects] request failed (attempt=2/5)
[00:05:00]                     │ERROR [GET http://elastic:changeme@localhost:6181/api/status] request failed (attempt=2/5)
[00:05:02]                     │ERROR [migrate saved objects] request failed (attempt=3/5)
[00:05:02]                     │ERROR [GET http://elastic:changeme@localhost:6181/api/status] request failed (attempt=3/5)
[00:05:05]                     │ERROR [migrate saved objects] request failed (attempt=4/5)
[00:05:05]                     │ERROR [GET http://elastic:changeme@localhost:6181/api/status] request failed (attempt=4/5)
[00:05:09]                     │ERROR [migrate saved objects] request failed (attempt=5/5)
[00:05:09]                     └- ✖ fail: "spaces api with security resolve copy to spaces conflicts user with no access from the default space "before each" hook for "should return 404 when overwriting, with references""
[00:05:09]                     │
[00:05:09]                     └-> "after each" hook
[00:05:09]                       │ERROR [GET http://elastic:changeme@localhost:6181/api/status] request failed (attempt=1/5)
[00:05:09]                       │ERROR [GET http://elastic:changeme@localhost:6181/api/status] request failed (attempt=5/5)
[00:05:09]                       └- ✖ fail: "spaces api with security resolve copy to spaces conflicts user with no access from the default space "after each" hook for "should return 404 when overwriting, with references""
[00:05:09]                       │

Stack Trace

Error: [GET http://elastic:changeme@localhost:6181/api/status] request failed (attempt=5/5) -- and ran out of retries
    at KbnClientRequester.request (/dev/shm/workspace/kibana/packages/kbn-dev-utils/target/kbn_client/kbn_client_requester.js:99:23)
    at process._tickCallback (internal/process/next_tick.js:68:7)

History

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

@@ -6,9 +6,11 @@
"license": "Elastic-License",
"scripts": {},
"dependencies": {
"react-redux": "^7.1.0"
"react-redux": "^7.1.0",
"seedrandom": "^3.0.5"
Copy link
Contributor

Choose a reason for hiding this comment

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

This library seems to already be included in Kibana. https://github.com/elastic/kibana/blob/master/package.json#L255

},
},
};
return generator.generateEndpointMetadata(new Date().getTime());
Copy link
Contributor

Choose a reason for hiding this comment

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

You could just do generator.generateEndpointMetadata() since you added a default date.

},
},
};
return generator.generateEndpointMetadata(new Date().getTime());
Copy link
Contributor

Choose a reason for hiding this comment

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

You could just do generator.generateEndpointMetadata() since you added a default date.

Copy link
Contributor

@peluja1012 peluja1012 left a comment

Choose a reason for hiding this comment

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

Looks great!

@marshallmain marshallmain merged commit 435cb0b into elastic:master Mar 10, 2020
gmmorris added a commit to gmmorris/kibana that referenced this pull request Mar 10, 2020
* master:
  Add a retry to dashboard test for a sometimes slow async operation (elastic#59600)
  [Endpoint] Sample data generator for endpoint app (elastic#58936)
  [Vis Editor] Refactoring metrics axes (elastic#59135)
  [DOCS] Changed Discover app to Discover (elastic#59769)
  [Metrics Alerts] Add support for search query and groupBy on alerts (elastic#59388)
  Enhancement - EUICodeEditor for Visualize JSON  (elastic#58679)
  [ML] Transforms: Data grid fixes. (elastic#59538)
  [SIEM] Fix and consolidate handling of error responses in the client (elastic#59438)
  [Maps] convert tooltip classes to typescript (elastic#59589)
  [ML] Functional tests - re-activate date_nanos test (elastic#59649)
  Move canvas to use NP Expressions service (elastic#58387)
  Update misc dependencies (elastic#59542)
  [Unit Testing] Configure react-testing-library queries to use Kibana's data-test-subj instead of default data-testid (elastic#59445)
  [Console] Remove unused code (elastic#59554)
  [Logs / Metrics UI] Link handling / stop page reloads (elastic#58478)
  Add SavedObject management section registration in core  (elastic#59291)
@kibanamachine
Copy link
Contributor

Friendly reminder: Looks like this PR hasn’t been backported yet.
To create backports run node scripts/backport --pr 58936 or prevent reminders by adding the backport:skip label.

@kibanamachine kibanamachine added the backport missing Added to PRs automatically when the are determined to be missing a backport. label Mar 11, 2020
marshallmain added a commit to marshallmain/kibana that referenced this pull request Mar 12, 2020
* scaffolding and notes.md

* add skeleton event generator to kibana

* add optional entityID param to generateEvent

* add tree generation

* add tests

* working tests

* fix up tests

* fix linting

* fix event types

* make process parent types consistent

* make generator match types

* move test resolver node out of common types

* fix random string generation

* fix typecheck errors

* remove extraneous stuff

* address PR comments

* add test for full resolver tree

* cleanup

* make tests clearer

* add seedrandom to endpoint plugin. contains DONOTMERGE example code

* remove robs test

* start replacing random with seedrandom

* use seeded random for uuidv4

* separate out IP randomization

* typecheck fixes

Co-authored-by: oatkiller <robert.austin@elastic.co>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
@kibanamachine
Copy link
Contributor

Friendly reminder: Looks like this PR hasn’t been backported yet.
To create backports run node scripts/backport --pr 58936 or prevent reminders by adding the backport:skip label.

jkelastic pushed a commit to jkelastic/kibana that referenced this pull request Mar 12, 2020
* scaffolding and notes.md

* add skeleton event generator to kibana

* add optional entityID param to generateEvent

* add tree generation

* add tests

* working tests

* fix up tests

* fix linting

* fix event types

* make process parent types consistent

* make generator match types

* move test resolver node out of common types

* fix random string generation

* fix typecheck errors

* remove extraneous stuff

* address PR comments

* add test for full resolver tree

* cleanup

* make tests clearer

* add seedrandom to endpoint plugin. contains DONOTMERGE example code

* remove robs test

* start replacing random with seedrandom

* use seeded random for uuidv4

* separate out IP randomization

* typecheck fixes

Co-authored-by: oatkiller <robert.austin@elastic.co>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
@kibanamachine
Copy link
Contributor

Friendly reminder: Looks like this PR hasn’t been backported yet.
To create backports run node scripts/backport --pr 58936 or prevent reminders by adding the backport:skip label.

marshallmain added a commit to marshallmain/kibana that referenced this pull request Mar 13, 2020
* scaffolding and notes.md

* add skeleton event generator to kibana

* add optional entityID param to generateEvent

* add tree generation

* add tests

* working tests

* fix up tests

* fix linting

* fix event types

* make process parent types consistent

* make generator match types

* move test resolver node out of common types

* fix random string generation

* fix typecheck errors

* remove extraneous stuff

* address PR comments

* add test for full resolver tree

* cleanup

* make tests clearer

* add seedrandom to endpoint plugin. contains DONOTMERGE example code

* remove robs test

* start replacing random with seedrandom

* use seeded random for uuidv4

* separate out IP randomization

* typecheck fixes

Co-authored-by: oatkiller <robert.austin@elastic.co>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
@kibanamachine
Copy link
Contributor

Looks like this PR has a backport PR but it still hasn't been merged. Please merge it ASAP to keep the branches relatively in sync.

1 similar comment
@kibanamachine
Copy link
Contributor

Looks like this PR has a backport PR but it still hasn't been merged. Please merge it ASAP to keep the branches relatively in sync.

@kibanamachine kibanamachine removed the backport missing Added to PRs automatically when the are determined to be missing a backport. label Mar 16, 2020
marshallmain added a commit that referenced this pull request Mar 16, 2020
* scaffolding and notes.md

* add skeleton event generator to kibana

* add optional entityID param to generateEvent

* add tree generation

* add tests

* working tests

* fix up tests

* fix linting

* fix event types

* make process parent types consistent

* make generator match types

* move test resolver node out of common types

* fix random string generation

* fix typecheck errors

* remove extraneous stuff

* address PR comments

* add test for full resolver tree

* cleanup

* make tests clearer

* add seedrandom to endpoint plugin. contains DONOTMERGE example code

* remove robs test

* start replacing random with seedrandom

* use seeded random for uuidv4

* separate out IP randomization

* typecheck fixes

Co-authored-by: oatkiller <robert.austin@elastic.co>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>

Co-authored-by: oatkiller <robert.austin@elastic.co>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature:Endpoint Elastic Endpoint feature release_note:skip Skip the PR/issue when compiling release notes Team:Endpoint Response Endpoint Response Team v7.7.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants