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] AzureStorageCleanupThirdPartyTests failing, possibly needs new set of credentials #84231

Closed
cbuescher opened this issue Feb 22, 2022 · 17 comments
Assignees
Labels
:Distributed/Discovery-Plugins Anything related to our integration plugins with EC2, GCP and Azure Team:Distributed Meta label for distributed team >test-failure Triaged test failures from CI

Comments

@cbuescher
Copy link
Member

CI Link

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

Repro line

./gradlew ':plugins:repository-azure:azureThirdPartyTest' --tests "org.elasticsearch.repositories.azure.AzureStorageCleanupThirdPartyTests.testListChildren" \ -Dtests.seed=203404662522F345 \ -Dtests.locale=de-CH \ -Dtests.timezone=Europe/Podgorica \ -Druntime.java=8

Does it reproduce?

Didn't try

Applicable branches

7.17, 8.0, 8.1

Failure history

Several failures today

Failure excerpt

org.elasticsearch.repositories.azure.AzureStorageCleanupThirdPartyTests > testListChildren FAILED
RepositoryVerificationException[[test-repo] path [7.17_third_party_tests_203404662522F345] is not accessible on master node]; nested: BlobStorageException[Status code 403, "AuthorizationPermissionMismatchThis request is not authorized to perform this operation using this permission.
RequestId:3ebf5395-201e-0023-1ff7-27a758000000
Time:2022-02-22T14:22:00.3240871Z"];
at __randomizedtesting.SeedInfo.seed([203404662522F345:68BCA86A44A7FC4D]:0)

    Caused by:
    com.azure.storage.blob.models.BlobStorageException: Status code 403, "<?xml version="1.0" encoding="utf-8"?><Error><Code>AuthorizationPermissionMismatch</Code><Message>This request is not authorized to perform this operation using this permission.
    RequestId:3ebf5395-201e-0023-1ff7-27a758000000
    Time:2022-02-22T14:22:00.3240871Z</Message></Error>"
@cbuescher cbuescher added >test-failure Triaged test failures from CI needs:triage Requires assignment of a team area label labels Feb 22, 2022
@cbuescher
Copy link
Member Author

This looks very similar to #75648, I'll see if I can open a similar issue for Infra to solve this.

@cbuescher cbuescher added the :Distributed/Discovery-Plugins Anything related to our integration plugins with EC2, GCP and Azure label Feb 22, 2022
@elasticmachine elasticmachine added the Team:Distributed Meta label for distributed team label Feb 22, 2022
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-distributed (Team:Distributed)

@cbuescher cbuescher removed Team:Distributed Meta label for distributed team needs:triage Requires assignment of a team area label labels Feb 22, 2022
@cbuescher
Copy link
Member Author

I opened https://github.com/elastic/infra/issues/34818 on the Infra side to see if they can check if this is indeed related to problems with old credentials.

@cbuescher
Copy link
Member Author

cbuescher commented Feb 22, 2022

These are probably also related, but the error looks slightly different: https://gradle-enterprise.elastic.co/s/euqoyry4qsqlq/console-log?task=:plugins:repository-azure:azureThirdPartyTest

org.elasticsearch.repositories.azure.AzureStorageCleanupThirdPartyTests > testCleanup FAILED
    RepositoryVerificationException[[test-repo] path [7.17_third_party_tests_3EE8C9A2B44BBD81] is not accessible on master node]; nested: BlobStorageException[Status code 404, "<?xml version="1.0" encoding="utf-8"?><Error><Code>ResourceNotFound</Code><Message>The specified resource does not exist.
    RequestId:96a48058-501e-004b-4bf7-27c1c8000000
    Time:2022-02-22T14:20:46.0735493Z</Message></Error>"];
        at __randomizedtesting.SeedInfo.seed([3EE8C9A2B44BBD81:6EC29A0CCDE62D34]:0)

        Caused by:
        com.azure.storage.blob.models.BlobStorageException: Status code 404, "<?xml version="1.0" encoding="utf-8"?><Error><Code>ResourceNotFound</Code><Message>The specified resource does not exist.
        RequestId:96a48058-501e-004b-4bf7-27c1c8000000
        Time:2022-02-22T14:20:46.0735493Z</Message></Error>"

The error code in the nested exception is slightly different and it doesn't mention 'AuthorizationPermissionMismatch'. The other build before is a "SAS" build, whatever that might mean to anybody.

@mark-vieira mark-vieira added the Team:Distributed Meta label for distributed team label Mar 2, 2022
@mark-vieira
Copy link
Contributor

See @drewr's comment here.

@elastic/es-distributed I realize this is "delivery-esque" since it's infra but if any ES dev can update these credentials my preference is for the owning area team to be self-sufficient here.

@fcofdez fcofdez self-assigned this Mar 3, 2022
@mark-vieira
Copy link
Contributor

@fcofdez are you still having trouble updating these credentials? Do we need to reach back out to infra?

@fcofdez
Copy link
Contributor

fcofdez commented Mar 14, 2022

I've just updated the credentials, I'll keep an eye and close the issue once I verify that the suite is green again.

@dimitris-athanasiou
Copy link
Contributor

There has been some more 403s here https://gradle-enterprise.elastic.co/s/jhuzprkhe7yau

@fcofdez
Copy link
Contributor

fcofdez commented Mar 21, 2022

That's strange, I'll take another look

@pugnascotia
Copy link
Contributor

Another case here - https://gradle-enterprise.elastic.co/s/ekxpusn6yj2cg

@pugnascotia
Copy link
Contributor

Possibly related failure in :x-pack:plugin:searchable-snapshots:qa:azure:integTest as well:

https://gradle-enterprise.elastic.co/s/5brgh22m64hrs/console-log?task=:x-pack:plugin:searchable-snapshots:qa:azure:integTest

The Azure response contains: <Code>AccountIsDisabled</Code>

@benwtrent
Copy link
Member

Tests failed due to the missing repo, diggin in the logs I saw many instances of <Code>AccountIsDisabled</Code>.

Build: https://gradle-enterprise.elastic.co/s/blwy3eiqzpfuy

@fcofdez
Copy link
Contributor

fcofdez commented Mar 28, 2022

Sorry about the noise here, I thought that only sas tokens were expired. I renewed the regular keys too. The tests should pass now.

@benwtrent
Copy link
Member

@fcofdez here is another failure. I am going to assume it doesn't have your commit fix yet in the build since that was merged so recently: https://gradle-enterprise.elastic.co/s/7s5v7fssadiam/console-log?task=:plugins:repository-azure:azureThirdPartyTest

@fcofdez
Copy link
Contributor

fcofdez commented Mar 28, 2022

Let me take another look @benwtrent, it's a credentials issue

@fcofdez
Copy link
Contributor

fcofdez commented Mar 28, 2022

I regenerated the SAS token and the tests pass locally, I'll keep an eye for failures on CI

@Luegg
Copy link
Contributor

Luegg commented Apr 20, 2022

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Distributed/Discovery-Plugins Anything related to our integration plugins with EC2, GCP and Azure Team:Distributed Meta label for distributed team >test-failure Triaged test failures from CI
Projects
None yet
Development

No branches or pull requests

8 participants