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

[Failing Test]: Python Precommits Failing with "Cloud IAM check failed" #29054

Closed
1 of 16 tasks
jrmccluskey opened this issue Oct 18, 2023 · 0 comments · Fixed by #29067
Closed
1 of 16 tasks

[Failing Test]: Python Precommits Failing with "Cloud IAM check failed" #29054

jrmccluskey opened this issue Oct 18, 2023 · 0 comments · Fixed by #29067
Assignees
Labels
bug done & done Issue has been reviewed after it was closed for verification, followups, etc. failing test P1 permared python tests

Comments

@jrmccluskey
Copy link
Contributor

What happened?

Precommits are failing on PRs and tests executing on master with the same IAM permissions error.

Example error:

==================================== ERRORS ====================================
_____________ ERROR at teardown of RecommendationAIIT.test_predict _____________
[gw5] linux -- Python 3.9.18 /runner/_work/beam/beam/sdks/python/test-suites/tox/py39/build/srcs/sdks/python/target/.tox-py39-cloud/py39-cloud/bin/python

args = (parent: "projects/apache-beam-testing/locations/global/catalogs/default_catalog"
,)
kwargs = {'metadata': [('x-goog-request-params', 'parent=projects/apache-beam-testing/locations/global/catalogs/default_catalog'), ('x-goog-api-client', 'gl-python/3.9.18 grpc/1.59.0 gax/2.12.0 gapic/0.10.5')], 'timeout': 600.0}

    @functools.wraps(callable_)
    def error_remapped_callable(*args, **kwargs):
        try:
>           return callable_(*args, **kwargs)

target/.tox-py39-cloud/py39-cloud/lib/python3.9/site-packages/google/api_core/grpc_helpers.py:75: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
target/.tox-py39-cloud/py39-cloud/lib/python3.9/site-packages/grpc/_channel.py:1161: in __call__
    return _end_unary_response_blocking(state, call, False, None)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

state = <grpc._channel._RPCState object at 0x7ddedc078ac0>
call = <grpc._cython.cygrpc.SegregatedCall object at 0x7dded7fb5ac0>
with_call = False, deadline = None

    def _end_unary_response_blocking(
        state: _RPCState,
        call: cygrpc.SegregatedCall,
        with_call: bool,
        deadline: Optional[float],
    ) -> Union[ResponseType, Tuple[ResponseType, grpc.Call]]:
        if state.code is grpc.StatusCode.OK:
            if with_call:
                rendezvous = _MultiThreadedRendezvous(state, call, None, deadline)
                return state.response, rendezvous
            else:
                return state.response
        else:
>           raise _InactiveRpcError(state)  # pytype: disable=not-instantiable
E           grpc._channel._InactiveRpcError: <_InactiveRpcError of RPC that terminated with:
E           	status = StatusCode.PERMISSION_DENIED
E           	details = "Cloud IAM check failed for the following permission: 'automlrecommendations.catalogItems.list' on the following resource: 'projects/apache-beam-testing/locations/global/catalogs/default_catalog'. Check if you have the appropriate roles assigned to you in https://console.cloud.google.com/iam-admin/iam."
E           	debug_error_string = "UNKNOWN:Error received from peer ipv4:172.253.114.95:443 {created_time:"2023-10-18T14:41:38.167376066+00:00", grpc_status:7, grpc_message:"Cloud IAM check failed for the following permission: \'automlrecommendations.catalogItems.list\' on the following resource: \'projects/apache-beam-testing/locations/global/catalogs/default_catalog\'. Check if you have the appropriate roles assigned to you in https://console.cloud.google.com/iam-admin/iam."}"
E           >

target/.tox-py39-cloud/py39-cloud/lib/python3.9/site-packages/grpc/_channel.py:1004: _InactiveRpcError

Issue Failure

Failure: Test is continually failing

Issue Priority

Priority: 1 (unhealthy code / failing or flaky postcommit so we cannot be sure the product is healthy)

Issue Components

  • Component: Python SDK
  • Component: Java SDK
  • Component: Go SDK
  • Component: Typescript SDK
  • Component: IO connector
  • Component: Beam YAML
  • Component: Beam examples
  • Component: Beam playground
  • Component: Beam katas
  • Component: Website
  • Component: Spark Runner
  • Component: Flink Runner
  • Component: Samza Runner
  • Component: Twister2 Runner
  • Component: Hazelcast Jet Runner
  • Component: Google Cloud Dataflow Runner
@Abacn Abacn self-assigned this Oct 19, 2023
@github-actions github-actions bot added this to the 2.52.0 Release milestone Oct 19, 2023
@damccorm damccorm added the done & done Issue has been reviewed after it was closed for verification, followups, etc. label Oct 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug done & done Issue has been reviewed after it was closed for verification, followups, etc. failing test P1 permared python tests
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants