Bug 2079781 - [4.10]Clone from filesystem to block on storage api with the same size fails
Summary: [4.10]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.10.0
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
: 4.10.4
Assignee: Bartosz Rybacki
QA Contact: dalia
URL:
Whiteboard:
Depends On:
Blocks: 2084122 2101831
TreeView+ depends on / blocked
 
Reported: 2022-04-28 08:41 UTC by dalia
Modified: 2022-08-17 13:51 UTC (History)
7 users (show)

Fixed In Version: CNV v4.10.3-7
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 2084122 2101831 (view as bug list)
Environment:
Last Closed: 2022-08-17 13:51:35 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-07-13 10:49:39 UTC
Github kubevirt containerized-data-importer pull 2339 0 None Merged Manual cherry pick 2299 to release Release v1.43 2022-07-13 10:49:39 UTC
Red Hat Product Errata RHEA-2022:6106 0 None None None 2022-08-17 13:51:40 UTC

Description dalia 2022-04-28 08:41:33 UTC
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.

Comment 1 Jenia Peimer 2022-04-28 12:03:22 UTC
We have this also in 4.11

Comment 2 Bartosz Rybacki 2022-05-25 12:11:46 UTC
I am on it. Trying to reproduce.

Comment 3 Yan Du 2022-06-22 12:09:03 UTC
Bartosz, were you able to reproduce?

Comment 4 Bartosz Rybacki 2022-06-27 11:45:49 UTC
Yes, and the test is already automated. This is the first commit in the PR https://github.com/kubevirt/containerized-data-importer/pull/2299.
Of course it needs to be backported to correct branch so it targets 4.10

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

Comment 15 errata-xmlrpc 2022-08-17 13:51:35 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 (OpenShift Virtualization 4.10.4 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-2022:6106


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