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]: get type-checking, tests, and ui working for index threshold #59064

Merged
merged 4 commits into from
Mar 3, 2020

Conversation

pmuellr
Copy link
Member

@pmuellr pmuellr commented Mar 2, 2020

This is a follow-on to #57030 , "[alerting] initial index threshold alertType and supporting APIs", to get it working with the existing alerting UI. The parameter shape was different between the two, so the alertType was changed to fix the existing UI shapes expected.

Summary

Summarize your PR. If it involves visual changes include a screenshot or gif.

Checklist

Delete any items that are not applicable to this PR.

@pmuellr pmuellr requested a review from a team as a code owner March 2, 2020 18:18
@pmuellr pmuellr added Feature:Alerting release_note:skip Skip the PR/issue when compiling release notes Team:ResponseOps Label for the ResponseOps team (formerly the Cases and Alerting teams) v7.7.0 v8.0.0 labels Mar 2, 2020
@elasticmachine
Copy link
Contributor

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

This is a follow-on to elastic#57030 ,
"[alerting] initial index threshold alertType and supporting APIs",
to get it working with the existing alerting UI.  The parameter shape
was different between the two, so the alertType was changed to fix
the existing UI shapes expected.
@pmuellr pmuellr force-pushed the alerting-ui/new-index-threshold branch from d99291d to c5a0e4c Compare March 2, 2020 18:23
@YulNaumenko YulNaumenko self-requested a review March 2, 2020 18:54
Copy link
Contributor

@YulNaumenko YulNaumenko left a comment

Choose a reason for hiding this comment

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

LGTM! Tested this in UI and it works awesome!

Copy link
Contributor

@gmmorris gmmorris left a comment

Choose a reason for hiding this comment

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

LGTM

Made a couple of comments, but they're nitty in nature ;)

Comment on lines +40 to +47
if (betweenComparators.has(thresholdComparator) && threshold.length === 1) {
return i18n.translate('xpack.alertingBuiltins.indexThreshold.invalidThreshold2ErrorMessage', {
defaultMessage:
'[threshold]: must have two elements for the "{thresholdComparator}" comparator',
values: {
thresholdComparator,
},
});
Copy link
Contributor

Choose a reason for hiding this comment

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

Nice clean up 👍

Comment on lines -42 to -50
if (aggType === 'count' && aggField) {
return i18n.translate('xpack.alertingBuiltins.indexThreshold.aggTypeNotEmptyErrorMessage', {
defaultMessage: '[aggField]: must not have a value when [aggType] is "{aggType}"',
values: {
aggType,
},
});
}

Copy link
Contributor

Choose a reason for hiding this comment

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

I might be missing something - why do we no longer need this check? 🤔

Copy link
Member Author

@pmuellr pmuellr Mar 2, 2020

Choose a reason for hiding this comment

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

The UI sends parameters it doesn't need to be sending. We could tighten this up later, but if you're using count, you don't need an aggField, we used to error if you did, now it's silently ignored. shrug

Comment on lines 96 to 102
if (groupBy === 'all' || groupBy === 'top') return;
return i18n.translate('xpack.alertingBuiltins.indexThreshold.invalidGroupByErrorMessage', {
defaultMessage: 'invalid groupBy: "{groupBy}"',
values: {
groupBy,
},
});
Copy link
Contributor

Choose a reason for hiding this comment

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

nit.
I find early returns like this are easy to miss and misread.
Would it be possible to flip it so that the invalid group is only returned when groupBy !== 'all' && groupBy !== 'top' and then the function's implicit void return would mean it's valid?

Just feels cleaner to me.

Copy link
Contributor

Choose a reason for hiding this comment

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

Or better yet, use the type? Something like this should work:

schema.oneOf([
    schema.literal('all'),
    schema.literal('top'),
  ])

Copy link
Member Author

Choose a reason for hiding this comment

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

I did use schema.oneOf([schema.literal('foo'), ...]) at one point for things like this. But I changed back to strings with a custom validation, because the schema way produced an error message with submessages for each valid literal (eg, "it wasn't a foo; and it wasn't a bar; and it wasn't a ...", but even longer). Heh. I'll open an issue on kbn-schema for that, I think there's probably a way to fix that ...

Copy link
Member Author

Choose a reason for hiding this comment

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

I opted to make the early return more obvious; put it in a block, with an empty line behind it.I like early returns, but you're right, sometimes they aren't obvious ...

@pmuellr
Copy link
Member Author

pmuellr commented Mar 2, 2020

@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, without references"

Link to Jenkins

Standard Out

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

[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-oraclelinux-tests-xl-1583208640580533216] added role [kibana_legacy_user]
[00:00:01]             │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-oraclelinux-tests-xl-1583208640580533216] added role [kibana_dual_privileges_user]
[00:00:01]             │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-oraclelinux-tests-xl-1583208640580533216] added role [kibana_dual_privileges_dashboard_only_user]
[00:00:02]             │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-oraclelinux-tests-xl-1583208640580533216] added role [kibana_rbac_user]
[00:00:02]             │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-oraclelinux-tests-xl-1583208640580533216] added role [kibana_rbac_dashboard_only_user]
[00:00:02]             │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-oraclelinux-tests-xl-1583208640580533216] added role [kibana_rbac_default_space_all_user]
[00:00:02]             │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-oraclelinux-tests-xl-1583208640580533216] added role [kibana_rbac_default_space_read_user]
[00:00:02]             │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-oraclelinux-tests-xl-1583208640580533216] added role [kibana_rbac_space_1_all_user]
[00:00:02]             │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-oraclelinux-tests-xl-1583208640580533216] added role [kibana_rbac_space_1_read_user]
[00:00:02]             │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-oraclelinux-tests-xl-1583208640580533216] added role [kibana_rbac_space_2_all_user]
[00:00:03]             │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-oraclelinux-tests-xl-1583208640580533216] added role [kibana_rbac_space_2_read_user]
[00:00:03]             │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-oraclelinux-tests-xl-1583208640580533216] added role [kibana_rbac_space_1_2_all_user]
[00:00:03]             │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-oraclelinux-tests-xl-1583208640580533216] added role [kibana_rbac_space_1_2_read_user]
[00:00:03]             │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-oraclelinux-tests-xl-1583208640580533216] added role [kibana_rbac_default_space_saved_objects_all_user]
[00:00:03]             │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-oraclelinux-tests-xl-1583208640580533216] added role [kibana_rbac_default_space_saved_objects_read_user]
[00:00:03]             │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-oraclelinux-tests-xl-1583208640580533216] added role [kibana_rbac_space_1_saved_objects_all_user]
[00:00:03]             │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-oraclelinux-tests-xl-1583208640580533216] added role [kibana_rbac_space_1_saved_objects_read_user]
[00:00:04]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-oraclelinux-tests-xl-1583208640580533216] added user [not_a_kibana_user]
[00:00:04]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-oraclelinux-tests-xl-1583208640580533216] added user [a_kibana_legacy_user]
[00:00:04]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-oraclelinux-tests-xl-1583208640580533216] added user [a_kibana_dual_privileges_user]
[00:00:04]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-oraclelinux-tests-xl-1583208640580533216] added user [a_kibana_dual_privileges_dashboard_only_user]
[00:00:04]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-oraclelinux-tests-xl-1583208640580533216] added user [a_kibana_rbac_user]
[00:00:04]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-oraclelinux-tests-xl-1583208640580533216] added user [a_kibana_rbac_dashboard_only_user]
[00:00:05]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-oraclelinux-tests-xl-1583208640580533216] added user [a_kibana_rbac_default_space_all_user]
[00:00:05]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-oraclelinux-tests-xl-1583208640580533216] added user [a_kibana_rbac_default_space_read_user]
[00:00:05]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-oraclelinux-tests-xl-1583208640580533216] added user [a_kibana_rbac_space_1_all_user]
[00:00:05]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-oraclelinux-tests-xl-1583208640580533216] added user [a_kibana_rbac_space_1_read_user]
[00:00:05]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-oraclelinux-tests-xl-1583208640580533216] added user [a_kibana_rbac_space_2_all_user]
[00:00:05]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-oraclelinux-tests-xl-1583208640580533216] added user [a_kibana_rbac_space_2_read_user]
[00:00:05]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-oraclelinux-tests-xl-1583208640580533216] added user [a_kibana_rbac_space_1_2_all_user]
[00:00:06]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-oraclelinux-tests-xl-1583208640580533216] added user [a_kibana_rbac_space_1_2_read_user]
[00:00:06]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-oraclelinux-tests-xl-1583208640580533216] added user [a_kibana_rbac_default_space_saved_objects_all_user]
[00:00:06]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-oraclelinux-tests-xl-1583208640580533216] added user [a_kibana_rbac_default_space_saved_objects_read_user]
[00:00:06]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-oraclelinux-tests-xl-1583208640580533216] added user [a_kibana_rbac_space_1_saved_objects_all_user]
[00:00:06]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-oraclelinux-tests-xl-1583208640580533216] added user [a_kibana_rbac_space_1_saved_objects_read_user]
[00:00:06]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-oraclelinux-tests-xl-1583208640580533216] added user [a_apm_user]
[00:00:06]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-oraclelinux-tests-xl-1583208640580533216] added user [a_machine_learning_admin]
[00:00:07]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-oraclelinux-tests-xl-1583208640580533216] added user [a_machine_learning_user]
[00:00:07]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-oraclelinux-tests-xl-1583208640580533216] added user [a_monitoring_user]
[00:04:54]           └-: resolve copy to spaces conflicts
[00:04:54]             └-> "before all" hook
[00:04:54]             └-: user with no access from the default space
[00:04:54]               └-> "before all" hook
[00:04:54]               └-> "before all" hook
[00:04:54]               └-> should return 404 when not overwriting, with references
[00:04:54]                 └-> "before each" hook: global before each
[00:04:54]                 └-> "before each" hook
[00:04:55]                   │ info [saved_objects/spaces] Loading "mappings.json"
[00:04:55]                   │ info [saved_objects/spaces] Loading "data.json"
[00:04:55]                   │ info [o.e.c.m.MetaDataDeleteIndexService] [kibana-ci-immutable-oraclelinux-tests-xl-1583208640580533216] [.kibana_2/cRGPi3gYQEOAVyb1OyhsYw] deleting index
[00:04:55]                   │ info [o.e.c.m.MetaDataDeleteIndexService] [kibana-ci-immutable-oraclelinux-tests-xl-1583208640580533216] [.kibana_1/47emRCTfQeq-NdmZX7WAJQ] deleting index
[00:04:55]                   │ info [saved_objects/spaces] Deleted existing index [".kibana_2",".kibana_1"]
[00:04:55]                   │ info [o.e.c.m.MetaDataCreateIndexService] [kibana-ci-immutable-oraclelinux-tests-xl-1583208640580533216] [.kibana] creating index, cause [api], templates [], shards [1]/[0], mappings [_doc]
[00:04:55]                   │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-oraclelinux-tests-xl-1583208640580533216] Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[.kibana][0]]]).
[00:04:55]                   │ info [saved_objects/spaces] Created index ".kibana"
[00:04:55]                   │ debg [saved_objects/spaces] ".kibana" settings {"index":{"auto_expand_replicas":"0-1","number_of_replicas":"0","number_of_shards":"1"}}
[00:04:55]                   │ info [saved_objects/spaces] Indexed 16 docs into ".kibana"
[00:04:55]                   │ info [o.e.c.m.MetaDataMappingService] [kibana-ci-immutable-oraclelinux-tests-xl-1583208640580533216] [.kibana/0stIwVFmQFmRPhmrI6J-mQ] update_mapping [_doc]
[00:04:55]                   │ debg Migrating saved objects
[00:04:56]                   │ proc [kibana]   log   [04:53:00.987] [info][savedobjects-service] Creating index .kibana_2.
[00:04:56]                   │ info [o.e.c.m.MetaDataCreateIndexService] [kibana-ci-immutable-oraclelinux-tests-xl-1583208640580533216] [.kibana_2] creating index, cause [api], templates [], shards [1]/[1], mappings [_doc]
[00:04:56]                   │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-oraclelinux-tests-xl-1583208640580533216] updating number_of_replicas to [0] for indices [.kibana_2]
[00:04:56]                   │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-oraclelinux-tests-xl-1583208640580533216] Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[.kibana_2][0]]]).
[00:04:56]                   │ proc [kibana]   log   [04:53:01.048] [info][savedobjects-service] Reindexing .kibana to .kibana_1
[00:04:56]                   │ info [o.e.c.m.MetaDataCreateIndexService] [kibana-ci-immutable-oraclelinux-tests-xl-1583208640580533216] [.kibana_1] creating index, cause [api], templates [], shards [1]/[1], mappings [_doc]
[00:04:56]                   │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-oraclelinux-tests-xl-1583208640580533216] updating number_of_replicas to [0] for indices [.kibana_1]
[00:04:56]                   │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-oraclelinux-tests-xl-1583208640580533216] Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[.kibana_1][0]]]).
[00:04:56]                   │ info [o.e.t.LoggingTaskListener] [kibana-ci-immutable-oraclelinux-tests-xl-1583208640580533216] 28047 finished with response BulkByScrollResponse[took=24.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:56]                   │ info [o.e.c.m.MetaDataDeleteIndexService] [kibana-ci-immutable-oraclelinux-tests-xl-1583208640580533216] [.kibana/0stIwVFmQFmRPhmrI6J-mQ] deleting index
[00:04:56]                   │ proc [kibana]   log   [04:53:01.381] [info][savedobjects-service] Migrating .kibana_1 saved objects to .kibana_2
[00:04:56]                   │ info [o.e.c.m.MetaDataMappingService] [kibana-ci-immutable-oraclelinux-tests-xl-1583208640580533216] [.kibana_2/6EBMkHf1TJqjO9pTdwNlEQ] update_mapping [_doc]
[00:04:56]                   │ info [o.e.c.m.MetaDataMappingService] [kibana-ci-immutable-oraclelinux-tests-xl-1583208640580533216] [.kibana_2/6EBMkHf1TJqjO9pTdwNlEQ] update_mapping [_doc]
[00:04:56]                   │ info [o.e.c.m.MetaDataMappingService] [kibana-ci-immutable-oraclelinux-tests-xl-1583208640580533216] [.kibana_2/6EBMkHf1TJqjO9pTdwNlEQ] update_mapping [_doc]
[00:04:56]                   │ info [o.e.c.m.MetaDataMappingService] [kibana-ci-immutable-oraclelinux-tests-xl-1583208640580533216] [.kibana_2/6EBMkHf1TJqjO9pTdwNlEQ] update_mapping [_doc]
[00:04:56]                   │ proc [kibana]   log   [04:53:01.531] [info][savedobjects-service] Pointing alias .kibana to .kibana_2.
[00:04:56]                   │ proc [kibana]   log   [04:53:01.572] [info][savedobjects-service] Finished in 586ms.
[00:04:56]                 └- ✓ pass  (55ms) "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:56]               └-> "after each" hook
[00:04:56]                 │ info [saved_objects/spaces] Unloading indices from "mappings.json"
[00:04:56]                 │ warn since spaces are enabled, all objects other than the default space were deleted from .kibana rather than deleting the whole index
[00:04:56]                 │ info [saved_objects/spaces] Deleted existing index ".kibana"
[00:04:56]                 │ info [saved_objects/spaces] Unloading indices from "data.json"
[00:04:56]               └-> should return 404 when 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-oraclelinux-tests-xl-1583208640580533216] [.kibana_1/DWZOljXdRfKWg4wFIiRigA] deleting index
[00:04:57]                   │ info [o.e.c.m.MetaDataDeleteIndexService] [kibana-ci-immutable-oraclelinux-tests-xl-1583208640580533216] [.kibana_2/6EBMkHf1TJqjO9pTdwNlEQ] 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-oraclelinux-tests-xl-1583208640580533216] [.kibana] creating index, cause [api], templates [], shards [1]/[0], mappings [_doc]
[00:04:57]                   │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-oraclelinux-tests-xl-1583208640580533216] 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-oraclelinux-tests-xl-1583208640580533216] [.kibana/ts1BJmqOSK2oRngHTP1-Hw] update_mapping [_doc]
[00:04:57]                   │ debg Migrating saved objects
[00:04:58]                   │ proc [kibana]   log   [04:53:03.174] [info][savedobjects-service] Creating index .kibana_2.
[00:04:58]                   │ info [o.e.c.m.MetaDataCreateIndexService] [kibana-ci-immutable-oraclelinux-tests-xl-1583208640580533216] [.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-oraclelinux-tests-xl-1583208640580533216] updating number_of_replicas to [0] for indices [.kibana_2]
[00:04:58]                   │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-oraclelinux-tests-xl-1583208640580533216] Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[.kibana_2][0]]]).
[00:04:58]                   │ proc [kibana]   log   [04:53:03.226] [info][savedobjects-service] Reindexing .kibana to .kibana_1
[00:04:58]                   │ info [o.e.c.m.MetaDataCreateIndexService] [kibana-ci-immutable-oraclelinux-tests-xl-1583208640580533216] [.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-oraclelinux-tests-xl-1583208640580533216] updating number_of_replicas to [0] for indices [.kibana_1]
[00:04:58]                   │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-oraclelinux-tests-xl-1583208640580533216] 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-oraclelinux-tests-xl-1583208640580533216] 28321 finished with response BulkByScrollResponse[took=24.9ms,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-oraclelinux-tests-xl-1583208640580533216] [.kibana/ts1BJmqOSK2oRngHTP1-Hw] deleting index
[00:04:58]                   │ proc [kibana]   log   [04:53:03.566] [info][savedobjects-service] Migrating .kibana_1 saved objects to .kibana_2
[00:04:58]                   │ info [o.e.c.m.MetaDataMappingService] [kibana-ci-immutable-oraclelinux-tests-xl-1583208640580533216] [.kibana_2/NOmqLB5eQ9K6PcCyXb0KnA] update_mapping [_doc]
[00:04:58]                   │ info [o.e.c.m.MetaDataMappingService] [kibana-ci-immutable-oraclelinux-tests-xl-1583208640580533216] [.kibana_2/NOmqLB5eQ9K6PcCyXb0KnA] update_mapping [_doc]
[00:04:58]                   │ info [o.e.c.m.MetaDataMappingService] [kibana-ci-immutable-oraclelinux-tests-xl-1583208640580533216] [.kibana_2/NOmqLB5eQ9K6PcCyXb0KnA] update_mapping [_doc]
[00:04:58]                   │ info [o.e.c.m.MetaDataMappingService] [kibana-ci-immutable-oraclelinux-tests-xl-1583208640580533216] [.kibana_2/NOmqLB5eQ9K6PcCyXb0KnA] update_mapping [_doc]
[00:04:58]                   │ proc [kibana]   log   [04:53:03.714] [info][savedobjects-service] Pointing alias .kibana to .kibana_2.
[00:04:58]                   │ proc [kibana]   log   [04:53:03.763] [info][savedobjects-service] Finished in 590ms.
[00:04:59]                 └- ✓ pass  (50ms) "spaces api with security resolve copy to spaces conflicts user with no access from the default space should return 404 when 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, without 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-oraclelinux-tests-xl-1583208640580533216] [.kibana_2/NOmqLB5eQ9K6PcCyXb0KnA] deleting index
[00:04:59]                   │ info [o.e.c.m.MetaDataDeleteIndexService] [kibana-ci-immutable-oraclelinux-tests-xl-1583208640580533216] [.kibana_1/4EnIk4o0RkaLunfRD7AeHA] 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-oraclelinux-tests-xl-1583208640580533216] [.kibana] creating index, cause [api], templates [], shards [1]/[0], mappings [_doc]
[00:04:59]                   │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-oraclelinux-tests-xl-1583208640580533216] Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[.kibana][0]]]).
[00:04:59]                   │ info [r.suppressed] [kibana-ci-immutable-oraclelinux-tests-xl-1583208640580533216] 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-oraclelinux-tests-xl-1583208640580533216][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 [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]                   │ 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] Indexed 16 docs into ".kibana"
[00:04:59]                   │ info [o.e.c.m.MetaDataMappingService] [kibana-ci-immutable-oraclelinux-tests-xl-1583208640580533216] [.kibana/5c8yzQxUTwS6YYjJtJJr1g] update_mapping [_doc]
[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]                     │ debg Migrating saved objects
[00:04:59]                     │ERROR [GET http://elastic:changeme@localhost:6181/api/status] request failed (attempt=1/5)
[00:04:59]                     │ERROR [migrate saved objects] request failed (attempt=1/5)
[00:05:00]                     │ERROR [GET http://elastic:changeme@localhost:6181/api/status] request failed (attempt=2/5)
[00:05:00]                     │ERROR [migrate saved objects] request failed (attempt=2/5)
[00:05:02]                     │ERROR [GET http://elastic:changeme@localhost:6181/api/status] request failed (attempt=3/5)
[00:05:02]                     │ERROR [migrate saved objects] request failed (attempt=3/5)
[00:05:05]                     │ERROR [GET http://elastic:changeme@localhost:6181/api/status] request failed (attempt=4/5)
[00:05:05]                     │ERROR [migrate saved objects] request failed (attempt=4/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, without references""
[00:05:09]                     │
[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, without 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 "after each" hook for "should return 404 when overwriting, without references"

Link to Jenkins

Standard Out

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

[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-oraclelinux-tests-xl-1583208640580533216] added role [kibana_legacy_user]
[00:00:01]             │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-oraclelinux-tests-xl-1583208640580533216] added role [kibana_dual_privileges_user]
[00:00:01]             │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-oraclelinux-tests-xl-1583208640580533216] added role [kibana_dual_privileges_dashboard_only_user]
[00:00:02]             │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-oraclelinux-tests-xl-1583208640580533216] added role [kibana_rbac_user]
[00:00:02]             │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-oraclelinux-tests-xl-1583208640580533216] added role [kibana_rbac_dashboard_only_user]
[00:00:02]             │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-oraclelinux-tests-xl-1583208640580533216] added role [kibana_rbac_default_space_all_user]
[00:00:02]             │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-oraclelinux-tests-xl-1583208640580533216] added role [kibana_rbac_default_space_read_user]
[00:00:02]             │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-oraclelinux-tests-xl-1583208640580533216] added role [kibana_rbac_space_1_all_user]
[00:00:02]             │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-oraclelinux-tests-xl-1583208640580533216] added role [kibana_rbac_space_1_read_user]
[00:00:02]             │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-oraclelinux-tests-xl-1583208640580533216] added role [kibana_rbac_space_2_all_user]
[00:00:03]             │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-oraclelinux-tests-xl-1583208640580533216] added role [kibana_rbac_space_2_read_user]
[00:00:03]             │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-oraclelinux-tests-xl-1583208640580533216] added role [kibana_rbac_space_1_2_all_user]
[00:00:03]             │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-oraclelinux-tests-xl-1583208640580533216] added role [kibana_rbac_space_1_2_read_user]
[00:00:03]             │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-oraclelinux-tests-xl-1583208640580533216] added role [kibana_rbac_default_space_saved_objects_all_user]
[00:00:03]             │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-oraclelinux-tests-xl-1583208640580533216] added role [kibana_rbac_default_space_saved_objects_read_user]
[00:00:03]             │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-oraclelinux-tests-xl-1583208640580533216] added role [kibana_rbac_space_1_saved_objects_all_user]
[00:00:03]             │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-oraclelinux-tests-xl-1583208640580533216] added role [kibana_rbac_space_1_saved_objects_read_user]
[00:00:04]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-oraclelinux-tests-xl-1583208640580533216] added user [not_a_kibana_user]
[00:00:04]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-oraclelinux-tests-xl-1583208640580533216] added user [a_kibana_legacy_user]
[00:00:04]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-oraclelinux-tests-xl-1583208640580533216] added user [a_kibana_dual_privileges_user]
[00:00:04]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-oraclelinux-tests-xl-1583208640580533216] added user [a_kibana_dual_privileges_dashboard_only_user]
[00:00:04]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-oraclelinux-tests-xl-1583208640580533216] added user [a_kibana_rbac_user]
[00:00:04]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-oraclelinux-tests-xl-1583208640580533216] added user [a_kibana_rbac_dashboard_only_user]
[00:00:05]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-oraclelinux-tests-xl-1583208640580533216] added user [a_kibana_rbac_default_space_all_user]
[00:00:05]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-oraclelinux-tests-xl-1583208640580533216] added user [a_kibana_rbac_default_space_read_user]
[00:00:05]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-oraclelinux-tests-xl-1583208640580533216] added user [a_kibana_rbac_space_1_all_user]
[00:00:05]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-oraclelinux-tests-xl-1583208640580533216] added user [a_kibana_rbac_space_1_read_user]
[00:00:05]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-oraclelinux-tests-xl-1583208640580533216] added user [a_kibana_rbac_space_2_all_user]
[00:00:05]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-oraclelinux-tests-xl-1583208640580533216] added user [a_kibana_rbac_space_2_read_user]
[00:00:05]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-oraclelinux-tests-xl-1583208640580533216] added user [a_kibana_rbac_space_1_2_all_user]
[00:00:06]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-oraclelinux-tests-xl-1583208640580533216] added user [a_kibana_rbac_space_1_2_read_user]
[00:00:06]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-oraclelinux-tests-xl-1583208640580533216] added user [a_kibana_rbac_default_space_saved_objects_all_user]
[00:00:06]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-oraclelinux-tests-xl-1583208640580533216] added user [a_kibana_rbac_default_space_saved_objects_read_user]
[00:00:06]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-oraclelinux-tests-xl-1583208640580533216] added user [a_kibana_rbac_space_1_saved_objects_all_user]
[00:00:06]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-oraclelinux-tests-xl-1583208640580533216] added user [a_kibana_rbac_space_1_saved_objects_read_user]
[00:00:06]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-oraclelinux-tests-xl-1583208640580533216] added user [a_apm_user]
[00:00:06]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-oraclelinux-tests-xl-1583208640580533216] added user [a_machine_learning_admin]
[00:00:07]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-oraclelinux-tests-xl-1583208640580533216] added user [a_machine_learning_user]
[00:00:07]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-oraclelinux-tests-xl-1583208640580533216] added user [a_monitoring_user]
[00:04:54]           └-: resolve copy to spaces conflicts
[00:04:54]             └-> "before all" hook
[00:04:54]             └-: user with no access from the default space
[00:04:54]               └-> "before all" hook
[00:04:54]               └-> "before all" hook
[00:04:54]               └-> should return 404 when not overwriting, with references
[00:04:54]                 └-> "before each" hook: global before each
[00:04:54]                 └-> "before each" hook
[00:04:55]                   │ info [saved_objects/spaces] Loading "mappings.json"
[00:04:55]                   │ info [saved_objects/spaces] Loading "data.json"
[00:04:55]                   │ info [o.e.c.m.MetaDataDeleteIndexService] [kibana-ci-immutable-oraclelinux-tests-xl-1583208640580533216] [.kibana_2/cRGPi3gYQEOAVyb1OyhsYw] deleting index
[00:04:55]                   │ info [o.e.c.m.MetaDataDeleteIndexService] [kibana-ci-immutable-oraclelinux-tests-xl-1583208640580533216] [.kibana_1/47emRCTfQeq-NdmZX7WAJQ] deleting index
[00:04:55]                   │ info [saved_objects/spaces] Deleted existing index [".kibana_2",".kibana_1"]
[00:04:55]                   │ info [o.e.c.m.MetaDataCreateIndexService] [kibana-ci-immutable-oraclelinux-tests-xl-1583208640580533216] [.kibana] creating index, cause [api], templates [], shards [1]/[0], mappings [_doc]
[00:04:55]                   │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-oraclelinux-tests-xl-1583208640580533216] Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[.kibana][0]]]).
[00:04:55]                   │ info [saved_objects/spaces] Created index ".kibana"
[00:04:55]                   │ debg [saved_objects/spaces] ".kibana" settings {"index":{"auto_expand_replicas":"0-1","number_of_replicas":"0","number_of_shards":"1"}}
[00:04:55]                   │ info [saved_objects/spaces] Indexed 16 docs into ".kibana"
[00:04:55]                   │ info [o.e.c.m.MetaDataMappingService] [kibana-ci-immutable-oraclelinux-tests-xl-1583208640580533216] [.kibana/0stIwVFmQFmRPhmrI6J-mQ] update_mapping [_doc]
[00:04:55]                   │ debg Migrating saved objects
[00:04:56]                   │ proc [kibana]   log   [04:53:00.987] [info][savedobjects-service] Creating index .kibana_2.
[00:04:56]                   │ info [o.e.c.m.MetaDataCreateIndexService] [kibana-ci-immutable-oraclelinux-tests-xl-1583208640580533216] [.kibana_2] creating index, cause [api], templates [], shards [1]/[1], mappings [_doc]
[00:04:56]                   │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-oraclelinux-tests-xl-1583208640580533216] updating number_of_replicas to [0] for indices [.kibana_2]
[00:04:56]                   │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-oraclelinux-tests-xl-1583208640580533216] Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[.kibana_2][0]]]).
[00:04:56]                   │ proc [kibana]   log   [04:53:01.048] [info][savedobjects-service] Reindexing .kibana to .kibana_1
[00:04:56]                   │ info [o.e.c.m.MetaDataCreateIndexService] [kibana-ci-immutable-oraclelinux-tests-xl-1583208640580533216] [.kibana_1] creating index, cause [api], templates [], shards [1]/[1], mappings [_doc]
[00:04:56]                   │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-oraclelinux-tests-xl-1583208640580533216] updating number_of_replicas to [0] for indices [.kibana_1]
[00:04:56]                   │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-oraclelinux-tests-xl-1583208640580533216] Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[.kibana_1][0]]]).
[00:04:56]                   │ info [o.e.t.LoggingTaskListener] [kibana-ci-immutable-oraclelinux-tests-xl-1583208640580533216] 28047 finished with response BulkByScrollResponse[took=24.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:56]                   │ info [o.e.c.m.MetaDataDeleteIndexService] [kibana-ci-immutable-oraclelinux-tests-xl-1583208640580533216] [.kibana/0stIwVFmQFmRPhmrI6J-mQ] deleting index
[00:04:56]                   │ proc [kibana]   log   [04:53:01.381] [info][savedobjects-service] Migrating .kibana_1 saved objects to .kibana_2
[00:04:56]                   │ info [o.e.c.m.MetaDataMappingService] [kibana-ci-immutable-oraclelinux-tests-xl-1583208640580533216] [.kibana_2/6EBMkHf1TJqjO9pTdwNlEQ] update_mapping [_doc]
[00:04:56]                   │ info [o.e.c.m.MetaDataMappingService] [kibana-ci-immutable-oraclelinux-tests-xl-1583208640580533216] [.kibana_2/6EBMkHf1TJqjO9pTdwNlEQ] update_mapping [_doc]
[00:04:56]                   │ info [o.e.c.m.MetaDataMappingService] [kibana-ci-immutable-oraclelinux-tests-xl-1583208640580533216] [.kibana_2/6EBMkHf1TJqjO9pTdwNlEQ] update_mapping [_doc]
[00:04:56]                   │ info [o.e.c.m.MetaDataMappingService] [kibana-ci-immutable-oraclelinux-tests-xl-1583208640580533216] [.kibana_2/6EBMkHf1TJqjO9pTdwNlEQ] update_mapping [_doc]
[00:04:56]                   │ proc [kibana]   log   [04:53:01.531] [info][savedobjects-service] Pointing alias .kibana to .kibana_2.
[00:04:56]                   │ proc [kibana]   log   [04:53:01.572] [info][savedobjects-service] Finished in 586ms.
[00:04:56]                 └- ✓ pass  (55ms) "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:56]               └-> "after each" hook
[00:04:56]                 │ info [saved_objects/spaces] Unloading indices from "mappings.json"
[00:04:56]                 │ warn since spaces are enabled, all objects other than the default space were deleted from .kibana rather than deleting the whole index
[00:04:56]                 │ info [saved_objects/spaces] Deleted existing index ".kibana"
[00:04:56]                 │ info [saved_objects/spaces] Unloading indices from "data.json"
[00:04:56]               └-> should return 404 when 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-oraclelinux-tests-xl-1583208640580533216] [.kibana_1/DWZOljXdRfKWg4wFIiRigA] deleting index
[00:04:57]                   │ info [o.e.c.m.MetaDataDeleteIndexService] [kibana-ci-immutable-oraclelinux-tests-xl-1583208640580533216] [.kibana_2/6EBMkHf1TJqjO9pTdwNlEQ] 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-oraclelinux-tests-xl-1583208640580533216] [.kibana] creating index, cause [api], templates [], shards [1]/[0], mappings [_doc]
[00:04:57]                   │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-oraclelinux-tests-xl-1583208640580533216] 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-oraclelinux-tests-xl-1583208640580533216] [.kibana/ts1BJmqOSK2oRngHTP1-Hw] update_mapping [_doc]
[00:04:57]                   │ debg Migrating saved objects
[00:04:58]                   │ proc [kibana]   log   [04:53:03.174] [info][savedobjects-service] Creating index .kibana_2.
[00:04:58]                   │ info [o.e.c.m.MetaDataCreateIndexService] [kibana-ci-immutable-oraclelinux-tests-xl-1583208640580533216] [.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-oraclelinux-tests-xl-1583208640580533216] updating number_of_replicas to [0] for indices [.kibana_2]
[00:04:58]                   │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-oraclelinux-tests-xl-1583208640580533216] Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[.kibana_2][0]]]).
[00:04:58]                   │ proc [kibana]   log   [04:53:03.226] [info][savedobjects-service] Reindexing .kibana to .kibana_1
[00:04:58]                   │ info [o.e.c.m.MetaDataCreateIndexService] [kibana-ci-immutable-oraclelinux-tests-xl-1583208640580533216] [.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-oraclelinux-tests-xl-1583208640580533216] updating number_of_replicas to [0] for indices [.kibana_1]
[00:04:58]                   │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-oraclelinux-tests-xl-1583208640580533216] 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-oraclelinux-tests-xl-1583208640580533216] 28321 finished with response BulkByScrollResponse[took=24.9ms,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-oraclelinux-tests-xl-1583208640580533216] [.kibana/ts1BJmqOSK2oRngHTP1-Hw] deleting index
[00:04:58]                   │ proc [kibana]   log   [04:53:03.566] [info][savedobjects-service] Migrating .kibana_1 saved objects to .kibana_2
[00:04:58]                   │ info [o.e.c.m.MetaDataMappingService] [kibana-ci-immutable-oraclelinux-tests-xl-1583208640580533216] [.kibana_2/NOmqLB5eQ9K6PcCyXb0KnA] update_mapping [_doc]
[00:04:58]                   │ info [o.e.c.m.MetaDataMappingService] [kibana-ci-immutable-oraclelinux-tests-xl-1583208640580533216] [.kibana_2/NOmqLB5eQ9K6PcCyXb0KnA] update_mapping [_doc]
[00:04:58]                   │ info [o.e.c.m.MetaDataMappingService] [kibana-ci-immutable-oraclelinux-tests-xl-1583208640580533216] [.kibana_2/NOmqLB5eQ9K6PcCyXb0KnA] update_mapping [_doc]
[00:04:58]                   │ info [o.e.c.m.MetaDataMappingService] [kibana-ci-immutable-oraclelinux-tests-xl-1583208640580533216] [.kibana_2/NOmqLB5eQ9K6PcCyXb0KnA] update_mapping [_doc]
[00:04:58]                   │ proc [kibana]   log   [04:53:03.714] [info][savedobjects-service] Pointing alias .kibana to .kibana_2.
[00:04:58]                   │ proc [kibana]   log   [04:53:03.763] [info][savedobjects-service] Finished in 590ms.
[00:04:59]                 └- ✓ pass  (50ms) "spaces api with security resolve copy to spaces conflicts user with no access from the default space should return 404 when 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, without 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-oraclelinux-tests-xl-1583208640580533216] [.kibana_2/NOmqLB5eQ9K6PcCyXb0KnA] deleting index
[00:04:59]                   │ info [o.e.c.m.MetaDataDeleteIndexService] [kibana-ci-immutable-oraclelinux-tests-xl-1583208640580533216] [.kibana_1/4EnIk4o0RkaLunfRD7AeHA] 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-oraclelinux-tests-xl-1583208640580533216] [.kibana] creating index, cause [api], templates [], shards [1]/[0], mappings [_doc]
[00:04:59]                   │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-oraclelinux-tests-xl-1583208640580533216] Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[.kibana][0]]]).
[00:04:59]                   │ info [r.suppressed] [kibana-ci-immutable-oraclelinux-tests-xl-1583208640580533216] 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-oraclelinux-tests-xl-1583208640580533216][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 [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]                   │ 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] Indexed 16 docs into ".kibana"
[00:04:59]                   │ info [o.e.c.m.MetaDataMappingService] [kibana-ci-immutable-oraclelinux-tests-xl-1583208640580533216] [.kibana/5c8yzQxUTwS6YYjJtJJr1g] update_mapping [_doc]
[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]                     │ debg Migrating saved objects
[00:04:59]                     │ERROR [GET http://elastic:changeme@localhost:6181/api/status] request failed (attempt=1/5)
[00:04:59]                     │ERROR [migrate saved objects] request failed (attempt=1/5)
[00:05:00]                     │ERROR [GET http://elastic:changeme@localhost:6181/api/status] request failed (attempt=2/5)
[00:05:00]                     │ERROR [migrate saved objects] request failed (attempt=2/5)
[00:05:02]                     │ERROR [GET http://elastic:changeme@localhost:6181/api/status] request failed (attempt=3/5)
[00:05:02]                     │ERROR [migrate saved objects] request failed (attempt=3/5)
[00:05:05]                     │ERROR [GET http://elastic:changeme@localhost:6181/api/status] request failed (attempt=4/5)
[00:05:05]                     │ERROR [migrate saved objects] request failed (attempt=4/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, without 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)

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, without references"

Link to Jenkins

Standard Out

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

[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-oraclelinux-tests-xl-1583208640580533216] added role [kibana_legacy_user]
[00:00:01]             │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-oraclelinux-tests-xl-1583208640580533216] added role [kibana_dual_privileges_user]
[00:00:01]             │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-oraclelinux-tests-xl-1583208640580533216] added role [kibana_dual_privileges_dashboard_only_user]
[00:00:02]             │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-oraclelinux-tests-xl-1583208640580533216] added role [kibana_rbac_user]
[00:00:02]             │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-oraclelinux-tests-xl-1583208640580533216] added role [kibana_rbac_dashboard_only_user]
[00:00:02]             │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-oraclelinux-tests-xl-1583208640580533216] added role [kibana_rbac_default_space_all_user]
[00:00:02]             │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-oraclelinux-tests-xl-1583208640580533216] added role [kibana_rbac_default_space_read_user]
[00:00:02]             │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-oraclelinux-tests-xl-1583208640580533216] added role [kibana_rbac_space_1_all_user]
[00:00:02]             │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-oraclelinux-tests-xl-1583208640580533216] added role [kibana_rbac_space_1_read_user]
[00:00:02]             │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-oraclelinux-tests-xl-1583208640580533216] added role [kibana_rbac_space_2_all_user]
[00:00:03]             │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-oraclelinux-tests-xl-1583208640580533216] added role [kibana_rbac_space_2_read_user]
[00:00:03]             │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-oraclelinux-tests-xl-1583208640580533216] added role [kibana_rbac_space_1_2_all_user]
[00:00:03]             │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-oraclelinux-tests-xl-1583208640580533216] added role [kibana_rbac_space_1_2_read_user]
[00:00:03]             │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-oraclelinux-tests-xl-1583208640580533216] added role [kibana_rbac_default_space_saved_objects_all_user]
[00:00:03]             │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-oraclelinux-tests-xl-1583208640580533216] added role [kibana_rbac_default_space_saved_objects_read_user]
[00:00:03]             │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-oraclelinux-tests-xl-1583208640580533216] added role [kibana_rbac_space_1_saved_objects_all_user]
[00:00:03]             │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-oraclelinux-tests-xl-1583208640580533216] added role [kibana_rbac_space_1_saved_objects_read_user]
[00:00:04]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-oraclelinux-tests-xl-1583208640580533216] added user [not_a_kibana_user]
[00:00:04]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-oraclelinux-tests-xl-1583208640580533216] added user [a_kibana_legacy_user]
[00:00:04]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-oraclelinux-tests-xl-1583208640580533216] added user [a_kibana_dual_privileges_user]
[00:00:04]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-oraclelinux-tests-xl-1583208640580533216] added user [a_kibana_dual_privileges_dashboard_only_user]
[00:00:04]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-oraclelinux-tests-xl-1583208640580533216] added user [a_kibana_rbac_user]
[00:00:04]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-oraclelinux-tests-xl-1583208640580533216] added user [a_kibana_rbac_dashboard_only_user]
[00:00:05]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-oraclelinux-tests-xl-1583208640580533216] added user [a_kibana_rbac_default_space_all_user]
[00:00:05]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-oraclelinux-tests-xl-1583208640580533216] added user [a_kibana_rbac_default_space_read_user]
[00:00:05]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-oraclelinux-tests-xl-1583208640580533216] added user [a_kibana_rbac_space_1_all_user]
[00:00:05]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-oraclelinux-tests-xl-1583208640580533216] added user [a_kibana_rbac_space_1_read_user]
[00:00:05]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-oraclelinux-tests-xl-1583208640580533216] added user [a_kibana_rbac_space_2_all_user]
[00:00:05]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-oraclelinux-tests-xl-1583208640580533216] added user [a_kibana_rbac_space_2_read_user]
[00:00:05]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-oraclelinux-tests-xl-1583208640580533216] added user [a_kibana_rbac_space_1_2_all_user]
[00:00:06]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-oraclelinux-tests-xl-1583208640580533216] added user [a_kibana_rbac_space_1_2_read_user]
[00:00:06]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-oraclelinux-tests-xl-1583208640580533216] added user [a_kibana_rbac_default_space_saved_objects_all_user]
[00:00:06]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-oraclelinux-tests-xl-1583208640580533216] added user [a_kibana_rbac_default_space_saved_objects_read_user]
[00:00:06]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-oraclelinux-tests-xl-1583208640580533216] added user [a_kibana_rbac_space_1_saved_objects_all_user]
[00:00:06]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-oraclelinux-tests-xl-1583208640580533216] added user [a_kibana_rbac_space_1_saved_objects_read_user]
[00:00:06]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-oraclelinux-tests-xl-1583208640580533216] added user [a_apm_user]
[00:00:06]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-oraclelinux-tests-xl-1583208640580533216] added user [a_machine_learning_admin]
[00:00:07]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-oraclelinux-tests-xl-1583208640580533216] added user [a_machine_learning_user]
[00:00:07]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-oraclelinux-tests-xl-1583208640580533216] added user [a_monitoring_user]
[00:04:54]           └-: resolve copy to spaces conflicts
[00:04:54]             └-> "before all" hook
[00:04:54]             └-: user with no access from the default space
[00:04:54]               └-> "before all" hook
[00:04:54]               └-> "before all" hook
[00:04:54]               └-> should return 404 when not overwriting, with references
[00:04:54]                 └-> "before each" hook: global before each
[00:04:54]                 └-> "before each" hook
[00:04:55]                   │ info [saved_objects/spaces] Loading "mappings.json"
[00:04:55]                   │ info [saved_objects/spaces] Loading "data.json"
[00:04:55]                   │ info [o.e.c.m.MetaDataDeleteIndexService] [kibana-ci-immutable-oraclelinux-tests-xl-1583208640580533216] [.kibana_2/cRGPi3gYQEOAVyb1OyhsYw] deleting index
[00:04:55]                   │ info [o.e.c.m.MetaDataDeleteIndexService] [kibana-ci-immutable-oraclelinux-tests-xl-1583208640580533216] [.kibana_1/47emRCTfQeq-NdmZX7WAJQ] deleting index
[00:04:55]                   │ info [saved_objects/spaces] Deleted existing index [".kibana_2",".kibana_1"]
[00:04:55]                   │ info [o.e.c.m.MetaDataCreateIndexService] [kibana-ci-immutable-oraclelinux-tests-xl-1583208640580533216] [.kibana] creating index, cause [api], templates [], shards [1]/[0], mappings [_doc]
[00:04:55]                   │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-oraclelinux-tests-xl-1583208640580533216] Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[.kibana][0]]]).
[00:04:55]                   │ info [saved_objects/spaces] Created index ".kibana"
[00:04:55]                   │ debg [saved_objects/spaces] ".kibana" settings {"index":{"auto_expand_replicas":"0-1","number_of_replicas":"0","number_of_shards":"1"}}
[00:04:55]                   │ info [saved_objects/spaces] Indexed 16 docs into ".kibana"
[00:04:55]                   │ info [o.e.c.m.MetaDataMappingService] [kibana-ci-immutable-oraclelinux-tests-xl-1583208640580533216] [.kibana/0stIwVFmQFmRPhmrI6J-mQ] update_mapping [_doc]
[00:04:55]                   │ debg Migrating saved objects
[00:04:56]                   │ proc [kibana]   log   [04:53:00.987] [info][savedobjects-service] Creating index .kibana_2.
[00:04:56]                   │ info [o.e.c.m.MetaDataCreateIndexService] [kibana-ci-immutable-oraclelinux-tests-xl-1583208640580533216] [.kibana_2] creating index, cause [api], templates [], shards [1]/[1], mappings [_doc]
[00:04:56]                   │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-oraclelinux-tests-xl-1583208640580533216] updating number_of_replicas to [0] for indices [.kibana_2]
[00:04:56]                   │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-oraclelinux-tests-xl-1583208640580533216] Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[.kibana_2][0]]]).
[00:04:56]                   │ proc [kibana]   log   [04:53:01.048] [info][savedobjects-service] Reindexing .kibana to .kibana_1
[00:04:56]                   │ info [o.e.c.m.MetaDataCreateIndexService] [kibana-ci-immutable-oraclelinux-tests-xl-1583208640580533216] [.kibana_1] creating index, cause [api], templates [], shards [1]/[1], mappings [_doc]
[00:04:56]                   │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-oraclelinux-tests-xl-1583208640580533216] updating number_of_replicas to [0] for indices [.kibana_1]
[00:04:56]                   │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-oraclelinux-tests-xl-1583208640580533216] Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[.kibana_1][0]]]).
[00:04:56]                   │ info [o.e.t.LoggingTaskListener] [kibana-ci-immutable-oraclelinux-tests-xl-1583208640580533216] 28047 finished with response BulkByScrollResponse[took=24.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:56]                   │ info [o.e.c.m.MetaDataDeleteIndexService] [kibana-ci-immutable-oraclelinux-tests-xl-1583208640580533216] [.kibana/0stIwVFmQFmRPhmrI6J-mQ] deleting index
[00:04:56]                   │ proc [kibana]   log   [04:53:01.381] [info][savedobjects-service] Migrating .kibana_1 saved objects to .kibana_2
[00:04:56]                   │ info [o.e.c.m.MetaDataMappingService] [kibana-ci-immutable-oraclelinux-tests-xl-1583208640580533216] [.kibana_2/6EBMkHf1TJqjO9pTdwNlEQ] update_mapping [_doc]
[00:04:56]                   │ info [o.e.c.m.MetaDataMappingService] [kibana-ci-immutable-oraclelinux-tests-xl-1583208640580533216] [.kibana_2/6EBMkHf1TJqjO9pTdwNlEQ] update_mapping [_doc]
[00:04:56]                   │ info [o.e.c.m.MetaDataMappingService] [kibana-ci-immutable-oraclelinux-tests-xl-1583208640580533216] [.kibana_2/6EBMkHf1TJqjO9pTdwNlEQ] update_mapping [_doc]
[00:04:56]                   │ info [o.e.c.m.MetaDataMappingService] [kibana-ci-immutable-oraclelinux-tests-xl-1583208640580533216] [.kibana_2/6EBMkHf1TJqjO9pTdwNlEQ] update_mapping [_doc]
[00:04:56]                   │ proc [kibana]   log   [04:53:01.531] [info][savedobjects-service] Pointing alias .kibana to .kibana_2.
[00:04:56]                   │ proc [kibana]   log   [04:53:01.572] [info][savedobjects-service] Finished in 586ms.
[00:04:56]                 └- ✓ pass  (55ms) "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:56]               └-> "after each" hook
[00:04:56]                 │ info [saved_objects/spaces] Unloading indices from "mappings.json"
[00:04:56]                 │ warn since spaces are enabled, all objects other than the default space were deleted from .kibana rather than deleting the whole index
[00:04:56]                 │ info [saved_objects/spaces] Deleted existing index ".kibana"
[00:04:56]                 │ info [saved_objects/spaces] Unloading indices from "data.json"
[00:04:56]               └-> should return 404 when 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-oraclelinux-tests-xl-1583208640580533216] [.kibana_1/DWZOljXdRfKWg4wFIiRigA] deleting index
[00:04:57]                   │ info [o.e.c.m.MetaDataDeleteIndexService] [kibana-ci-immutable-oraclelinux-tests-xl-1583208640580533216] [.kibana_2/6EBMkHf1TJqjO9pTdwNlEQ] 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-oraclelinux-tests-xl-1583208640580533216] [.kibana] creating index, cause [api], templates [], shards [1]/[0], mappings [_doc]
[00:04:57]                   │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-oraclelinux-tests-xl-1583208640580533216] 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-oraclelinux-tests-xl-1583208640580533216] [.kibana/ts1BJmqOSK2oRngHTP1-Hw] update_mapping [_doc]
[00:04:57]                   │ debg Migrating saved objects
[00:04:58]                   │ proc [kibana]   log   [04:53:03.174] [info][savedobjects-service] Creating index .kibana_2.
[00:04:58]                   │ info [o.e.c.m.MetaDataCreateIndexService] [kibana-ci-immutable-oraclelinux-tests-xl-1583208640580533216] [.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-oraclelinux-tests-xl-1583208640580533216] updating number_of_replicas to [0] for indices [.kibana_2]
[00:04:58]                   │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-oraclelinux-tests-xl-1583208640580533216] Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[.kibana_2][0]]]).
[00:04:58]                   │ proc [kibana]   log   [04:53:03.226] [info][savedobjects-service] Reindexing .kibana to .kibana_1
[00:04:58]                   │ info [o.e.c.m.MetaDataCreateIndexService] [kibana-ci-immutable-oraclelinux-tests-xl-1583208640580533216] [.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-oraclelinux-tests-xl-1583208640580533216] updating number_of_replicas to [0] for indices [.kibana_1]
[00:04:58]                   │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-oraclelinux-tests-xl-1583208640580533216] 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-oraclelinux-tests-xl-1583208640580533216] 28321 finished with response BulkByScrollResponse[took=24.9ms,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-oraclelinux-tests-xl-1583208640580533216] [.kibana/ts1BJmqOSK2oRngHTP1-Hw] deleting index
[00:04:58]                   │ proc [kibana]   log   [04:53:03.566] [info][savedobjects-service] Migrating .kibana_1 saved objects to .kibana_2
[00:04:58]                   │ info [o.e.c.m.MetaDataMappingService] [kibana-ci-immutable-oraclelinux-tests-xl-1583208640580533216] [.kibana_2/NOmqLB5eQ9K6PcCyXb0KnA] update_mapping [_doc]
[00:04:58]                   │ info [o.e.c.m.MetaDataMappingService] [kibana-ci-immutable-oraclelinux-tests-xl-1583208640580533216] [.kibana_2/NOmqLB5eQ9K6PcCyXb0KnA] update_mapping [_doc]
[00:04:58]                   │ info [o.e.c.m.MetaDataMappingService] [kibana-ci-immutable-oraclelinux-tests-xl-1583208640580533216] [.kibana_2/NOmqLB5eQ9K6PcCyXb0KnA] update_mapping [_doc]
[00:04:58]                   │ info [o.e.c.m.MetaDataMappingService] [kibana-ci-immutable-oraclelinux-tests-xl-1583208640580533216] [.kibana_2/NOmqLB5eQ9K6PcCyXb0KnA] update_mapping [_doc]
[00:04:58]                   │ proc [kibana]   log   [04:53:03.714] [info][savedobjects-service] Pointing alias .kibana to .kibana_2.
[00:04:58]                   │ proc [kibana]   log   [04:53:03.763] [info][savedobjects-service] Finished in 590ms.
[00:04:59]                 └- ✓ pass  (50ms) "spaces api with security resolve copy to spaces conflicts user with no access from the default space should return 404 when 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, without 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-oraclelinux-tests-xl-1583208640580533216] [.kibana_2/NOmqLB5eQ9K6PcCyXb0KnA] deleting index
[00:04:59]                   │ info [o.e.c.m.MetaDataDeleteIndexService] [kibana-ci-immutable-oraclelinux-tests-xl-1583208640580533216] [.kibana_1/4EnIk4o0RkaLunfRD7AeHA] 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-oraclelinux-tests-xl-1583208640580533216] [.kibana] creating index, cause [api], templates [], shards [1]/[0], mappings [_doc]
[00:04:59]                   │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-oraclelinux-tests-xl-1583208640580533216] Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[.kibana][0]]]).
[00:04:59]                   │ info [r.suppressed] [kibana-ci-immutable-oraclelinux-tests-xl-1583208640580533216] 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-oraclelinux-tests-xl-1583208640580533216][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 [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]                   │ 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] Indexed 16 docs into ".kibana"
[00:04:59]                   │ info [o.e.c.m.MetaDataMappingService] [kibana-ci-immutable-oraclelinux-tests-xl-1583208640580533216] [.kibana/5c8yzQxUTwS6YYjJtJJr1g] update_mapping [_doc]
[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]                     │ debg Migrating saved objects
[00:04:59]                     │ERROR [GET http://elastic:changeme@localhost:6181/api/status] request failed (attempt=1/5)
[00:04:59]                     │ERROR [migrate saved objects] request failed (attempt=1/5)
[00:05:00]                     │ERROR [GET http://elastic:changeme@localhost:6181/api/status] request failed (attempt=2/5)
[00:05:00]                     │ERROR [migrate saved objects] request failed (attempt=2/5)
[00:05:02]                     │ERROR [GET http://elastic:changeme@localhost:6181/api/status] request failed (attempt=3/5)
[00:05:02]                     │ERROR [migrate saved objects] request failed (attempt=3/5)
[00:05:05]                     │ERROR [GET http://elastic:changeme@localhost:6181/api/status] request failed (attempt=4/5)
[00:05:05]                     │ERROR [migrate saved objects] request failed (attempt=4/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, without references""
[00:05:09]                     │
[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, without 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)

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

@pmuellr pmuellr merged commit 3887055 into elastic:master Mar 3, 2020
pmuellr added a commit to pmuellr/kibana that referenced this pull request Mar 3, 2020
…old (elastic#59064)

This is a follow-on to elastic#57030 ,
"[alerting] initial index threshold alertType and supporting APIs",
to get it working with the existing alerting UI.  The parameter shape
was different between the two, so the alertType was changed to fix
the existing UI shapes expected.
pmuellr added a commit that referenced this pull request Mar 3, 2020
…old (#59064) (#59142)

This is a follow-on to #57030 ,
"[alerting] initial index threshold alertType and supporting APIs",
to get it working with the existing alerting UI.  The parameter shape
was different between the two, so the alertType was changed to fix
the existing UI shapes expected.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backported Feature:Alerting release_note:skip Skip the PR/issue when compiling release notes Team:ResponseOps Label for the ResponseOps team (formerly the Cases and Alerting teams) v7.7.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants