Bug 2101831 - [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 DUPLICATE of bug 2084122
Alias: None
Product: Container Native Virtualization (CNV)
Classification: Red Hat
Component: Storage
Version: 4.11.0
Hardware: Unspecified
OS: Unspecified
urgent
urgent
Target Milestone: ---
: 4.11.0
Assignee: Bartosz Rybacki
QA Contact: Natalie Gavrielov
URL:
Whiteboard:
Depends On: 2079781
Blocks: 2084122
TreeView+ depends on / blocked
 
Reported: 2022-06-28 13:27 UTC by Adam Litke
Modified: 2022-06-28 13:32 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of: 2079781
Environment:
Last Closed: 2022-06-28 13:32:49 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github kubevirt containerized-data-importer pull 2336 0 None Merged Manual cherry pick 2299 to release v1.49 2022-06-28 13:29:03 UTC

Description Adam Litke 2022-06-28 13:27:25 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

--- Additional comment from Bartosz Rybacki on 2022-05-25 12:11:46 UTC ---

I am on it. Trying to reproduce.

--- Additional comment from Yan Du on 2022-06-22 12:09:03 UTC ---

Bartosz, were you able to reproduce?

--- Additional comment from Bartosz Rybacki on 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 1 Adam Litke 2022-06-28 13:32:49 UTC

*** This bug has been marked as a duplicate of bug 2084122 ***


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