Skip to content

[7.x] [Asset Management] Osquery agent picker (#94541)#95891

Merged
kibanamachine merged 1 commit intoelastic:7.xfrom
kibanamachine:backport/7.x/pr-94541
Mar 31, 2021
Merged

[7.x] [Asset Management] Osquery agent picker (#94541)#95891
kibanamachine merged 1 commit intoelastic:7.xfrom
kibanamachine:backport/7.x/pr-94541

Conversation

@kibanamachine
Copy link
Copy Markdown
Contributor

Backports the following commits to 7.x:

* first pass of osquery host picker

* passes type checking and linting

* reworked everything

* fixed the policy query and pill colors

* fix i18n test failures

* refactor server side logic

* more clean up

* address pr comments

* fix types, await the parsed agents on the server side

* primitive is spelled with an i

* agents come in as list rather than agents

* added more helpers tests, added some edge case guarding

* unwrap agents off response in useAllAgents

* used proper types for aggregations

* translations for more ui text

* fix linting errors

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
@kibanamachine kibanamachine added the backport This PR is a backport of another PR label Mar 31, 2021
@kibanamachine kibanamachine enabled auto-merge (squash) March 31, 2021 08:17
@kibanamachine
Copy link
Copy Markdown
Contributor Author

💛 Build succeeded, but was flaky


Test Failures

Kibana Pipeline / general / X-Pack Accessibility Tests.x-pack/test/accessibility/apps/ml_embeddables_in_dashboard·ts.machine learning embeddables anomaly charts with multi metric job can open job selection flyout

Link to Jenkins

Standard Out

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

[00:00:00]       │
[00:13:30]         └-: machine learning embeddables anomaly charts
[00:13:30]           └-> "before all" hook in "machine learning embeddables anomaly charts"
[00:13:30]           └-> "before all" hook in "machine learning embeddables anomaly charts"
[00:13:30]             │ debg creating role ft_ml_source
[00:13:30]             │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-ubuntu-16-tests-xxl-1617178691054229629] added role [ft_ml_source]
[00:13:30]             │ debg creating role ft_ml_source_readonly
[00:13:30]             │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-ubuntu-16-tests-xxl-1617178691054229629] added role [ft_ml_source_readonly]
[00:13:30]             │ debg creating role ft_ml_dest
[00:13:30]             │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-ubuntu-16-tests-xxl-1617178691054229629] added role [ft_ml_dest]
[00:13:30]             │ debg creating role ft_ml_dest_readonly
[00:13:30]             │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-ubuntu-16-tests-xxl-1617178691054229629] added role [ft_ml_dest_readonly]
[00:13:30]             │ debg creating role ft_ml_ui_extras
[00:13:30]             │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-ubuntu-16-tests-xxl-1617178691054229629] added role [ft_ml_ui_extras]
[00:13:30]             │ debg creating role ft_default_space_ml_all
[00:13:30]             │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-ubuntu-16-tests-xxl-1617178691054229629] added role [ft_default_space_ml_all]
[00:13:30]             │ debg creating role ft_default_space1_ml_all
[00:13:30]             │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-ubuntu-16-tests-xxl-1617178691054229629] added role [ft_default_space1_ml_all]
[00:13:30]             │ debg creating role ft_all_spaces_ml_all
[00:13:30]             │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-ubuntu-16-tests-xxl-1617178691054229629] added role [ft_all_spaces_ml_all]
[00:13:30]             │ debg creating role ft_default_space_ml_read
[00:13:30]             │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-ubuntu-16-tests-xxl-1617178691054229629] added role [ft_default_space_ml_read]
[00:13:30]             │ debg creating role ft_default_space1_ml_read
[00:13:30]             │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-ubuntu-16-tests-xxl-1617178691054229629] added role [ft_default_space1_ml_read]
[00:13:30]             │ debg creating role ft_all_spaces_ml_read
[00:13:30]             │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-ubuntu-16-tests-xxl-1617178691054229629] added role [ft_all_spaces_ml_read]
[00:13:30]             │ debg creating role ft_default_space_ml_none
[00:13:30]             │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-ubuntu-16-tests-xxl-1617178691054229629] added role [ft_default_space_ml_none]
[00:13:30]             │ debg creating user ft_ml_poweruser
[00:13:31]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-ubuntu-16-tests-xxl-1617178691054229629] added user [ft_ml_poweruser]
[00:13:31]             │ debg created user ft_ml_poweruser
[00:13:31]             │ debg creating user ft_ml_poweruser_spaces
[00:13:31]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-ubuntu-16-tests-xxl-1617178691054229629] added user [ft_ml_poweruser_spaces]
[00:13:31]             │ debg created user ft_ml_poweruser_spaces
[00:13:31]             │ debg creating user ft_ml_poweruser_space1
[00:13:31]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-ubuntu-16-tests-xxl-1617178691054229629] added user [ft_ml_poweruser_space1]
[00:13:31]             │ debg created user ft_ml_poweruser_space1
[00:13:31]             │ debg creating user ft_ml_poweruser_all_spaces
[00:13:31]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-ubuntu-16-tests-xxl-1617178691054229629] added user [ft_ml_poweruser_all_spaces]
[00:13:31]             │ debg created user ft_ml_poweruser_all_spaces
[00:13:31]             │ debg creating user ft_ml_viewer
[00:13:31]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-ubuntu-16-tests-xxl-1617178691054229629] added user [ft_ml_viewer]
[00:13:31]             │ debg created user ft_ml_viewer
[00:13:31]             │ debg creating user ft_ml_viewer_spaces
[00:13:31]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-ubuntu-16-tests-xxl-1617178691054229629] added user [ft_ml_viewer_spaces]
[00:13:31]             │ debg created user ft_ml_viewer_spaces
[00:13:31]             │ debg creating user ft_ml_viewer_space1
[00:13:31]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-ubuntu-16-tests-xxl-1617178691054229629] added user [ft_ml_viewer_space1]
[00:13:31]             │ debg created user ft_ml_viewer_space1
[00:13:31]             │ debg creating user ft_ml_viewer_all_spaces
[00:13:31]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-ubuntu-16-tests-xxl-1617178691054229629] added user [ft_ml_viewer_all_spaces]
[00:13:31]             │ debg created user ft_ml_viewer_all_spaces
[00:13:31]             │ debg creating user ft_ml_unauthorized
[00:13:32]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-ubuntu-16-tests-xxl-1617178691054229629] added user [ft_ml_unauthorized]
[00:13:32]             │ debg created user ft_ml_unauthorized
[00:13:32]             │ debg creating user ft_ml_unauthorized_spaces
[00:13:32]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-ubuntu-16-tests-xxl-1617178691054229629] added user [ft_ml_unauthorized_spaces]
[00:13:32]             │ debg created user ft_ml_unauthorized_spaces
[00:13:32]             │ info [ml/farequote] Loading "mappings.json"
[00:13:32]             │ info [ml/farequote] Loading "data.json.gz"
[00:13:32]             │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1617178691054229629] [ft_farequote] creating index, cause [api], templates [], shards [1]/[1]
[00:13:32]             │ info [ml/farequote] Created index "ft_farequote"
[00:13:32]             │ debg [ml/farequote] "ft_farequote" settings {"index":{"number_of_replicas":"1","number_of_shards":"1"}}
[00:13:39]             │ info [ml/farequote] Indexed 86274 docs into "ft_farequote"
[00:13:39]             │ debg Searching for 'index-pattern' with title 'ft_farequote'...
[00:13:39]             │ debg  > Not found
[00:13:39]             │ debg Creating index pattern with title 'ft_farequote' and time field '@timestamp'
[00:13:40]             │ debg Waiting up to 5000ms for index-pattern with title 'ft_farequote' to exist...
[00:13:40]             │ debg Searching for 'index-pattern' with title 'ft_farequote'...
[00:13:40]             │ debg  > Found 'f8defa30-9200-11eb-992a-1b0f2c5b239f'
[00:13:40]             │ debg  > Created with id 'f8defa30-9200-11eb-992a-1b0f2c5b239f'
[00:13:40]             │ debg applying update to kibana config: {"dateFormat:tz":"UTC"}
[00:13:41]             │ debg SecurityPage.forceLogout
[00:13:41]             │ debg Find.existsByDisplayedByCssSelector('.login-form') with timeout=100
[00:13:41]             │ debg --- retry.tryForTime error: .login-form is not displayed
[00:13:41]             │ debg Redirecting to /logout to force the logout
[00:13:41]             │ proc [kibana]   log   [09:10:46.004] [error][data][data][indexPatterns][plugins] ResponseError: security_exception
[00:13:41]             │ proc [kibana]     at onBody (/dev/shm/workspace/kibana-build-xpack-4/node_modules/@elastic/elasticsearch/lib/Transport.js:337:23)
[00:13:41]             │ proc [kibana]     at IncomingMessage.onEnd (/dev/shm/workspace/kibana-build-xpack-4/node_modules/@elastic/elasticsearch/lib/Transport.js:264:11)
[00:13:41]             │ proc [kibana]     at IncomingMessage.emit (events.js:327:22)
[00:13:41]             │ proc [kibana]     at endReadableNT (internal/streams/readable.js:1327:12)
[00:13:41]             │ proc [kibana]     at processTicksAndRejections (internal/process/task_queues.js:80:21) {
[00:13:41]             │ proc [kibana]   meta: {
[00:13:41]             │ proc [kibana]     body: { error: [Object], status: 401 },
[00:13:41]             │ proc [kibana]     statusCode: 401,
[00:13:41]             │ proc [kibana]     headers: {
[00:13:41]             │ proc [kibana]       'x-opaque-id': '07ebfd54-81ed-4ad6-a50c-9293befef739',
[00:13:41]             │ proc [kibana]       'www-authenticate': 'Basic realm="security" charset="UTF-8", ApiKey',
[00:13:41]             │ proc [kibana]       'content-type': 'application/json; charset=UTF-8',
[00:13:41]             │ proc [kibana]       'content-length': '463'
[00:13:41]             │ proc [kibana]     },
[00:13:41]             │ proc [kibana]     meta: {
[00:13:41]             │ proc [kibana]       context: null,
[00:13:41]             │ proc [kibana]       request: [Object],
[00:13:41]             │ proc [kibana]       name: 'elasticsearch-js',
[00:13:41]             │ proc [kibana]       connection: [Object],
[00:13:41]             │ proc [kibana]       attempts: 0,
[00:13:41]             │ proc [kibana]       aborted: false
[00:13:41]             │ proc [kibana]     }
[00:13:41]             │ proc [kibana]   },
[00:13:41]             │ proc [kibana]   isBoom: true,
[00:13:41]             │ proc [kibana]   isServer: true,
[00:13:41]             │ proc [kibana]   data: null,
[00:13:41]             │ proc [kibana]   output: {
[00:13:41]             │ proc [kibana]     statusCode: 500,
[00:13:41]             │ proc [kibana]     payload: {
[00:13:41]             │ proc [kibana]       statusCode: 500,
[00:13:41]             │ proc [kibana]       error: 'Internal Server Error',
[00:13:41]             │ proc [kibana]       message: 'An internal server error occurred'
[00:13:41]             │ proc [kibana]     },
[00:13:41]             │ proc [kibana]     headers: {}
[00:13:41]             │ proc [kibana]   },
[00:13:41]             │ proc [kibana]   [Symbol(SavedObjectsClientErrorCode)]: 'SavedObjectsClient/generalError'
[00:13:41]             │ proc [kibana] }
[00:13:42]             │ debg Waiting on the login form to appear
[00:13:42]             │ debg Waiting for Login Page to appear.
[00:13:42]             │ debg Waiting up to 100000ms for login page...
[00:13:42]             │ debg browser[INFO] http://localhost:6141/logout?_t=1617181845990 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:13:42]             │
[00:13:42]             │ debg browser[INFO] http://localhost:6141/bootstrap.js 41:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:13:42]             │ debg Find.existsByDisplayedByCssSelector('.login-form') with timeout=2500
[00:13:43]             │ proc [kibana]   log   [09:10:47.334] [error][data][data][indexPatterns][plugins] ResponseError: security_exception
[00:13:43]             │ proc [kibana]     at onBody (/dev/shm/workspace/kibana-build-xpack-4/node_modules/@elastic/elasticsearch/lib/Transport.js:337:23)
[00:13:43]             │ proc [kibana]     at IncomingMessage.onEnd (/dev/shm/workspace/kibana-build-xpack-4/node_modules/@elastic/elasticsearch/lib/Transport.js:264:11)
[00:13:43]             │ proc [kibana]     at IncomingMessage.emit (events.js:327:22)
[00:13:43]             │ proc [kibana]     at endReadableNT (internal/streams/readable.js:1327:12)
[00:13:43]             │ proc [kibana]     at processTicksAndRejections (internal/process/task_queues.js:80:21) {
[00:13:43]             │ proc [kibana]   meta: {
[00:13:43]             │ proc [kibana]     body: { error: [Object], status: 401 },
[00:13:43]             │ proc [kibana]     statusCode: 401,
[00:13:43]             │ proc [kibana]     headers: {
[00:13:43]             │ proc [kibana]       'x-opaque-id': 'd4f053d2-7da6-4ced-bba0-7612ab3fbed3',
[00:13:43]             │ proc [kibana]       'www-authenticate': 'Basic realm="security" charset="UTF-8", ApiKey',
[00:13:43]             │ proc [kibana]       'content-type': 'application/json; charset=UTF-8',
[00:13:43]             │ proc [kibana]       'content-length': '463'
[00:13:43]             │ proc [kibana]     },
[00:13:43]             │ proc [kibana]     meta: {
[00:13:43]             │ proc [kibana]       context: null,
[00:13:43]             │ proc [kibana]       request: [Object],
[00:13:43]             │ proc [kibana]       name: 'elasticsearch-js',
[00:13:43]             │ proc [kibana]       connection: [Object],
[00:13:43]             │ proc [kibana]       attempts: 0,
[00:13:43]             │ proc [kibana]       aborted: false
[00:13:43]             │ proc [kibana]     }
[00:13:43]             │ proc [kibana]   },
[00:13:43]             │ proc [kibana]   isBoom: true,
[00:13:43]             │ proc [kibana]   isServer: true,
[00:13:43]             │ proc [kibana]   data: null,
[00:13:43]             │ proc [kibana]   output: {
[00:13:43]             │ proc [kibana]     statusCode: 500,
[00:13:43]             │ proc [kibana]     payload: {
[00:13:43]             │ proc [kibana]       statusCode: 500,
[00:13:43]             │ proc [kibana]       error: 'Internal Server Error',
[00:13:43]             │ proc [kibana]       message: 'An internal server error occurred'
[00:13:43]             │ proc [kibana]     },
[00:13:43]             │ proc [kibana]     headers: {}
[00:13:43]             │ proc [kibana]   },
[00:13:43]             │ proc [kibana]   [Symbol(SavedObjectsClientErrorCode)]: 'SavedObjectsClient/generalError'
[00:13:43]             │ proc [kibana] }
[00:13:44]             │ proc [kibana]   log   [09:10:48.359] [error][data][data][indexPatterns][plugins] ResponseError: security_exception
[00:13:44]             │ proc [kibana]     at onBody (/dev/shm/workspace/kibana-build-xpack-4/node_modules/@elastic/elasticsearch/lib/Transport.js:337:23)
[00:13:44]             │ proc [kibana]     at IncomingMessage.onEnd (/dev/shm/workspace/kibana-build-xpack-4/node_modules/@elastic/elasticsearch/lib/Transport.js:264:11)
[00:13:44]             │ proc [kibana]     at IncomingMessage.emit (events.js:327:22)
[00:13:44]             │ proc [kibana]     at endReadableNT (internal/streams/readable.js:1327:12)
[00:13:44]             │ proc [kibana]     at processTicksAndRejections (internal/process/task_queues.js:80:21) {
[00:13:44]             │ proc [kibana]   meta: {
[00:13:44]             │ proc [kibana]     body: { error: [Object], status: 401 },
[00:13:44]             │ proc [kibana]     statusCode: 401,
[00:13:44]             │ proc [kibana]     headers: {
[00:13:44]             │ proc [kibana]       'x-opaque-id': '0dfe1577-7d0f-4cad-8aef-841ef7452c9e',
[00:13:44]             │ proc [kibana]       'www-authenticate': 'Basic realm="security" charset="UTF-8", ApiKey',
[00:13:44]             │ proc [kibana]       'content-type': 'application/json; charset=UTF-8',
[00:13:44]             │ proc [kibana]       'content-length': '463'
[00:13:44]             │ proc [kibana]     },
[00:13:44]             │ proc [kibana]     meta: {
[00:13:44]             │ proc [kibana]       context: null,
[00:13:44]             │ proc [kibana]       request: [Object],
[00:13:44]             │ proc [kibana]       name: 'elasticsearch-js',
[00:13:44]             │ proc [kibana]       connection: [Object],
[00:13:44]             │ proc [kibana]       attempts: 0,
[00:13:44]             │ proc [kibana]       aborted: false
[00:13:44]             │ proc [kibana]     }
[00:13:44]             │ proc [kibana]   },
[00:13:44]             │ proc [kibana]   isBoom: true,
[00:13:44]             │ proc [kibana]   isServer: true,
[00:13:44]             │ proc [kibana]   data: null,
[00:13:44]             │ proc [kibana]   output: {
[00:13:44]             │ proc [kibana]     statusCode: 500,
[00:13:44]             │ proc [kibana]     payload: {
[00:13:44]             │ proc [kibana]       statusCode: 500,
[00:13:44]             │ proc [kibana]       error: 'Internal Server Error',
[00:13:44]             │ proc [kibana]       message: 'An internal server error occurred'
[00:13:44]             │ proc [kibana]     },
[00:13:44]             │ proc [kibana]     headers: {}
[00:13:44]             │ proc [kibana]   },
[00:13:44]             │ proc [kibana]   [Symbol(SavedObjectsClientErrorCode)]: 'SavedObjectsClient/generalError'
[00:13:44]             │ proc [kibana] }
[00:13:44]             │ debg browser[INFO] http://localhost:6141/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:13:44]             │
[00:13:44]             │ debg browser[INFO] http://localhost:6141/bootstrap.js 41:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:13:44]             │ debg --- retry.tryForTime error: .login-form is not displayed
[00:13:44]             │ proc [kibana]   log   [09:10:49.159] [error][data][data][indexPatterns][plugins] ResponseError: security_exception
[00:13:44]             │ proc [kibana]     at onBody (/dev/shm/workspace/kibana-build-xpack-4/node_modules/@elastic/elasticsearch/lib/Transport.js:337:23)
[00:13:44]             │ proc [kibana]     at IncomingMessage.onEnd (/dev/shm/workspace/kibana-build-xpack-4/node_modules/@elastic/elasticsearch/lib/Transport.js:264:11)
[00:13:44]             │ proc [kibana]     at IncomingMessage.emit (events.js:327:22)
[00:13:44]             │ proc [kibana]     at endReadableNT (internal/streams/readable.js:1327:12)
[00:13:44]             │ proc [kibana]     at processTicksAndRejections (internal/process/task_queues.js:80:21) {
[00:13:44]             │ proc [kibana]   meta: {
[00:13:44]             │ proc [kibana]     body: { error: [Object], status: 401 },
[00:13:44]             │ proc [kibana]     statusCode: 401,
[00:13:44]             │ proc [kibana]     headers: {
[00:13:44]             │ proc [kibana]       'x-opaque-id': 'cad7859f-8e14-4f8a-b3a6-fafe083c61d5',
[00:13:44]             │ proc [kibana]       'www-authenticate': 'Basic realm="security" charset="UTF-8", ApiKey',
[00:13:44]             │ proc [kibana]       'content-type': 'application/json; charset=UTF-8',
[00:13:44]             │ proc [kibana]       'content-length': '463'
[00:13:44]             │ proc [kibana]     },
[00:13:44]             │ proc [kibana]     meta: {
[00:13:44]             │ proc [kibana]       context: null,
[00:13:44]             │ proc [kibana]       request: [Object],
[00:13:44]             │ proc [kibana]       name: 'elasticsearch-js',
[00:13:44]             │ proc [kibana]       connection: [Object],
[00:13:44]             │ proc [kibana]       attempts: 0,
[00:13:44]             │ proc [kibana]       aborted: false
[00:13:44]             │ proc [kibana]     }
[00:13:44]             │ proc [kibana]   },
[00:13:44]             │ proc [kibana]   isBoom: true,
[00:13:44]             │ proc [kibana]   isServer: true,
[00:13:44]             │ proc [kibana]   data: null,
[00:13:44]             │ proc [kibana]   output: {
[00:13:44]             │ proc [kibana]     statusCode: 500,
[00:13:44]             │ proc [kibana]     payload: {
[00:13:44]             │ proc [kibana]       statusCode: 500,
[00:13:44]             │ proc [kibana]       error: 'Internal Server Error',
[00:13:44]             │ proc [kibana]       message: 'An internal server error occurred'
[00:13:44]             │ proc [kibana]     },
[00:13:44]             │ proc [kibana]     headers: {}
[00:13:44]             │ proc [kibana]   },
[00:13:44]             │ proc [kibana]   [Symbol(SavedObjectsClientErrorCode)]: 'SavedObjectsClient/generalError'
[00:13:44]             │ proc [kibana] }
[00:13:44]             │ERROR browser[SEVERE] http://localhost:6141/internal/spaces/_active_space - Failed to load resource: the server responded with a status of 401 (Unauthorized)
[00:13:44]             │ debg browser[INFO] http://localhost:6141/39946/bundles/core/core.entry.js 12:150913 "Detected an unhandled Promise rejection.
[00:13:44]             │      Error: Unauthorized"
[00:13:44]             │ERROR browser[SEVERE] http://localhost:6141/39946/bundles/core/core.entry.js 5:2514 
[00:13:44]             │ERROR browser[SEVERE] http://localhost:6141/api/licensing/info - Failed to load resource: the server responded with a status of 401 (Unauthorized)
[00:13:45]             │ debg Find.existsByDisplayedByCssSelector('.login-form') with timeout=2500
[00:13:45]             │ debg TestSubjects.exists(loginForm)
[00:13:45]             │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="loginForm"]') with timeout=2500
[00:13:45]             │ debg Waiting for Login Form to appear.
[00:13:45]             │ debg Waiting up to 100000ms for login form...
[00:13:45]             │ debg TestSubjects.exists(loginForm)
[00:13:45]             │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="loginForm"]') with timeout=2500
[00:13:45]             │ debg TestSubjects.setValue(loginUsername, ft_ml_poweruser)
[00:13:45]             │ debg TestSubjects.click(loginUsername)
[00:13:45]             │ debg Find.clickByCssSelector('[data-test-subj="loginUsername"]') with timeout=10000
[00:13:45]             │ debg Find.findByCssSelector('[data-test-subj="loginUsername"]') with timeout=10000
[00:13:46]             │ debg TestSubjects.setValue(loginPassword, mlp001)
[00:13:46]             │ debg TestSubjects.click(loginPassword)
[00:13:46]             │ debg Find.clickByCssSelector('[data-test-subj="loginPassword"]') with timeout=10000
[00:13:46]             │ debg Find.findByCssSelector('[data-test-subj="loginPassword"]') with timeout=10000
[00:13:46]             │ debg TestSubjects.click(loginSubmit)
[00:13:46]             │ debg Find.clickByCssSelector('[data-test-subj="loginSubmit"]') with timeout=10000
[00:13:46]             │ debg Find.findByCssSelector('[data-test-subj="loginSubmit"]') with timeout=10000
[00:13:46]             │ debg Waiting for login result, expected: chrome.
[00:13:46]             │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"] .app-wrapper:not(.hidden-chrome)') with timeout=20000
[00:13:46]             │ proc [kibana]   log   [09:10:50.457] [error][data][data][indexPatterns][plugins] ResponseError: security_exception
[00:13:46]             │ proc [kibana]     at onBody (/dev/shm/workspace/kibana-build-xpack-4/node_modules/@elastic/elasticsearch/lib/Transport.js:337:23)
[00:13:46]             │ proc [kibana]     at IncomingMessage.onEnd (/dev/shm/workspace/kibana-build-xpack-4/node_modules/@elastic/elasticsearch/lib/Transport.js:264:11)
[00:13:46]             │ proc [kibana]     at IncomingMessage.emit (events.js:327:22)
[00:13:46]             │ proc [kibana]     at endReadableNT (internal/streams/readable.js:1327:12)
[00:13:46]             │ proc [kibana]     at processTicksAndRejections (internal/process/task_queues.js:80:21) {
[00:13:46]             │ proc [kibana]   meta: {
[00:13:46]             │ proc [kibana]     body: { error: [Object], status: 401 },
[00:13:46]             │ proc [kibana]     statusCode: 401,
[00:13:46]             │ proc [kibana]     headers: {
[00:13:46]             │ proc [kibana]       'x-opaque-id': 'bb79c38b-8864-4f6b-a23d-01368e406b9d',
[00:13:46]             │ proc [kibana]       'www-authenticate': 'Basic realm="security" charset="UTF-8", ApiKey',
[00:13:46]             │ proc [kibana]       'content-type': 'application/json; charset=UTF-8',
[00:13:46]             │ proc [kibana]       'content-length': '463'
[00:13:46]             │ proc [kibana]     },
[00:13:46]             │ proc [kibana]     meta: {
[00:13:46]             │ proc [kibana]       context: null,
[00:13:46]             │ proc [kibana]       request: [Object],
[00:13:46]             │ proc [kibana]       name: 'elasticsearch-js',
[00:13:46]             │ proc [kibana]       connection: [Object],
[00:13:46]             │ proc [kibana]       attempts: 0,
[00:13:46]             │ proc [kibana]       aborted: false
[00:13:46]             │ proc [kibana]     }
[00:13:46]             │ proc [kibana]   },
[00:13:46]             │ proc [kibana]   isBoom: true,
[00:13:46]             │ proc [kibana]   isServer: true,
[00:13:46]             │ proc [kibana]   data: null,
[00:13:46]             │ proc [kibana]   output: {
[00:13:46]             │ proc [kibana]     statusCode: 500,
[00:13:46]             │ proc [kibana]     payload: {
[00:13:46]             │ proc [kibana]       statusCode: 500,
[00:13:46]             │ proc [kibana]       error: 'Internal Server Error',
[00:13:46]             │ proc [kibana]       message: 'An internal server error occurred'
[00:13:46]             │ proc [kibana]     },
[00:13:46]             │ proc [kibana]     headers: {}
[00:13:46]             │ proc [kibana]   },
[00:13:46]             │ proc [kibana]   [Symbol(SavedObjectsClientErrorCode)]: 'SavedObjectsClient/generalError'
[00:13:46]             │ proc [kibana] }
[00:13:46]             │ proc [kibana]   log   [09:10:50.458] [info][plugins][routes][security] Logging in with provider "basic" (basic)
[00:13:48]             │ debg browser[INFO] http://localhost:6141/app/home 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:13:48]             │
[00:13:48]             │ debg browser[INFO] http://localhost:6141/bootstrap.js 41:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:13:48]             │ debg Finished login process currentUrl = http://localhost:6141/app/home#/
[00:13:48]             │ debg Waiting up to 20000ms for logout button visible...
[00:13:48]             │ debg TestSubjects.exists(userMenuButton)
[00:13:48]             │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="userMenuButton"]') with timeout=2500
[00:13:48]             │ debg TestSubjects.exists(userMenu)
[00:13:48]             │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="userMenu"]') with timeout=2500
[00:13:51]             │ debg --- retry.tryForTime error: [data-test-subj="userMenu"] is not displayed
[00:13:51]             │ debg TestSubjects.click(userMenuButton)
[00:13:51]             │ debg Find.clickByCssSelector('[data-test-subj="userMenuButton"]') with timeout=10000
[00:13:51]             │ debg Find.findByCssSelector('[data-test-subj="userMenuButton"]') with timeout=10000
[00:13:51]             │ debg TestSubjects.exists(userMenu)
[00:13:51]             │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="userMenu"]') with timeout=120000
[00:13:51]             │ debg TestSubjects.exists(userMenu > logoutLink)
[00:13:51]             │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="userMenu"] [data-test-subj="logoutLink"]') with timeout=2500
[00:13:51]           └-: with multi metric job
[00:13:51]             └-> "before all" hook for "can open job selection flyout"
[00:13:51]             └-> "before all" hook for "can open job selection flyout"
[00:13:51]               │ debg Creating anomaly detection job with id 'fq_multi_1_ae' ...
[00:13:51]               │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1617178691054229629] [.ml-anomalies-shared] creating index, cause [api], templates [.ml-anomalies-], shards [1]/[1]
[00:13:51]               │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1617178691054229629] updating number_of_replicas to [0] for indices [.ml-anomalies-shared]
[00:13:52]               │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1617178691054229629] [.ml-annotations-6] creating index, cause [api], templates [], shards [1]/[1]
[00:13:52]               │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1617178691054229629] updating number_of_replicas to [0] for indices [.ml-annotations-6]
[00:13:52]               │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1617178691054229629] [.ml-anomalies-shared/15eaTk38TYWS7g6Z3UGnYA] update_mapping [_doc]
[00:13:52]               │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1617178691054229629] [.ml-config] creating index, cause [auto(bulk api)], templates [], shards [1]/[1]
[00:13:52]               │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1617178691054229629] updating number_of_replicas to [0] for indices [.ml-config]
[00:13:52]               │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1617178691054229629] [.ml-notifications-000001] creating index, cause [auto(bulk api)], templates [.ml-notifications-000001], shards [1]/[1]
[00:13:52]               │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1617178691054229629] updating number_of_replicas to [0] for indices [.ml-notifications-000001]
[00:13:52]               │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1617178691054229629] [.kibana_7.13.0_001/b-yumVY1SgOPf9RD1b40OA] update_mapping [_doc]
[00:13:53]               │ debg Waiting up to 5000ms for 'fq_multi_1_ae' to exist...
[00:13:53]               │ debg > AD job created.
[00:13:53]               │ debg Creating datafeed with id 'datafeed-fq_multi_1_ae' ...
[00:13:54]               │ debg Waiting up to 5000ms for 'datafeed-fq_multi_1_ae' to exist...
[00:13:54]               │ debg > Datafeed created.
[00:13:54]               │ debg Opening anomaly detection job 'fq_multi_1_ae'...
[00:13:54]               │ info [o.e.x.m.j.p.a.AutodetectProcessManager] [kibana-ci-immutable-ubuntu-16-tests-xxl-1617178691054229629] Opening job [fq_multi_1_ae]
[00:13:54]               │ info [o.e.x.c.m.u.MlIndexAndAlias] [kibana-ci-immutable-ubuntu-16-tests-xxl-1617178691054229629] About to create first concrete index [.ml-state-000001] with alias [.ml-state-write]
[00:13:54]               │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1617178691054229629] [.ml-state-000001] creating index, cause [api], templates [.ml-state], shards [1]/[1]
[00:13:54]               │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1617178691054229629] updating number_of_replicas to [0] for indices [.ml-state-000001]
[00:13:54]               │ info [o.e.x.i.IndexLifecycleTransition] [kibana-ci-immutable-ubuntu-16-tests-xxl-1617178691054229629] moving index [.ml-state-000001] from [null] to [{"phase":"new","action":"complete","name":"complete"}] in policy [ml-size-based-ilm-policy]
[00:13:54]               │ info [o.e.x.i.IndexLifecycleTransition] [kibana-ci-immutable-ubuntu-16-tests-xxl-1617178691054229629] 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:13:54]               │ info [o.e.x.m.j.p.a.AutodetectProcessManager] [kibana-ci-immutable-ubuntu-16-tests-xxl-1617178691054229629] [fq_multi_1_ae] Loading model snapshot [N/A], job latest_record_timestamp [N/A]
[00:13:54]               │ info [o.e.x.i.IndexLifecycleTransition] [kibana-ci-immutable-ubuntu-16-tests-xxl-1617178691054229629] 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:13:54]               │ info [o.e.x.m.p.l.CppLogMessageHandler] [kibana-ci-immutable-ubuntu-16-tests-xxl-1617178691054229629] [fq_multi_1_ae] [autodetect/224114] [CResourceMonitor.cc@77] Setting model memory limit to 20 MB
[00:13:54]               │ info [o.e.x.m.j.p.a.AutodetectProcessManager] [kibana-ci-immutable-ubuntu-16-tests-xxl-1617178691054229629] Successfully set job state to [opened] for job [fq_multi_1_ae]
[00:13:54]               │ debg > AD job opened.
[00:13:54]               │ debg Starting datafeed 'datafeed-fq_multi_1_ae' with start: '0', end: '1617181858938'...
[00:13:54]               │ info [o.e.x.m.d.DatafeedJob] [kibana-ci-immutable-ubuntu-16-tests-xxl-1617178691054229629] [fq_multi_1_ae] Datafeed started (from: 1970-01-01T00:00:00.000Z to: 2021-03-31T09:10:58.938Z) with frequency [600000ms]
[00:13:54]               │ debg > Datafeed started.
[00:13:54]               │ debg Waiting up to 120000ms for datafeed state to be stopped...
[00:13:54]               │ debg Fetching datafeed state for datafeed datafeed-fq_multi_1_ae
[00:13:54]               │ debg --- retry.waitForWithTimeout error: expected job state to be stopped but got started
[00:13:54]               │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1617178691054229629] [.ml-anomalies-shared/15eaTk38TYWS7g6Z3UGnYA] update_mapping [_doc]
[00:13:55]               │ info [o.e.x.m.j.p.DataCountsReporter] [kibana-ci-immutable-ubuntu-16-tests-xxl-1617178691054229629] [fq_multi_1_ae] 10000 records written to autodetect; missingFieldCount=0, invalidDateCount=0, outOfOrderCount=0
[00:13:55]               │ debg Fetching datafeed state for datafeed datafeed-fq_multi_1_ae
[00:13:55]               │ debg --- retry.waitForWithTimeout failed again with the same message...
[00:13:55]               │ info [o.e.x.m.j.p.DataCountsReporter] [kibana-ci-immutable-ubuntu-16-tests-xxl-1617178691054229629] [fq_multi_1_ae] 20000 records written to autodetect; missingFieldCount=0, invalidDateCount=0, outOfOrderCount=0
[00:13:55]               │ debg Fetching datafeed state for datafeed datafeed-fq_multi_1_ae
[00:13:55]               │ debg --- retry.waitForWithTimeout failed again with the same message...
[00:13:55]               │ info [o.e.x.m.j.p.DataCountsReporter] [kibana-ci-immutable-ubuntu-16-tests-xxl-1617178691054229629] [fq_multi_1_ae] 30000 records written to autodetect; missingFieldCount=0, invalidDateCount=0, outOfOrderCount=0
[00:13:56]               │ info [o.e.x.m.j.p.DataCountsReporter] [kibana-ci-immutable-ubuntu-16-tests-xxl-1617178691054229629] [fq_multi_1_ae] 40000 records written to autodetect; missingFieldCount=0, invalidDateCount=0, outOfOrderCount=0
[00:13:56]               │ debg Fetching datafeed state for datafeed datafeed-fq_multi_1_ae
[00:13:56]               │ debg --- retry.waitForWithTimeout failed again with the same message...
[00:13:56]               │ info [o.e.x.m.j.p.DataCountsReporter] [kibana-ci-immutable-ubuntu-16-tests-xxl-1617178691054229629] [fq_multi_1_ae] 50000 records written to autodetect; missingFieldCount=0, invalidDateCount=0, outOfOrderCount=0
[00:13:56]               │ debg Fetching datafeed state for datafeed datafeed-fq_multi_1_ae
[00:13:56]               │ debg --- retry.waitForWithTimeout failed again with the same message...
[00:13:57]               │ info [o.e.x.m.j.p.DataCountsReporter] [kibana-ci-immutable-ubuntu-16-tests-xxl-1617178691054229629] [fq_multi_1_ae] 60000 records written to autodetect; missingFieldCount=0, invalidDateCount=0, outOfOrderCount=0
[00:13:57]               │ debg Fetching datafeed state for datafeed datafeed-fq_multi_1_ae
[00:13:57]               │ debg --- retry.waitForWithTimeout failed again with the same message...
[00:13:57]               │ info [o.e.x.m.j.p.DataCountsReporter] [kibana-ci-immutable-ubuntu-16-tests-xxl-1617178691054229629] [fq_multi_1_ae] 70000 records written to autodetect; missingFieldCount=0, invalidDateCount=0, outOfOrderCount=0
[00:13:57]               │ debg Fetching datafeed state for datafeed datafeed-fq_multi_1_ae
[00:13:57]               │ debg --- retry.waitForWithTimeout failed again with the same message...
[00:13:58]               │ info [o.e.x.m.j.p.DataCountsReporter] [kibana-ci-immutable-ubuntu-16-tests-xxl-1617178691054229629] [fq_multi_1_ae] 80000 records written to autodetect; missingFieldCount=0, invalidDateCount=0, outOfOrderCount=0
[00:13:58]               │ debg Fetching datafeed state for datafeed datafeed-fq_multi_1_ae
[00:13:58]               │ debg --- retry.waitForWithTimeout failed again with the same message...
[00:13:58]               │ debg Fetching datafeed state for datafeed datafeed-fq_multi_1_ae
[00:13:58]               │ debg --- retry.waitForWithTimeout failed again with the same message...
[00:13:59]               │ debg Fetching datafeed state for datafeed datafeed-fq_multi_1_ae
[00:13:59]               │ debg --- retry.waitForWithTimeout failed again with the same message...
[00:13:59]               │ debg Fetching datafeed state for datafeed datafeed-fq_multi_1_ae
[00:13:59]               │ debg --- retry.waitForWithTimeout failed again with the same message...
[00:14:00]               │ debg Fetching datafeed state for datafeed datafeed-fq_multi_1_ae
[00:14:00]               │ debg --- retry.waitForWithTimeout failed again with the same message...
[00:14:00]               │ info [o.e.x.m.d.DatafeedJob] [kibana-ci-immutable-ubuntu-16-tests-xxl-1617178691054229629] [fq_multi_1_ae] Lookback has finished
[00:14:00]               │ info [o.e.x.m.d.DatafeedManager] [kibana-ci-immutable-ubuntu-16-tests-xxl-1617178691054229629] [no_realtime] attempt to stop datafeed [datafeed-fq_multi_1_ae] for job [fq_multi_1_ae]
[00:14:00]               │ info [o.e.x.m.d.DatafeedManager] [kibana-ci-immutable-ubuntu-16-tests-xxl-1617178691054229629] [no_realtime] try lock [20s] to stop datafeed [datafeed-fq_multi_1_ae] for job [fq_multi_1_ae]...
[00:14:00]               │ info [o.e.x.m.d.DatafeedManager] [kibana-ci-immutable-ubuntu-16-tests-xxl-1617178691054229629] [no_realtime] stopping datafeed [datafeed-fq_multi_1_ae] for job [fq_multi_1_ae], acquired [true]...
[00:14:00]               │ info [o.e.x.m.d.DatafeedManager] [kibana-ci-immutable-ubuntu-16-tests-xxl-1617178691054229629] [no_realtime] datafeed [datafeed-fq_multi_1_ae] for job [fq_multi_1_ae] has been stopped
[00:14:00]               │ info [o.e.x.m.j.p.a.AutodetectProcessManager] [kibana-ci-immutable-ubuntu-16-tests-xxl-1617178691054229629] Closing job [fq_multi_1_ae], because [close job (api)]
[00:14:00]               │ info [o.e.x.m.p.l.CppLogMessageHandler] [kibana-ci-immutable-ubuntu-16-tests-xxl-1617178691054229629] [fq_multi_1_ae] [autodetect/224114] [CCmdSkeleton.cc@61] Handled 86274 records
[00:14:00]               │ info [o.e.x.m.p.l.CppLogMessageHandler] [kibana-ci-immutable-ubuntu-16-tests-xxl-1617178691054229629] [fq_multi_1_ae] [autodetect/224114] [CAnomalyJob.cc@1578] Pruning all models
[00:14:00]               │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1617178691054229629] [.ml-anomalies-shared/15eaTk38TYWS7g6Z3UGnYA] update_mapping [_doc]
[00:14:00]               │ info [o.e.x.m.p.AbstractNativeProcess] [kibana-ci-immutable-ubuntu-16-tests-xxl-1617178691054229629] [fq_multi_1_ae] State output finished
[00:14:00]               │ info [o.e.x.m.j.p.a.o.AutodetectResultProcessor] [kibana-ci-immutable-ubuntu-16-tests-xxl-1617178691054229629] [fq_multi_1_ae] 120 buckets parsed from autodetect output
[00:14:00]               │ debg Fetching datafeed state for datafeed datafeed-fq_multi_1_ae
[00:14:00]               │ debg Waiting up to 120000ms for job state to be closed...
[00:14:00]               │ debg Fetching anomaly detection job stats for job fq_multi_1_ae...
[00:14:00]               │ debg > AD job stats fetched.
[00:14:00]               │ debg --- retry.waitForWithTimeout error: expected job state to be closed but got closing
[00:14:01]               │ debg Fetching anomaly detection job stats for job fq_multi_1_ae...
[00:14:01]               │ debg > AD job stats fetched.
[00:14:01]               │ debg --- retry.waitForWithTimeout failed again with the same message...
[00:14:01]               │ info [o.e.x.m.j.p.a.AutodetectCommunicator] [kibana-ci-immutable-ubuntu-16-tests-xxl-1617178691054229629] [fq_multi_1_ae] job closed
[00:14:01]               │ debg Fetching anomaly detection job stats for job fq_multi_1_ae...
[00:14:02]               │ debg > AD job stats fetched.
[00:14:02]               │ debg navigating to dashboard url: http://localhost:6141/app/dashboards#/list
[00:14:02]               │ debg navigate to: http://localhost:6141/app/dashboards#/list
[00:14:02]               │ debg browser[INFO] http://localhost:6141/app/dashboards?_t=1617181866225#/list 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:14:02]               │
[00:14:02]               │ debg browser[INFO] http://localhost:6141/bootstrap.js 41:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:14:02]               │ debg ... sleep(700) start
[00:14:02]               │ debg ... sleep(700) end
[00:14:02]               │ debg returned from get, calling refresh
[00:14:03]               │ERROR browser[SEVERE] http://localhost:6141/39946/bundles/core/core.entry.js 12:149985 TypeError: Failed to fetch
[00:14:03]               │          at fetch_Fetch.fetchResponse (http://localhost:6141/39946/bundles/core/core.entry.js:6:29862)
[00:14:03]               │          at async http://localhost:6141/39946/bundles/core/core.entry.js:6:27759
[00:14:03]               │          at async http://localhost:6141/39946/bundles/core/core.entry.js:6:27665
[00:14:03]               │ debg browser[INFO] http://localhost:6141/app/dashboards?_t=1617181866225#/list 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:14:03]               │
[00:14:03]               │ debg browser[INFO] http://localhost:6141/bootstrap.js 41:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:14:04]               │ debg currentUrl = http://localhost:6141/app/dashboards#/list
[00:14:04]               │          appUrl = http://localhost:6141/app/dashboards#/list
[00:14:04]               │ debg TestSubjects.find(kibanaChrome)
[00:14:04]               │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:14:04]               │ debg ... sleep(501) start
[00:14:05]               │ debg ... sleep(501) end
[00:14:05]               │ debg in navigateTo url = http://localhost:6141/app/dashboards#/list?_g=(filters:!(),refreshInterval:(pause:!t,value:0),time:(from:now-15m,to:now))
[00:14:05]               │ debg TestSubjects.exists(statusPageContainer)
[00:14:05]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="statusPageContainer"]') with timeout=2500
[00:14:07]               │ debg --- retry.tryForTime error: [data-test-subj="statusPageContainer"] is not displayed
[00:14:08]             └-> can open job selection flyout
[00:14:08]               └-> "before each" hook: global before each for "can open job selection flyout"
[00:14:08]               │ debg TestSubjects.click(createDashboardPromptButton)
[00:14:08]               │ debg Find.clickByCssSelector('[data-test-subj="createDashboardPromptButton"]') with timeout=10000
[00:14:08]               │ debg Find.findByCssSelector('[data-test-subj="createDashboardPromptButton"]') with timeout=10000
[00:14:08]               │ debg TestSubjects.exists(emptyDashboardWidget)
[00:14:08]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="emptyDashboardWidget"]') with timeout=120000
[00:14:08]               │ debg DashboardAddPanel.clickOpenAddPanel
[00:14:08]               │ debg TestSubjects.click(dashboardAddPanelButton)
[00:14:08]               │ debg Find.clickByCssSelector('[data-test-subj="dashboardAddPanelButton"]') with timeout=10000
[00:14:08]               │ debg Find.findByCssSelector('[data-test-subj="dashboardAddPanelButton"]') with timeout=10000
[00:14:08]               │ debg TestSubjects.click(createNew)
[00:14:08]               │ debg Find.clickByCssSelector('[data-test-subj="createNew"]') with timeout=10000
[00:14:08]               │ debg Find.findByCssSelector('[data-test-subj="createNew"]') with timeout=10000
[00:14:18]               │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="createNew"])
[00:14:18]               │      Wait timed out after 10023ms
[00:14:19]               │ debg Find.findByCssSelector('[data-test-subj="createNew"]') with timeout=10000
[00:14:29]               │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="createNew"])
[00:14:29]               │      Wait timed out after 10008ms
[00:14:29]               │ debg Find.findByCssSelector('[data-test-subj="createNew"]') with timeout=10000
[00:14:39]               │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="createNew"])
[00:14:39]               │      Wait timed out after 10048ms
[00:14:40]               │ debg Find.findByCssSelector('[data-test-subj="createNew"]') with timeout=10000
[00:14:50]               │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="createNew"])
[00:14:50]               │      Wait timed out after 10024ms
[00:14:50]               │ debg Find.findByCssSelector('[data-test-subj="createNew"]') with timeout=10000
[00:15:00]               │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="createNew"])
[00:15:00]               │      Wait timed out after 10028ms
[00:15:01]               │ debg Find.findByCssSelector('[data-test-subj="createNew"]') with timeout=10000
[00:15:11]               │ debg --- retry.try failed again with the same message...
[00:15:11]               │ debg Find.findByCssSelector('[data-test-subj="createNew"]') with timeout=10000
[00:15:21]               │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="createNew"])
[00:15:21]               │      Wait timed out after 10015ms
[00:15:22]               │ debg Find.findByCssSelector('[data-test-subj="createNew"]') with timeout=10000
[00:15:32]               │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="createNew"])
[00:15:32]               │      Wait timed out after 10012ms
[00:15:32]               │ debg Find.findByCssSelector('[data-test-subj="createNew"]') with timeout=10000
[00:15:42]               │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="createNew"])
[00:15:42]               │      Wait timed out after 10007ms
[00:15:43]               │ debg Find.findByCssSelector('[data-test-subj="createNew"]') with timeout=10000
[00:15:53]               │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="createNew"])
[00:15:53]               │      Wait timed out after 10020ms
[00:15:53]               │ debg Find.findByCssSelector('[data-test-subj="createNew"]') with timeout=10000
[00:16:03]               │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="createNew"])
[00:16:03]               │      Wait timed out after 10004ms
[00:16:04]               │ debg Find.findByCssSelector('[data-test-subj="createNew"]') with timeout=10000
[00:16:14]               │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="createNew"])
[00:16:14]               │      Wait timed out after 10036ms
[00:16:14]               │ info Taking screenshot "/dev/shm/workspace/parallel/4/kibana/x-pack/test/functional/screenshots/failure/machine learning embeddables anomaly charts with multi metric job can open job selection flyout.png"
[00:16:14]               │ info Current URL is: http://localhost:6141/app/dashboards#/create?_g=(filters:!(),refreshInterval:(pause:!t,value:0),time:(from:now-15m,to:now))&_a=(description:%27%27,filters:!(),fullScreenMode:!f,options:(hidePanelTitles:!f,useMargins:!t),query:(language:kuery,query:%27%27),tags:!(),timeRestore:!f,title:%27%27,viewMode:edit)
[00:16:14]               │ info Saving page source to: /dev/shm/workspace/parallel/4/kibana/x-pack/test/functional/failure_debug/html/machine learning embeddables anomaly charts with multi metric job can open job selection flyout.html
[00:16:14]               └- ✖ fail: machine learning embeddables anomaly charts with multi metric job can open job selection flyout
[00:16:14]               │      Error: retry.try timeout: TimeoutError: Waiting for element to be located By(css selector, [data-test-subj="createNew"])
[00:16:14]               │ Wait timed out after 10036ms
[00:16:14]               │     at /dev/shm/workspace/parallel/4/kibana/node_modules/selenium-webdriver/lib/webdriver.js:842:17
[00:16:14]               │     at processTicksAndRejections (internal/process/task_queues.js:93:5)
[00:16:14]               │       at onFailure (/dev/shm/workspace/parallel/4/kibana/test/common/services/retry/retry_for_success.ts:17:9)
[00:16:14]               │       at retryForSuccess (/dev/shm/workspace/parallel/4/kibana/test/common/services/retry/retry_for_success.ts:57:13)
[00:16:14]               │       at Retry.try (/dev/shm/workspace/parallel/4/kibana/test/common/services/retry/retry.ts:32:14)
[00:16:14]               │       at Proxy.clickByCssSelector (/dev/shm/workspace/parallel/4/kibana/test/functional/services/common/find.ts:420:7)
[00:16:14]               │       at TestSubjects.click (/dev/shm/workspace/parallel/4/kibana/test/functional/services/common/test_subjects.ts:109:7)
[00:16:14]               │       at DashboardAddPanel.clickAddNewEmbeddableLink (/dev/shm/workspace/parallel/4/kibana/test/functional/services/dashboard/add_panel.ts:37:7)
[00:16:14]               │       at Context.<anonymous> (test/accessibility/apps/ml_embeddables_in_dashboard.ts:100:11)
[00:16:14]               │       at Object.apply (/dev/shm/workspace/parallel/4/kibana/node_modules/@kbn/test/src/functional_test_runner/lib/mocha/wrap_function.js:73:16)
[00:16:14]               │ 
[00:16:14]               │ 

Stack Trace

Error: retry.try timeout: TimeoutError: Waiting for element to be located By(css selector, [data-test-subj="createNew"])
Wait timed out after 10036ms
    at /dev/shm/workspace/parallel/4/kibana/node_modules/selenium-webdriver/lib/webdriver.js:842:17
    at processTicksAndRejections (internal/process/task_queues.js:93:5)
    at onFailure (/dev/shm/workspace/parallel/4/kibana/test/common/services/retry/retry_for_success.ts:17:9)
    at retryForSuccess (/dev/shm/workspace/parallel/4/kibana/test/common/services/retry/retry_for_success.ts:57:13)
    at Retry.try (/dev/shm/workspace/parallel/4/kibana/test/common/services/retry/retry.ts:32:14)
    at Proxy.clickByCssSelector (/dev/shm/workspace/parallel/4/kibana/test/functional/services/common/find.ts:420:7)
    at TestSubjects.click (/dev/shm/workspace/parallel/4/kibana/test/functional/services/common/test_subjects.ts:109:7)
    at DashboardAddPanel.clickAddNewEmbeddableLink (/dev/shm/workspace/parallel/4/kibana/test/functional/services/dashboard/add_panel.ts:37:7)
    at Context.<anonymous> (test/accessibility/apps/ml_embeddables_in_dashboard.ts:100:11)
    at Object.apply (/dev/shm/workspace/parallel/4/kibana/node_modules/@kbn/test/src/functional_test_runner/lib/mocha/wrap_function.js:73:16)

Metrics [docs]

Module Count

Fewer modules leads to a faster build time

id before after diff
osquery 137 141 +4

Async chunks

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

id before after diff
osquery 764.0KB 769.7KB +5.7KB

Page load bundle

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

id before after diff
osquery 10.9KB 11.1KB +299.0B

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

cc @lykkin

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

Labels

backport This PR is a backport of another PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants