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

Failing ES Promotion: Fleet Endpoints fleet_unenroll_agent should allow to unenroll single agent #87166

Closed
mistic opened this issue Jan 4, 2021 · 4 comments · Fixed by #87053
Assignees
Labels
blocker failed-es-promotion skipped-test Team:Fleet Team label for Observability Data Collection Fleet team v8.0.0

Comments

@mistic
Copy link
Member

mistic commented Jan 4, 2021

This failure is preventing the promotion of the current Elasticsearch nightly snapshot.

https://kibana-ci.elastic.co/job/elasticsearch+snapshots+verify/2017/testReport/junit/X-Pack%20EPM%20API%20Integration%20Tests/x-pack_test_fleet_api_integration_apis_agents_unenroll%C2%B7ts/Kibana_Pipeline___kibana_xpack_agent___Fleet_Endpoints_fleet_unenroll_agent_should_allow_to_unenroll_single_agent/

For more information on the Elasticsearch snapshot promotion process: https://www.elastic.co/guide/en/kibana/master/development-es-snapshots.html

[00:00:00]       │
[00:00:00]         └-: Fleet Endpoints
[00:00:00]           └-> "before all" hook
[00:00:40]           └-: fleet_unenroll_agent
[00:00:40]             └-> "before all" hook
[00:00:40]             └-> "before all" hook
[00:00:40]               │ info [fleet/agents] Loading "mappings.json"
[00:00:40]               │ info [fleet/agents] Loading "data.json"
[00:00:40]               │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-debian-tests-xl-1609703227605725007] [.kibana_2/FvwBhgVFTC-pdIJdl-JOXw] deleting index
[00:00:40]               │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-debian-tests-xl-1609703227605725007] [.kibana_1/Q1qhq9a3Skyo_lH1t4q4gg] deleting index
[00:00:40]               │ info [fleet/agents] Deleted existing index [".kibana_2",".kibana_1"]
[00:00:40]               │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-debian-tests-xl-1609703227605725007] [.kibana_1] creating index, cause [api], templates [], shards [1]/[0]
[00:00:40]               │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-debian-tests-xl-1609703227605725007] current.health="GREEN" message="Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[.kibana_1][0]]])." previous.health="YELLOW" reason="shards started [[.kibana_1][0]]"
[00:00:40]               │ info [fleet/agents] Created index ".kibana_1"
[00:00:40]               │ debg [fleet/agents] ".kibana_1" settings {"index":{"auto_expand_replicas":"0-1","number_of_replicas":"0","number_of_shards":"1"}}
[00:00:40]               │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-debian-tests-xl-1609703227605725007] [.kibana_1/aRjSLvmWSVWIdcv0AGi0Yg] update_mapping [_doc]
[00:00:40]               │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-debian-tests-xl-1609703227605725007] [.kibana_1/aRjSLvmWSVWIdcv0AGi0Yg] update_mapping [_doc]
[00:00:40]               │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-debian-tests-xl-1609703227605725007] [.kibana_1/aRjSLvmWSVWIdcv0AGi0Yg] update_mapping [_doc]
[00:00:41]               │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-debian-tests-xl-1609703227605725007] [.kibana_1/aRjSLvmWSVWIdcv0AGi0Yg] update_mapping [_doc]
[00:00:41]               │ info [fleet/agents] Indexed 13 docs into ".kibana"
[00:00:41]               │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-debian-tests-xl-1609703227605725007] [.kibana_1/aRjSLvmWSVWIdcv0AGi0Yg] update_mapping [_doc]
[00:00:41]               │ debg Migrating saved objects
[00:00:41]               │ proc [kibana]   log   [21:05:29.856] [info][savedobjects-service] Creating index .kibana_2.
[00:00:41]               │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-debian-tests-xl-1609703227605725007] [.kibana_2] creating index, cause [api], templates [], shards [1]/[1]
[00:00:41]               │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-debian-tests-xl-1609703227605725007] updating number_of_replicas to [0] for indices [.kibana_2]
[00:00:41]               │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-debian-tests-xl-1609703227605725007] current.health="GREEN" message="Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[.kibana_2][0]]])." previous.health="YELLOW" reason="shards started [[.kibana_2][0]]"
[00:00:41]               │ proc [kibana]   log   [21:05:29.934] [info][savedobjects-service] Migrating .kibana_1 saved objects to .kibana_2
[00:00:41]               │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-debian-tests-xl-1609703227605725007] [.kibana_2/WF5HvtuGQ1m6-PXl42N3_Q] update_mapping [_doc]
[00:00:41]               │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-debian-tests-xl-1609703227605725007] [.kibana_2/WF5HvtuGQ1m6-PXl42N3_Q] update_mapping [_doc]
[00:00:41]               │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-debian-tests-xl-1609703227605725007] [.kibana_2/WF5HvtuGQ1m6-PXl42N3_Q] update_mapping [_doc]
[00:00:41]               │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-debian-tests-xl-1609703227605725007] [.kibana_2/WF5HvtuGQ1m6-PXl42N3_Q] update_mapping [_doc]
[00:00:41]               │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-debian-tests-xl-1609703227605725007] [.kibana_2/WF5HvtuGQ1m6-PXl42N3_Q] update_mapping [_doc]
[00:00:41]               │ proc [kibana]   log   [21:05:30.261] [info][savedobjects-service] Pointing alias .kibana to .kibana_2.
[00:00:41]               │ proc [kibana]   log   [21:05:30.317] [info][savedobjects-service] Finished in 463ms.
[00:00:41]             └-> "before all" hook
[00:00:41]               │ proc [kibana]   log   [21:05:30.342] [info][fleet][plugins] Custom registry url is an experimental feature and is unsupported.
[00:00:41]               │ proc [kibana]   log   [21:05:30.343] [info][fleet][plugins] Custom registry url is an experimental feature and is unsupported.
[00:00:41]               │ info [docker:registry] 2021/01/03 21:05:30 source.ip: 172.17.0.1:47420, url.original: /search?package=endpoint&internal=true&experimental=true
[00:00:41]               │ info [docker:registry] 2021/01/03 21:05:30 source.ip: 172.17.0.1:47418, url.original: /search?package=system&internal=true&experimental=true
[00:00:41]               │ proc [kibana]   log   [21:05:30.373] [info][fleet][plugins] Custom registry url is an experimental feature and is unsupported.
[00:00:41]               │ proc [kibana]   log   [21:05:30.376] [info][fleet][plugins] Custom registry url is an experimental feature and is unsupported.
[00:00:41]               │ info [docker:registry] 2021/01/03 21:05:30 source.ip: 172.17.0.1:47426, url.original: /search?package=endpoint&internal=true&experimental=true
[00:00:41]               │ info [docker:registry] 2021/01/03 21:05:30 source.ip: 172.17.0.1:47428, url.original: /search?package=system&internal=true&experimental=true
[00:00:41]               │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-debian-tests-xl-1609703227605725007] [.kibana_2/WF5HvtuGQ1m6-PXl42N3_Q] update_mapping [_doc]
[00:00:42]               │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-debian-tests-xl-1609703227605725007] [.kibana_2/WF5HvtuGQ1m6-PXl42N3_Q] update_mapping [_doc]
[00:00:43]               │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-debian-tests-xl-1609703227605725007] [.kibana_2/WF5HvtuGQ1m6-PXl42N3_Q] update_mapping [_doc]
[00:00:43]               │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-debian-tests-xl-1609703227605725007] [.kibana_2/WF5HvtuGQ1m6-PXl42N3_Q] update_mapping [_doc]
[00:00:43]               │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-debian-tests-xl-1609703227605725007] [.kibana_2/WF5HvtuGQ1m6-PXl42N3_Q] update_mapping [_doc]
[00:00:47]               │ proc [kibana]   log   [21:05:36.128] [info][fleet][plugins] Found previous transform references:
[00:00:47]               │ proc [kibana]  []
[00:00:47]               │ proc [kibana]   log   [21:05:36.129] [info][fleet][plugins] Deleting currently installed transform ids 
[00:00:47]               │ proc [kibana]   log   [21:05:36.134] [info][fleet][plugins] Found previous transform references:
[00:00:47]               │ proc [kibana]  []
[00:00:47]               │ proc [kibana]   log   [21:05:36.134] [info][fleet][plugins] Deleting currently installed transform ids 
[00:00:48]               │ proc [kibana]   log   [21:05:37.078] [info][fleet][plugins] Custom registry url is an experimental feature and is unsupported.
[00:00:48]               │ proc [kibana]   log   [21:05:37.082] [info][fleet][plugins] Custom registry url is an experimental feature and is unsupported.
[00:00:48]               │ info [docker:registry] 2021/01/03 21:05:37 source.ip: 172.17.0.1:47834, url.original: /search?package=system&internal=true&experimental=true
[00:00:48]               │ info [docker:registry] 2021/01/03 21:05:37 source.ip: 172.17.0.1:47832, url.original: /search?package=endpoint&internal=true&experimental=true
[00:00:48]               │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-debian-tests-xl-1609703227605725007] updated role [fleet_enroll]
[00:00:48]               │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-debian-tests-xl-1609703227605725007] updated user [fleet_enroll]
[00:00:51]             └-> should allow to unenroll single agent
[00:00:51]               └-> "before each" hook: global before each
[00:00:51]               └-> "before each" hook: beforeSetupWithDockerRegistry
[00:00:51]               └-> "before each" hook
[00:00:53]               │ proc [kibana]   log   [21:05:41.706] [error][api-key][authentication][plugins][security] Failed to invalidate API key as current user: x_content_parse_exception
[00:00:53]               │ proc [kibana]   log   [21:05:41.706] [error][fleet][plugins] ResponseError: x_content_parse_exception
[00:00:53]               │ proc [kibana]     at onBody (/dev/shm/workspace/kibana-build-xpack-10/node_modules/@elastic/elasticsearch/lib/Transport.js:333:23)
[00:00:53]               │ proc [kibana]     at IncomingMessage.onEnd (/dev/shm/workspace/kibana-build-xpack-10/node_modules/@elastic/elasticsearch/lib/Transport.js:260:11)
[00:00:53]               │ proc [kibana]     at IncomingMessage.emit (events.js:327:22)
[00:00:53]               │ proc [kibana]     at endReadableNT (internal/streams/readable.js:1327:12)
[00:00:53]               │ proc [kibana]     at processTicksAndRejections (internal/process/task_queues.js:80:21) {
[00:00:53]               │ proc [kibana]   meta: {
[00:00:53]               │ proc [kibana]     body: { error: [Object], status: 400 },
[00:00:53]               │ proc [kibana]     statusCode: 400,
[00:00:53]               │ proc [kibana]     headers: {
[00:00:53]               │ proc [kibana]       'x-opaque-id': 'c04b1849-9384-493e-9ffe-9b0312171d0b',
[00:00:53]               │ proc [kibana]       'content-type': 'application/json; charset=UTF-8',
[00:00:53]               │ proc [kibana]       'content-length': '265'
[00:00:53]               │ proc [kibana]     },
[00:00:53]               │ proc [kibana]     meta: {
[00:00:53]               │ proc [kibana]       context: null,
[00:00:53]               │ proc [kibana]       request: [Object],
[00:00:53]               │ proc [kibana]       name: 'elasticsearch-js',
[00:00:53]               │ proc [kibana]       connection: [Object],
[00:00:53]               │ proc [kibana]       attempts: 0,
[00:00:53]               │ proc [kibana]       aborted: false
[00:00:53]               │ proc [kibana]     }
[00:00:53]               │ proc [kibana]   }
[00:00:53]               │ proc [kibana] }
[00:00:53]               │ proc [kibana]   log   [21:05:41.712] [error][api-key][authentication][plugins][security] Failed to invalidate API key as current user: x_content_parse_exception
[00:00:53]               └- ✖ fail: Fleet Endpoints fleet_unenroll_agent should allow to unenroll single agent
[00:00:53]               │      Error: expected 200 "OK", got 500 "Internal Server Error"
[00:00:53]               │       at Test._assertStatus (/dev/shm/workspace/kibana/node_modules/supertest/lib/test.js:268:12)
[00:00:53]               │       at Test._assertFunction (/dev/shm/workspace/kibana/node_modules/supertest/lib/test.js:283:11)
[00:00:53]               │       at Test.assert (/dev/shm/workspace/kibana/node_modules/supertest/lib/test.js:173:18)
[00:00:53]               │       at assert (/dev/shm/workspace/kibana/node_modules/supertest/lib/test.js:131:12)
[00:00:53]               │       at /dev/shm/workspace/kibana/node_modules/supertest/lib/test.js:128:5
[00:00:53]               │       at Test.Request.callback (/dev/shm/workspace/kibana/node_modules/supertest/node_modules/superagent/lib/node/index.js:718:3)
[00:00:53]               │       at /dev/shm/workspace/kibana/node_modules/supertest/node_modules/superagent/lib/node/index.js:906:18
[00:00:53]               │       at IncomingMessage.<anonymous> (/dev/shm/workspace/kibana/node_modules/supertest/node_modules/superagent/lib/node/parsers/json.js:19:7)
[00:00:53]               │       at endReadableNT (internal/streams/readable.js:1327:12)
[00:00:53]               │       at processTicksAndRejections (internal/process/task_queues.js:80:21)
[00:00:53]               │ 
[00:00:53]               │ 
@mistic mistic added blocker v8.0.0 skipped-test failed-es-promotion Team:Fleet Team label for Observability Data Collection Fleet team labels Jan 4, 2021
@elasticmachine
Copy link
Contributor

Pinging @elastic/ingest-management (Team:Ingest Management)

@mistic
Copy link
Member Author

mistic commented Jan 4, 2021

Skipped.

master/8.0: 4c3c2ac

@nchaulet nchaulet self-assigned this Jan 4, 2021
@nchaulet
Copy link
Member

nchaulet commented Jan 4, 2021

Related to the Elasticsearch api depreciation of api key invalidation with id to ids #87173

@mistic
Copy link
Member Author

mistic commented Jan 4, 2021

@nchaulet you're right. It will probably be solved once #87053 got merged

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
blocker failed-es-promotion skipped-test Team:Fleet Team label for Observability Data Collection Fleet team v8.0.0
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants