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

GCE: Fix Permission for the Storage Bucket #8157

Merged

Conversation

mccare
Copy link
Contributor

@mccare mccare commented Dec 18, 2019

Needs to be Role:Entity Name not Role:Resource Name. It came out as
WRITER:serviceAccount...
now it is
WRITER:user-708930735790-compute@developer.gserviceaccount.com

https://cloud.google.com/storage/docs/json_api/v1/bucketAccessControls

@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Dec 18, 2019
@k8s-ci-robot
Copy link
Contributor

Hi @mccare. Thanks for your PR.

I'm waiting for a kubernetes member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@k8s-ci-robot k8s-ci-robot added needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Dec 18, 2019
@rifelpet
Copy link
Member

/ok-to-test

@k8s-ci-robot k8s-ci-robot added ok-to-test Indicates a non-member PR verified by an org member that is safe to test. and removed needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels Dec 18, 2019
@geojaz geojaz self-assigned this Dec 19, 2019
Copy link
Member

@geojaz geojaz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Dec 19, 2019
@geojaz
Copy link
Member

geojaz commented Dec 19, 2019

i think this is 👍 and it looks like it takes care of one of the issues that i've seen. however, we're not running gce e2e tests (yet!). i just kicked off a run over here to take a look and i'll report back. thanks for looking into this :D

@rifelpet
Copy link
Member

I would expect the integration tests to fail any idea why they didnt? It'd be great if we could get this added into the integration tests too.

@mccare mccare changed the title GCE: Fix Permission for the Storage Buchet GCE: Fix Permission for the Storage Bucket Dec 19, 2019
@mccare
Copy link
Contributor Author

mccare commented Dec 19, 2019

The permissions are only set if there is a gce bucket as configBase. In test setup, the storageacl finds memfs:// and cannot apply the IAM policy:

W1219 18:11:09.172186   63889 storageacl.go:101] unknown path, can't apply IAM policy: "memfs://tests/ha-gce.example.com/backups/etcd/main"
W1219 18:11:09.172192   63889 storageacl.go:101] unknown path, can't apply IAM policy: "memfs://tests/ha-gce.example.com/backups/etcd/events"

@geojaz
Copy link
Member

geojaz commented Dec 22, 2019

/approve

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Dec 22, 2019
@geojaz
Copy link
Member

geojaz commented Dec 22, 2019

/approve cancel

@k8s-ci-robot k8s-ci-robot removed the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Dec 22, 2019
@mccare mccare force-pushed the gce-fix-permission-for-bucket branch from 9cee7a5 to c22a8f5 Compare December 23, 2019 16:44
@k8s-ci-robot k8s-ci-robot removed the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Dec 23, 2019
@geojaz
Copy link
Member

geojaz commented Dec 23, 2019

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Dec 23, 2019
@geojaz
Copy link
Member

geojaz commented Dec 23, 2019

/approve

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: geojaz, mccare

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Dec 23, 2019
@k8s-ci-robot k8s-ci-robot merged commit fc94e9b into kubernetes:master Dec 23, 2019
@geojaz geojaz moved this from In progress to Done in Google Cloud support (GCE) to GA Dec 23, 2019
@mccare mccare deleted the gce-fix-permission-for-bucket branch January 14, 2020 18:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. ok-to-test Indicates a non-member PR verified by an org member that is safe to test. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

None yet

4 participants