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

[7.x] Move data stream index pattern creation test to xpack (#71511) #71996

Merged
merged 1 commit into from
Jul 16, 2020

Conversation

mattkime
Copy link
Contributor

Backports the following commits to 7.x:

* Move data stream index pattern creation test to xpack
@kibanamachine
Copy link
Contributor

💛 Build succeeded, but was flaky


Test Failures

Kibana Pipeline / kibana-xpack-agent / X-Pack API Integration Tests.x-pack/test/api_integration/apis/fleet/setup·ts.apis Fleet Endpoints fleet_setup should not create or update the fleet_enroll user if called multiple times

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
[00:07:32]           └-: Fleet Endpoints
[00:07:32]             └-> "before all" hook
[00:07:32]             └-: fleet_setup
[00:07:32]               └-> "before all" hook
[00:07:32]               └-> should create a fleet_enroll user and role
[00:07:32]                 └-> "before each" hook: global before each
[00:07:32]                 └-> "before each" hook
[00:07:32]                 │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-18-tests-xl-1594862416353132149] [metrics-index_pattern_placeholder] creating index, cause [api], templates [], shards [1]/[1]
[00:07:32]                 │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-18-tests-xl-1594862416353132149] [events-index_pattern_placeholder] creating index, cause [api], templates [], shards [1]/[1]
[00:07:32]                 │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-18-tests-xl-1594862416353132149] [logs-index_pattern_placeholder] creating index, cause [api], templates [], shards [1]/[1]
[00:07:35]                 │ proc [kibana]  error  [02:13:34.380] [warning][process] UnhandledPromiseRejectionWarning: Error: [epm-packages:endpoint]: version conflict, required seqNo [22], primary term [1]. current document has seqNo [23] and primary term [1]: [version_conflict_engine_exception] [epm-packages:endpoint]: version conflict, required seqNo [22], primary term [1]. current document has seqNo [23] and primary term [1], with { index_uuid="c0p7zwNpTmmETJNp142rHA" & shard="0" & index=".kibana_2" }
[00:07:35]                 │ proc [kibana]     at respond (/dev/shm/workspace/install/kibana-7/node_modules/elasticsearch/src/lib/transport.js:349:15)
[00:07:35]                 │ proc [kibana]     at checkRespForFailure (/dev/shm/workspace/install/kibana-7/node_modules/elasticsearch/src/lib/transport.js:306:7)
[00:07:35]                 │ proc [kibana]     at HttpConnector.<anonymous> (/dev/shm/workspace/install/kibana-7/node_modules/elasticsearch/src/lib/connectors/http.js:173:7)
[00:07:35]                 │ proc [kibana]     at IncomingMessage.wrapper (/dev/shm/workspace/install/kibana-7/node_modules/lodash/lodash.js:4929:19)
[00:07:35]                 │ proc [kibana]     at IncomingMessage.emit (events.js:203:15)
[00:07:35]                 │ proc [kibana]     at endReadableNT (_stream_readable.js:1145:12)
[00:07:35]                 │ proc [kibana]     at process._tickCallback (internal/process/next_tick.js:63:19)
[00:07:35]                 │ proc [kibana]     at emitWarning (internal/process/promises.js:97:15)
[00:07:35]                 │ proc [kibana]     at emitPromiseRejectionWarnings (internal/process/promises.js:143:7)
[00:07:35]                 │ proc [kibana]     at process._tickCallback (internal/process/next_tick.js:69:34)
[00:07:35]                 │ proc [kibana]  error  [02:13:34.381] [warning][process] Error: [epm-packages:endpoint]: version conflict, required seqNo [22], primary term [1]. current document has seqNo [23] and primary term [1]: [version_conflict_engine_exception] [epm-packages:endpoint]: version conflict, required seqNo [22], primary term [1]. current document has seqNo [23] and primary term [1], with { index_uuid="c0p7zwNpTmmETJNp142rHA" & shard="0" & index=".kibana_2" }
[00:07:35]                 │ proc [kibana]     at respond (/dev/shm/workspace/install/kibana-7/node_modules/elasticsearch/src/lib/transport.js:349:15)
[00:07:35]                 │ proc [kibana]     at checkRespForFailure (/dev/shm/workspace/install/kibana-7/node_modules/elasticsearch/src/lib/transport.js:306:7)
[00:07:35]                 │ proc [kibana]     at HttpConnector.<anonymous> (/dev/shm/workspace/install/kibana-7/node_modules/elasticsearch/src/lib/connectors/http.js:173:7)
[00:07:35]                 │ proc [kibana]     at IncomingMessage.wrapper (/dev/shm/workspace/install/kibana-7/node_modules/lodash/lodash.js:4929:19)
[00:07:35]                 │ proc [kibana]     at IncomingMessage.emit (events.js:203:15)
[00:07:35]                 │ proc [kibana]     at endReadableNT (_stream_readable.js:1145:12)
[00:07:35]                 │ proc [kibana]     at process._tickCallback (internal/process/next_tick.js:63:19)
[00:07:35]                 │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-ubuntu-18-tests-xl-1594862416353132149] added role [fleet_enroll]
[00:07:35]                 │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-ubuntu-18-tests-xl-1594862416353132149] added user [fleet_enroll]
[00:07:36]                 │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-18-tests-xl-1594862416353132149] [.kibana_2/c0p7zwNpTmmETJNp142rHA] update_mapping [_doc]
[00:07:36]                 │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-18-tests-xl-1594862416353132149] [.kibana_2/c0p7zwNpTmmETJNp142rHA] update_mapping [_doc]
[00:07:37]                 └- ✓ pass  (4.8s) "apis Fleet Endpoints fleet_setup should create a fleet_enroll user and role"
[00:07:37]               └-> should not create or update the fleet_enroll user if called multiple times
[00:07:37]                 └-> "before each" hook: global before each
[00:07:37]                 └-> "before each" hook
[00:07:37]                 │ proc [kibana]  error  [02:13:36.619] [warning][process] PromiseRejectionHandledWarning: Promise rejection was handled asynchronously (rejection id: 111)
[00:07:37]                 │ proc [kibana]     at handledRejection (internal/process/promises.js:71:23)
[00:07:37]                 │ proc [kibana]     at promiseRejectHandler (internal/process/promises.js:36:14)
[00:07:37]                 │ proc [kibana]     at Promise.then (<anonymous>)
[00:07:37]                 │ proc [kibana]     at process._tickCallback (internal/process/next_tick.js:68:7)
[00:07:37]                 └- ✖ fail: apis Fleet Endpoints fleet_setup should not create or update the fleet_enroll user if called multiple times
[00:07:37]                 │      Error: expected 200 "OK", got 500 "Internal Server Error"
[00:07:37]                 │       at Test._assertStatus (/dev/shm/workspace/kibana/node_modules/supertest/lib/test.js:268:12)
[00:07:37]                 │       at Test._assertFunction (/dev/shm/workspace/kibana/node_modules/supertest/lib/test.js:283:11)
[00:07:37]                 │       at Test.assert (/dev/shm/workspace/kibana/node_modules/supertest/lib/test.js:173:18)
[00:07:37]                 │       at assert (/dev/shm/workspace/kibana/node_modules/supertest/lib/test.js:131:12)
[00:07:37]                 │       at /dev/shm/workspace/kibana/node_modules/supertest/lib/test.js:128:5
[00:07:37]                 │       at Test.Request.callback (/dev/shm/workspace/kibana/node_modules/superagent/lib/node/index.js:718:3)
[00:07:37]                 │       at parser (/dev/shm/workspace/kibana/node_modules/superagent/lib/node/index.js:906:18)
[00:07:37]                 │       at IncomingMessage.res.on (/dev/shm/workspace/kibana/node_modules/superagent/lib/node/parsers/json.js:19:7)
[00:07:37]                 │       at endReadableNT (_stream_readable.js:1145:12)
[00:07:37]                 │       at process._tickCallback (internal/process/next_tick.js:63:19)
[00:07:37]                 │ 
[00:07:37]                 │ 

Stack Trace

Error: expected 200 "OK", got 500 "Internal Server Error"
    at Test._assertStatus (/dev/shm/workspace/kibana/node_modules/supertest/lib/test.js:268:12)
    at Test._assertFunction (/dev/shm/workspace/kibana/node_modules/supertest/lib/test.js:283:11)
    at Test.assert (/dev/shm/workspace/kibana/node_modules/supertest/lib/test.js:173:18)
    at assert (/dev/shm/workspace/kibana/node_modules/supertest/lib/test.js:131:12)
    at /dev/shm/workspace/kibana/node_modules/supertest/lib/test.js:128:5
    at Test.Request.callback (/dev/shm/workspace/kibana/node_modules/superagent/lib/node/index.js:718:3)
    at parser (/dev/shm/workspace/kibana/node_modules/superagent/lib/node/index.js:906:18)
    at IncomingMessage.res.on (/dev/shm/workspace/kibana/node_modules/superagent/lib/node/parsers/json.js:19:7)
    at endReadableNT (_stream_readable.js:1145:12)
    at process._tickCallback (internal/process/next_tick.js:63:19)

Build metrics

✅ unchanged

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

@mattkime mattkime merged commit 5b57860 into elastic:7.x Jul 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants