Bug 1994737

Summary: [2.6.z] Cannot get 'write' permission without 'resize': Image size is not a multiple of request alignment'
Product: Container Native Virtualization (CNV) Reporter: Adam Litke <alitke>
Component: StorageAssignee: Alexander Wels <awels>
Status: CLOSED CURRENTRELEASE QA Contact: dalia <dafrank>
Severity: high Docs Contact:
Priority: unspecified    
Version: 2.6.6CC: ailan, alitke, awels, cnv-qe-bugs, eterrell, kgershon, ribarry, sgott, tmicheli, yadu, ycui
Target Milestone: ---   
Target Release: 2.6.7   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: v2.6.7-31 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1991460 Environment:
Last Closed: 2021-12-09 02:38:31 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1991460    
Bug Blocks:    

Description Adam Litke 2021-08-17 19:34:49 UTC
+++ This bug was initially created as a clone of Bug #1991460 +++

Description of problem:
The creation of a virtual machine fails while setting it up with an error message like 

~~~
"component":"virt-handler","kind":"","level":"error","msg":"Synchronizing the VirtualMachineInstance failed.","name":"rhel8-unwilling-hamster","namespace":"openshift-cnv","pos":"vm.go:1538","reason":"server error. command SyncVMI failed: \"LibvirtError(Code=1, Domain=10, Message='internal error: qemu unexpectedly closed the monitor: 2021-07-15T21:00:48.315305Z qemu-kvm: -device virtio-blk-pci-non-transitional,bus=pci.5,addr=0x0,drive=libvirt-1-format,id=ua-cloudinitdisk,write-cache=on: Cannot get 'write' permission without 'resize': Image size is not a multiple of request alignment')
~~~

If cloud-init is disabled for the virtual machines it works. The customer is using block-storage with a blocksize of 4k.

This bug is related to: https://bugzilla.redhat.com/show_bug.cgi?id=1976730.

As discussed in the case I open this bug-report.

If cloud-init is disabled the provisioning of the vm works.


How reproducible:
In every cluster using block-storage with 4k block size.

Steps to Reproduce:
1. Install OCP cluster
2. Set up storage provider with 4k block-size
3. deploy virtual machine with cloud-init enabled

Actual results:
* Provisioning of the virtual machine fails

Expected results:
* Provisioning succeeds

Additional info:

--- Additional comment from Kobig on 2021-08-16 09:10:30 UTC ---

Hi, 

Do we know to which version the fix for this bug is aimed for? and if its not for 4.7 can we please backport it? 

Thank you

Comment 1 Adam Litke 2021-08-17 19:41:49 UTC
Alexander, assigning to you since you worked on a related issue in CDI.  Could you help with the cherry-pick of https://github.com/kubevirt/kubevirt/pull/5806 to release-0.36?

Comment 2 Alexander Wels 2021-08-19 13:29:44 UTC
PR is posted.

Comment 3 Yan Du 2021-09-22 14:22:08 UTC
Test on latest CNV v2.6.7 according to the steps in https://bugzilla.redhat.com/show_bug.cgi?id=1991460#c5

Issue has been fixed, moving to verified.

Comment 4 Ying Cui 2021-12-09 02:38:31 UTC
According to the comment 3,  close the bug as current release.