Skip to content

[CI] CoreFullClusterRestartIT.testNewReplicasWork fails with security exception #30565

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

Closed
romseygeek opened this issue May 14, 2018 · 9 comments
Labels
:Security/Security Security issues without another label Team:Security Meta label for security team >test-failure Triaged test failures from CI

Comments

@romseygeek
Copy link
Contributor

https://elasticsearch-ci.elastic.co/job/elastic+elasticsearch+6.3+bwc-tests/49/console

19:44:18 ERROR   1.14s | CoreFullClusterRestartIT.testNewReplicasWork <<< FAILURES!
19:44:18    > Throwable #1: org.elasticsearch.client.ResponseException: method [POST], host [http://[::1]:46861], URI [/testnewreplicaswork/doc/159], status line [HTTP/1.1 403 Forbidden]
19:44:18    > {"error":{"root_cause":[{"type":"security_exception","reason":"action [indices:data/write/index[p]] is unauthorized for user [_system]"}],"type":"security_exception","reason":"action [indices:data/write/index[p]] is unauthorized for user [_system]"},"status":403}
19:44:18    > 	at __randomizedtesting.SeedInfo.seed([1A4895C4F873CE3C:60CC608FA07927E0]:0)
19:44:18    > 	at org.elasticsearch.client.RestClient$SyncResponseListener.get(RestClient.java:705)
19:44:18    > 	at org.elasticsearch.client.RestClient.performRequest(RestClient.java:235)
19:44:18    > 	at org.elasticsearch.client.RestClient.performRequest(RestClient.java:198)
19:44:18    > 	at org.elasticsearch.upgrades.FullClusterRestartIT.indexRandomDocuments(FullClusterRestartIT.java:1015)
19:44:18    > 	at org.elasticsearch.upgrades.FullClusterRestartIT.testNewReplicasWork(FullClusterRestartIT.java:206)
19:44:18    > 	at java.lang.Thread.run(Thread.java:748)
@romseygeek romseygeek added >test-failure Triaged test failures from CI v6.3.0 :Security/Security Security issues without another label labels May 14, 2018
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-security

@bizybot
Copy link
Contributor

bizybot commented Feb 12, 2019

This test has not failed since October 4th, 2018, I have not found any related commit.
I think we can reopen this if it gets reproduced again.

@bizybot bizybot closed this as completed Feb 12, 2019
@jkakavas jkakavas reopened this Jul 23, 2019
@jkakavas
Copy link
Member

@jkakavas
Copy link
Member

This hasn't failed again since, list of latest failures until July is here

@romseygeek
Copy link
Contributor Author

@rjernst rjernst added the Team:Security Meta label for security team label May 4, 2020
@cbuescher
Copy link
Member

Similar looking one on 6.8 from today:

https://gradle-enterprise.elastic.co/s/zpiswvdz5tiru

org.elasticsearch.client.ResponseException: method [POST], host [http://[::1]:45969], URI [/testnewreplicaswork/doc/854], status line [HTTP/1.1 403 Forbidden]
{"error":{"root_cause":[{"type":"security_exception","reason":"action [indices:data/write/index[p]] is unauthorized for user [_system]"}],"type":"security_exception","reason":"action [indices:data/write/index[p]] is unauthorized for user [_system]"},"status":403}
	at __randomizedtesting.SeedInfo.seed([9D31C1324F47AD19:E7B53479174D44C5]:0)
	at org.elasticsearch.client.RestClient$SyncResponseListener.get(RestClient.java:936)
	at org.elasticsearch.client.RestClient.performRequest(RestClient.java:233)
	at org.elasticsearch.upgrades.FullClusterRestartIT.indexRandomDocuments(FullClusterRestartIT.java:1217)
	at org.elasticsearch.upgrades.FullClusterRestartIT.testNewReplicasWork(FullClusterRestartIT.java:177)

Didn't reproduce locally though:

 ./gradlew ':x-pack:qa:full-cluster-restart:without-system-key:v5.1.2#oldClusterTestRunner' \
  -Dtests.seed=9D31C1324F47AD19 \
  -Dtests.class=org.elasticsearch.xpack.restart.CoreFullClusterRestartIT \
  -Dtests.method="testNewReplicasWork" \
  -Dtests.security.manager=true \
  -Dtests.locale=es-EC \
  -Dtests.timezone=Pacific/Auckland \
  -Dcompiler.java=11 \
  -Druntime.java=8

@Luegg
Copy link
Contributor

Luegg commented Aug 10, 2021

@jdconrad
Copy link
Contributor

@tvernum
Copy link
Contributor

tvernum commented May 17, 2022

Closing this issue because it only seem to have affected 6.x

@tvernum tvernum closed this as completed May 17, 2022
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

No branches or pull requests

10 participants