Description of problem: When creating an HPP golden image, the DV is pending (WaitForFirstConsumer). This flow is Ok for DVs to be directly consumed by VMs. However, in this case there is no VM associated with this DV it will not be populated. Version-Release number of selected component (if applicable): CNV 2.6 How reproducible: 100% Steps to Reproduce: 1. Create golden image PVC Actual results: DV is pending (WaitForFirstConsumer) Expected results: DV and PVC should be created and import should succeed. Additional info:
Unlocks the critical autoclone flow for local storage.
Tomas, We would like to add support for an annotation to DVs which would allow them to populate immediately. Would you be able to get a fix into the UI where you add this annotation to certain DVs that you create?
well, the code freeze is this friday. After that only to the 4.7.1. When do you expect the annotation be ready on backend?
Bartosz has settled on the annotation name in the PR that is linked to this bug. It is "cdi.kubevirt.io/storage.bind.immediate.requested". If you apply this annotation to any DVs that are created that are not going to be associated with a VM then this should resolve the issue. It is safe for you to commit this change now because unrecognized annotations are simply ignored. Please do not use this annotation for DVs which are to be attached to a VM right away as that would bypass the WFFC logic which we do want to have in those cases. Thomas, does this make sense? Should we open a blocker 2.6.0 bug on the UI to state the requirements?
OK, makes sense, will clone this BZ to the UI and add the annotation
*** Bug 1916829 has been marked as a duplicate of this bug. ***
available in https://github.com/kubevirt/containerized-data-importer/releases/tag/v1.28.1
verified on CNV 2.6, Containerized Data Importer v2.6.0 ******************************************* $ oc create -f golden_dv.yaml apiVersion: cdi.kubevirt.io/v1beta1 kind: DataVolume metadata: name: golden-dv namespace: openshift-virtualization-os-images annotations: cdi.kubevirt.io/storage.bind.immediate.requested: "true" spec: source: http: url: https://github.com/cirros-dev/cirros/releases/download/0.5.1/cirros-0.5.1-x86_64-lxc.tar.xz pvc: accessModes: - ReadWriteOnce resources: requests: storage: 12Gi storageClassName: hostpath-provisioner volumeMode: Filesystem contentType: kubevirt $ oc get dv -n openshift-virtualization-os-images NAME PHASE PROGRESS RESTARTS AGE golden-dv Succeeded 100.0% 9m16s
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (Moderate: OpenShift Virtualization 2.6.0 security and bug fix update), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHSA-2021:0799