GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Samples tests are failing with `PermissionDenied` · Issue #243 · googleapis/python-iam

This repository was archived by the owner on Oct 16, 2023. It is now read-only.
This repository was archived by the owner on Oct 16, 2023. It is now read-only.

Samples tests are failing with PermissionDenied #243

Copy link
Copy link
Closed
Closed
Samples tests are failing with PermissionDenied#243
Copy link
Assignees
Sita04
Labels
api: iamIssues related to the googleapis/python-iam API.priority: p2Moderately-important priority. Fix may not be included in next release.samplesIssues that are directly related to samples.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.

Description

@parthea
parthea
opened on Oct 24, 2022
Issue body actions

The sample test for create_deny_policy is failing with PermissionDenied. See build log here and stack trace below:

create_deny_policy.py:103: in create_deny_policy
    result = policies_client.create_policy(request=request).result()
../../google/cloud/iam_v2/services/policies/client.py:787: in create_policy
    metadata=metadata,
.nox/py-3-7/lib/python3.7/site-packages/google/api_core/gapic_v1/method.py:154: in __call__
    return wrapped_func(*args, **kwargs)
.nox/py-3-7/lib/python3.7/site-packages/google/api_core/retry.py:288: in retry_wrapped_func
    on_error=on_error,
.nox/py-3-7/lib/python3.7/site-packages/google/api_core/retry.py:190: in retry_target
    return target()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

args = (parent: "policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fpython-docs-samples-tests/denypolicies"
policy {
 ...eing deleted has a tag with the value test"
  }
}
policy_id: "test-deny-policy-e49f57dd-603b-48b5-bcde-fd81ab1d17f6"
,)
kwargs = {'metadata': [('x-goog-request-params', 'parent=policies/cloudresourcemanager.googleapis.com%252Fprojects%252Fpython-docs-samples-tests/denypolicies'), ('x-goog-api-client', 'gl-python/3.7.12 grpc/1.50.0 gax/2.10.2 gapic/2.8.2')]}

    @functools.wraps(callable_)
    def error_remapped_callable(*args, **kwargs):
        try:
            return callable_(*args, **kwargs)
        except grpc.RpcError as exc:
>           raise exceptions.from_grpc_error(exc) from exc
E           google.api_core.exceptions.PermissionDenied: 403 Permission iam.googleapis.com/denypolicies.create denied on resource cloudresourcemanager.googleapis.com/projects/python-docs-samples-tests

.nox/py-3-7/lib/python3.7/site-packages/google/api_core/grpc_helpers.py:74: PermissionDenied

Activity

  1. parthea
    assigned
    Sita04
    on Oct 24, 2022
  2. product-auto-label
    added
    api: iamIssues related to the googleapis/python-iam API.
    on Oct 24, 2022
  3. parthea
    added
    samplesIssues that are directly related to samples.
    type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.
    priority: p2Moderately-important priority. Fix may not be included in next release.
    and removed
    api: iamIssues related to the googleapis/python-iam API.
    on Oct 24, 2022
  4. product-auto-label
    added
    api: iamIssues related to the googleapis/python-iam API.
    on Oct 25, 2022
  5. Sita04 commented on Feb 13, 2023

    @Sita04
    Sita04
    on Feb 13, 2023
    Contributor
    More actions

    The sample have been moved to python-docs-samples in PR: GoogleCloudPlatform/python-docs-samples#8497

  6. Sita04
    closed this as completedon Feb 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @Sita04
    Sita04

Labels

api: iamIssues related to the googleapis/python-iam API.priority: p2Moderately-important priority. Fix may not be included in next release.samplesIssues that are directly related to samples.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.