Skip to content

Netty4HeadBodyIsEmptyIT.testTemplateExists fails in fips mode #66820

@jkakavas

Description

@jkakavas

Build scan: https://gradle-enterprise.elastic.co/s/uyhi5qrl4il5m

Repro line:

REPRODUCE WITH: ./gradlew ':modules:transport-netty4:javaRestTest' --tests "org.elasticsearch.rest.Netty4HeadBodyIsEmptyIT.testTemplateExists" -Dtests.seed=929C4965732D9139 -Dtests.security.manager=true -Dtests.locale=zh-CN -Dtests.timezone=Asia/Vladivostok -Druntime.java=11 -Dtests.fips.enabled=true

Reproduces locally?: yes

Applicable branches: master

Failure history:

Failure excerpt:

org.elasticsearch.rest.Netty4HeadBodyIsEmptyIT > testTemplateExists FAILED |  
-- | --
  | org.elasticsearch.client.WarningFailureException: method [PUT], host [http://[::1]:35925], URI [/_template/template], status line [HTTP/1.1 200 OK] |  
  | Warnings: [legacy template [template] has index patterns [*] matching patterns from existing composable templates [ilm-history,.watch-history-14,.triggered_watches,.slm-history,synthetics,metrics,.deprecation-indexing-template,.watches,logs] with patterns (ilm-history => [ilm-history-5*],.watch-history-14 => [.watcher-history-14*],.triggered_watches => [.triggered_watches*],.slm-history => [.slm-history-5*],synthetics => [synthetics-*-*],metrics => [metrics-*-*],.deprecation-indexing-template => [.logs-deprecation-elasticsearch],.watches => [.watches*],logs => [logs-*-*]); this template [template] may be ignored in favor of a composable template at index creation time] |  
  | {"acknowledged":true} |  
  | at __randomizedtesting.SeedInfo.seed([929C4965732D9139:416DB177AAD2AE0A]:0) |  
  | at org.elasticsearch.client.RestClient.convertResponse(RestClient.java:326) |  
  | at org.elasticsearch.client.RestClient.performRequest(RestClient.java:296) |  
  | at org.elasticsearch.client.RestClient.performRequest(RestClient.java:270) |  
  | at org.elasticsearch.rest.Netty4HeadBodyIsEmptyIT.testTemplateExists(Netty4HeadBodyIsEmptyIT.java:137) 

This might be caused again by the fact that we force the default distribution to be used instead which causes some default templates to be installed. We can either skip this in fips mode or acknowledge the warning header in fips mode

Metadata

Metadata

Assignees

Labels

:Security/FIPSRunning ES in FIPS 140-2 mode>test-failureTriaged test failures from CITeam:SecurityMeta label for security team

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions