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

Test if driver supports inline volumes in K8s 1.15 #20

Closed
codenrhoden opened this issue Jun 12, 2019 · 20 comments
Closed

Test if driver supports inline volumes in K8s 1.15 #20

codenrhoden opened this issue Jun 12, 2019 · 20 comments
Assignees
Labels
kind/feature Categorizes issue or PR as related to a new feature. lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed.

Comments

@codenrhoden
Copy link
Contributor

Is this a BUG REPORT or FEATURE REQUEST?:

/kind feature

With support for inline CSI volumes coming in K8s 1.15 (courtesy of @vladimirvivien), we need to test the CSI driver against that feature to see if works or if any changes are necessary.

@k8s-ci-robot k8s-ci-robot added the kind/feature Categorizes issue or PR as related to a new feature. label Jun 12, 2019
@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 10, 2019
@SandeepPissay
Copy link
Contributor

/assign @SandeepPissay

@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 Nov 3, 2019
@fejta-bot
Copy link

Rotten issues close after 30d of inactivity.
Reopen the issue with /reopen.
Mark the issue as fresh with /remove-lifecycle rotten.

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

@k8s-ci-robot
Copy link
Contributor

@fejta-bot: Closing this issue.

In response to this:

Rotten issues close after 30d of inactivity.
Reopen the issue with /reopen.
Mark the issue as fresh with /remove-lifecycle rotten.

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

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.

@Alphasite
Copy link

Mind if i take this issue? @codenrhoden @SandeepPissay

@SandeepPissay
Copy link
Contributor

Mind if i take this issue? @codenrhoden @SandeepPissay

Sure!

@SandeepPissay
Copy link
Contributor

/assign @Alphasite

@k8s-ci-robot
Copy link
Contributor

@Alphasite: You can't reopen an issue/PR unless you authored it or you are a collaborator.

In response to this:

/reopen

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.

@Alphasite
Copy link

/remove-lifecycle rotten
/reopen

@k8s-ci-robot
Copy link
Contributor

@Alphasite: You can't reopen an issue/PR unless you authored it or you are a collaborator.

In response to this:

/remove-lifecycle rotten
/reopen

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 removed the lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed. label Jul 10, 2020
@Alphasite
Copy link

Alphasite commented Jul 11, 2020

Ok, looks like this isn't supported in the vsphere-csi; this check fails:

	params.stagingTarget = req.GetStagingTargetPath()
	if params.stagingTarget == "" {
		return nil, status.Error(codes.FailedPrecondition, "Staging Target Path not set")
	}

I need to look a little more deeply into why this is failing, but in the process of digging into this work flow i found this related KEP and PR: kubernetes/enhancements#1698 & kubernetes/kubernetes#92784 which merged literally 2h ago and should provide a more generic implementation of ephemeral inline volumes.

I'll figure out if supporting/testing this current implementation makes sense considering it will soon be superseded.

@Alphasite
Copy link

@SandeepPissay ^

@SandeepPissay
Copy link
Contributor

@divyenpatel was working on CSI migration and I remember that the inline volumes are supported in CSI. @divyenpatel can you confirm? And can you also send some details on how you tested inline volumes in CSI?

@divyenpatel
Copy link
Member

We have validated the migration of in-line in-tree volume to vSphere CSI Driver.
Refer this - https://gist.github.com/divyenpatel/b06955dccf5944072f742f6bc9e2c59e

In this case, the in-tree inline vSphere volume is presented as in-memory PV to CSI Driver, and thus volume attachment is created using volume path as volume handle.

Spec:
  Attacher:   csi.vsphere.vmware.com
  Node Name:  k8s-node1
  Source:
    Inline Volume Spec:
      Access Modes:
        ReadWriteOnce
      Csi:
        Driver:         csi.vsphere.vmware.com
        Fs Type:        ext4
        Volume Handle:  [vsanDatastore] 0c6ad55e-88c2-e431-bccb-02000359156d/kubernetes-dynamic-pvc-b1b87f44-7f4c-453a-b740-5c307a6a956b.vmdk
      Volume Mode:      Filesystem

We have not validated the CSI inline volume support using FCD ID specified in the pod spec.

@divyenpatel divyenpatel reopened this Jul 23, 2020
@Alphasite
Copy link

I dont have the testbed anymore, but i ran the k8s ephemeral-inline-volume e2e tests; i think it was this test suite.

I also didn't explicitly specify a volume handle; I also tested manually with a spec similar to:

apiVersion: v1
kind: Pod
metadata:
  name: some-pod
spec:
  containers:
    ...
  volumes:
      - name: vol
        csi:
          driver: inline.storage.kubernetes.io
          volumeAttributes:
              foo: bar

But with the sphere driver. I also enabled ephemeral lifecycle mode, similar to:

apiVersion: storage.k8s.io/v1
kind: CSIDriver
metadata:
  name: mycsidriver.example.com
spec:
...
  volumeLifecycleModes:
  - Persistent
  - Ephemeral

Both manual and the e2e tests failed to create a pod with an inline ephemeral volume.

@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 Oct 22, 2020
@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 Nov 21, 2020
@fejta-bot
Copy link

Rotten issues close after 30d of inactivity.
Reopen the issue with /reopen.
Mark the issue as fresh with /remove-lifecycle rotten.

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

@k8s-ci-robot
Copy link
Contributor

@fejta-bot: Closing this issue.

In response to this:

Rotten issues close after 30d of inactivity.
Reopen the issue with /reopen.
Mark the issue as fresh with /remove-lifecycle rotten.

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

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/feature Categorizes issue or PR as related to a new feature. lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed.
Projects
None yet
Development

No branches or pull requests

6 participants