Bug 1994737 - [2.6.z] Cannot get 'write' permission without 'resize': Image size is not a multiple of request alignment'
Summary: [2.6.z] Cannot get 'write' permission without 'resize': Image size is not a m...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Container Native Virtualization (CNV)
Classification: Red Hat
Component: Storage
Version: 2.6.6
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ---
: 2.6.7
Assignee: Alexander Wels
QA Contact: dalia
URL:
Whiteboard:
Depends On: 1991460
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-08-17 19:34 UTC by Adam Litke
Modified: 2021-12-09 02:38 UTC (History)
11 users (show)

Fixed In Version: v2.6.7-31
Doc Type: If docs needed, set a value
Doc Text:
Clone Of: 1991460
Environment:
Last Closed: 2021-12-09 02:38:31 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github kubevirt kubevirt pull 6269 0 None None None 2021-09-01 09:05:13 UTC

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.


Note You need to log in before you can comment on or make changes to this bug.