Bug 2084122 - [4.11]Clone from filesystem to block on storage api with the same size fails
Summary: [4.11]Clone from filesystem to block on storage api with the same size fails
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Container Native Virtualization (CNV)
Classification: Red Hat
Component: Storage
Version: 4.11.0
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
: 4.11.0
Assignee: Bartosz Rybacki
QA Contact: dalia
URL:
Whiteboard:
: 2088220 2101831 (view as bug list)
Depends On: 2079781 2101831
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-05-11 13:21 UTC by Jenia Peimer
Modified: 2022-09-14 19:32 UTC (History)
10 users (show)

Fixed In Version: CNV v4.11.0-540
Doc Type: If docs needed, set a value
Doc Text:
Clone Of: 2079781
Environment:
Last Closed: 2022-09-14 19:32:30 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github kubevirt containerized-data-importer pull 2299 0 None Merged Clone fs to block fails on size validation 2022-06-28 13:31:49 UTC
Github kubevirt containerized-data-importer pull 2336 0 None Merged Manual cherry pick 2299 to release v1.49 2022-06-28 13:32:06 UTC

Description Jenia Peimer 2022-05-11 13:21:33 UTC
+++ This bug was initially created as a clone of Bug #2079781 +++

Description of problem:
When using storage api with filesystem volume mode the size increased for the fs overhead.
when trying to clone to block the clone fails because the target is smaller than source.

How reproducible:
100%

Steps to Reproduce:
1. Create a DV using storage api on filesystem volume mode.
2. Clone the DV with the same size to block.

Actual results:
clone fails:
 message: 'Error encountered while creating DataVolumes: Failed to create DataVolume:
        admission webhook "datavolume-validate.cdi.kubevirt.io" denied the request:  target
        resources requests storage size is smaller than the source'

Expected results:
Clone should succeed.

--- Additional comment from Jenia Peimer on 2022-04-28 12:03:22 UTC ---

We have this also in 4.11

Comment 1 Maya Rashish 2022-06-27 19:42:56 UTC
Setting back state - the PR was merged to main but we want it in the release branch for 4.11

Comment 2 Adam Litke 2022-06-28 13:32:49 UTC
*** Bug 2101831 has been marked as a duplicate of this bug. ***

Comment 3 Adam Litke 2022-06-28 15:00:26 UTC
*** Bug 2088220 has been marked as a duplicate of this bug. ***

Comment 6 dalia 2022-07-25 13:47:57 UTC
Fixed for clone from storage api -> storage api.
The problem still exist for clone from storage api -> pvc api

Comment 9 errata-xmlrpc 2022-09-14 19:32:30 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 (Important: OpenShift Virtualization 4.11.0 Images 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-2022:6526


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