Skip to content

privateca.snippets.test_subordinate_ca: test_subordinate_certificate_authority failed #9081

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
flaky-bot bot opened this issue Feb 3, 2023 · 4 comments · Fixed by #9293
Closed

privateca.snippets.test_subordinate_ca: test_subordinate_certificate_authority failed #9081

flaky-bot bot opened this issue Feb 3, 2023 · 4 comments · Fixed by #9293
Assignees
Labels
flakybot: flaky Tells the Flaky Bot not to close or comment on this issue. flakybot: issue An issue filed by the Flaky Bot. Should not be added manually. priority: p2 Moderately-important priority. Fix may not be included in next release. samples Issues that are directly related to samples. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns.

Comments

@flaky-bot
Copy link

flaky-bot bot commented Feb 3, 2023

This test failed!

To configure my behavior, see the Flaky Bot documentation.

If I'm commenting on this issue too often, add the flakybot: quiet label and
I will stop commenting.


commit: 46ffcc2
buildURL: Build Status, Sponge
status: failed

Test output
Traceback (most recent call last):
  File "/workspace/privateca/snippets/.nox/py-3-8/lib/python3.8/site-packages/google/api_core/grpc_helpers.py", line 72, in error_remapped_callable
    return callable_(*args, **kwargs)
  File "/workspace/privateca/snippets/.nox/py-3-8/lib/python3.8/site-packages/grpc/_channel.py", line 946, in __call__
    return _end_unary_response_blocking(state, call, False, None)
  File "/workspace/privateca/snippets/.nox/py-3-8/lib/python3.8/site-packages/grpc/_channel.py", line 849, in _end_unary_response_blocking
    raise _InactiveRpcError(state)
grpc._channel._InactiveRpcError: <_InactiveRpcError of RPC that terminated with:
	status = StatusCode.RESOURCE_EXHAUSTED
	details = "Quota exceeded for quota metric 'CreateCertificateAuthority requests' and limit 'CreateCertificateAuthority requests per minute per region' of service 'privateca.googleapis.com' for consumer 'project_number:685750528901'."
	debug_error_string = "UNKNOWN:Error received from peer ipv4:173.194.193.95:443 {created_time:"2023-02-03T14:39:09.025945768+00:00", grpc_status:8, grpc_message:"Quota exceeded for quota metric \'CreateCertificateAuthority requests\' and limit \'CreateCertificateAuthority requests per minute per region\' of service \'privateca.googleapis.com\' for consumer \'project_number:685750528901\'."}"
>

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "/workspace/privateca/snippets/test_subordinate_ca.py", line 51, in test_subordinate_certificate_authority
create_subordinate_ca(
File "/workspace/privateca/snippets/create_subordinate_ca.py", line 95, in create_subordinate_ca
operation = ca_service_client.create_certificate_authority(request=request)
File "/workspace/privateca/snippets/.nox/py-3-8/lib/python3.8/site-packages/google/cloud/security/privateca_v1/services/certificate_authority_service/client.py", line 1423, in create_certificate_authority
response = rpc(
File "/workspace/privateca/snippets/.nox/py-3-8/lib/python3.8/site-packages/google/api_core/gapic_v1/method.py", line 113, in call
return wrapped_func(*args, **kwargs)
File "/workspace/privateca/snippets/.nox/py-3-8/lib/python3.8/site-packages/google/api_core/grpc_helpers.py", line 74, in error_remapped_callable
raise exceptions.from_grpc_error(exc) from exc
google.api_core.exceptions.ResourceExhausted: 429 Quota exceeded for quota metric 'CreateCertificateAuthority requests' and limit 'CreateCertificateAuthority requests per minute per region' of service 'privateca.googleapis.com' for consumer 'project_number:685750528901'. [reason: "RATE_LIMIT_EXCEEDED"
domain: "googleapis.com"
metadata {
key: "service"
value: "privateca.googleapis.com"
}
metadata {
key: "quota_metric"
value: "privateca.googleapis.com/create_certificate_authority_requests"
}
metadata {
key: "quota_location"
value: "us-central1"
}
metadata {
key: "quota_limit"
value: "CasPerMinute"
}
metadata {
key: "quota_limit_value"
value: "5"
}
metadata {
key: "consumer"
value: "projects/685750528901"
}
]

@flaky-bot flaky-bot bot added flakybot: issue An issue filed by the Flaky Bot. Should not be added manually. priority: p1 Important issue which blocks shipping the next release. Will be fixed prior to next release. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns. labels Feb 3, 2023
@product-auto-label product-auto-label bot added the samples Issues that are directly related to samples. label Feb 3, 2023
@flaky-bot
Copy link
Author

flaky-bot bot commented Feb 3, 2023

Looks like this issue is flaky. 😟

I'm going to leave this open and stop commenting.

A human should fix and close this.


When run at the same commit (46ffcc2), this test passed in one build (Build Status, Sponge) and failed in another build (Build Status, Sponge).

@flaky-bot flaky-bot bot added the flakybot: flaky Tells the Flaky Bot not to close or comment on this issue. label Feb 3, 2023
@kweinmeister kweinmeister added priority: p2 Moderately-important priority. Fix may not be included in next release. and removed priority: p1 Important issue which blocks shipping the next release. Will be fixed prior to next release. labels Feb 10, 2023
leahecole pushed a commit that referenced this issue Mar 1, 2023
* Fixing flacky privateca tests (#9075, #9081)

* Fixing backoff to be longer than 1 minute
telpirion pushed a commit that referenced this issue Mar 13, 2023
* Fixing flacky privateca tests (#9075, #9081)

* Fixing backoff to be longer than 1 minute
@flaky-bot flaky-bot bot reopened this Mar 22, 2023
@flaky-bot
Copy link
Author

flaky-bot bot commented Mar 22, 2023

Oops! Looks like this issue is still flaky. It failed again. 😬

I reopened the issue, but a human will need to close it again.


commit: 63855c9
buildURL: Build Status, Sponge
status: failed

Test output
Traceback (most recent call last):
  File "/workspace/privateca/snippets/.nox/py-3-11/lib/python3.11/site-packages/google/api_core/grpc_helpers.py", line 72, in error_remapped_callable
    return callable_(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/workspace/privateca/snippets/.nox/py-3-11/lib/python3.11/site-packages/grpc/_channel.py", line 946, in __call__
    return _end_unary_response_blocking(state, call, False, None)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/workspace/privateca/snippets/.nox/py-3-11/lib/python3.11/site-packages/grpc/_channel.py", line 849, in _end_unary_response_blocking
    raise _InactiveRpcError(state)
grpc._channel._InactiveRpcError: <_InactiveRpcError of RPC that terminated with:
	status = StatusCode.RESOURCE_EXHAUSTED
	details = "Quota exceeded for quota metric 'CreateCertificateAuthority requests' and limit 'CreateCertificateAuthority requests per minute per region' of service 'privateca.googleapis.com' for consumer 'project_number:173425378622'."
	debug_error_string = "UNKNOWN:Error received from peer ipv4:142.250.1.95:443 {created_time:"2023-03-22T15:20:27.699917624+00:00", grpc_status:8, grpc_message:"Quota exceeded for quota metric \'CreateCertificateAuthority requests\' and limit \'CreateCertificateAuthority requests per minute per region\' of service \'privateca.googleapis.com\' for consumer \'project_number:173425378622\'."}"
>

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "/workspace/privateca/snippets/test_subordinate_ca.py", line 58, in test_subordinate_certificate_authority
create_subordinate_ca(
File "/workspace/privateca/snippets/create_subordinate_ca.py", line 95, in create_subordinate_ca
operation = ca_service_client.create_certificate_authority(request=request)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/workspace/privateca/snippets/.nox/py-3-11/lib/python3.11/site-packages/google/cloud/security/privateca_v1/services/certificate_authority_service/client.py", line 1435, in create_certificate_authority
response = rpc(
^^^^
File "/workspace/privateca/snippets/.nox/py-3-11/lib/python3.11/site-packages/google/api_core/gapic_v1/method.py", line 113, in call
return wrapped_func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/workspace/privateca/snippets/.nox/py-3-11/lib/python3.11/site-packages/google/api_core/grpc_helpers.py", line 74, in error_remapped_callable
raise exceptions.from_grpc_error(exc) from exc
google.api_core.exceptions.ResourceExhausted: 429 Quota exceeded for quota metric 'CreateCertificateAuthority requests' and limit 'CreateCertificateAuthority requests per minute per region' of service 'privateca.googleapis.com' for consumer 'project_number:173425378622'. [reason: "RATE_LIMIT_EXCEEDED"
domain: "googleapis.com"
metadata {
key: "service"
value: "privateca.googleapis.com"
}
metadata {
key: "quota_metric"
value: "privateca.googleapis.com/create_certificate_authority_requests"
}
metadata {
key: "quota_location"
value: "us-central1"
}
metadata {
key: "quota_limit"
value: "CasPerMinute"
}
metadata {
key: "quota_limit_value"
value: "5"
}
metadata {
key: "consumer"
value: "projects/173425378622"
}
]

@nicain
Copy link
Contributor

nicain commented Mar 24, 2023

Lots of changes on the infrastructure side may have resolved this. Closing to see if this will reoccur.

@nicain nicain closed this as completed Mar 24, 2023
@flaky-bot flaky-bot bot reopened this Mar 24, 2023
@flaky-bot
Copy link
Author

flaky-bot bot commented Mar 24, 2023

Oops! Looks like this issue is still flaky. It failed again. 😬

I reopened the issue, but a human will need to close it again.


commit: 2f93ea6
buildURL: Build Status, Sponge
status: failed

Test output
Traceback (most recent call last):
  File "/workspace/privateca/snippets/.nox/py-3-7/lib/python3.7/site-packages/google/api_core/grpc_helpers.py", line 72, in error_remapped_callable
    return callable_(*args, **kwargs)
  File "/workspace/privateca/snippets/.nox/py-3-7/lib/python3.7/site-packages/grpc/_channel.py", line 946, in __call__
    return _end_unary_response_blocking(state, call, False, None)
  File "/workspace/privateca/snippets/.nox/py-3-7/lib/python3.7/site-packages/grpc/_channel.py", line 849, in _end_unary_response_blocking
    raise _InactiveRpcError(state)
grpc._channel._InactiveRpcError: <_InactiveRpcError of RPC that terminated with:
	status = StatusCode.RESOURCE_EXHAUSTED
	details = "Quota exceeded for quota metric 'CreateCertificateAuthority requests' and limit 'CreateCertificateAuthority requests per minute per region' of service 'privateca.googleapis.com' for consumer 'project_number:147863112738'."
	debug_error_string = "UNKNOWN:Error received from peer ipv4:209.85.145.95:443 {created_time:"2023-03-24T21:17:41.025904241+00:00", grpc_status:8, grpc_message:"Quota exceeded for quota metric \'CreateCertificateAuthority requests\' and limit \'CreateCertificateAuthority requests per minute per region\' of service \'privateca.googleapis.com\' for consumer \'project_number:147863112738\'."}"
>

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "/workspace/privateca/snippets/test_subordinate_ca.py", line 66, in test_subordinate_certificate_authority
CA_DURATION,
File "/workspace/privateca/snippets/create_subordinate_ca.py", line 95, in create_subordinate_ca
operation = ca_service_client.create_certificate_authority(request=request)
File "/workspace/privateca/snippets/.nox/py-3-7/lib/python3.7/site-packages/google/cloud/security/privateca_v1/services/certificate_authority_service/client.py", line 1439, in create_certificate_authority
metadata=metadata,
File "/workspace/privateca/snippets/.nox/py-3-7/lib/python3.7/site-packages/google/api_core/gapic_v1/method.py", line 113, in call
return wrapped_func(*args, **kwargs)
File "/workspace/privateca/snippets/.nox/py-3-7/lib/python3.7/site-packages/google/api_core/grpc_helpers.py", line 74, in error_remapped_callable
raise exceptions.from_grpc_error(exc) from exc
google.api_core.exceptions.ResourceExhausted: 429 Quota exceeded for quota metric 'CreateCertificateAuthority requests' and limit 'CreateCertificateAuthority requests per minute per region' of service 'privateca.googleapis.com' for consumer 'project_number:147863112738'. [reason: "RATE_LIMIT_EXCEEDED"
domain: "googleapis.com"
metadata {
key: "service"
value: "privateca.googleapis.com"
}
metadata {
key: "quota_metric"
value: "privateca.googleapis.com/create_certificate_authority_requests"
}
metadata {
key: "quota_location"
value: "us-central1"
}
metadata {
key: "quota_limit"
value: "CasPerMinute"
}
metadata {
key: "quota_limit_value"
value: "5"
}
metadata {
key: "consumer"
value: "projects/147863112738"
}
]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
flakybot: flaky Tells the Flaky Bot not to close or comment on this issue. flakybot: issue An issue filed by the Flaky Bot. Should not be added manually. priority: p2 Moderately-important priority. Fix may not be included in next release. samples Issues that are directly related to samples. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
Projects
None yet
5 participants