You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Component a is able to write logs without issues. Component b gets an error when trying to write logs:
Failed to submit 1 logs.
Traceback (most recent call last):
" File ""/opt/app/.venv/lib/python3.10/site-packages/google/cloud/logging_v2/handlers/transports/background_thread.py"", line 115, in _safely_commit_batch"
batch.commit()
" File ""/opt/app/.venv/lib/python3.10/site-packages/google/cloud/logging_v2/logger.py"", line 467, in commit"
client.logging_api.write_entries(
" File ""/opt/app/.venv/lib/python3.10/site-packages/google/cloud/logging_v2/_gapic.py"", line 163, in write_entries"
self._gapic_api.write_log_entries(request=request)
" File ""/opt/app/.venv/lib/python3.10/site-packages/google/cloud/logging_v2/services/logging_service_v2/client.py"", line 955, in write_log_entries"
response = rpc(
" File ""/opt/app/.venv/lib/python3.10/site-packages/google/api_core/gapic_v1/method.py"", line 131, in __call__"
" return wrapped_func(*args, **kwargs)"
" File ""/opt/app/.venv/lib/python3.10/site-packages/google/api_core/retry/retry_unary.py"", line 293, in retry_wrapped_func"
return retry_target(
" File ""/opt/app/.venv/lib/python3.10/site-packages/google/api_core/retry/retry_unary.py"", line 153, in retry_target"
_retry_error_helper(
" File ""/opt/app/.venv/lib/python3.10/site-packages/google/api_core/retry/retry_base.py"", line 212, in _retry_error_helper"
raise final_exc from source_exc
" File ""/opt/app/.venv/lib/python3.10/site-packages/google/api_core/retry/retry_unary.py"", line 144, in retry_target"
result = target()
" File ""/opt/app/.venv/lib/python3.10/site-packages/google/api_core/timeout.py"", line 120, in func_with_timeout"
" return func(*args, **kwargs)"
" File ""/opt/app/.venv/lib/python3.10/site-packages/google/api_core/grpc_helpers.py"", line 78, in error_remapped_callable"
raise exceptions.from_grpc_error(exc) from exc
"google.api_core.exceptions.PermissionDenied: 403 Permission 'logging.logEntries.create' denied on resource (or it may not exist). [reason: ""IAM_PERMISSION_DENIED"""
"domain: ""iam.googleapis.com"""
metadata {
" key: ""permission"""
" value: ""logging.logEntries.create"""
}
", type_url: ""type.googleapis.com/google.logging.v2.WriteLogEntriesPartialErrors"""
"value: ""\nX\010\000\022T\010\007\022PPermission \'logging.logEntries.create\' denied on resource (or it may not exist)."""
]
What did you expect to happen:
Both components to be able to write logs successfully
Anything else you would like to add:
This happens only if any of the set_*_limit methods are used on any of the components. The after methods doesn't seem to have an impact.
Environment:
Vertex AI
The text was updated successfully, but these errors were encountered:
/kind bug
What steps did you take and what happened:
_logging.py
as:a
, andb
, and run them in a pipeline, as:a
is able to write logs without issues. Componentb
gets an error when trying to write logs:What did you expect to happen:
Both components to be able to write logs successfully
Anything else you would like to add:
This happens only if any of the
set_*_limit
methods are used on any of the components. Theafter
methods doesn't seem to have an impact.Environment:
Vertex AI
The text was updated successfully, but these errors were encountered: