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

FIlestore CSI driver doesn't work on Shared VPC #43

Open
mahmoudcb opened this issue Jun 4, 2020 · 9 comments
Open

FIlestore CSI driver doesn't work on Shared VPC #43

mahmoudcb opened this issue Jun 4, 2020 · 9 comments
Assignees
Labels
lifecycle/frozen Indicates that an issue or PR should not be auto-closed due to staleness.

Comments

@mahmoudcb
Copy link

From documentation

Filestore instances on the shared VPC network cannot be created from service projects
If you attempt to create a Filestore instance from a service project that is attached to a shared VPC host project, the shared VPC network is not listed under Authorized network. Similarly, attempting to create the instance using gcloud or the REST API results in the following error:
ERROR: (gcloud.filestore.instances.create) INVALID_ARGUMENT: network '[SHARED_VPC_NETWORK]' does not exist.
Workaround
You can create Filestore instances from the host project with the shared VPC as the authorized network. Once created, clients in any service project can mount the instance as usual.
The caveats to this workaround include:
The host project must be involved in the creation of Filestore instances.
Costs for Filestore instances are charged to the host project instead of the service projects that use them.

E0604 18:10:37.941382       1 utils.go:55] GRPC error: rpc error: code = Internal desc = CreateInstance operation failed: googleapi: Error 400: network 'shared-vpc' does not exist., badRequest

So the question is, How can I run CSI controller on GKE on Project Y (which is the service project) with shared VPC on project X (the host project)?

@fejta-bot
Copy link

Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.

If this issue is safe to close now please do so with /close.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/lifecycle stale

@k8s-ci-robot k8s-ci-robot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Sep 2, 2020
@msau42
Copy link
Contributor

msau42 commented Sep 2, 2020

/assign @saikat-royc

@fejta-bot
Copy link

Stale issues rot after 30d of inactivity.
Mark the issue as fresh with /remove-lifecycle rotten.
Rotten issues close after an additional 30d of inactivity.

If this issue is safe to close now please do so with /close.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/lifecycle rotten

@k8s-ci-robot k8s-ci-robot added lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed. and removed lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. labels Oct 2, 2020
@msau42
Copy link
Contributor

msau42 commented Oct 2, 2020

/remove-lifecycle rotten

@k8s-ci-robot k8s-ci-robot removed the lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed. label Oct 2, 2020
@mattcary
Copy link
Contributor

mattcary commented Oct 7, 2020

@mahmoudcb

If you use a host project service account for GCFS_SA_FILE when deploying the driver (deploy/kubernetes/cluster_setup.sh), then I think it should work. Note this means you have to change what happens in deploy/project_setup.sh as well.

Hopefully that is a good workaround for you while we figure out a better solution.

@fejta-bot
Copy link

Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.

If this issue is safe to close now please do so with /close.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/lifecycle stale

@k8s-ci-robot k8s-ci-robot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Jan 5, 2021
@mattcary
Copy link
Contributor

/lifecycle frozen

We should add a knob for changing the project used to dynamically provision instances from the cluster project to an arbitrary project (maybe from the storageclass). The SA would still have to be set up correctly.

@k8s-ci-robot k8s-ci-robot added lifecycle/frozen Indicates that an issue or PR should not be auto-closed due to staleness. and removed lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. labels Jan 13, 2021
@mikesmitty
Copy link

For anyone else running into this issue, you can do this with private service access by setting these options on the StorageClass definition:

parameters:
  network: projects/<VPC HOST PROJECT ID>/global/networks/<VPC NAME>
  connect-mode: PRIVATE_SERVICE_ACCESS

Reference: https://cloud.google.com/filestore/docs/shared-vpc

@mattcary
Copy link
Contributor

mattcary commented Feb 8, 2022

/remove-lifecycle stale

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lifecycle/frozen Indicates that an issue or PR should not be auto-closed due to staleness.
Projects
None yet
Development

No branches or pull requests

7 participants