Comments (5)
Hi, from the first view, all was done right.
PVCs must not created before, you can simply create a vg from a given block device or a list of block devices.
I guess your pod will mount the pvc when you delete it.
What OS is you worker node running ?
from csi-driver-lvm.
I guess your pod will mount the pvc when you delete it.
This is actually the revelation, and what's missing in my reproduction steps above: the PV isn't actually provisioned until a pod mounts the PVC. I tried creating the pod while the PVC is Pending, and things are working: the VG is created, the PV is provisioned and bound, and the pod starts.
I never got as far as creating a pod, because I figured what was the point if the PVC was stuck in pending state? Every other CSI driver I have experience with so far immediately provisions a PV and binds it when a PVC is created, so I'm embarrassed to say I never bothered creating a pod, because I was expecting csi-driver-lvm to work this way as well.
Can I humbly suggest this as an improvement? IMO it's surprising behavior to defer PV creation until after some pod mounts the PVC.
What OS is you worker node running ?
Apologies for not mentioning. Ubuntu 20.04.3.
from csi-driver-lvm.
No it cannot create the pv unless the pod is created, because this csi driver is a local-storage provider and therefor it is required to know on which node the pod get scheduled.
from csi-driver-lvm.
No it cannot create the pv unless the pod is created, because this csi driver is a local-storage provider and therefor it is required to know on which node the pod get scheduled.
Hah. You're completely right of course, I have no explanation for my momentary demonstration of stupidity. :)
Perhaps a quick note in the README might be helpful for the absentminded like me to remind us that local-storage providers will work differently than network-storage providers in this regard?
Thanks for your patience @majst01. Will close as this isn't a bug and I'm up and running.
from csi-driver-lvm.
No Problem.
from csi-driver-lvm.
Related Issues (20)
- State of the project? HOT 2
- Not deleting pvc with claim policy = Delete on pod termination HOT 2
- helm install CSIDriver.spec validation error HOT 4
- Resize failing despite free VG space HOT 2
- Multiple deprecatation warning during deployment
- How to limit nodes that cdi-driver is trying to provision a volume to? HOT 2
- [Enhancment] Support for LVM-HA HOT 5
- Kubernetes 1.22 and v1beta1 versus v1 HOT 4
- unable to activate logical volumes: Volume group "csi-lvm" not found HOT 2
- Dockerfile dependency packages questions HOT 8
- chmod 0777 causes recursively setting volume ownership even with fsGroupChangePolicy: OnRootMismatch HOT 2
- [new feature request] add clone volume function HOT 2
- Feature Request: hashicorp nomad support HOT 4
- /etc/lvm/archive not mapping, possible data loss HOT 2
- Read-only filesystems are not supported HOT 4
- Operator documentation + resize + adding new volumes HOT 2
- Provisioner pod created in default namespace HOT 8
- Helm installation from README doesn't work
- Does not start on >= kubernetes v1.27.0
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from csi-driver-lvm.