Giter Club home page Giter Club logo

Comments (6)

asifdxtreme avatar asifdxtreme commented on September 27, 2024

@kumarashit , Please assign this issue to me, probable completion date by 08/02/2021

from nbp.

asifdxtreme avatar asifdxtreme commented on September 27, 2024

Lifecyle Test for soda-csi plugNplay feature is in progress, the driver used for the lifecyle test is https://github.com/openebs/lvm-localpv

  • csi-provisioner
  • csi-node-driver-registrar

from nbp.

asifdxtreme avatar asifdxtreme commented on September 27, 2024

With soda-csi-provisioner the openebs plugin is giving an error

I0224 03:45:01.070820       1 grpc.go:72] GRPC call: /csi.v1.Controller/CreateVolume requests {"capacity_range":{"required_bytes":1073741824},"name":"pvc-2ad97558-6645-47ac-b161-7b98518337a8","parameters":{"csi.storage.k8s.io/pv/name":"pvc-2ad97558-6645-47ac-b161-7b98518337a8","csi.storage.k8s.io/pvc/name":"csi-lvmpvc-soda","csi.storage.k8s.io/pvc/namespace":"default","profile":"c16f9beb-530f-4fbe-9500-641af004a728","volgroup":"lvmvg"},"volume_capabilities":[{"AccessType":{"Mount":{"fs_type":"ext4"}},"access_mode":{"mode":1}}]}
E0224 03:45:01.075164       1 scheduler.go:80] scheduler: topology information not provided
E0224 03:45:01.075197       1 grpc.go:79] GRPC error: rpc error: code = Internal desc = scheduler failed, not able to select a node to create the PV

from nbp.

asifdxtreme avatar asifdxtreme commented on September 27, 2024

With the soda-csi-provisioner v2.1 the complete lifecyle of OpenEbs LVM Plugin has been tested.

Here are some of the steps to follow to verify the test. (K8s v1.17+ is required to replicate these steps)

k create -f https://raw.githubusercontent.com/asifdxtreme/Docs/master/cheatsheet/soda/csi/openebs/lvm/lvm-operator.yaml


namespace/openebs created
customresourcedefinition.apiextensions.k8s.io/lvmvolumes.local.openebs.io created
customresourcedefinition.apiextensions.k8s.io/lvmsnapshots.local.openebs.io created
csidriver.storage.k8s.io/local.csi.openebs.io created
customresourcedefinition.apiextensions.k8s.io/volumesnapshotclasses.snapshot.storage.k8s.io created
customresourcedefinition.apiextensions.k8s.io/volumesnapshotcontents.snapshot.storage.k8s.io created
customresourcedefinition.apiextensions.k8s.io/volumesnapshots.snapshot.storage.k8s.io created
serviceaccount/openebs-lvm-controller-sa created
clusterrole.rbac.authorization.k8s.io/openebs-lvm-provisioner-role created
clusterrolebinding.rbac.authorization.k8s.io/openebs-lvm-provisioner-binding created
statefulset.apps/openebs-lvm-controller created
clusterrole.rbac.authorization.k8s.io/openebs-lvm-snapshotter-role created
clusterrolebinding.rbac.authorization.k8s.io/openebs-lvm-snapshotter-binding created
serviceaccount/openebs-lvm-node-sa created
clusterrole.rbac.authorization.k8s.io/openebs-lvm-driver-registrar-role created
clusterrolebinding.rbac.authorization.k8s.io/openebs-lvm-driver-registrar-binding created
daemonset.apps/openebs-lvm-node created


k create -f https://raw.githubusercontent.com/asifdxtreme/Docs/master/cheatsheet/soda/csi/openebs/lvm/sample.yaml


storageclass.storage.k8s.io/openebs-lvmsc-soda created
persistentvolumeclaim/csi-lvmpvc-soda created
deployment.apps/fio created

The StorageClass used in this sample is given below

apiVersion: storage.k8s.io/v1
kind: StorageClass
metadata:
  name: openebs-lvmsc-soda
allowVolumeExpansion: true
parameters:
  volgroup: "lvmvg"
  profile: a82980d3-1030-41e5-95f0-b2db5a0c065d  # Profile ID of the soda profile which has the driver information
provisioner: soda-csi
allowedTopologies:
- matchLabelExpressions:
  - key: kubernetes.io/hostname
    values:
      - node-12340        # Node name of the machine where you need to spawn the volume

Get the pod list

root@node-12340:~# k get pods
NAME                   READY   STATUS    RESTARTS   AGE
fio-5587bcd749-cx5ld   1/1     Running   0          35s



root@node-12340:~# k describe pod fio-5587bcd749-cx5ld 
Name:         fio-5587bcd749-cx5ld
Namespace:    default
Priority:     0
Node:         node-12340/192.168.20.62
Start Time:   Thu, 25 Feb 2021 14:24:23 -0500
Labels:       name=fio
              pod-template-hash=5587bcd749
Annotations:  cni.projectcalico.org/podIP: 192.168.213.31/32
              cni.projectcalico.org/podIPs: 192.168.213.31/32
Status:       Running
IP:           192.168.213.31
IPs:
  IP:           192.168.213.31
Controlled By:  ReplicaSet/fio-5587bcd749
Containers:
  perfrunner:
    Container ID:  docker://2de185affc73ad21ee39f59c17aa51786c0581dbff3f929af8e76bef156ca10b
    Image:         openebs/tests-fio
    Image ID:      docker-pullable://openebs/tests-fio@sha256:ba489494abafc4dedcd3e55bc108a167bf3f9c4530fc8a9c8950a0dc2155c1ca
    Port:          <none>
    Host Port:     <none>
    Command:
      /bin/bash
    Args:
      -c
      while true ;do sleep 50; done
    State:          Running
      Started:      Thu, 25 Feb 2021 14:24:24 -0500
    Ready:          True
    Restart Count:  0
    Environment:    <none>
    Mounts:
      /datadir from fio-vol (rw)
      /var/run/secrets/kubernetes.io/serviceaccount from default-token-vrvv7 (ro)
Conditions:
  Type              Status
  Initialized       True 
  Ready             True 
  ContainersReady   True 
  PodScheduled      True 
Volumes:
  fio-vol:
    Type:       PersistentVolumeClaim (a reference to a PersistentVolumeClaim in the same namespace)
    ClaimName:  csi-lvmpvc-soda
    ReadOnly:   false
  default-token-vrvv7:
    Type:        Secret (a volume populated by a Secret)
    SecretName:  default-token-vrvv7
    Optional:    false
QoS Class:       BestEffort
Node-Selectors:  <none>
Tolerations:     node.kubernetes.io/not-ready:NoExecute for 300s
                 node.kubernetes.io/unreachable:NoExecute for 300s

from nbp.

asifdxtreme avatar asifdxtreme commented on September 27, 2024

Demo video for this lifecyle test has been uploaded here https://youtu.be/6ENBlalTM2g

from nbp.

asifdxtreme avatar asifdxtreme commented on September 27, 2024

This Issue has been resolved and codes have been merged
I am going ahead to close it, if you have any concerns then please feel to re-open it.

from nbp.

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.