Comments (2)
I also tried creating 2 new storage classes - one for each node, then modifying the DV to use one of these:
storage classes
$ kubectl get storageclass
NAME PROVISIONER RECLAIMPOLICY VOLUMEBINDINGMODE ALLOWVOLUMEEXPANSION AGE
openebs-hostpath openebs.io/local Delete WaitForFirstConsumer false 2d
openebs-zfspv (default) zfs.csi.openebs.io Delete Immediate false 2d
openebs-zfspv-srv-6 zfs.csi.openebs.io Delete Immediate false 6m35s
openebs-zfspv-vr-3 zfs.csi.openebs.io Delete Immediate false 6m33s
Modified DV:
apiVersion: cdi.kubevirt.io/v1beta1
kind: DataVolume
metadata:
name: rocky9
namespace: vm-images
spec:
source:
http:
url: http://10.2.3.2/rocky/rocky9.qcow2
pvc:
storageClassName: openebs-zfspv-srv-6
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 11Gi
where storage class openebs-zfspv-srv-6
manifest is:
apiVersion: storage.k8s.io/v1
kind: StorageClass
metadata:
name: openebs-zfspv-srv-6
parameters:
recordsize: "128k"
compression: "off"
dedup: "off"
fstype: "zfs"
poolname: "zfspv-pool"
provisioner: zfs.csi.openebs.io
allowedTopologies:
- matchLabelExpressions:
- key: openebs.io/nodeid
values:
- bne-lab-srv-6
However that has the same problem as before - PVs on different nodes, and importer pod failing to start:
$ kubectl get pv
NAME CAPACITY ACCESS MODES RECLAIM POLICY STATUS CLAIM STORAGECLASS VOLUMEATTRIBUTESCLASS REASON AGE
pvc-70109904-972f-48ff-9ce2-d53b5110ada0 11Gi RWO Delete Bound vm-images/prime-7a145994-7d01-489c-af16-d315557a0042-scratch openebs-zfspv <unset> 3m50s
pvc-d2b7ffb8-239e-46fb-8d6b-41f4bb0f8504 11Gi RWO Delete Bound vm-images/prime-7a145994-7d01-489c-af16-d315557a0042 openebs-zfspv-srv-6 <unset> 3m57s
In the case where a storage class was explicitly set for the backing PVC, I would expect the scratch PVC to also use that rather than the default storage class.
from containerized-data-importer.
I found a solution to my problem after reading: https://github.com/kubevirt/containerized-data-importer/blob/main/doc/waitforfirstconsumer-storage-handling.md
- change my storage class binding mode from
Immediate
toWaitForFirstConsumer
- add annotation to my DV:
cdi.kubevirt.io/storage.bind.immediate.requested: "true"
This also resolved the issue of scratch PVC not using same storage class as backing PVC.
from containerized-data-importer.
Related Issues (20)
- Slow import HOT 3
- Prlimit Unit Test fail on s390x with go1.21.5 HOT 4
- Missing clear explanation on how to pull an image from S3 HOT 6
- Parameterize hard coded environment variables in bazel-build-builder.sh
- Datavolume is failed occasionally when clone a datavolume from a pvc for concurrency HOT 12
- CDI importer pod shows nbdkit error , not able to create data-volume HOT 12
- Add s390x cross-build libraries to builder container docker file HOT 4
- Add troubleshooting doc
- DataVolumes.md HOT 1
- Labels derived from env vars on containerdisks are not set on imported PVC when using populators HOT 1
- Out of date?
- 为啥指定的镜像源,比如qcow2格式的镜像文件,会默认转为img格式,能保持原格式不变,供kubevirt使用吗 HOT 2
- Unable to build docker image from source? HOT 1
- Include functional test focus capabilities
- Prlimit Unit Test fails on s390x HOT 12
- s390x enablement
- Error when requesting an UploadTokenRequest
- Not getting images from mirror-registry
- cdi Label matching bound pv does not take effect HOT 4
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 containerized-data-importer.