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

[Core] add timeout for "stop" lifecycle #90432

Merged
merged 6 commits into from
Feb 9, 2021

Conversation

mshustov
Copy link
Contributor

@mshustov mshustov commented Feb 5, 2021

Summary

While testing #25526, I found that the Kibana server stuck in the process of waiting for logEvents plugin stop (somewhere within https://github.com/elastic/kibana/blob/4584a8b570402aa07832cf3e5b520e5d2cfa7166/x-pack/plugins/event_log/server/es/cluster_client_adapter.ts) when stop is caused by an exception during start lifecycle. cc @pmuellr

So I added 30sec timeout for the stop lifecycle.
Its difference, from the timeout for the setup and start lifecycles, is that on timeout it doesn't raise an exception but stops waiting and moves on to the next plugin.

Plugin API Changes

Kibana plugin system has got a concept of asynchronous lifecycles for all the Kibana plugins https://www.elastic.co/guide/en/kibana/current/kibana-platform-plugin-api.html#plugin-lifecycles
We added a timeout (30 sec. by default) to make sure that stop lifecycle doesn't stop the shutdown process for the whole Kibana server. If a plugin doesn't complete stop lifecycle in 30 sec., Kibana moves on to the next plugin.

@mshustov mshustov added chore Team:Core Core services & architecture: plugins, logging, config, saved objects, http, ES client, i18n, etc release_note:plugin_api_changes Contains a Plugin API changes section for the breaking plugin API changes section. v8.0.0 v7.12.0 labels Feb 5, 2021
@mshustov mshustov requested a review from a team as a code owner February 5, 2021 14:43
@elasticmachine
Copy link
Contributor

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

const result = (await Promise.race([
this.plugins.get(pluginName)!.stop(),
new Promise((resolve) => setTimeout(() => resolve({ delayed: true }), 30 * Sec)),
])) as { delayed?: boolean };
Copy link
Member

@Bamieh Bamieh Feb 6, 2021

Choose a reason for hiding this comment

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

This pattern might cause some unexpected memory issues in node. We need to clear the timeout after the promise has been resolved to avoid build up of zombie timeouts in the worst cases. In normal scenarioas we're just avoiding piling up of unnecessary timeouts.

export const PROMISE_TIMEOUT = {}; // we can use a Symbol here too

export async function raceTo<T>(promise: Promise<T>, ms: number): Promise<T | typeof PROMISE_TIMEOUT> {
  let timeout: NodeJS.Timeout;
  try {
    const result = await Promise.race([
      promise,
      new Promise<typeof PROMISE_TIMEOUT>((resolve) => {
        timeout = setTimeout(() => resolve(PROMISE_TIMEOUT), ms);
      }),
    ]);
    if (timeout!) clearTimeout(timeout);
	return result;
  } catch (err) {
    if (timeout!) clearTimeout(timeout); 
    throw err;
  }
}

const result = raceTo(this.plugins.get(pluginName)!.stop(), 30 * Sec);

if (result === PROMISE_TIMEOUT) {
  this.log.warn(...);
}

Copy link
Contributor Author

@mshustov mshustov Feb 7, 2021

Choose a reason for hiding this comment

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

This pattern might cause some unexpected memory issues in node.

Is there an example of a study of how bad it affects memory consumption? I've never seen such a recommendation in nodejs docs. This code is short-living: The Core runs the function ~100 times as a part of the shutdown process. I'm okay to add the proposal, but it doesn't look like a critical functionality, but might be unnecessary micro-optimisation.

Copy link
Member

@Bamieh Bamieh Feb 8, 2021

Choose a reason for hiding this comment

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

but might be unnecessary micro-optimisation.

It is more about a good coding practice too.

You're resolving the promise yet there is a trailing timeout that wants to keep the lexical scope of the wrapping function for no reason. As for the memory effect for this, in addition to preventing the function context to be marked for garbage collection in time, you are adding unncessary cycles to the 'message queue' before triggering the clearing of those timeouts in the "event loop".

In another other words; If all stop functions are resolved immediately and nodejs is ready to exit. You will be holding node from closing the process for an additional 30 seconds until the timeouts are unreffed and cleared from the message queue.

Is there an example of a study of how bad it affects memory consumption?

I dont have an article handy but this is how nodejs works. You can dig into how the timer works here however if you're interested:

Copy link
Contributor

Choose a reason for hiding this comment

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

A slight memory leak while exiting is probably fine, but it would be worth testing that we don't increase the exit delay unnecessarily.

Copy link
Member

Choose a reason for hiding this comment

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

A slight memory leak while exiting is probably fine

I'm slightly confused because this is changing a couple of lines in the implementation. Anyways you can test that it does delay the shutdown by calling this:

// node test.js

let timeout1;
let timeout2;

const result = Promise.race([
  new Promise((resolve) => {
    timeout1 = setTimeout(() => resolve('ok'), 100);
  }),
  new Promise((resolve) => {
    timeout2 = setTimeout(() => resolve('ok'), 30000);
  }),
]).then(() => {
  clearTimeout(timeout1), clearTimeout(timeout2);
})

If you comment out the clearTimeout line you'll get a delay of 30 seconds before the node process exits.

Copy link
Contributor Author

@mshustov mshustov Feb 8, 2021

Choose a reason for hiding this comment

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

You will be holding node from closing the process for an additional 30 seconds until the timeouts are unreffed and cleared from the message queue.

That's a fair point - I'm going to refactor the function.

Copy link
Member

Choose a reason for hiding this comment

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

You can probably just unref() the timeout objects. That's what we used to do ALL THE TIME (in a previous job). Especially for shutdown logic. That will keep node from "staying around" until the timeouts "complete". I believe clearing the timeout will similarly "unref" it, but you can do the unref early, right after the timeout is created.

I don't think I'd worry so much about other resources (lexically accessed) still being held onto. Kibana will be coming down, so there's probably not much help in marking objects as inaccessible for the GC to reuse. Hopefully the GC is not allocating (much) more object space during this phase anyway!

As an optimization, it would be good to parallelize any not-related plugins so you can overlap some of these timeouts.

Copy link
Contributor Author

@mshustov mshustov Feb 9, 2021

Choose a reason for hiding this comment

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

@pmuellr That's an option. It's not consistent with setup and start phases, though: lifecycles are executed in the order defined by the dependency graph. In theory, they can even expose stop contracts.

Copy link
Member

@Bamieh Bamieh left a comment

Choose a reason for hiding this comment

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

I added a code snippet for clearing the timeouts we create


const result = (await Promise.race([
this.plugins.get(pluginName)!.stop(),
new Promise((resolve) => setTimeout(() => resolve({ delayed: true }), 30 * Sec)),
Copy link
Contributor

Choose a reason for hiding this comment

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

With #89562 (#71925), we changed to setup and start timeout to 10s. We might want to have the same value for stop?

Copy link
Contributor

Choose a reason for hiding this comment

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

Since async stop isn't deprecated and we want to give plugins a chance to do a graceful shutdown (#83612) 10s feels too short.

Copy link
Contributor

Choose a reason for hiding this comment

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

SGTM. Do we want to change the Plugin and AsyncPlugin's stop signature to reflect that returning a Promise is supported? atm it's stop?(): void;

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@pgayvallet I'd wait for an official decision on that matter in #83612

Copy link
Contributor

@rudolf rudolf left a comment

Choose a reason for hiding this comment

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

Apart from the exit delay issue raised by @Bamieh this looks good to me.


const result = (await Promise.race([
this.plugins.get(pluginName)!.stop(),
new Promise((resolve) => setTimeout(() => resolve({ delayed: true }), 30 * Sec)),
Copy link
Contributor

Choose a reason for hiding this comment

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

Since async stop isn't deprecated and we want to give plugins a chance to do a graceful shutdown (#83612) 10s feels too short.

const result = (await Promise.race([
this.plugins.get(pluginName)!.stop(),
new Promise((resolve) => setTimeout(() => resolve({ delayed: true }), 30 * Sec)),
])) as { delayed?: boolean };
Copy link
Contributor

Choose a reason for hiding this comment

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

A slight memory leak while exiting is probably fine, but it would be worth testing that we don't increase the exit delay unnecessarily.

@mshustov mshustov requested a review from Bamieh February 8, 2021 17:30
@mshustov mshustov merged commit 82d1672 into elastic:master Feb 9, 2021
@mshustov mshustov deleted the plugin-stop-timeout branch February 9, 2021 14:38
mshustov added a commit that referenced this pull request Feb 9, 2021
* add timeout for stop lifecycle

* add timeout for stop lifecycle

* update message

* cleanup timeout to remove async tasks
@kibanamachine
Copy link
Contributor

kibanamachine commented Mar 3, 2021

💔 Build Failed

Failed CI Steps


Test Failures

Kibana Pipeline / general / Chrome X-Pack UI Functional Tests.x-pack/test/functional/apps/transform/feature_controls/transform_security·ts.transform feature controls security global all privileges (aka kibana_admin) should not render the "Stack" section

Link to Jenkins

Standard Out

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

[00:00:00]       │
[00:19:11]         └-: transform
[00:19:11]           └-> "before all" hook in "transform"
[00:19:11]           └-> "before all" hook in "transform"
[00:19:11]             │ debg creating role transform_source
[00:19:11]             │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614781778062050246] added role [transform_source]
[00:19:11]             │ debg creating role transform_dest
[00:19:11]             │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614781778062050246] added role [transform_dest]
[00:19:11]             │ debg creating role transform_dest_readonly
[00:19:11]             │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614781778062050246] added role [transform_dest_readonly]
[00:19:11]             │ debg creating role transform_ui_extras
[00:19:11]             │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614781778062050246] added role [transform_ui_extras]
[00:19:11]             │ debg creating user transform_poweruser
[00:19:11]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614781778062050246] added user [transform_poweruser]
[00:19:11]             │ debg created user transform_poweruser
[00:19:11]             │ debg creating user transform_viewer
[00:19:11]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614781778062050246] added user [transform_viewer]
[00:19:11]             │ debg created user transform_viewer
[00:24:08]           └-: feature controls
[00:24:08]             └-> "before all" hook in "feature controls"
[00:24:08]             └-: security
[00:24:08]               └-> "before all" hook in "security"
[00:24:08]               └-> "before all" hook in "security"
[00:24:08]                 │ info [empty_kibana] Loading "mappings.json"
[00:24:08]                 │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614781778062050246] [.kibana_8.0.0_001/IRouQtZnRje7NigdCJ4xFA] deleting index
[00:24:08]                 │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614781778062050246] [.kibana_task_manager_8.0.0_001/ljT9nIr0STKPYC8XRiQHLw] deleting index
[00:24:08]                 │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614781778062050246] [.kibana_pre6.5.0_001/nqdFn8SlRwaHnasGhvbQUg] deleting index
[00:24:08]                 │ info [empty_kibana] Deleted existing index ".kibana_8.0.0_001"
[00:24:08]                 │ info [empty_kibana] Deleted existing index ".kibana_task_manager_8.0.0_001"
[00:24:08]                 │ info [empty_kibana] Deleted existing index ".kibana_pre6.5.0_001"
[00:24:08]                 │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614781778062050246] [.kibana] creating index, cause [api], templates [], shards [1]/[1]
[00:24:08]                 │ info [empty_kibana] Created index ".kibana"
[00:24:08]                 │ debg [empty_kibana] ".kibana" settings {"index":{"number_of_replicas":"1","number_of_shards":"1"}}
[00:24:08]                 │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614781778062050246] [.kibana/DdpsQu8lSpWTm4aMJE3LGQ] update_mapping [_doc]
[00:24:08]                 │ debg Migrating saved objects
[00:24:08]                 │ proc [kibana]   log   [15:31:52.056] [info][savedobjects-service] [.kibana_task_manager] INIT -> CREATE_NEW_TARGET
[00:24:08]                 │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614781778062050246] [.kibana_task_manager_8.0.0_001] creating index, cause [api], templates [], shards [1]/[1]
[00:24:08]                 │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614781778062050246] updating number_of_replicas to [0] for indices [.kibana_task_manager_8.0.0_001]
[00:24:08]                 │ proc [kibana]   log   [15:31:52.063] [info][savedobjects-service] [.kibana] INIT -> LEGACY_SET_WRITE_BLOCK
[00:24:08]                 │ info [o.e.c.m.MetadataIndexStateService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614781778062050246] adding block write to indices [[.kibana/DdpsQu8lSpWTm4aMJE3LGQ]]
[00:24:08]                 │ info [o.e.c.m.MetadataIndexStateService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614781778062050246] completed adding block write to indices [.kibana]
[00:24:08]                 │ proc [kibana]   log   [15:31:52.110] [info][savedobjects-service] [.kibana_task_manager] CREATE_NEW_TARGET -> MARK_VERSION_INDEX_READY
[00:24:08]                 │ proc [kibana]   log   [15:31:52.125] [info][savedobjects-service] [.kibana] LEGACY_SET_WRITE_BLOCK -> LEGACY_CREATE_REINDEX_TARGET
[00:24:08]                 │ proc [kibana]   log   [15:31:52.133] [info][savedobjects-service] [.kibana_task_manager] MARK_VERSION_INDEX_READY -> DONE
[00:24:08]                 │ proc [kibana]   log   [15:31:52.134] [info][savedobjects-service] [.kibana_task_manager] Migration completed after 84ms
[00:24:08]                 │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614781778062050246] [.kibana_pre6.5.0_001] creating index, cause [api], templates [], shards [1]/[1]
[00:24:08]                 │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614781778062050246] updating number_of_replicas to [0] for indices [.kibana_pre6.5.0_001]
[00:24:08]                 │ proc [kibana]   log   [15:31:52.175] [info][savedobjects-service] [.kibana] LEGACY_CREATE_REINDEX_TARGET -> LEGACY_REINDEX
[00:24:08]                 │ info [o.e.t.LoggingTaskListener] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614781778062050246] 31851 finished with response BulkByScrollResponse[took=1.5ms,timed_out=false,sliceId=null,updated=0,created=0,deleted=0,batches=0,versionConflicts=0,noops=0,retries=0,throttledUntil=0s,bulk_failures=[],search_failures=[]]
[00:24:08]                 │ proc [kibana]   log   [15:31:52.182] [info][savedobjects-service] [.kibana] LEGACY_REINDEX -> LEGACY_REINDEX_WAIT_FOR_TASK
[00:24:08]                 │ proc [kibana]   log   [15:31:52.188] [info][savedobjects-service] [.kibana] LEGACY_REINDEX_WAIT_FOR_TASK -> LEGACY_DELETE
[00:24:08]                 │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614781778062050246] [.kibana/DdpsQu8lSpWTm4aMJE3LGQ] deleting index
[00:24:08]                 │ proc [kibana]   log   [15:31:52.220] [info][savedobjects-service] [.kibana] LEGACY_DELETE -> SET_SOURCE_WRITE_BLOCK
[00:24:08]                 │ info [o.e.c.m.MetadataIndexStateService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614781778062050246] adding block write to indices [[.kibana_pre6.5.0_001/pyXhQBv2RWSA4K6_Qv2SiQ]]
[00:24:08]                 │ info [o.e.c.m.MetadataIndexStateService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614781778062050246] completed adding block write to indices [.kibana_pre6.5.0_001]
[00:24:08]                 │ proc [kibana]   log   [15:31:52.250] [info][savedobjects-service] [.kibana] SET_SOURCE_WRITE_BLOCK -> CREATE_REINDEX_TEMP
[00:24:08]                 │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614781778062050246] [.kibana_8.0.0_reindex_temp] creating index, cause [api], templates [], shards [1]/[1]
[00:24:08]                 │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614781778062050246] updating number_of_replicas to [0] for indices [.kibana_8.0.0_reindex_temp]
[00:24:08]                 │ proc [kibana]   log   [15:31:52.300] [info][savedobjects-service] [.kibana] CREATE_REINDEX_TEMP -> REINDEX_SOURCE_TO_TEMP
[00:24:08]                 │ info [o.e.t.LoggingTaskListener] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614781778062050246] 31880 finished with response BulkByScrollResponse[took=1.7ms,timed_out=false,sliceId=null,updated=0,created=0,deleted=0,batches=0,versionConflicts=0,noops=0,retries=0,throttledUntil=0s,bulk_failures=[],search_failures=[]]
[00:24:08]                 │ proc [kibana]   log   [15:31:52.307] [info][savedobjects-service] [.kibana] REINDEX_SOURCE_TO_TEMP -> REINDEX_SOURCE_TO_TEMP_WAIT_FOR_TASK
[00:24:08]                 │ proc [kibana]   log   [15:31:52.314] [info][savedobjects-service] [.kibana] REINDEX_SOURCE_TO_TEMP_WAIT_FOR_TASK -> SET_TEMP_WRITE_BLOCK
[00:24:08]                 │ info [o.e.c.m.MetadataIndexStateService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614781778062050246] adding block write to indices [[.kibana_8.0.0_reindex_temp/poCArTDMQhG7YtMJ6unuJA]]
[00:24:08]                 │ info [o.e.c.m.MetadataIndexStateService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614781778062050246] completed adding block write to indices [.kibana_8.0.0_reindex_temp]
[00:24:08]                 │ proc [kibana]   log   [15:31:52.348] [info][savedobjects-service] [.kibana] SET_TEMP_WRITE_BLOCK -> CLONE_TEMP_TO_TARGET
[00:24:08]                 │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614781778062050246] applying create index request using existing index [.kibana_8.0.0_reindex_temp] metadata
[00:24:08]                 │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614781778062050246] [.kibana_8.0.0_001] creating index, cause [clone_index], templates [], shards [1]/[1]
[00:24:08]                 │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614781778062050246] updating number_of_replicas to [0] for indices [.kibana_8.0.0_001]
[00:24:08]                 │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614781778062050246] [.kibana_8.0.0_001/uDeTRdxMTNO77Ua_rzimnQ] create_mapping
[00:24:08]                 │ proc [kibana]   log   [15:31:52.434] [info][savedobjects-service] [.kibana] CLONE_TEMP_TO_TARGET -> OUTDATED_DOCUMENTS_SEARCH
[00:24:08]                 │ proc [kibana]   log   [15:31:52.442] [info][savedobjects-service] [.kibana] OUTDATED_DOCUMENTS_SEARCH -> UPDATE_TARGET_MAPPINGS
[00:24:08]                 │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614781778062050246] [.kibana_8.0.0_001/uDeTRdxMTNO77Ua_rzimnQ] update_mapping [_doc]
[00:24:08]                 │ proc [kibana]   log   [15:31:52.508] [info][savedobjects-service] [.kibana] UPDATE_TARGET_MAPPINGS -> UPDATE_TARGET_MAPPINGS_WAIT_FOR_TASK
[00:24:08]                 │ info [o.e.t.LoggingTaskListener] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614781778062050246] 31916 finished with response BulkByScrollResponse[took=3.7ms,timed_out=false,sliceId=null,updated=0,created=0,deleted=0,batches=0,versionConflicts=0,noops=0,retries=0,throttledUntil=0s,bulk_failures=[],search_failures=[]]
[00:24:08]                 │ proc [kibana]   log   [15:31:52.514] [info][savedobjects-service] [.kibana] UPDATE_TARGET_MAPPINGS_WAIT_FOR_TASK -> MARK_VERSION_INDEX_READY
[00:24:08]                 │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614781778062050246] [.kibana_8.0.0_reindex_temp/poCArTDMQhG7YtMJ6unuJA] deleting index
[00:24:08]                 │ proc [kibana]   log   [15:31:52.557] [info][savedobjects-service] [.kibana] MARK_VERSION_INDEX_READY -> DONE
[00:24:08]                 │ proc [kibana]   log   [15:31:52.558] [info][savedobjects-service] [.kibana] Migration completed after 509ms
[00:24:08]                 │ debg [empty_kibana] Migrated Kibana index after loading Kibana data
[00:24:08]                 │ debg [empty_kibana] Ensured that default space exists in .kibana
[00:24:08]                 │ debg applying update to kibana config: {"accessibility:disableAnimations":true,"dateFormat:tz":"UTC","visualization:visualize:legacyChartsLibrary":true}
[00:24:08]                 │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614781778062050246] [.kibana_8.0.0_001/uDeTRdxMTNO77Ua_rzimnQ] update_mapping [_doc]
[00:24:10]                 │ debg SecurityPage.forceLogout
[00:24:10]                 │ debg Find.existsByDisplayedByCssSelector('.login-form') with timeout=100
[00:24:10]                 │ debg --- retry.tryForTime error: .login-form is not displayed
[00:24:11]                 │ debg Redirecting to /logout to force the logout
[00:24:11]                 │ debg Waiting on the login form to appear
[00:24:11]                 │ debg Waiting for Login Page to appear.
[00:24:11]                 │ debg Waiting up to 100000ms for login page...
[00:24:11]                 │ debg browser[INFO] http://localhost:61151/logout?_t=1614785515027 341 Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'unsafe-eval' 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-P5polb1UreUSOe5V/Pv7tc+yeZuJXiOi/3fqhGsU7BE='), or a nonce ('nonce-...') is required to enable inline execution.
[00:24:11]                 │
[00:24:11]                 │ debg browser[INFO] http://localhost:61151/bootstrap.js 42:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:24:11]                 │ debg Find.existsByDisplayedByCssSelector('.login-form') with timeout=2500
[00:24:13]                 │ERROR browser[SEVERE] http://localhost:61151/internal/security/me - Failed to load resource: the server responded with a status of 401 (Unauthorized)
[00:24:13]                 │ debg browser[INFO] http://localhost:61151/login?msg=LOGGED_OUT 341 Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'unsafe-eval' 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-P5polb1UreUSOe5V/Pv7tc+yeZuJXiOi/3fqhGsU7BE='), or a nonce ('nonce-...') is required to enable inline execution.
[00:24:13]                 │
[00:24:13]                 │ debg browser[INFO] http://localhost:61151/bootstrap.js 42:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:24:13]                 │ERROR browser[SEVERE] http://localhost:61151/internal/spaces/_active_space - Failed to load resource: the server responded with a status of 401 (Unauthorized)
[00:24:13]                 │ERROR browser[SEVERE] http://localhost:61151/internal/security/me - Failed to load resource: the server responded with a status of 401 (Unauthorized)
[00:24:13]                 │ debg browser[INFO] http://localhost:61151/40233/bundles/core/core.entry.js 12:159412 "Detected an unhandled Promise rejection.
[00:24:13]                 │      Error: Unauthorized"
[00:24:13]                 │ERROR browser[SEVERE] http://localhost:61151/40233/bundles/core/core.entry.js 5:3002 
[00:24:13]                 │ERROR browser[SEVERE] http://localhost:61151/api/licensing/info - Failed to load resource: the server responded with a status of 401 (Unauthorized)
[00:24:13]                 │ debg --- retry.tryForTime error: .login-form is not displayed
[00:24:14]                 │ debg Find.existsByDisplayedByCssSelector('.login-form') with timeout=2500
[00:24:14]                 │ debg navigating to home url: http://localhost:61151/app/home#/
[00:24:14]                 │ debg navigate to: http://localhost:61151/app/home#/
[00:24:15]                 │ debg browser[INFO] http://localhost:61151/login?next=%2Fapp%2Fhome%3F_t%3D1614785518708#/ 341 Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'unsafe-eval' 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-P5polb1UreUSOe5V/Pv7tc+yeZuJXiOi/3fqhGsU7BE='), or a nonce ('nonce-...') is required to enable inline execution.
[00:24:15]                 │
[00:24:15]                 │ debg browser[INFO] http://localhost:61151/bootstrap.js 42:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:24:15]                 │ debg ... sleep(700) start
[00:24:15]                 │ debg ... sleep(700) end
[00:24:15]                 │ debg returned from get, calling refresh
[00:24:16]                 │ERROR browser[SEVERE] http://localhost:61151/internal/spaces/_active_space - Failed to load resource: the server responded with a status of 401 (Unauthorized)
[00:24:16]                 │ debg browser[INFO] http://localhost:61151/login?next=%2Fapp%2Fhome%3F_t%3D1614785518708#/ 341 Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'unsafe-eval' 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-P5polb1UreUSOe5V/Pv7tc+yeZuJXiOi/3fqhGsU7BE='), or a nonce ('nonce-...') is required to enable inline execution.
[00:24:16]                 │
[00:24:16]                 │ debg browser[INFO] http://localhost:61151/bootstrap.js 42:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:24:16]                 │ debg currentUrl = http://localhost:61151/login?next=%2Fapp%2Fhome%3F_t%3D1614785518708#/
[00:24:16]                 │          appUrl = http://localhost:61151/app/home#/
[00:24:16]                 │ debg TestSubjects.find(kibanaChrome)
[00:24:16]                 │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:24:16]                 │ debg Found login page
[00:24:16]                 │ debg TestSubjects.setValue(loginUsername, test_user)
[00:24:16]                 │ debg TestSubjects.click(loginUsername)
[00:24:16]                 │ debg Find.clickByCssSelector('[data-test-subj="loginUsername"]') with timeout=10000
[00:24:16]                 │ debg Find.findByCssSelector('[data-test-subj="loginUsername"]') with timeout=10000
[00:24:16]                 │ERROR browser[SEVERE] http://localhost:61151/internal/spaces/_active_space - Failed to load resource: the server responded with a status of 401 (Unauthorized)
[00:24:16]                 │ debg browser[INFO] http://localhost:61151/40233/bundles/core/core.entry.js 12:159412 "Detected an unhandled Promise rejection.
[00:24:16]                 │      Error: Unauthorized"
[00:24:16]                 │ERROR browser[SEVERE] http://localhost:61151/40233/bundles/core/core.entry.js 5:3002 
[00:24:16]                 │ERROR browser[SEVERE] http://localhost:61151/api/licensing/info - Failed to load resource: the server responded with a status of 401 (Unauthorized)
[00:24:16]                 │ERROR browser[SEVERE] http://localhost:61151/internal/security/me - Failed to load resource: the server responded with a status of 401 (Unauthorized)
[00:24:16]                 │ debg TestSubjects.setValue(loginPassword, changeme)
[00:24:16]                 │ debg TestSubjects.click(loginPassword)
[00:24:16]                 │ debg Find.clickByCssSelector('[data-test-subj="loginPassword"]') with timeout=10000
[00:24:16]                 │ debg Find.findByCssSelector('[data-test-subj="loginPassword"]') with timeout=10000
[00:24:17]                 │ debg TestSubjects.click(loginSubmit)
[00:24:17]                 │ debg Find.clickByCssSelector('[data-test-subj="loginSubmit"]') with timeout=10000
[00:24:17]                 │ debg Find.findByCssSelector('[data-test-subj="loginSubmit"]') with timeout=10000
[00:24:17]                 │ debg Find.waitForDeletedByCssSelector('.kibanaWelcomeLogo') with timeout=10000
[00:24:17]                 │ proc [kibana]   log   [15:32:00.875] [info][plugins][routes][security] Logging in with provider "basic" (basic)
[00:24:17]                 │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:24:17]                 │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"] nav:not(.ng-hide)') with timeout=60000
[00:24:19]                 │ debg browser[INFO] http://localhost:61151/app/home?_t=1614785518708#/ 341 Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'unsafe-eval' 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-P5polb1UreUSOe5V/Pv7tc+yeZuJXiOi/3fqhGsU7BE='), or a nonce ('nonce-...') is required to enable inline execution.
[00:24:19]                 │
[00:24:19]                 │ debg browser[INFO] http://localhost:61151/bootstrap.js 42:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:24:19]                 │ debg browser[INFO] http://localhost:61151/app/home?_t=1614785522884#/ 341 Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'unsafe-eval' 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-P5polb1UreUSOe5V/Pv7tc+yeZuJXiOi/3fqhGsU7BE='), or a nonce ('nonce-...') is required to enable inline execution.
[00:24:19]                 │
[00:24:19]                 │ debg browser[INFO] http://localhost:61151/bootstrap.js 42:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:24:19]                 │ debg Finished login process currentUrl = http://localhost:61151/app/home#/
[00:24:19]                 │ debg ... sleep(501) start
[00:24:20]                 │ debg ... sleep(501) end
[00:24:20]                 │ debg in navigateTo url = http://localhost:61151/app/home#/
[00:24:20]                 │ debg TestSubjects.exists(statusPageContainer)
[00:24:20]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="statusPageContainer"]') with timeout=2500
[00:24:22]                 │ debg --- retry.tryForTime error: [data-test-subj="statusPageContainer"] is not displayed
[00:24:23]               └-: global all privileges (aka kibana_admin)
[00:24:23]                 └-> "before all" hook for "should show the Stack Management nav link"
[00:24:23]                 └-> "before all" hook for "should show the Stack Management nav link"
[00:24:23]                   │ debg set roles = kibana_admin
[00:24:23]                   │ debg creating user test_user
[00:24:23]                   │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614781778062050246] updated user [test_user]
[00:24:23]                   │ debg created user test_user
[00:24:23]                   │ debg TestSubjects.exists(kibanaChrome)
[00:24:23]                   │ debg Find.existsByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=2500
[00:24:24]                   │ debg TestSubjects.find(kibanaChrome)
[00:24:24]                   │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=100000
[00:24:24]                   │ debg browser[INFO] http://localhost:61151/app/home?_t=1614785522884#/ 341 Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'unsafe-eval' 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-P5polb1UreUSOe5V/Pv7tc+yeZuJXiOi/3fqhGsU7BE='), or a nonce ('nonce-...') is required to enable inline execution.
[00:24:24]                   │
[00:24:24]                   │ debg browser[INFO] http://localhost:61151/bootstrap.js 42:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:24:24]                 └-> should show the Stack Management nav link
[00:24:24]                   └-> "before each" hook: global before each for "should show the Stack Management nav link"
[00:24:24]                   │ debg isGlobalLoadingIndicatorVisible
[00:24:24]                   │ debg TestSubjects.exists(globalLoadingIndicator)
[00:24:24]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="globalLoadingIndicator"]') with timeout=1500
[00:24:26]                   │ debg --- retry.tryForTime error: [data-test-subj="globalLoadingIndicator"] is not displayed
[00:24:26]                   │ debg TestSubjects.exists(globalLoadingIndicator-hidden)
[00:24:26]                   │ debg Find.existsByCssSelector('[data-test-subj="globalLoadingIndicator-hidden"]') with timeout=100000
[00:24:26]                   │ debg TestSubjects.exists(collapsibleNav)
[00:24:26]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="collapsibleNav"]') with timeout=2500
[00:24:29]                   │ debg --- retry.tryForTime error: [data-test-subj="collapsibleNav"] is not displayed
[00:24:29]                   │ debg TestSubjects.click(toggleNavButton)
[00:24:29]                   │ debg Find.clickByCssSelector('[data-test-subj="toggleNavButton"]') with timeout=10000
[00:24:29]                   │ debg Find.findByCssSelector('[data-test-subj="toggleNavButton"]') with timeout=10000
[00:24:29]                   │ debg TestSubjects.find(collapsibleNav)
[00:24:29]                   │ debg Find.findByCssSelector('[data-test-subj="collapsibleNav"]') with timeout=10000
[00:24:30]                   │ debg Find.existsByCssSelector('[data-test-subj=collapsibleNav] > button') with timeout=2500
[00:24:30]                   │ debg Find.findByCssSelector('[data-test-subj=collapsibleNav] > button') with timeout=10000
[00:24:30]                   │ debg Find.clickByCssSelector('[data-test-subj=collapsibleNav] > button') with timeout=10000
[00:24:30]                   │ debg Find.findByCssSelector('[data-test-subj=collapsibleNav] > button') with timeout=10000
[00:24:30]                   └- ✓ pass  (5.6s) "transform feature controls security global all privileges (aka kibana_admin) should show the Stack Management nav link"
[00:24:30]                 └-> should not render the "Stack" section
[00:24:30]                   └-> "before each" hook: global before each for "should not render the "Stack" section"
[00:24:30]                   │ debg navigating to management url: http://localhost:61151/app/management
[00:24:30]                   │ debg navigate to: http://localhost:61151/app/management
[00:24:30]                   │ debg browser[INFO] http://localhost:61151/app/management?_t=1614785534003 341 Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'unsafe-eval' 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-P5polb1UreUSOe5V/Pv7tc+yeZuJXiOi/3fqhGsU7BE='), or a nonce ('nonce-...') is required to enable inline execution.
[00:24:30]                   │
[00:24:30]                   │ debg browser[INFO] http://localhost:61151/bootstrap.js 42:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:24:30]                   │ debg ... sleep(700) start
[00:24:31]                   │ debg ... sleep(700) end
[00:24:31]                   │ debg returned from get, calling refresh
[00:24:31]                   │ debg browser[INFO] http://localhost:61151/app/management?_t=1614785534003 341 Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'unsafe-eval' 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-P5polb1UreUSOe5V/Pv7tc+yeZuJXiOi/3fqhGsU7BE='), or a nonce ('nonce-...') is required to enable inline execution.
[00:24:31]                   │
[00:24:31]                   │ debg browser[INFO] http://localhost:61151/bootstrap.js 42:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:24:31]                   │ debg currentUrl = http://localhost:61151/app/management
[00:24:31]                   │          appUrl = http://localhost:61151/app/management
[00:24:31]                   │ debg TestSubjects.find(kibanaChrome)
[00:24:31]                   │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:24:32]                   │ debg ... sleep(501) start
[00:24:32]                   │ debg ... sleep(501) end
[00:24:32]                   │ debg in navigateTo url = http://localhost:61151/app/management
[00:24:32]                   │ debg TestSubjects.exists(statusPageContainer)
[00:24:32]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="statusPageContainer"]') with timeout=2500
[00:24:35]                   │ debg --- retry.tryForTime error: [data-test-subj="statusPageContainer"] is not displayed
[00:24:35]                   │ debg Find.allByCssSelector('.mgtSideBarNav > .euiSideNav__content > .euiSideNavItem') with timeout=10000
[00:24:36]                   │ info Taking screenshot "/dev/shm/workspace/parallel/15/kibana/x-pack/test/functional/screenshots/failure/transform feature controls security global all privileges _aka kibana_admin_ should not render the _Stack_ section.png"
[00:24:36]                   │ info Current URL is: http://localhost:61151/app/management
[00:24:36]                   │ info Saving page source to: /dev/shm/workspace/parallel/15/kibana/x-pack/test/functional/failure_debug/html/transform feature controls security global all privileges _aka kibana_admin_ should not render the _Stack_ section.html
[00:24:36]                   └- ✖ fail: transform feature controls security global all privileges (aka kibana_admin) should not render the "Stack" section
[00:24:36]                   │       Error: expected [ 'ingest', 'insightsAndAlerting', 'kibana' ] to sort of equal [ 'insightsAndAlerting', 'kibana' ]
[00:24:36]                   │       + expected - actual
[00:24:36]                   │ 
[00:24:36]                   │        [
[00:24:36]                   │       -  "ingest"
[00:24:36]                   │          "insightsAndAlerting"
[00:24:36]                   │          "kibana"
[00:24:36]                   │        ]
[00:24:36]                   │       
[00:24:36]                   │       at Assertion.assert (/dev/shm/workspace/parallel/15/kibana/packages/kbn-expect/expect.js:100:11)
[00:24:36]                   │       at Assertion.eql (/dev/shm/workspace/parallel/15/kibana/packages/kbn-expect/expect.js:244:8)
[00:24:36]                   │       at Context.<anonymous> (test/functional/apps/transform/feature_controls/transform_security.ts:45:29)
[00:24:36]                   │       at runMicrotasks (<anonymous>)
[00:24:36]                   │       at processTicksAndRejections (internal/process/task_queues.js:93:5)
[00:24:36]                   │       at Object.apply (/dev/shm/workspace/parallel/15/kibana/packages/kbn-test/src/functional_test_runner/lib/mocha/wrap_function.js:73:16)
[00:24:36]                   │ 
[00:24:36]                   │ 

Stack Trace

Error: expected [ 'ingest', 'insightsAndAlerting', 'kibana' ] to sort of equal [ 'insightsAndAlerting', 'kibana' ]
    at Assertion.assert (/dev/shm/workspace/parallel/15/kibana/packages/kbn-expect/expect.js:100:11)
    at Assertion.eql (/dev/shm/workspace/parallel/15/kibana/packages/kbn-expect/expect.js:244:8)
    at Context.<anonymous> (test/functional/apps/transform/feature_controls/transform_security.ts:45:29)
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (internal/process/task_queues.js:93:5)
    at Object.apply (/dev/shm/workspace/parallel/15/kibana/packages/kbn-test/src/functional_test_runner/lib/mocha/wrap_function.js:73:16) {
  actual: '[\n  "ingest"\n  "insightsAndAlerting"\n  "kibana"\n]',
  expected: '[\n  "insightsAndAlerting"\n  "kibana"\n]',
  showDiff: true
}

Kibana Pipeline / general / Chrome X-Pack UI Functional Tests.x-pack/test/functional/apps/transform/feature_controls/transform_security·ts.transform feature controls security global all privileges (aka kibana_admin) should not render the "Stack" section

Link to Jenkins

Standard Out

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

[00:00:00]       │
[00:16:36]         └-: transform
[00:16:36]           └-> "before all" hook in "transform"
[00:16:36]           └-> "before all" hook in "transform"
[00:16:36]             │ debg creating role transform_source
[00:16:36]             │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614781778062050246] added role [transform_source]
[00:16:36]             │ debg creating role transform_dest
[00:16:36]             │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614781778062050246] added role [transform_dest]
[00:16:36]             │ debg creating role transform_dest_readonly
[00:16:36]             │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614781778062050246] added role [transform_dest_readonly]
[00:16:36]             │ debg creating role transform_ui_extras
[00:16:36]             │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614781778062050246] added role [transform_ui_extras]
[00:16:36]             │ debg creating user transform_poweruser
[00:16:36]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614781778062050246] added user [transform_poweruser]
[00:16:36]             │ debg created user transform_poweruser
[00:16:36]             │ debg creating user transform_viewer
[00:16:36]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614781778062050246] added user [transform_viewer]
[00:16:36]             │ debg created user transform_viewer
[00:16:36]           └-: feature controls
[00:16:36]             └-> "before all" hook in "feature controls"
[00:16:36]             └-: security
[00:16:36]               └-> "before all" hook in "security"
[00:16:36]               └-> "before all" hook in "security"
[00:16:36]                 │ info [empty_kibana] Loading "mappings.json"
[00:16:37]                 │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614781778062050246] [.kibana_pre6.5.0_001/C7a4vEBpQaOIwWQHyJupgQ] deleting index
[00:16:37]                 │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614781778062050246] [.kibana_task_manager_8.0.0_001/N4pDKHdjRNWwK-trrSANig] deleting index
[00:16:37]                 │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614781778062050246] [.kibana_8.0.0_001/x7WvgaOqQpCYaqao_gyLkQ] deleting index
[00:16:37]                 │ info [empty_kibana] Deleted existing index ".kibana_8.0.0_001"
[00:16:37]                 │ info [empty_kibana] Deleted existing index ".kibana_task_manager_8.0.0_001"
[00:16:37]                 │ info [empty_kibana] Deleted existing index ".kibana_pre6.5.0_001"
[00:16:37]                 │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614781778062050246] [.kibana] creating index, cause [api], templates [], shards [1]/[1]
[00:16:37]                 │ info [empty_kibana] Created index ".kibana"
[00:16:37]                 │ debg [empty_kibana] ".kibana" settings {"index":{"number_of_replicas":"1","number_of_shards":"1"}}
[00:16:37]                 │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614781778062050246] [.kibana/MnZDUIwqTiyyzQDTAebKPw] update_mapping [_doc]
[00:16:37]                 │ debg Migrating saved objects
[00:16:37]                 │ proc [kibana]   log   [15:20:38.377] [info][savedobjects-service] [.kibana_task_manager] INIT -> CREATE_NEW_TARGET
[00:16:37]                 │ proc [kibana]   log   [15:20:38.381] [info][savedobjects-service] [.kibana] INIT -> LEGACY_SET_WRITE_BLOCK
[00:16:37]                 │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614781778062050246] [.kibana_task_manager_8.0.0_001] creating index, cause [api], templates [], shards [1]/[1]
[00:16:37]                 │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614781778062050246] updating number_of_replicas to [0] for indices [.kibana_task_manager_8.0.0_001]
[00:16:37]                 │ info [o.e.c.m.MetadataIndexStateService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614781778062050246] adding block write to indices [[.kibana/MnZDUIwqTiyyzQDTAebKPw]]
[00:16:37]                 │ info [o.e.c.m.MetadataIndexStateService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614781778062050246] completed adding block write to indices [.kibana]
[00:16:37]                 │ proc [kibana]   log   [15:20:38.437] [info][savedobjects-service] [.kibana_task_manager] CREATE_NEW_TARGET -> MARK_VERSION_INDEX_READY
[00:16:37]                 │ proc [kibana]   log   [15:20:38.450] [info][savedobjects-service] [.kibana] LEGACY_SET_WRITE_BLOCK -> LEGACY_CREATE_REINDEX_TARGET
[00:16:37]                 │ proc [kibana]   log   [15:20:38.465] [info][savedobjects-service] [.kibana_task_manager] MARK_VERSION_INDEX_READY -> DONE
[00:16:37]                 │ proc [kibana]   log   [15:20:38.465] [info][savedobjects-service] [.kibana_task_manager] Migration completed after 90ms
[00:16:37]                 │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614781778062050246] [.kibana_pre6.5.0_001] creating index, cause [api], templates [], shards [1]/[1]
[00:16:37]                 │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614781778062050246] updating number_of_replicas to [0] for indices [.kibana_pre6.5.0_001]
[00:16:37]                 │ proc [kibana]   log   [15:20:38.514] [info][savedobjects-service] [.kibana] LEGACY_CREATE_REINDEX_TARGET -> LEGACY_REINDEX
[00:16:37]                 │ info [o.e.t.LoggingTaskListener] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614781778062050246] 32210 finished with response BulkByScrollResponse[took=1.4ms,timed_out=false,sliceId=null,updated=0,created=0,deleted=0,batches=0,versionConflicts=0,noops=0,retries=0,throttledUntil=0s,bulk_failures=[],search_failures=[]]
[00:16:37]                 │ proc [kibana]   log   [15:20:38.520] [info][savedobjects-service] [.kibana] LEGACY_REINDEX -> LEGACY_REINDEX_WAIT_FOR_TASK
[00:16:37]                 │ proc [kibana]   log   [15:20:38.527] [info][savedobjects-service] [.kibana] LEGACY_REINDEX_WAIT_FOR_TASK -> LEGACY_DELETE
[00:16:37]                 │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614781778062050246] [.kibana/MnZDUIwqTiyyzQDTAebKPw] deleting index
[00:16:37]                 │ proc [kibana]   log   [15:20:38.564] [info][savedobjects-service] [.kibana] LEGACY_DELETE -> SET_SOURCE_WRITE_BLOCK
[00:16:37]                 │ info [o.e.c.m.MetadataIndexStateService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614781778062050246] adding block write to indices [[.kibana_pre6.5.0_001/b716NqjCQ5SWMYtzGmo6eA]]
[00:16:37]                 │ info [o.e.c.m.MetadataIndexStateService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614781778062050246] completed adding block write to indices [.kibana_pre6.5.0_001]
[00:16:37]                 │ proc [kibana]   log   [15:20:38.597] [info][savedobjects-service] [.kibana] SET_SOURCE_WRITE_BLOCK -> CREATE_REINDEX_TEMP
[00:16:37]                 │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614781778062050246] [.kibana_8.0.0_reindex_temp] creating index, cause [api], templates [], shards [1]/[1]
[00:16:37]                 │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614781778062050246] updating number_of_replicas to [0] for indices [.kibana_8.0.0_reindex_temp]
[00:16:37]                 │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614781778062050246] current.health="GREEN" message="Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[.kibana_8.0.0_reindex_temp][0]]])." previous.health="YELLOW" reason="shards started [[.kibana_8.0.0_reindex_temp][0]]"
[00:16:37]                 │ proc [kibana]   log   [15:20:38.647] [info][savedobjects-service] [.kibana] CREATE_REINDEX_TEMP -> REINDEX_SOURCE_TO_TEMP
[00:16:37]                 │ info [o.e.t.LoggingTaskListener] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614781778062050246] 32239 finished with response BulkByScrollResponse[took=1.6ms,timed_out=false,sliceId=null,updated=0,created=0,deleted=0,batches=0,versionConflicts=0,noops=0,retries=0,throttledUntil=0s,bulk_failures=[],search_failures=[]]
[00:16:37]                 │ proc [kibana]   log   [15:20:38.652] [info][savedobjects-service] [.kibana] REINDEX_SOURCE_TO_TEMP -> REINDEX_SOURCE_TO_TEMP_WAIT_FOR_TASK
[00:16:37]                 │ proc [kibana]   log   [15:20:38.657] [info][savedobjects-service] [.kibana] REINDEX_SOURCE_TO_TEMP_WAIT_FOR_TASK -> SET_TEMP_WRITE_BLOCK
[00:16:37]                 │ info [o.e.c.m.MetadataIndexStateService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614781778062050246] adding block write to indices [[.kibana_8.0.0_reindex_temp/JNRHZYcSQ9mNksTFaDtT1Q]]
[00:16:37]                 │ info [o.e.c.m.MetadataIndexStateService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614781778062050246] completed adding block write to indices [.kibana_8.0.0_reindex_temp]
[00:16:37]                 │ proc [kibana]   log   [15:20:38.694] [info][savedobjects-service] [.kibana] SET_TEMP_WRITE_BLOCK -> CLONE_TEMP_TO_TARGET
[00:16:37]                 │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614781778062050246] applying create index request using existing index [.kibana_8.0.0_reindex_temp] metadata
[00:16:37]                 │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614781778062050246] [.kibana_8.0.0_001] creating index, cause [clone_index], templates [], shards [1]/[1]
[00:16:37]                 │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614781778062050246] updating number_of_replicas to [0] for indices [.kibana_8.0.0_001]
[00:16:37]                 │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614781778062050246] [.kibana_8.0.0_001/Uu7QP3gSTJ2ewoQK_fhsBw] create_mapping
[00:16:37]                 │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614781778062050246] current.health="GREEN" message="Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[.kibana_8.0.0_001][0]]])." previous.health="YELLOW" reason="shards started [[.kibana_8.0.0_001][0]]"
[00:16:37]                 │ proc [kibana]   log   [15:20:38.785] [info][savedobjects-service] [.kibana] CLONE_TEMP_TO_TARGET -> OUTDATED_DOCUMENTS_SEARCH
[00:16:37]                 │ proc [kibana]   log   [15:20:38.793] [info][savedobjects-service] [.kibana] OUTDATED_DOCUMENTS_SEARCH -> UPDATE_TARGET_MAPPINGS
[00:16:37]                 │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614781778062050246] [.kibana_8.0.0_001/Uu7QP3gSTJ2ewoQK_fhsBw] update_mapping [_doc]
[00:16:37]                 │ info [o.e.t.LoggingTaskListener] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614781778062050246] 32277 finished with response BulkByScrollResponse[took=1.4ms,timed_out=false,sliceId=null,updated=0,created=0,deleted=0,batches=0,versionConflicts=0,noops=0,retries=0,throttledUntil=0s,bulk_failures=[],search_failures=[]]
[00:16:37]                 │ proc [kibana]   log   [15:20:38.842] [info][savedobjects-service] [.kibana] UPDATE_TARGET_MAPPINGS -> UPDATE_TARGET_MAPPINGS_WAIT_FOR_TASK
[00:16:37]                 │ proc [kibana]   log   [15:20:38.848] [info][savedobjects-service] [.kibana] UPDATE_TARGET_MAPPINGS_WAIT_FOR_TASK -> MARK_VERSION_INDEX_READY
[00:16:37]                 │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614781778062050246] [.kibana_8.0.0_reindex_temp/JNRHZYcSQ9mNksTFaDtT1Q] deleting index
[00:16:37]                 │ proc [kibana]   log   [15:20:38.891] [info][savedobjects-service] [.kibana] MARK_VERSION_INDEX_READY -> DONE
[00:16:37]                 │ proc [kibana]   log   [15:20:38.891] [info][savedobjects-service] [.kibana] Migration completed after 517ms
[00:16:37]                 │ debg [empty_kibana] Migrated Kibana index after loading Kibana data
[00:16:37]                 │ debg [empty_kibana] Ensured that default space exists in .kibana
[00:16:37]                 │ debg applying update to kibana config: {"accessibility:disableAnimations":true,"dateFormat:tz":"UTC","visualization:visualize:legacyChartsLibrary":true}
[00:16:37]                 │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614781778062050246] [.kibana_8.0.0_001/Uu7QP3gSTJ2ewoQK_fhsBw] update_mapping [_doc]
[00:16:39]                 │ debg SecurityPage.forceLogout
[00:16:39]                 │ debg Find.existsByDisplayedByCssSelector('.login-form') with timeout=100
[00:16:39]                 │ debg --- retry.tryForTime error: .login-form is not displayed
[00:16:40]                 │ debg Redirecting to /logout to force the logout
[00:16:40]                 │ debg Waiting on the login form to appear
[00:16:40]                 │ debg Waiting for Login Page to appear.
[00:16:40]                 │ debg Waiting up to 100000ms for login page...
[00:16:40]                 │ debg browser[INFO] http://localhost:61211/logout?_t=1614784841375 341 Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'unsafe-eval' 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-P5polb1UreUSOe5V/Pv7tc+yeZuJXiOi/3fqhGsU7BE='), or a nonce ('nonce-...') is required to enable inline execution.
[00:16:40]                 │
[00:16:40]                 │ debg browser[INFO] http://localhost:61211/bootstrap.js 42:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:16:40]                 │ debg Find.existsByDisplayedByCssSelector('.login-form') with timeout=2500
[00:16:43]                 │ERROR browser[SEVERE] http://localhost:61211/internal/security/me - Failed to load resource: the server responded with a status of 401 (Unauthorized)
[00:16:43]                 │ debg browser[INFO] http://localhost:61211/login?msg=LOGGED_OUT 341 Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'unsafe-eval' 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-P5polb1UreUSOe5V/Pv7tc+yeZuJXiOi/3fqhGsU7BE='), or a nonce ('nonce-...') is required to enable inline execution.
[00:16:43]                 │
[00:16:43]                 │ debg browser[INFO] http://localhost:61211/bootstrap.js 42:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:16:43]                 │ debg --- retry.tryForTime error: .login-form is not displayed
[00:16:43]                 │ERROR browser[SEVERE] http://localhost:61211/internal/spaces/_active_space - Failed to load resource: the server responded with a status of 401 (Unauthorized)
[00:16:43]                 │ERROR browser[SEVERE] http://localhost:61211/internal/security/me - Failed to load resource: the server responded with a status of 401 (Unauthorized)
[00:16:43]                 │ debg browser[INFO] http://localhost:61211/40233/bundles/core/core.entry.js 12:159412 "Detected an unhandled Promise rejection.
[00:16:43]                 │      Error: Unauthorized"
[00:16:43]                 │ERROR browser[SEVERE] http://localhost:61211/40233/bundles/core/core.entry.js 5:3002 
[00:16:43]                 │ERROR browser[SEVERE] http://localhost:61211/api/licensing/info - Failed to load resource: the server responded with a status of 401 (Unauthorized)
[00:16:44]                 │ debg Find.existsByDisplayedByCssSelector('.login-form') with timeout=2500
[00:16:44]                 │ debg navigating to home url: http://localhost:61211/app/home#/
[00:16:44]                 │ debg navigate to: http://localhost:61211/app/home#/
[00:16:44]                 │ debg browser[INFO] http://localhost:61211/login?next=%2Fapp%2Fhome%3F_t%3D1614784845337#/ 341 Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'unsafe-eval' 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-P5polb1UreUSOe5V/Pv7tc+yeZuJXiOi/3fqhGsU7BE='), or a nonce ('nonce-...') is required to enable inline execution.
[00:16:44]                 │
[00:16:44]                 │ debg browser[INFO] http://localhost:61211/bootstrap.js 42:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:16:44]                 │ debg ... sleep(700) start
[00:16:44]                 │ debg ... sleep(700) end
[00:16:44]                 │ debg returned from get, calling refresh
[00:16:45]                 │ERROR browser[SEVERE] http://localhost:61211/internal/spaces/_active_space - Failed to load resource: the server responded with a status of 401 (Unauthorized)
[00:16:45]                 │ debg browser[INFO] http://localhost:61211/login?next=%2Fapp%2Fhome%3F_t%3D1614784845337#/ 341 Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'unsafe-eval' 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-P5polb1UreUSOe5V/Pv7tc+yeZuJXiOi/3fqhGsU7BE='), or a nonce ('nonce-...') is required to enable inline execution.
[00:16:45]                 │
[00:16:45]                 │ debg browser[INFO] http://localhost:61211/bootstrap.js 42:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:16:45]                 │ debg currentUrl = http://localhost:61211/login?next=%2Fapp%2Fhome%3F_t%3D1614784845337#/
[00:16:45]                 │          appUrl = http://localhost:61211/app/home#/
[00:16:45]                 │ debg TestSubjects.find(kibanaChrome)
[00:16:45]                 │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:16:45]                 │ debg Found login page
[00:16:45]                 │ debg TestSubjects.setValue(loginUsername, test_user)
[00:16:45]                 │ debg TestSubjects.click(loginUsername)
[00:16:45]                 │ debg Find.clickByCssSelector('[data-test-subj="loginUsername"]') with timeout=10000
[00:16:45]                 │ debg Find.findByCssSelector('[data-test-subj="loginUsername"]') with timeout=10000
[00:16:45]                 │ERROR browser[SEVERE] http://localhost:61211/internal/spaces/_active_space - Failed to load resource: the server responded with a status of 401 (Unauthorized)
[00:16:45]                 │ debg browser[INFO] http://localhost:61211/40233/bundles/core/core.entry.js 12:159412 "Detected an unhandled Promise rejection.
[00:16:45]                 │      Error: Unauthorized"
[00:16:45]                 │ERROR browser[SEVERE] http://localhost:61211/40233/bundles/core/core.entry.js 5:3002 
[00:16:45]                 │ERROR browser[SEVERE] http://localhost:61211/api/licensing/info - Failed to load resource: the server responded with a status of 401 (Unauthorized)
[00:16:45]                 │ERROR browser[SEVERE] http://localhost:61211/internal/security/me - Failed to load resource: the server responded with a status of 401 (Unauthorized)
[00:16:45]                 │ debg TestSubjects.setValue(loginPassword, changeme)
[00:16:45]                 │ debg TestSubjects.click(loginPassword)
[00:16:45]                 │ debg Find.clickByCssSelector('[data-test-subj="loginPassword"]') with timeout=10000
[00:16:45]                 │ debg Find.findByCssSelector('[data-test-subj="loginPassword"]') with timeout=10000
[00:16:46]                 │ debg TestSubjects.click(loginSubmit)
[00:16:46]                 │ debg Find.clickByCssSelector('[data-test-subj="loginSubmit"]') with timeout=10000
[00:16:46]                 │ debg Find.findByCssSelector('[data-test-subj="loginSubmit"]') with timeout=10000
[00:16:46]                 │ debg Find.waitForDeletedByCssSelector('.kibanaWelcomeLogo') with timeout=10000
[00:16:46]                 │ proc [kibana]   log   [15:20:47.406] [info][plugins][routes][security] Logging in with provider "basic" (basic)
[00:16:46]                 │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:16:46]                 │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"] nav:not(.ng-hide)') with timeout=60000
[00:16:48]                 │ debg browser[INFO] http://localhost:61211/app/home?_t=1614784845337#/ 341 Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'unsafe-eval' 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-P5polb1UreUSOe5V/Pv7tc+yeZuJXiOi/3fqhGsU7BE='), or a nonce ('nonce-...') is required to enable inline execution.
[00:16:48]                 │
[00:16:48]                 │ debg browser[INFO] http://localhost:61211/bootstrap.js 42:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:16:48]                 │ debg browser[INFO] http://localhost:61211/app/home?_t=1614784849541#/ 341 Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'unsafe-eval' 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-P5polb1UreUSOe5V/Pv7tc+yeZuJXiOi/3fqhGsU7BE='), or a nonce ('nonce-...') is required to enable inline execution.
[00:16:48]                 │
[00:16:48]                 │ debg browser[INFO] http://localhost:61211/bootstrap.js 42:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:16:49]                 │ debg Finished login process currentUrl = http://localhost:61211/app/home#/
[00:16:49]                 │ debg ... sleep(501) start
[00:16:49]                 │ debg ... sleep(501) end
[00:16:49]                 │ debg in navigateTo url = http://localhost:61211/app/home#/
[00:16:49]                 │ debg TestSubjects.exists(statusPageContainer)
[00:16:49]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="statusPageContainer"]') with timeout=2500
[00:16:52]                 │ debg --- retry.tryForTime error: [data-test-subj="statusPageContainer"] is not displayed
[00:16:52]               └-: global all privileges (aka kibana_admin)
[00:16:52]                 └-> "before all" hook for "should show the Stack Management nav link"
[00:16:52]                 └-> "before all" hook for "should show the Stack Management nav link"
[00:16:52]                   │ debg set roles = kibana_admin
[00:16:52]                   │ debg creating user test_user
[00:16:52]                   │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614781778062050246] updated user [test_user]
[00:16:52]                   │ debg created user test_user
[00:16:52]                   │ debg TestSubjects.exists(kibanaChrome)
[00:16:52]                   │ debg Find.existsByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=2500
[00:16:53]                   │ debg TestSubjects.find(kibanaChrome)
[00:16:53]                   │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=100000
[00:16:53]                   │ debg browser[INFO] http://localhost:61211/app/home?_t=1614784849541#/ 341 Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'unsafe-eval' 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-P5polb1UreUSOe5V/Pv7tc+yeZuJXiOi/3fqhGsU7BE='), or a nonce ('nonce-...') is required to enable inline execution.
[00:16:53]                   │
[00:16:53]                   │ debg browser[INFO] http://localhost:61211/bootstrap.js 42:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:16:53]                 └-> should show the Stack Management nav link
[00:16:53]                   └-> "before each" hook: global before each for "should show the Stack Management nav link"
[00:16:53]                   │ debg isGlobalLoadingIndicatorVisible
[00:16:53]                   │ debg TestSubjects.exists(globalLoadingIndicator)
[00:16:53]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="globalLoadingIndicator"]') with timeout=1500
[00:16:55]                   │ debg --- retry.tryForTime error: [data-test-subj="globalLoadingIndicator"] is not displayed
[00:16:55]                   │ debg TestSubjects.exists(globalLoadingIndicator-hidden)
[00:16:55]                   │ debg Find.existsByCssSelector('[data-test-subj="globalLoadingIndicator-hidden"]') with timeout=100000
[00:16:55]                   │ debg TestSubjects.exists(collapsibleNav)
[00:16:55]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="collapsibleNav"]') with timeout=2500
[00:16:58]                   │ debg --- retry.tryForTime error: [data-test-subj="collapsibleNav"] is not displayed
[00:16:58]                   │ debg TestSubjects.click(toggleNavButton)
[00:16:58]                   │ debg Find.clickByCssSelector('[data-test-subj="toggleNavButton"]') with timeout=10000
[00:16:58]                   │ debg Find.findByCssSelector('[data-test-subj="toggleNavButton"]') with timeout=10000
[00:16:59]                   │ debg TestSubjects.find(collapsibleNav)
[00:16:59]                   │ debg Find.findByCssSelector('[data-test-subj="collapsibleNav"]') with timeout=10000
[00:16:59]                   │ debg Find.existsByCssSelector('[data-test-subj=collapsibleNav] > button') with timeout=2500
[00:16:59]                   │ debg Find.findByCssSelector('[data-test-subj=collapsibleNav] > button') with timeout=10000
[00:16:59]                   │ debg Find.clickByCssSelector('[data-test-subj=collapsibleNav] > button') with timeout=10000
[00:16:59]                   │ debg Find.findByCssSelector('[data-test-subj=collapsibleNav] > button') with timeout=10000
[00:16:59]                   └- ✓ pass  (5.5s) "transform feature controls security global all privileges (aka kibana_admin) should show the Stack Management nav link"
[00:16:59]                 └-> should not render the "Stack" section
[00:16:59]                   └-> "before each" hook: global before each for "should not render the "Stack" section"
[00:16:59]                   │ debg navigating to management url: http://localhost:61211/app/management
[00:16:59]                   │ debg navigate to: http://localhost:61211/app/management
[00:16:59]                   │ debg browser[INFO] http://localhost:61211/app/management?_t=1614784860607 341 Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'unsafe-eval' 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-P5polb1UreUSOe5V/Pv7tc+yeZuJXiOi/3fqhGsU7BE='), or a nonce ('nonce-...') is required to enable inline execution.
[00:16:59]                   │
[00:16:59]                   │ debg browser[INFO] http://localhost:61211/bootstrap.js 42:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:16:59]                   │ debg ... sleep(700) start
[00:17:00]                   │ debg ... sleep(700) end
[00:17:00]                   │ debg returned from get, calling refresh
[00:17:00]                   │ debg browser[INFO] http://localhost:61211/app/management?_t=1614784860607 341 Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'unsafe-eval' 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-P5polb1UreUSOe5V/Pv7tc+yeZuJXiOi/3fqhGsU7BE='), or a nonce ('nonce-...') is required to enable inline execution.
[00:17:00]                   │
[00:17:00]                   │ debg browser[INFO] http://localhost:61211/bootstrap.js 42:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:17:00]                   │ debg currentUrl = http://localhost:61211/app/management
[00:17:00]                   │          appUrl = http://localhost:61211/app/management
[00:17:00]                   │ debg TestSubjects.find(kibanaChrome)
[00:17:00]                   │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:17:01]                   │ debg ... sleep(501) start
[00:17:01]                   │ debg ... sleep(501) end
[00:17:01]                   │ debg in navigateTo url = http://localhost:61211/app/management
[00:17:01]                   │ debg TestSubjects.exists(statusPageContainer)
[00:17:01]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="statusPageContainer"]') with timeout=2500
[00:17:04]                   │ debg --- retry.tryForTime error: [data-test-subj="statusPageContainer"] is not displayed
[00:17:04]                   │ debg Find.allByCssSelector('.mgtSideBarNav > .euiSideNav__content > .euiSideNavItem') with timeout=10000
[00:17:05]                   │ info Taking screenshot "/dev/shm/workspace/parallel/21/kibana/x-pack/test/functional/screenshots/failure/transform feature controls security global all privileges _aka kibana_admin_ should not render the _Stack_ section.png"
[00:17:05]                   │ info Current URL is: http://localhost:61211/app/management
[00:17:05]                   │ info Saving page source to: /dev/shm/workspace/parallel/21/kibana/x-pack/test/functional/failure_debug/html/transform feature controls security global all privileges _aka kibana_admin_ should not render the _Stack_ section.html
[00:17:05]                   └- ✖ fail: transform feature controls security global all privileges (aka kibana_admin) should not render the "Stack" section
[00:17:05]                   │       Error: expected [ 'ingest', 'insightsAndAlerting', 'kibana' ] to sort of equal [ 'insightsAndAlerting', 'kibana' ]
[00:17:05]                   │       + expected - actual
[00:17:05]                   │ 
[00:17:05]                   │        [
[00:17:05]                   │       -  "ingest"
[00:17:05]                   │          "insightsAndAlerting"
[00:17:05]                   │          "kibana"
[00:17:05]                   │        ]
[00:17:05]                   │       
[00:17:05]                   │       at Assertion.assert (/dev/shm/workspace/parallel/21/kibana/packages/kbn-expect/expect.js:100:11)
[00:17:05]                   │       at Assertion.eql (/dev/shm/workspace/parallel/21/kibana/packages/kbn-expect/expect.js:244:8)
[00:17:05]                   │       at Context.<anonymous> (test/functional/apps/transform/feature_controls/transform_security.ts:45:29)
[00:17:05]                   │       at runMicrotasks (<anonymous>)
[00:17:05]                   │       at processTicksAndRejections (internal/process/task_queues.js:93:5)
[00:17:05]                   │       at Object.apply (/dev/shm/workspace/parallel/21/kibana/packages/kbn-test/src/functional_test_runner/lib/mocha/wrap_function.js:73:16)
[00:17:05]                   │ 
[00:17:05]                   │ 

Stack Trace

Error: expected [ 'ingest', 'insightsAndAlerting', 'kibana' ] to sort of equal [ 'insightsAndAlerting', 'kibana' ]
    at Assertion.assert (/dev/shm/workspace/parallel/21/kibana/packages/kbn-expect/expect.js:100:11)
    at Assertion.eql (/dev/shm/workspace/parallel/21/kibana/packages/kbn-expect/expect.js:244:8)
    at Context.<anonymous> (test/functional/apps/transform/feature_controls/transform_security.ts:45:29)
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (internal/process/task_queues.js:93:5)
    at Object.apply (/dev/shm/workspace/parallel/21/kibana/packages/kbn-test/src/functional_test_runner/lib/mocha/wrap_function.js:73:16) {
  actual: '[\n  "ingest"\n  "insightsAndAlerting"\n  "kibana"\n]',
  expected: '[\n  "insightsAndAlerting"\n  "kibana"\n]',
  showDiff: true
}

Kibana Pipeline / general / X-Pack API Integration Tests.x-pack/test/api_integration/apis/ml/modules/setup_module·ts.apis Machine Learning modules module setup sets up module data for logs_ui_categories with prefix, startDatafeed true and estimateModelMemory true

Link to Jenkins

Standard Out

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

[00:00:00]       │
[00:00:00]         └-: apis
[00:00:00]           └-> "before all" hook in "apis"
[00:07:22]           └-: Machine Learning
[00:07:22]             └-> "before all" hook in "Machine Learning"
[00:07:22]             └-> "before all" hook in "Machine Learning"
[00:07:22]               │ debg creating role ft_ml_source
[00:07:22]               │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614781778062050246] added role [ft_ml_source]
[00:07:22]               │ debg creating role ft_ml_source_readonly
[00:07:22]               │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614781778062050246] added role [ft_ml_source_readonly]
[00:07:22]               │ debg creating role ft_ml_dest
[00:07:22]               │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614781778062050246] added role [ft_ml_dest]
[00:07:22]               │ debg creating role ft_ml_dest_readonly
[00:07:22]               │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614781778062050246] added role [ft_ml_dest_readonly]
[00:07:22]               │ debg creating role ft_ml_ui_extras
[00:07:22]               │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614781778062050246] added role [ft_ml_ui_extras]
[00:07:22]               │ debg creating role ft_default_space_ml_all
[00:07:22]               │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614781778062050246] added role [ft_default_space_ml_all]
[00:07:22]               │ debg creating role ft_default_space1_ml_all
[00:07:22]               │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614781778062050246] added role [ft_default_space1_ml_all]
[00:07:22]               │ debg creating role ft_all_spaces_ml_all
[00:07:22]               │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614781778062050246] added role [ft_all_spaces_ml_all]
[00:07:22]               │ debg creating role ft_default_space_ml_read
[00:07:22]               │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614781778062050246] added role [ft_default_space_ml_read]
[00:07:22]               │ debg creating role ft_default_space1_ml_read
[00:07:22]               │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614781778062050246] added role [ft_default_space1_ml_read]
[00:07:22]               │ debg creating role ft_all_spaces_ml_read
[00:07:22]               │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614781778062050246] added role [ft_all_spaces_ml_read]
[00:07:22]               │ debg creating role ft_default_space_ml_none
[00:07:22]               │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614781778062050246] added role [ft_default_space_ml_none]
[00:07:22]               │ debg creating user ft_ml_poweruser
[00:07:23]               │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614781778062050246] added user [ft_ml_poweruser]
[00:07:23]               │ debg created user ft_ml_poweruser
[00:07:23]               │ debg creating user ft_ml_poweruser_spaces
[00:07:23]               │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614781778062050246] added user [ft_ml_poweruser_spaces]
[00:07:23]               │ debg created user ft_ml_poweruser_spaces
[00:07:23]               │ debg creating user ft_ml_poweruser_space1
[00:07:23]               │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614781778062050246] added user [ft_ml_poweruser_space1]
[00:07:23]               │ debg created user ft_ml_poweruser_space1
[00:07:23]               │ debg creating user ft_ml_poweruser_all_spaces
[00:07:23]               │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614781778062050246] added user [ft_ml_poweruser_all_spaces]
[00:07:23]               │ debg created user ft_ml_poweruser_all_spaces
[00:07:23]               │ debg creating user ft_ml_viewer
[00:07:23]               │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614781778062050246] added user [ft_ml_viewer]
[00:07:23]               │ debg created user ft_ml_viewer
[00:07:23]               │ debg creating user ft_ml_viewer_spaces
[00:07:23]               │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614781778062050246] added user [ft_ml_viewer_spaces]
[00:07:23]               │ debg created user ft_ml_viewer_spaces
[00:07:23]               │ debg creating user ft_ml_viewer_space1
[00:07:23]               │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614781778062050246] added user [ft_ml_viewer_space1]
[00:07:23]               │ debg created user ft_ml_viewer_space1
[00:07:23]               │ debg creating user ft_ml_viewer_all_spaces
[00:07:23]               │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614781778062050246] added user [ft_ml_viewer_all_spaces]
[00:07:23]               │ debg created user ft_ml_viewer_all_spaces
[00:07:23]               │ debg creating user ft_ml_unauthorized
[00:07:23]               │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614781778062050246] added user [ft_ml_unauthorized]
[00:07:23]               │ debg created user ft_ml_unauthorized
[00:07:23]               │ debg creating user ft_ml_unauthorized_spaces
[00:07:24]               │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614781778062050246] added user [ft_ml_unauthorized_spaces]
[00:07:24]               │ debg created user ft_ml_unauthorized_spaces
[00:07:24]             └-: modules
[00:07:24]               └-> "before all" hook in "modules"
[00:07:39]               └-: module setup
[00:07:39]                 └-> "before all" hook in "module setup"
[00:07:39]                 └-> "before all" hook in "module setup"
[00:07:39]                   │ debg applying update to kibana config: {"dateFormat:tz":"UTC"}
[00:08:23]                 └-: sets up module data
[00:08:23]                   └-> "before all" hook for "for logs_ui_categories with prefix, startDatafeed true and estimateModelMemory true"
[00:08:23]                   └-> "before all" hook for "for logs_ui_categories with prefix, startDatafeed true and estimateModelMemory true"
[00:08:23]                     │ info [ml/module_logs] Loading "mappings.json"
[00:08:23]                     │ info [ml/module_logs] Loading "data.json.gz"
[00:08:23]                     │ info [ml/module_logs] Skipped restore for existing index "ft_module_logs"
[00:08:23]                     │ debg Searching for 'index-pattern' with title 'ft_module_logs'...
[00:08:23]                     │ debg  > Found 'f8145dc0-7c34-11eb-8608-8f40b7ac161b'
[00:08:23]                     │ debg Index pattern with title 'ft_module_logs' already exists. Nothing to create.
[00:08:23]                   └-> for logs_ui_categories with prefix, startDatafeed true and estimateModelMemory true
[00:08:23]                     └-> "before each" hook: global before each for "for logs_ui_categories with prefix, startDatafeed true and estimateModelMemory true"
[00:08:23]                     │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614781778062050246] [.ml-anomalies-shared] creating index, cause [api], templates [.ml-anomalies-], shards [1]/[1]
[00:08:23]                     │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614781778062050246] updating number_of_replicas to [0] for indices [.ml-anomalies-shared]
[00:08:23]                     │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614781778062050246] [.ml-annotations-6] creating index, cause [api], templates [], shards [1]/[1]
[00:08:23]                     │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614781778062050246] updating number_of_replicas to [0] for indices [.ml-annotations-6]
[00:08:23]                     │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614781778062050246] [.ml-anomalies-shared/_Ewu1qYYQrGjMhvQ_30gSg] update_mapping [_doc]
[00:08:23]                     │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614781778062050246] [.ml-config] creating index, cause [auto(bulk api)], templates [], shards [1]/[1]
[00:08:23]                     │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614781778062050246] updating number_of_replicas to [0] for indices [.ml-config]
[00:08:23]                     │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614781778062050246] [.ml-notifications-000001] creating index, cause [auto(bulk api)], templates [.ml-notifications-000001], shards [1]/[1]
[00:08:23]                     │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614781778062050246] updating number_of_replicas to [0] for indices [.ml-notifications-000001]
[00:08:24]                     │ info [o.e.x.m.j.p.a.AutodetectProcessManager] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614781778062050246] Opening job [pf7_log-entry-categories-count]
[00:08:24]                     │ info [o.e.x.c.m.u.MlIndexAndAlias] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614781778062050246] About to create first concrete index [.ml-state-000001] with alias [.ml-state-write]
[00:08:24]                     │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614781778062050246] [.ml-state-000001] creating index, cause [api], templates [.ml-state], shards [1]/[1]
[00:08:24]                     │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614781778062050246] updating number_of_replicas to [0] for indices [.ml-state-000001]
[00:08:24]                     │ info [o.e.x.i.IndexLifecycleTransition] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614781778062050246] moving index [.ml-state-000001] from [null] to [{"phase":"new","action":"complete","name":"complete"}] in policy [ml-size-based-ilm-policy]
[00:08:24]                     │ info [o.e.x.m.j.p.a.AutodetectProcessManager] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614781778062050246] [pf7_log-entry-categories-count] Loading model snapshot [N/A], job latest_record_timestamp [N/A]
[00:08:24]                     │ info [o.e.x.i.IndexLifecycleTransition] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614781778062050246] moving index [.ml-state-000001] from [{"phase":"new","action":"complete","name":"complete"}] to [{"phase":"hot","action":"unfollow","name":"branch-check-unfollow-prerequisites"}] in policy [ml-size-based-ilm-policy]
[00:08:24]                     │ info [o.e.x.i.IndexLifecycleTransition] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614781778062050246] moving index [.ml-state-000001] from [{"phase":"hot","action":"unfollow","name":"branch-check-unfollow-prerequisites"}] to [{"phase":"hot","action":"rollover","name":"check-rollover-ready"}] in policy [ml-size-based-ilm-policy]
[00:08:25]                     │ info [o.e.x.m.p.l.CppLogMessageHandler] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614781778062050246] [pf7_log-entry-categories-count] [autodetect/238822] [CResourceMonitor.cc@77] Setting model memory limit to 41 MB
[00:08:25]                     │ info [o.e.x.m.j.p.a.AutodetectProcessManager] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614781778062050246] Successfully set job state to [opened] for job [pf7_log-entry-categories-count]
[00:08:25]                     │ info [o.e.x.m.d.DatafeedJob] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614781778062050246] [pf7_log-entry-categories-count] Datafeed started (from: 1970-01-01T00:00:00.000Z to: 2021-03-03T15:19:15.650Z) with frequency [450000ms]
[00:08:25]                     │ debg Waiting up to 5000ms for 'pf7_log-entry-categories-count' to exist...
[00:08:25]                     │ debg Waiting up to 5000ms for 'datafeed-pf7_log-entry-categories-count' to exist...
[00:08:25]                     │ debg Waiting up to 10000ms for 'pf7_log-entry-categories-count' to have processed_record_count > 0...
[00:08:25]                     │ debg Fetching anomaly detection job stats for job pf7_log-entry-categories-count...
[00:08:25]                     │ debg > AD job stats fetched.
[00:08:25]                     │ debg --- retry.waitForWithTimeout error: expected anomaly detection job 'pf7_log-entry-categories-count' to have processed_record_count > 0 (got 0)
[00:08:25]                     │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614781778062050246] [.ml-anomalies-shared/_Ewu1qYYQrGjMhvQ_30gSg] update_mapping [_doc]
[00:08:25]                     │ debg Fetching anomaly detection job stats for job pf7_log-entry-categories-count...
[00:08:25]                     │ debg > AD job stats fetched.
[00:08:25]                     │ debg Waiting up to 120000ms for job state to be closed...
[00:08:25]                     │ debg Fetching anomaly detection job stats for job pf7_log-entry-categories-count...
[00:08:25]                     │ debg > AD job stats fetched.
[00:08:25]                     │ debg --- retry.waitForWithTimeout error: expected job state to be closed but got opened
[00:08:26]                     │ debg Fetching anomaly detection job stats for job pf7_log-entry-categories-count...
[00:08:26]                     │ debg > AD job stats fetched.
[00:08:26]                     │ debg --- retry.waitForWithTimeout failed again with the same message...
[00:08:26]                     │ debg Fetching anomaly detection job stats for job pf7_log-entry-categories-count...
[00:08:26]                     │ debg > AD job stats fetched.
[00:08:26]                     │ debg --- retry.waitForWithTimeout failed again with the same message...
[00:08:27]                     │ debg Fetching anomaly detection job stats for job pf7_log-entry-categories-count...
[00:08:27]                     │ debg > AD job stats fetched.
[00:08:27]                     │ debg --- retry.waitForWithTimeout failed again with the same message...
[00:08:27]                     │ debg Fetching anomaly detection job stats for job pf7_log-entry-categories-count...
[00:08:27]                     │ debg > AD job stats fetched.
[00:08:27]                     │ debg --- retry.waitForWithTimeout failed again with the same message...
[00:08:28]                     │ debg Fetching anomaly detection job stats for job pf7_log-entry-categories-count...
[00:08:28]                     │ debg > AD job stats fetched.
[00:08:28]                     │ debg --- retry.waitForWithTimeout failed again with the same message...
[00:08:28]                     │ debg Fetching anomaly detection job stats for job pf7_log-entry-categories-count...
[00:08:28]                     │ debg > AD job stats fetched.
[00:08:28]                     │ debg --- retry.waitForWithTimeout failed again with the same message...
[00:08:29]                     │ debg Fetching anomaly detection job stats for job pf7_log-entry-categories-count...
[00:08:29]                     │ debg > AD job stats fetched.
[00:08:29]                     │ debg --- retry.waitForWithTimeout failed again with the same message...
[00:08:30]                     │ debg Fetching anomaly detection job stats for job pf7_log-entry-categories-count...
[00:08:30]                     │ debg > AD job stats fetched.
[00:08:30]                     │ debg --- retry.waitForWithTimeout failed again with the same message...
[00:08:30]                     │ debg Fetching anomaly detection job stats for job pf7_log-entry-categories-count...
[00:08:30]                     │ debg > AD job stats fetched.
[00:08:30]                     │ debg --- retry.waitForWithTimeout failed again with the same message...
[00:08:31]                     │ debg Fetching anomaly detection job stats for job pf7_log-entry-categories-count...
[00:08:31]                     │ debg > AD job stats fetched.
[00:08:31]                     │ debg --- retry.waitForWithTimeout failed again with the same message...
[00:08:31]                     │ debg Fetching anomaly detection job stats for job pf7_log-entry-categories-count...
[00:08:31]                     │ debg > AD job stats fetched.
[00:08:31]                     │ debg --- retry.waitForWithTimeout failed again with the same message...
[00:08:32]                     │ debg Fetching anomaly detection job stats for job pf7_log-entry-categories-count...
[00:08:32]                     │ debg > AD job stats fetched.
[00:08:32]                     │ debg --- retry.waitForWithTimeout failed again with the same message...
[00:08:32]                     │ debg Fetching anomaly detection job stats for job pf7_log-entry-categories-count...
[00:08:32]                     │ debg > AD job stats fetched.
[00:08:32]                     │ debg --- retry.waitForWithTimeout failed again with the same message...
[00:08:33]                     │ debg Fetching anomaly detection job stats for job pf7_log-entry-categories-count...
[00:08:33]                     │ debg > AD job stats fetched.
[00:08:33]                     │ debg --- retry.waitForWithTimeout failed again with the same message...
[00:08:33]                     │ debg Fetching anomaly detection job stats for job pf7_log-entry-categories-count...
[00:08:33]                     │ debg > AD job stats fetched.
[00:08:33]                     │ debg --- retry.waitForWithTimeout failed again with the same message...
[00:08:34]                     │ debg Fetching anomaly detection job stats for job pf7_log-entry-categories-count...
[00:08:34]                     │ debg > AD job stats fetched.
[00:08:34]                     │ debg --- retry.waitForWithTimeout failed again with the same message...
[00:08:34]                     │ debg Fetching anomaly detection job stats for job pf7_log-entry-categories-count...
[00:08:34]                     │ debg > AD job stats fetched.
[00:08:34]                     │ debg --- retry.waitForWithTimeout failed again with the same message...
[00:08:35]                     │ debg Fetching anomaly detection job stats for job pf7_log-entry-categories-count...
[00:08:35]                     │ debg > AD job stats fetched.
[00:08:35]                     │ debg --- retry.waitForWithTimeout failed again with the same message...
[00:08:35]                     │ debg Fetching anomaly detection job stats for job pf7_log-entry-categories-count...
[00:08:35]                     │ debg > AD job stats fetched.
[00:08:35]                     │ debg --- retry.waitForWithTimeout failed again with the same message...
[00:08:36]                     │ debg Fetching anomaly detection job stats for job pf7_log-entry-categories-count...
[00:08:36]                     │ debg > AD job stats fetched.
[00:08:36]                     │ debg --- retry.waitForWithTimeout failed again with the same message...
[00:08:36]                     │ debg Fetching anomaly detection job stats for job pf7_log-entry-categories-count...
[00:08:36]                     │ debg > AD job stats fetched.
[00:08:36]                     │ debg --- retry.waitForWithTimeout failed again with the same message...
[00:08:37]                     │ debg Fetching anomaly detection job stats for job pf7_log-entry-categories-count...
[00:08:37]                     │ debg > AD job stats fetched.
[00:08:37]                     │ debg --- retry.waitForWithTimeout failed again with the same message...
[00:08:37]                     │ debg Fetching anomaly detection job stats for job pf7_log-entry-categories-count...
[00:08:37]                     │ debg > AD job stats fetched.
[00:08:37]                     │ debg --- retry.waitForWithTimeout failed again with the same message...
[00:08:38]                     │ debg Fetching anomaly detection job stats for job pf7_log-entry-categories-count...
[00:08:38]                     │ debg > AD job stats fetched.
[00:08:38]                     │ debg --- retry.waitForWithTimeout failed again with the same message...
[00:08:38]                     │ debg Fetching anomaly detection job stats for job pf7_log-entry-categories-count...
[00:08:38]                     │ debg > AD job stats fetched.
[00:08:38]                     │ debg --- retry.waitForWithTimeout failed again with the same message...
[00:08:39]                     │ debg Fetching anomaly detection job stats for job pf7_log-entry-categories-count...
[00:08:39]                     │ debg > AD job stats fetched.
[00:08:39]                     │ debg --- retry.waitForWithTimeout failed again with the same message...
[00:08:39]                     │ debg Fetching anomaly detection job stats for job pf7_log-entry-categories-count...
[00:08:39]                     │ debg > AD job stats fetched.
[00:08:39]                     │ debg --- retry.waitForWithTimeout failed again with the same message...
[00:08:40]                     │ debg Fetching anomaly detection job stats for job pf7_log-entry-categories-count...
[00:08:40]                     │ debg > AD job stats fetched.
[00:08:40]                     │ debg --- retry.waitForWithTimeout failed again with the same message...
[00:08:40]                     │ debg Fetching anomaly detection job stats for job pf7_log-entry-categories-count...
[00:08:40]                     │ debg > AD job stats fetched.
[00:08:40]                     │ debg --- retry.waitForWithTimeout failed again with the same message...
[00:08:41]                     │ debg Fetching anomaly detection job stats for job pf7_log-entry-categories-count...
[00:08:41]                     │ debg > AD job stats fetched.
[00:08:41]                     │ debg --- retry.waitForWithTimeout failed again with the same message...
[00:08:41]                     │ debg Fetching anomaly detection job stats for job pf7_log-entry-categories-count...
[00:08:41]                     │ debg > AD job stats fetched.
[00:08:41]                     │ debg --- retry.waitForWithTimeout failed again with the same message...
[00:08:42]                     │ debg Fetching anomaly detection job stats for job pf7_log-entry-categories-count...
[00:08:42]                     │ debg > AD job stats fetched.
[00:08:42]                     │ debg --- retry.waitForWithTimeout failed again with the same message...
[00:08:42]                     │ debg Fetching anomaly detection job stats for job pf7_log-entry-categories-count...
[00:08:42]                     │ debg > AD job stats fetched.
[00:08:42]                     │ debg --- retry.waitForWithTimeout failed again with the same message...
[00:08:43]                     │ debg Fetching anomaly detection job stats for job pf7_log-entry-categories-count...
[00:08:43]                     │ debg > AD job stats fetched.
[00:08:43]                     │ debg --- retry.waitForWithTimeout failed again with the same message...
[00:08:43]                     │ debg Fetching anomaly detection job stats for job pf7_log-entry-categories-count...
[00:08:43]                     │ debg > AD job stats fetched.
[00:08:43]                     │ debg --- retry.waitForWithTimeout failed again with the same message...
[00:08:44]                     │ debg Fetching anomaly detection job stats for job pf7_log-entry-categories-count...
[00:08:44]                     │ debg > AD job stats fetched.
[00:08:44]                     │ debg --- retry.waitForWithTimeout failed again with the same message...
[00:08:44]                     │ info [o.e.x.m.d.DatafeedJob] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614781778062050246] [pf7_log-entry-categories-count] Lookback has finished
[00:08:44]                     │ info [o.e.x.m.d.DatafeedManager] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614781778062050246] [no_realtime] attempt to stop datafeed [datafeed-pf7_log-entry-categories-count] for job [pf7_log-entry-categories-count]
[00:08:44]                     │ info [o.e.x.m.d.DatafeedManager] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614781778062050246] [no_realtime] try lock [20s] to stop datafeed [datafeed-pf7_log-entry-categories-count] for job [pf7_log-entry-categories-count]...
[00:08:44]                     │ info [o.e.x.m.d.DatafeedManager] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614781778062050246] [no_realtime] stopping datafeed [datafeed-pf7_log-entry-categories-count] for job [pf7_log-entry-categories-count], acquired [true]...
[00:08:44]                     │ info [o.e.x.m.d.DatafeedManager] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614781778062050246] [no_realtime] datafeed [datafeed-pf7_log-entry-categories-count] for job [pf7_log-entry-categories-count] has been stopped
[00:08:44]                     │ info [o.e.x.m.j.p.a.AutodetectProcessManager] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614781778062050246] Closing job [pf7_log-entry-categories-count], because [close job (api)]
[00:08:44]                     │ info [o.e.x.m.p.l.CppLogMessageHandler] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614781778062050246] [pf7_log-entry-categories-count] [autodetect/238822] [CCmdSkeleton.cc@61] Handled 584 records
[00:08:44]                     │ info [o.e.x.m.p.l.CppLogMessageHandler] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614781778062050246] [pf7_log-entry-categories-count] [autodetect/238822] [CAnomalyJob.cc@1576] Pruning all models
[00:08:44]                     │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614781778062050246] [.ml-anomalies-shared/_Ewu1qYYQrGjMhvQ_30gSg] update_mapping [_doc]
[00:08:44]                     │ debg Fetching anomaly detection job stats for job pf7_log-entry-categories-count...
[00:08:44]                     │ debg > AD job stats fetched.
[00:08:44]                     │ debg --- retry.waitForWithTimeout error: expected job state to be closed but got closing
[00:08:45]                     │ info [o.e.x.m.p.AbstractNativeProcess] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614781778062050246] [pf7_log-entry-categories-count] State output finished
[00:08:45]                     │ info [o.e.x.m.j.p.a.o.AutodetectResultProcessor] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614781778062050246] [pf7_log-entry-categories-count] 2342 buckets parsed from autodetect output
[00:08:45]                     │ debg Fetching anomaly detection job stats for job pf7_log-entry-categories-count...
[00:08:45]                     │ debg > AD job stats fetched.
[00:08:45]                     │ debg --- retry.waitForWithTimeout failed again with the same message...
[00:08:45]                     │ info [o.e.x.m.j.p.a.AutodetectCommunicator] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614781778062050246] [pf7_log-entry-categories-count] job closed
[00:08:45]                     │ debg Fetching anomaly detection job stats for job pf7_log-entry-categories-count...
[00:08:45]                     │ debg > AD job stats fetched.
[00:08:45]                     │ debg Waiting up to 120000ms for datafeed state to be stopped...
[00:08:45]                     │ debg Fetching datafeed state for datafeed datafeed-pf7_log-entry-categories-count
[00:08:45]                     └- ✖ fail: apis Machine Learning modules module setup sets up module data for logs_ui_categories with prefix, startDatafeed true and estimateModelMemory true
[00:08:45]                     │       Error: Expected job model memory limits '[{"id":"pf7_log-entry-categories-count","modelMemoryLimit":"26mb"}]' (got '[{"id":"pf7_log-entry-categories-count","modelMemoryLimit":"41mb"}]')
[00:08:45]                     │       + expected - actual
[00:08:45]                     │ 
[00:08:45]                     │        [
[00:08:45]                     │          {
[00:08:45]                     │            "id": "pf7_log-entry-categories-count"
[00:08:45]                     │       -    "modelMemoryLimit": "41mb"
[00:08:45]                     │       +    "modelMemoryLimit": "26mb"
[00:08:45]                     │          }
[00:08:45]                     │        ]
[00:08:45]                     │       
[00:08:45]                     │       at Assertion.assert (/dev/shm/workspace/parallel/16/kibana/packages/kbn-expect/expect.js:100:11)
[00:08:45]                     │       at Assertion.eql (/dev/shm/workspace/parallel/16/kibana/packages/kbn-expect/expect.js:244:8)
[00:08:45]                     │       at Context.<anonymous> (test/api_integration/apis/ml/modules/setup_module.ts:869:46)
[00:08:45]                     │       at Object.apply (/dev/shm/workspace/parallel/16/kibana/packages/kbn-test/src/functional_test_runner/lib/mocha/wrap_function.js:73:16)
[00:08:45]                     │ 
[00:08:45]                     │ 

Stack Trace

Error: Expected job model memory limits '[{"id":"pf7_log-entry-categories-count","modelMemoryLimit":"26mb"}]' (got '[{"id":"pf7_log-entry-categories-count","modelMemoryLimit":"41mb"}]')
    at Assertion.assert (/dev/shm/workspace/parallel/16/kibana/packages/kbn-expect/expect.js:100:11)
    at Assertion.eql (/dev/shm/workspace/parallel/16/kibana/packages/kbn-expect/expect.js:244:8)
    at Context.<anonymous> (test/api_integration/apis/ml/modules/setup_module.ts:869:46)
    at Object.apply (/dev/shm/workspace/parallel/16/kibana/packages/kbn-test/src/functional_test_runner/lib/mocha/wrap_function.js:73:16) {
  actual: '[\n' +
    '  {\n' +
    '    "id": "pf7_log-entry-categories-count"\n' +
    '    "modelMemoryLimit": "41mb"\n' +
    '  }\n' +
    ']',
  expected: '[\n' +
    '  {\n' +
    '    "id": "pf7_log-entry-categories-count"\n' +
    '    "modelMemoryLimit": "26mb"\n' +
    '  }\n' +
    ']',
  showDiff: true
}

Metrics [docs]

Async chunks

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

id before after diff
data 236.4KB 236.5KB +94.0B
fleet 760.0KB 760.1KB +94.0B
graph 1.2MB 1.2MB +94.0B
total +282.0B

Page load bundle

Size of the bundles that are downloaded on every page load. Target size is below 100kb

id before after diff
core 467.7KB 467.9KB +252.0B
urlDrilldown 42.4KB 42.5KB +94.0B
total +346.0B

History

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backported chore release_note:plugin_api_changes Contains a Plugin API changes section for the breaking plugin API changes section. Team:Core Core services & architecture: plugins, logging, config, saved objects, http, ES client, i18n, etc v7.12.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants