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

IAM cannot delete key #7357

Closed
coryan opened this issue Sep 24, 2021 · 4 comments · Fixed by #8636
Closed

IAM cannot delete key #7357

coryan opened this issue Sep 24, 2021 · 4 comments · Fixed by #8636
Assignees
Labels
api: iam Issues related to the Identity and Access Management API. cpp: flake A test with false positives (failures that are not interesting) type: cleanup An internal cleanup or hygiene concern.

Comments

@coryan
Copy link
Contributor

coryan commented Sep 24, 2021

Seems like a new kind of flake for IAM:

https://storage.googleapis.com/cloud-cpp-community-publiclogs/logs/google-cloud-cpp/main/1e37a0242fd1484bf4ee68a6d3eac77bb97ecf38/fedora-34-integration-daily/log-380621c2-25d7-4077-b269-abff42f4d0c5.txt

[ RUN      ] IamIntegrationTest.ServiceAccountCrudProtoSuccess
google/cloud/iam/integration_tests/iam_integration_test.cc:463: Failure
Value of: really_delete_response
Expected: code is equal to OK and message is anything
  Actual: Error in non-idempotent operation DeleteServiceAccount: Permission iam.serviceAccounts.delete is required to perform this operation on service account projects/-/serviceAccounts/sa-crud-proto-test@cloud-cpp-testing-resources.iam.gserviceaccount.com. [PERMISSION_DENIED] (of type google::cloud::v1::Status), with a code that isn't equal to OK, but a message that is anything
2021-09-24T07:09:15.148727121Z [INFO] <140020524726336> Enabled logging for gRPC calls (google/cloud/iam/internal/iam_stub_factory.cc:58)

...
2021-09-24T07:09:18.604856264Z [DEBUG] <140020524726336> DeleteServiceAccount() << name: "projects/-/serviceAccounts/sa-crud-proto-test@cloud-cpp-testing-resources.iam.gserviceaccount.com"  (./google/cloud/internal/log_wrapper.h:73)
2021-09-24T07:09:18.841492447Z [DEBUG] <140020524726336> DeleteServiceAccount() >> status= [OK] (./google/cloud/internal/log_wrapper.h:75)
2021-09-24T07:09:18.841680747Z [DEBUG] <140020524726336> UndeleteServiceAccount() << name: "projects/cloud-cpp-testing-resources/serviceAccounts/107781898389971162044"  (./google/cloud/internal/log_wrapper.h:86)
2021-09-24T07:09:19.018369955Z [DEBUG] <140020524726336> UndeleteServiceAccount() >> response=restored_account { name: "projects/cloud-cpp-testing-resources/serviceAccounts/sa-crud-proto-test@cloud-cpp-testing-resources.iam.gserviceaccount.com" project_id: "cloud-cpp-testing-resources" unique_id: "107781898389971162044" email: "sa-crud-proto-test@cloud-cpp-testing-resources.iam.gserviceaccount.com" etag: "01021920" oauth2_client_id: "107781898389971162044" }  (./google/cloud/internal/log_wrapper.h:91)
2021-09-24T07:09:19.018536682Z [DEBUG] <140020524726336> DeleteServiceAccount() << name: "projects/-/serviceAccounts/sa-crud-proto-test@cloud-cpp-testing-resources.iam.gserviceaccount.com"  (./google/cloud/internal/log_wrapper.h:73)
2021-09-24T07:09:19.024169737Z [DEBUG] <140020524726336> DeleteServiceAccount() >> status=Permission iam.serviceAccounts.delete is required to perform this operation on service account projects/-/serviceAccounts/sa-crud-proto-test@cloud-cpp-testing-resources.iam.gserviceaccount.com. [PERMISSION_DENIED] (./google/cloud/internal/log_wrapper.h:75)
[  FAILED  ] IamIntegrationTest.ServiceAccountCrudProtoSuccess (932 ms)
[ RUN      ] IamIntegrationTest.EnableServiceAccountProtoFailure
@coryan coryan added type: cleanup An internal cleanup or hygiene concern. api: iam Issues related to the Identity and Access Management API. labels Sep 24, 2021
@coryan coryan added the cpp: flake A test with false positives (failures that are not interesting) label Jan 27, 2022
@coryan coryan changed the title [Flake] IAM cannot delete key IAM cannot delete key Jan 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: iam Issues related to the Identity and Access Management API. cpp: flake A test with false positives (failures that are not interesting) type: cleanup An internal cleanup or hygiene concern.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants