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] [APM] Add default message to alerts. (#78930) #79620

Merged
merged 1 commit into from
Oct 6, 2020

Conversation

cauemarcondes
Copy link
Contributor

Backports the following commits to 7.x:

* adding default message

* addressing pr comments

* addressing pr comments

* addressing pr comments

* addressing pr comments

Co-authored-by: Kibana Machine <[email protected]>
@kibanamachine
Copy link
Contributor

💛 Build succeeded, but was flaky


Test Failures

X-Pack EPM API Integration Tests.x-pack/test/ingest_manager_api_integration/apis/fleet/agents/checkin·ts.Ingest Manager Endpoints Fleet Endpoints fleet_agents_checkin should return a 200 if this a valid checkin access

Link to Jenkins

Standard Out

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

[00:00:00]       │
[00:00:00]         └-: Ingest Manager Endpoints
[00:00:00]           └-> "before all" hook
[00:00:09]           └-: Fleet Endpoints
[00:00:09]             └-> "before all" hook
[00:01:06]             └-: fleet_agents_checkin
[00:01:06]               └-> "before all" hook
[00:01:06]               └-> "before all" hook
[00:01:06]                 │ info [fleet/agents] Loading "mappings.json"
[00:01:06]                 │ info [fleet/agents] Loading "data.json"
[00:01:06]                 │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1601968814981275557] [.kibana_2/9lLDmdrmTCS8olrxr1W49g] deleting index
[00:01:06]                 │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1601968814981275557] [.kibana_1/tMYY2ONHTbSirKvfVWRp1w] deleting index
[00:01:06]                 │ info [fleet/agents] Deleted existing index [".kibana_2",".kibana_1"]
[00:01:06]                 │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1601968814981275557] [.kibana_1] creating index, cause [api], templates [], shards [1]/[0]
[00:01:06]                 │ info [fleet/agents] Created index ".kibana_1"
[00:01:06]                 │ debg [fleet/agents] ".kibana_1" settings {"index":{"auto_expand_replicas":"0-1","number_of_replicas":"0","number_of_shards":"1"}}
[00:01:06]                 │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1601968814981275557] [.kibana_1/l0YfSVUHRyiLTGkVHx3YAQ] update_mapping [_doc]
[00:01:06]                 │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1601968814981275557] [.kibana_1/l0YfSVUHRyiLTGkVHx3YAQ] update_mapping [_doc]
[00:01:06]                 │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1601968814981275557] [.kibana_1/l0YfSVUHRyiLTGkVHx3YAQ] update_mapping [_doc]
[00:01:06]                 │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1601968814981275557] [.kibana_1/l0YfSVUHRyiLTGkVHx3YAQ] update_mapping [_doc]
[00:01:06]                 │ info [fleet/agents] Indexed 13 docs into ".kibana"
[00:01:06]                 │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1601968814981275557] [.kibana_1/l0YfSVUHRyiLTGkVHx3YAQ] update_mapping [_doc]
[00:01:06]                 │ debg Migrating saved objects
[00:01:07]                 │ proc [kibana]   log   [08:43:41.019] [info][savedobjects-service] Creating index .kibana_2.
[00:01:07]                 │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1601968814981275557] [.kibana_2] creating index, cause [api], templates [], shards [1]/[1]
[00:01:07]                 │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1601968814981275557] updating number_of_replicas to [0] for indices [.kibana_2]
[00:01:07]                 │ proc [kibana]   log   [08:43:41.101] [info][savedobjects-service] Migrating .kibana_1 saved objects to .kibana_2
[00:01:07]                 │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1601968814981275557] [.kibana_2/aaQl3taDTWix72U1q7xO8w] update_mapping [_doc]
[00:01:07]                 │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1601968814981275557] [.kibana_2/aaQl3taDTWix72U1q7xO8w] update_mapping [_doc]
[00:01:07]                 │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1601968814981275557] [.kibana_2/aaQl3taDTWix72U1q7xO8w] update_mapping [_doc]
[00:01:07]                 │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1601968814981275557] [.kibana_2/aaQl3taDTWix72U1q7xO8w] update_mapping [_doc]
[00:01:07]                 │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1601968814981275557] [.kibana_2/aaQl3taDTWix72U1q7xO8w] update_mapping [_doc]
[00:01:07]                 │ proc [kibana]   log   [08:43:41.372] [info][savedobjects-service] Pointing alias .kibana to .kibana_2.
[00:01:07]                 │ proc [kibana]   log   [08:43:41.420] [info][savedobjects-service] Finished in 402ms.
[00:01:08]               └-> "before all" hook
[00:01:08]                 │ info [docker:registry] 2020/10/06 08:43:42 source.ip: 172.17.0.1:41514, url.original: /search?package=endpoint&internal=true&experimental=true&kibana.version=7.10.0
[00:01:08]                 │ info [docker:registry] 2020/10/06 08:43:42 source.ip: 172.17.0.1:41516, url.original: /search?package=system&internal=true&experimental=true&kibana.version=7.10.0
[00:01:08]                 │ info [docker:registry] 2020/10/06 08:43:42 source.ip: 172.17.0.1:41526, url.original: /search?package=system&internal=true&experimental=true&kibana.version=7.10.0
[00:01:08]                 │ info [docker:registry] 2020/10/06 08:43:42 source.ip: 172.17.0.1:41524, url.original: /search?package=endpoint&internal=true&experimental=true&kibana.version=7.10.0
[00:01:08]                 │ info [docker:registry] 2020/10/06 08:43:42 source.ip: 172.17.0.1:41532, url.original: /package/endpoint/0.13.1
[00:01:08]                 │ info [docker:registry] 2020/10/06 08:43:42 source.ip: 172.17.0.1:41534, url.original: /package/system/0.5.3
[00:01:08]                 │ info [docker:registry] 2020/10/06 08:43:42 source.ip: 172.17.0.1:41540, url.original: /package/endpoint/0.13.1/
[00:01:08]                 │ info [docker:registry] 2020/10/06 08:43:42 source.ip: 172.17.0.1:41542, url.original: /package/system/0.5.3/
[00:01:08]                 │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1601968814981275557] [.kibana_2/aaQl3taDTWix72U1q7xO8w] update_mapping [_doc]
[00:01:09]                 │ info [docker:registry] 2020/10/06 08:43:43 source.ip: 172.17.0.1:41580, url.original: /search?kibana.version=7.10.0
[00:01:09]                 │ info [docker:registry] 2020/10/06 08:43:43 source.ip: 172.17.0.1:41578, url.original: /search?kibana.version=7.10.0
[00:01:09]                 │ info [docker:registry] 2020/10/06 08:43:43 source.ip: 172.17.0.1:41594, url.original: /package/system/0.5.3
[00:01:09]                 │ info [docker:registry] 2020/10/06 08:43:43 source.ip: 172.17.0.1:41596, url.original: /package/endpoint/0.13.1
[00:01:09]                 │ info [docker:registry] 2020/10/06 08:43:43 source.ip: 172.17.0.1:41592, url.original: /package/system/0.5.3
[00:01:09]                 │ info [docker:registry] 2020/10/06 08:43:43 source.ip: 172.17.0.1:41590, url.original: /package/endpoint/0.13.1
[00:01:09]                 │ info [docker:registry] 2020/10/06 08:43:43 source.ip: 172.17.0.1:41604, url.original: /package/endpoint/0.13.1/
[00:01:09]                 │ info [docker:registry] 2020/10/06 08:43:43 source.ip: 172.17.0.1:41608, url.original: /package/system/0.5.3/
[00:01:09]                 │ info [docker:registry] 2020/10/06 08:43:43 source.ip: 172.17.0.1:41610, url.original: /package/endpoint/0.13.1/
[00:01:09]                 │ info [docker:registry] 2020/10/06 08:43:43 source.ip: 172.17.0.1:41612, url.original: /package/system/0.5.3/
[00:01:09]                 │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1601968814981275557] [.kibana_2/aaQl3taDTWix72U1q7xO8w] update_mapping [_doc]
[00:01:10]                 │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1601968814981275557] [.kibana_2/aaQl3taDTWix72U1q7xO8w] update_mapping [_doc]
[00:01:10]                 │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1601968814981275557] [.kibana_2/aaQl3taDTWix72U1q7xO8w] update_mapping [_doc]
[00:01:10]                 │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1601968814981275557] [.kibana_2/aaQl3taDTWix72U1q7xO8w] update_mapping [_doc]
[00:01:13]                 │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1601968814981275557] [.kibana_2/aaQl3taDTWix72U1q7xO8w] update_mapping [_doc]
[00:01:14]                 │ info [docker:registry] 2020/10/06 08:43:48 source.ip: 172.17.0.1:41646, url.original: /search?package=system&internal=true&experimental=true&kibana.version=7.10.0
[00:01:14]                 │ info [docker:registry] 2020/10/06 08:43:48 source.ip: 172.17.0.1:41644, url.original: /package/system/0.5.3
[00:01:14]                 │ info [docker:registry] 2020/10/06 08:43:48 source.ip: 172.17.0.1:41650, url.original: /package/system/0.5.3/
[00:01:14]                 │ info [docker:registry] 2020/10/06 08:43:48 source.ip: 172.17.0.1:41662, url.original: /search?package=system&internal=true&experimental=true&kibana.version=7.10.0
[00:01:14]                 │ info [docker:registry] 2020/10/06 08:43:48 source.ip: 172.17.0.1:41660, url.original: /package/system/0.5.3
[00:01:14]                 │ info [docker:registry] 2020/10/06 08:43:48 source.ip: 172.17.0.1:41666, url.original: /package/system/0.5.3/
[00:01:14]                 │ info [docker:registry] 2020/10/06 08:43:48 source.ip: 172.17.0.1:41672, url.original: /package/system/0.5.3
[00:01:14]                 │ info [docker:registry] 2020/10/06 08:43:48 source.ip: 172.17.0.1:41676, url.original: /package/system/0.5.3/
[00:01:14]                 │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1601968814981275557] [.kibana_2/aaQl3taDTWix72U1q7xO8w] update_mapping [_doc]
[00:01:16]                 │ info [docker:registry] 2020/10/06 08:43:50 source.ip: 172.17.0.1:41692, url.original: /search?package=system&internal=true&experimental=true&kibana.version=7.10.0
[00:01:16]                 │ info [docker:registry] 2020/10/06 08:43:50 source.ip: 172.17.0.1:41690, url.original: /search?package=endpoint&internal=true&experimental=true&kibana.version=7.10.0
[00:01:16]                 │ info [docker:registry] 2020/10/06 08:43:50 source.ip: 172.17.0.1:41700, url.original: /search?package=system&internal=true&experimental=true&kibana.version=7.10.0
[00:01:16]                 │ info [docker:registry] 2020/10/06 08:43:50 source.ip: 172.17.0.1:41698, url.original: /package/system/0.5.3
[00:01:16]                 │ info [docker:registry] 2020/10/06 08:43:50 source.ip: 172.17.0.1:41704, url.original: /package/system/0.5.3/
[00:01:16]                 │ info [docker:registry] 2020/10/06 08:43:50 source.ip: 172.17.0.1:41716, url.original: /search?package=system&internal=true&experimental=true&kibana.version=7.10.0
[00:01:16]                 │ info [docker:registry] 2020/10/06 08:43:50 source.ip: 172.17.0.1:41718, url.original: /package/system/0.5.3
[00:01:16]                 │ info [docker:registry] 2020/10/06 08:43:50 source.ip: 172.17.0.1:41722, url.original: /package/system/0.5.3/
[00:01:16]                 │ info [docker:registry] 2020/10/06 08:43:50 source.ip: 172.17.0.1:41726, url.original: /package/system/0.5.3
[00:01:16]                 │ info [docker:registry] 2020/10/06 08:43:50 source.ip: 172.17.0.1:41730, url.original: /package/system/0.5.3/
[00:01:18]                 │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-ubuntu-18-tests-xxl-1601968814981275557] updated role [fleet_enroll]
[00:01:18]                 │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-ubuntu-18-tests-xxl-1601968814981275557] updated user [fleet_enroll]
[00:01:21]               └-> should return a 401 if this a not a valid checkin access
[00:01:21]                 └-> "before each" hook: global before each
[00:01:21]                 └-> "before each" hook: beforeSetupWithDockerRegistry
[00:01:21]                 │ info [o.e.x.s.a.AuthenticationService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1601968814981275557] Authentication using apikey failed - Illegal base64 character 5f
[00:01:21]                 │      java.lang.IllegalArgumentException: Illegal base64 character 5f
[00:01:21]                 │      	at java.util.Base64$Decoder.decode0(Base64.java:791) ~[?:?]
[00:01:21]                 │      	at java.util.Base64$Decoder.decode(Base64.java:567) ~[?:?]
[00:01:21]                 │      	at java.util.Base64$Decoder.decode(Base64.java:590) ~[?:?]
[00:01:21]                 │      	at org.elasticsearch.xpack.security.authc.ApiKeyService.getCredentialsFromHeader(ApiKeyService.java:627) ~[x-pack-security-7.10.0-SNAPSHOT.jar:7.10.0-SNAPSHOT]
[00:01:21]                 │      	at org.elasticsearch.xpack.security.authc.ApiKeyService.authenticateWithApiKeyIfPresent(ApiKeyService.java:324) [x-pack-security-7.10.0-SNAPSHOT.jar:7.10.0-SNAPSHOT]
[00:01:21]                 │      	at org.elasticsearch.xpack.security.authc.AuthenticationService$Authenticator.checkForApiKey(AuthenticationService.java:347) [x-pack-security-7.10.0-SNAPSHOT.jar:7.10.0-SNAPSHOT]
[00:01:21]                 │      	at org.elasticsearch.xpack.security.authc.AuthenticationService$Authenticator.lambda$authenticateAsync$0(AuthenticationService.java:329) [x-pack-security-7.10.0-SNAPSHOT.jar:7.10.0-SNAPSHOT]
[00:01:21]                 │      	at org.elasticsearch.action.ActionListener$1.onResponse(ActionListener.java:63) [elasticsearch-7.10.0-SNAPSHOT.jar:7.10.0-SNAPSHOT]
[00:01:21]                 │      	at org.elasticsearch.xpack.security.authc.TokenService.getAndValidateToken(TokenService.java:405) [x-pack-security-7.10.0-SNAPSHOT.jar:7.10.0-SNAPSHOT]
[00:01:21]                 │      	at org.elasticsearch.xpack.security.authc.AuthenticationService$Authenticator.lambda$authenticateAsync$2(AuthenticationService.java:325) [x-pack-security-7.10.0-SNAPSHOT.jar:7.10.0-SNAPSHOT]
[00:01:21]                 │      	at org.elasticsearch.xpack.security.authc.AuthenticationService$Authenticator.lambda$lookForExistingAuthentication$6(AuthenticationService.java:384) [x-pack-security-7.10.0-SNAPSHOT.jar:7.10.0-SNAPSHOT]
[00:01:21]                 │      	at org.elasticsearch.xpack.security.authc.AuthenticationService$Authenticator.lookForExistingAuthentication(AuthenticationService.java:395) [x-pack-security-7.10.0-SNAPSHOT.jar:7.10.0-SNAPSHOT]
[00:01:21]                 │      	at org.elasticsearch.xpack.security.authc.AuthenticationService$Authenticator.authenticateAsync(AuthenticationService.java:320) [x-pack-security-7.10.0-SNAPSHOT.jar:7.10.0-SNAPSHOT]
[00:01:21]                 │      	at org.elasticsearch.xpack.security.authc.AuthenticationService$Authenticator.access$000(AuthenticationService.java:261) [x-pack-security-7.10.0-SNAPSHOT.jar:7.10.0-SNAPSHOT]
[00:01:21]                 │      	at org.elasticsearch.xpack.security.authc.AuthenticationService.authenticate(AuthenticationService.java:141) [x-pack-security-7.10.0-SNAPSHOT.jar:7.10.0-SNAPSHOT]
[00:01:21]                 │      	at org.elasticsearch.xpack.security.authc.AuthenticationService.authenticate(AuthenticationService.java:126) [x-pack-security-7.10.0-SNAPSHOT.jar:7.10.0-SNAPSHOT]
[00:01:21]                 │      	at org.elasticsearch.xpack.security.rest.SecurityRestFilter.handleRequest(SecurityRestFilter.java:63) [x-pack-security-7.10.0-SNAPSHOT.jar:7.10.0-SNAPSHOT]
[00:01:21]                 │      	at org.elasticsearch.rest.RestController.dispatchRequest(RestController.java:249) [elasticsearch-7.10.0-SNAPSHOT.jar:7.10.0-SNAPSHOT]
[00:01:21]                 │      	at org.elasticsearch.rest.RestController.tryAllHandlers(RestController.java:331) [elasticsearch-7.10.0-SNAPSHOT.jar:7.10.0-SNAPSHOT]
[00:01:21]                 │      	at org.elasticsearch.rest.RestController.dispatchRequest(RestController.java:189) [elasticsearch-7.10.0-SNAPSHOT.jar:7.10.0-SNAPSHOT]
[00:01:21]                 │      	at org.elasticsearch.http.AbstractHttpServerTransport.dispatchRequest(AbstractHttpServerTransport.java:319) [elasticsearch-7.10.0-SNAPSHOT.jar:7.10.0-SNAPSHOT]
[00:01:21]                 │      	at org.elasticsearch.http.AbstractHttpServerTransport.handleIncomingRequest(AbstractHttpServerTransport.java:384) [elasticsearch-7.10.0-SNAPSHOT.jar:7.10.0-SNAPSHOT]
[00:01:21]                 │      	at org.elasticsearch.http.AbstractHttpServerTransport.incomingRequest(AbstractHttpServerTransport.java:309) [elasticsearch-7.10.0-SNAPSHOT.jar:7.10.0-SNAPSHOT]
[00:01:21]                 │      	at org.elasticsearch.http.netty4.Netty4HttpRequestHandler.channelRead0(Netty4HttpRequestHandler.java:42) [transport-netty4-client-7.10.0-SNAPSHOT.jar:7.10.0-SNAPSHOT]
[00:01:21]                 │      	at org.elasticsearch.http.netty4.Netty4HttpRequestHandler.channelRead0(Netty4HttpRequestHandler.java:28) [transport-netty4-client-7.10.0-SNAPSHOT.jar:7.10.0-SNAPSHOT]
[00:01:21]                 │      	at io.netty.channel.SimpleChannelInboundHandler.channelRead(SimpleChannelInboundHandler.java:99) [netty-transport-4.1.49.Final.jar:4.1.49.Final]
[00:01:21]                 │      	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379) [netty-transport-4.1.49.Final.jar:4.1.49.Final]
[00:01:21]                 │      	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365) [netty-transport-4.1.49.Final.jar:4.1.49.Final]
[00:01:21]                 │      	at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:357) [netty-transport-4.1.49.Final.jar:4.1.49.Final]
[00:01:21]                 │      	at org.elasticsearch.http.netty4.Netty4HttpPipeliningHandler.channelRead(Netty4HttpPipeliningHandler.java:58) [transport-netty4-client-7.10.0-SNAPSHOT.jar:7.10.0-SNAPSHOT]
[00:01:21]                 │      	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379) [netty-transport-4.1.49.Final.jar:4.1.49.Final]
[00:01:21]                 │      	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365) [netty-transport-4.1.49.Final.jar:4.1.49.Final]
[00:01:21]                 │      	at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:357) [netty-transport-4.1.49.Final.jar:4.1.49.Final]
[00:01:21]                 │      	at io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:103) [netty-codec-4.1.49.Final.jar:4.1.49.Final]
[00:01:21]                 │      	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379) [netty-transport-4.1.49.Final.jar:4.1.49.Final]
[00:01:21]                 │      	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365) [netty-transport-4.1.49.Final.jar:4.1.49.Final]
[00:01:21]                 │      	at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:357) [netty-transport-4.1.49.Final.jar:4.1.49.Final]
[00:01:21]                 │      	at io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:103) [netty-codec-4.1.49.Final.jar:4.1.49.Final]
[00:01:21]                 │      	at io.netty.handler.codec.MessageToMessageCodec.channelRead(MessageToMessageCodec.java:111) [netty-codec-4.1.49.Final.jar:4.1.49.Final]
[00:01:21]                 │      	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379) [netty-transport-4.1.49.Final.jar:4.1.49.Final]
[00:01:21]                 │      	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365) [netty-transport-4.1.49.Final.jar:4.1.49.Final]
[00:01:21]                 │      	at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:357) [netty-transport-4.1.49.Final.jar:4.1.49.Final]
[00:01:21]                 │      	at io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:103) [netty-codec-4.1.49.Final.jar:4.1.49.Final]
[00:01:21]                 │      	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379) [netty-transport-4.1.49.Final.jar:4.1.49.Final]
[00:01:21]                 │      	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365) [netty-transport-4.1.49.Final.jar:4.1.49.Final]
[00:01:21]                 │      	at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:357) [netty-transport-4.1.49.Final.jar:4.1.49.Final]
[00:01:21]                 │      	at io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:103) [netty-codec-4.1.49.Final.jar:4.1.49.Final]
[00:01:21]                 │      	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379) [netty-transport-4.1.49.Final.jar:4.1.49.Final]
[00:01:21]                 │      	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365) [netty-transport-4.1.49.Final.jar:4.1.49.Final]
[00:01:21]                 │      	at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:357) [netty-transport-4.1.49.Final.jar:4.1.49.Final]
[00:01:21]                 │      	at io.netty.handler.codec.ByteToMessageDecoder.fireChannelRead(ByteToMessageDecoder.java:324) [netty-codec-4.1.49.Final.jar:4.1.49.Final]
[00:01:21]                 │      	at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:296) [netty-codec-4.1.49.Final.jar:4.1.49.Final]
[00:01:21]                 │      	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379) [netty-transport-4.1.49.Final.jar:4.1.49.Final]
[00:01:21]                 │      	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365) [netty-transport-4.1.49.Final.jar:4.1.49.Final]
[00:01:21]                 │      	at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:357) [netty-transport-4.1.49.Final.jar:4.1.49.Final]
[00:01:21]                 │      	at io.netty.handler.timeout.IdleStateHandler.channelRead(IdleStateHandler.java:286) [netty-handler-4.1.49.Final.jar:4.1.49.Final]
[00:01:21]                 │      	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379) [netty-transport-4.1.49.Final.jar:4.1.49.Final]
[00:01:21]                 │      	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365) [netty-transport-4.1.49.Final.jar:4.1.49.Final]
[00:01:21]                 │      	at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:357) [netty-transport-4.1.49.Final.jar:4.1.49.Final]
[00:01:21]                 │      	at io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:103) [netty-codec-4.1.49.Final.jar:4.1.49.Final]
[00:01:21]                 │      	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379) [netty-transport-4.1.49.Final.jar:4.1.49.Final]
[00:01:21]                 │      	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365) [netty-transport-4.1.49.Final.jar:4.1.49.Final]
[00:01:21]                 │      	at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:357) [netty-transport-4.1.49.Final.jar:4.1.49.Final]
[00:01:21]                 │      	at io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1410) [netty-transport-4.1.49.Final.jar:4.1.49.Final]
[00:01:21]                 │      	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379) [netty-transport-4.1.49.Final.jar:4.1.49.Final]
[00:01:21]                 │      	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365) [netty-transport-4.1.49.Final.jar:4.1.49.Final]
[00:01:21]                 │      	at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:919) [netty-transport-4.1.49.Final.jar:4.1.49.Final]
[00:01:21]                 │      	at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:163) [netty-transport-4.1.49.Final.jar:4.1.49.Final]
[00:01:21]                 │      	at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:714) [netty-transport-4.1.49.Final.jar:4.1.49.Final]
[00:01:21]                 │      	at io.netty.channel.nio.NioEventLoop.processSelectedKeysPlain(NioEventLoop.java:615) [netty-transport-4.1.49.Final.jar:4.1.49.Final]
[00:01:21]                 │      	at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:578) [netty-transport-4.1.49.Final.jar:4.1.49.Final]
[00:01:21]                 │      	at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:493) [netty-transport-4.1.49.Final.jar:4.1.49.Final]
[00:01:21]                 │      	at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:989) [netty-common-4.1.49.Final.jar:4.1.49.Final]
[00:01:21]                 │      	at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74) [netty-common-4.1.49.Final.jar:4.1.49.Final]
[00:01:21]                 │      	at java.lang.Thread.run(Thread.java:832) [?:?]
[00:01:21]                 │ proc [kibana]   log   [08:43:55.285] [info][authentication][plugins][security] Authentication attempt failed: [security_exception] missing authentication credentials for REST request [/_security/_authenticate], with { header={ WWW-Authenticate={ 0="Basic realm=\"security\" charset=\"UTF-8\"" & 1="ApiKey" } } }
[00:01:21]                 └- ✓ pass  (35ms) "Ingest Manager Endpoints Fleet Endpoints fleet_agents_checkin should return a 401 if this a not a valid checkin access"
[00:01:21]               └-> should return a 400 if for a malformed request payload
[00:01:21]                 └-> "before each" hook: global before each
[00:01:21]                 └-> "before each" hook: beforeSetupWithDockerRegistry
[00:01:21]                 └- ✓ pass  (46ms) "Ingest Manager Endpoints Fleet Endpoints fleet_agents_checkin should return a 400 if for a malformed request payload"
[00:01:21]               └-> should return a 200 if this a valid checkin access
[00:01:21]                 └-> "before each" hook: global before each
[00:01:21]                 └-> "before each" hook: beforeSetupWithDockerRegistry
[00:01:24]                 │ proc [kibana]   log   [08:43:58.059] [error][data][elasticsearch] [version_conflict_engine_exception]: [fleet-agents:agent1]: version conflict, required seqNo [110], primary term [1]. current document has seqNo [111] and primary term [1]
[00:01:24]                 │ proc [kibana]   log   [08:43:58.061] [error][ingestManager][plugins] [fleet-agents:agent1]: version conflict, required seqNo [110], primary term [1]. current document has seqNo [111] and primary term [1]: version_conflict_engine_exception
[00:01:24]                 └- ✖ fail: Ingest Manager Endpoints Fleet Endpoints fleet_agents_checkin should return a 200 if this a valid checkin access
[00:01:24]                 │      Error: expected 200 "OK", got 409 "Conflict"
[00:01:24]                 │       at Test._assertStatus (/dev/shm/workspace/kibana/node_modules/supertest/lib/test.js:268:12)
[00:01:24]                 │       at Test._assertFunction (/dev/shm/workspace/kibana/node_modules/supertest/lib/test.js:283:11)
[00:01:24]                 │       at Test.assert (/dev/shm/workspace/kibana/node_modules/supertest/lib/test.js:173:18)
[00:01:24]                 │       at assert (/dev/shm/workspace/kibana/node_modules/supertest/lib/test.js:131:12)
[00:01:24]                 │       at /dev/shm/workspace/kibana/node_modules/supertest/lib/test.js:128:5
[00:01:24]                 │       at Test.Request.callback (/dev/shm/workspace/kibana/node_modules/superagent/lib/node/index.js:718:3)
[00:01:24]                 │       at parser (/dev/shm/workspace/kibana/node_modules/superagent/lib/node/index.js:906:18)
[00:01:24]                 │       at IncomingMessage.res.on (/dev/shm/workspace/kibana/node_modules/superagent/lib/node/parsers/json.js:19:7)
[00:01:24]                 │       at endReadableNT (_stream_readable.js:1145:12)
[00:01:24]                 │       at process._tickCallback (internal/process/next_tick.js:63:19)
[00:01:24]                 │ 
[00:01:24]                 │ 

Stack Trace

Error: expected 200 "OK", got 409 "Conflict"
    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)

Metrics [docs]

@kbn/optimizer bundle module count

id before after diff
apm 1276 1275 -1

distributable file count

id before after diff
default 47995 47999 +4

page load bundle size

id before after diff
apm 44.3KB 46.2KB +2.0KB

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

@cauemarcondes cauemarcondes merged commit f918e4c into elastic:7.x Oct 6, 2020
@cauemarcondes cauemarcondes deleted the backport/7.x/pr-78930 branch October 6, 2020 11:29
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