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

[CI] EnableSecurityOnBasicLicenseIT.testSecuritySetup failure #60468

Closed
dimitris-athanasiou opened this issue Jul 30, 2020 · 5 comments · Fixed by #60498
Closed

[CI] EnableSecurityOnBasicLicenseIT.testSecuritySetup failure #60468

dimitris-athanasiou opened this issue Jul 30, 2020 · 5 comments · Fixed by #60498
Assignees
Labels
:Security/Security Security issues without another label Team:Security Meta label for security team >test-failure Triaged test failures from CI

Comments

@dimitris-athanasiou
Copy link
Contributor

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

Repro line:

./gradlew ':x-pack:plugin:security:qa:basic-enable-security:integTestRunner' --tests "org.elasticsearch.xpack.security.EnableSecurityOnBasicLicenseIT.testSecuritySetup" -Dtests.seed=EB6BC4DAFFD9A916 -Dtests.security.manager=true -Dtests.locale=be-BY -Dtests.timezone=America/Araguaina -Druntime.java=8

Reproduces locally?: No

Failure history:

It's been failing once in a while in the past 6 months.

https://build-stats.elastic.co/app/kibana#/discover?_g=(refreshInterval:(pause:!t,value:0),time:(from:now-6M,mode:quick,to:now))&_a=(columns:!(_source),index:b646ed00-7efc-11e8-bf69-63c8ef516157,interval:auto,query:(language:lucene,query:testSecuritySetup),sort:!(process.time-start,desc))

Failure excerpt:

org.elasticsearch.xpack.security.EnableSecurityOnBasicLicenseIT > testSecuritySetup FAILED
    org.elasticsearch.client.ResponseException: method [GET], host [http://[::1]:43207], URI [/_license], status line [HTTP/1.1 404 Not Found]
    { }
        at __randomizedtesting.SeedInfo.seed([EB6BC4DAFFD9A916:960DB491A93081CF]:0)
        at org.elasticsearch.client.RestClient.convertResponse(RestClient.java:302)
        at org.elasticsearch.client.RestClient.performRequest(RestClient.java:272)
        at org.elasticsearch.client.RestClient.performRequest(RestClient.java:246)
        at org.elasticsearch.test.rest.ESRestTestCase.getAsMap(ESRestTestCase.java:1222)
        at org.elasticsearch.xpack.security.EnableSecurityOnBasicLicenseIT.checkBasicLicenseType(EnableSecurityOnBasicLicenseIT.java:101)
        at org.elasticsearch.xpack.security.EnableSecurityOnBasicLicenseIT.testSecuritySetup(EnableSecurityOnBasicLicenseIT.java:68)
@dimitris-athanasiou dimitris-athanasiou added >test-failure Triaged test failures from CI :Security/Security Security issues without another label labels Jul 30, 2020
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-security (:Security/Security)

@elasticmachine elasticmachine added the Team:Security Meta label for security team label Jul 30, 2020
@ywangd
Copy link
Member

ywangd commented Jul 31, 2020

I think root cause of this failure should be the same as #59157.

@martijnvg
Copy link
Member

Another instance of this test failure occurred: https://gradle-enterprise.elastic.co/s/m4fphdcfdujz4/tests/:x-pack:plugin:security:qa:basic-enable-security:integTestRunner/org.elasticsearch.xpack.security.EnableSecurityOnBasicLicenseIT/testSecuritySetup#1

I think that #60498 doesn't fix this failure? Because a ResponseException isn't retried by assertBusy(...) in checkLicenseType() method, so in the case that a 404 is returned when the cluster isn't ready yet, the test still fails immediately.

@ywangd
Copy link
Member

ywangd commented Aug 3, 2020

You are right @martijnvg I had a follow up PR (#60573) to throw an AssertionError on ResponseException. The failure you linked is before the PR, so it should be fixed by now. Backports are still pending.

@martijnvg
Copy link
Member

Thanks @ywangd!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Security/Security Security issues without another label Team:Security Meta label for security team >test-failure Triaged test failures from CI
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants