GithubHelp home page GithubHelp logo

Comments (4)

dvonthenen avatar dvonthenen commented on May 28, 2024

I just ran the commands using the latest (which is code changes that include this PR #136) and I don't see the problem. There were some updates to the YAML that affected permissions which could account for this. Recommend re-verifying after the PR gets merged.

[vonthd@k8smaster csi]$ kubectl version
Client Version: version.Info{Major:"1", Minor:"13", GitVersion:"v1.13.1", GitCommit:"eec55b9ba98609a46fee712359c7b5b365bdd920", GitTreeState:"clean", BuildDate:"2018-12-13T10:39:04Z", GoVersion:"go1.11.2", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{Major:"1", Minor:"13", GitVersion:"v1.13.1", GitCommit:"eec55b9ba98609a46fee712359c7b5b365bdd920", GitTreeState:"clean", BuildDate:"2018-12-13T10:31:33Z", GoVersion:"go1.11.2", Compiler:"gc", Platform:"linux/amd64"}
[vonthd@k8smaster csi]$ kubectl get pv
NAME                                       CAPACITY   ACCESS MODES   RECLAIM POLICY   STATUS   CLAIM                     STORAGECLASS   REASON   AGE
pvc-fba35f4e-296d-11e9-84f7-005056a741a8   5Gi        RWO            Delete           Bound    default/vsphere-csi-pvc   vsphere-fcd             13s
[vonthd@k8smaster csi]$ kubectl describe pv
Name:            pvc-fba35f4e-296d-11e9-84f7-005056a741a8
Labels:          <none>
Annotations:     pv.kubernetes.io/provisioned-by: io.k8s.cloud-provider-vsphere.vsphere
Finalizers:      [kubernetes.io/pv-protection]
StorageClass:    vsphere-fcd
Status:          Bound
Claim:           default/vsphere-csi-pvc
Reclaim Policy:  Delete
Access Modes:    RWO
VolumeMode:      Filesystem
Capacity:        5Gi
Node Affinity:   <none>
Message:         
Source:
    Type:              CSI (a Container Storage Interface (CSI) volume source)
    Driver:            io.k8s.cloud-provider-vsphere.vsphere
    VolumeHandle:      50bdf1e7-3545-4751-8370-7c724c4339aa
    ReadOnly:          false
    VolumeAttributes:      datacenter=vic1dc
                           name=pvc-fba35f4e-296d-11e9-84f7-005056a741a8
                           owning_datastore=shared-iscsi1-datastore-2
                           parent_name=iscsi1-cluster
                           parent_type=DatastoreCluster
                           storage.kubernetes.io/csiProvisionerIdentity=1549388801939-8081-io.k8s.cloud-provider-vsphere.vsphere
                           type=First Class Disk
                           vcenter=10.161.60.78
Events:                <none>
[vonthd@k8smaster csi]$ 

from cloud-provider-vsphere.

dvonthenen avatar dvonthenen commented on May 28, 2024

/assign dvonthenen

from cloud-provider-vsphere.

dvonthenen avatar dvonthenen commented on May 28, 2024

PR #136 was merged a few days ago. Please give it a try and see if it fixes your issue. Note the instructions below.

  1. reinstall the CSI driver by grabbing/updating the YAML (fixed permissions) in its deployment
  2. the YAML deploys v0.1.1 of the driver… so you will need to change the image to latest within the YAML in 2 places until a new tag becomes available
  3. fairly detailed documentation was created for multi-vc/dc and zones support: https://github.com/kubernetes/cloud-provider-vsphere/blob/master/docs/deploying_ccm_and_csi_with_multi_dc_vc_aka_zones.md

from cloud-provider-vsphere.

divyenpatel avatar divyenpatel commented on May 28, 2024

After applying fix mentioned at #135 (comment)

I am able to retrive pv and pvc using kubectl get

# kubectl get pvc
NAME                 STATUS   VOLUME                                     CAPACITY   ACCESS MODES   STORAGECLASS           AGE
my-vsphere-csi-pvc   Bound    pvc-48a3a1e3-3177-11e9-a630-00505690e9f4   5Gi        RWO            my-vsphere-fcd-class   14m

# kubectl get pv
NAME                                       CAPACITY   ACCESS MODES   RECLAIM POLICY   STATUS   CLAIM                        STORAGECLASS           REASON   AGE
pvc-48a3a1e3-3177-11e9-a630-00505690e9f4   5Gi        RWO            Delete           Bound    default/my-vsphere-csi-pvc   my-vsphere-fcd-class            13m

from cloud-provider-vsphere.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.