-
Notifications
You must be signed in to change notification settings - Fork 269
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix uploading for block devices that exceed requested size #3461
Fix uploading for block devices that exceed requested size #3461
Conversation
c90ef04
to
47c361e
Compare
47c361e
to
9c19512
Compare
9c19512
to
15d8a4e
Compare
/assign @awels |
e633d9f
to
90fdd7f
Compare
Signed-off-by: Andrei Kvapil <[email protected]>
90fdd7f
to
38e6d3c
Compare
/test pull-cdi-unit-test |
Upstream fix: kubevirt/containerized-data-importer#3461 Signed-off-by: Andrei Kvapil <[email protected]> <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Introduced a new version (`v1beta1`) for the CDI operator alongside the existing version, enhancing configuration options. - Expanded `spec` section with detailed descriptions for various configurations including data volume management and TLS security profiles. - Added a new Ingress resource for the `cdi-uploadproxy` service, improving traffic routing capabilities. - Introduced new configuration parameters for dynamic upload proxy URL management. - **Improvements** - Updated permissions for the CDI operator to manage additional resources, improving its data handling capabilities. - Refined deployment configuration with updated container image references and environment variables for better operational control. - Enhanced network policy definitions by adding specific rules for new services while maintaining existing policies. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --------- Signed-off-by: Andrei Kvapil <[email protected]>
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: awels The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
…3461) Signed-off-by: Andrei Kvapil <[email protected]>
…3461) Signed-off-by: Andrei Kvapil <[email protected]>
/cherrypick release-v1.60 |
@akalenyu: new pull request created: #3487 In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
What this PR does / why we need it:
Various storage providers may provision block devices larger than the size requested by the user. This is often due to LVM or ZFS rounding up to the nearest extent size. (see LINBIT/linstor-server#421 (comment) and #3159 (comment))
Currently, CDI checks the requested size in the PVC and fails the upload if the original block device is larger than the requested size.
This PR changes logic to take requestImageSize into account only for filesystem volumes
Which issue(s) this PR fixes:
Another try to fix #3159
Special notes for your reviewer:
Release note: