Bug 1928719

Summary: Cant preallocate blank block DV
Product: Container Native Virtualization (CNV) Reporter: Alex Kalenyuk <akalenyu>
Component: StorageAssignee: Tomasz BaraƄski <tbaransk>
Status: CLOSED ERRATA QA Contact: Alex Kalenyuk <akalenyu>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 2.6.0CC: alitke, cnv-qe-bugs, mrashish, ngavrilo, yadu
Target Milestone: ---Flags: tbaransk: needinfo-
Target Release: 2.6.1   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: virt-cdi-importer v2.6.1-2 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-04-07 08:46:03 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Alex Kalenyuk 2021-02-15 12:47:19 UTC
Description of problem:
Cant preallocate blank block DV

Version-Release number of selected component (if applicable):
CNV 2.6.0

How reproducible:
100%

Steps to Reproduce:
1. Create a blank block DV with preallocated: true

Actual results:
cdi.kubevirt.io/storage.preallocation is not present on PVC

Expected results:
cdi.kubevirt.io/storage.preallocation annotation on PVC should be "true"(preallocation occurred)

Additional info:
Comment #1

[cnv-qe-jenkins@stg01-alex-rjlb7-executor prealloc-block-volmode-bugs]$ cat blank_block_dv.yaml 
---
apiVersion: cdi.kubevirt.io/v1beta1
kind: DataVolume
metadata:
  name: cnv-5737
spec:
  source:
    blank: {}
  pvc:
    accessModes:
    - ReadWriteMany
    resources:
      requests:
        storage: 100Mi
    storageClassName: ocs-storagecluster-ceph-rbd
    volumeMode: Block
  preallocation: true

Comment 3 Adam Litke 2021-02-18 21:17:30 UTC
Moving to POST since the cherrypick PR #1664 is posted and awaiting merge.

Comment 9 errata-xmlrpc 2021-04-07 08:46:03 UTC
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 (CNV 2.6.1 Images), 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/RHEA-2021:1126