Skip to content
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

Make the block overhead configurable (backport) #681

Merged
merged 3 commits into from
Dec 12, 2023

Conversation

liranr23
Copy link
Member

This patch will allow the user to configure the block overhead. Currently it defaults to 0. The overhead is required when migrating to encrypted Ceph RBD (block). The pod may see less space on the disk and therefore the migration will fail when it tries to allocate the last sectors. See more about encrypted Ceph RBD in:
https://docs.ceph.com/en/quincy/rbd/rbd-encryption/

The value needs to be set in the ForkliftController spec under the value: controller_block_overhead. The addition will be the fixed number provided to the size of the disk.

This patch will allow the user to configure the block overhead.
Currently it defaults to 0. The overhead is required when migrating to
encrypted Ceph RBD (block). The pod may see less space on the disk and
therefore the migration will fail when it tries to allocate the last
sectors. See more about encrypted Ceph RBD in:
https://docs.ceph.com/en/quincy/rbd/rbd-encryption/

The value needs to be set in the ForkliftController spec under the
value: `controller_block_overhead`. The addition will be the fixed
number provided to the size of the disk.

Signed-off-by: Liran Rotenberg <[email protected]>
@ahadas ahadas self-requested a review December 12, 2023 16:02
@ahadas
Copy link
Member

ahadas commented Dec 12, 2023

@liranr23 let's include the changes in #684 please

When specifying resources like disk sizes, the value is expected to
represent a quantity rather than an integer so users can set values like
"1Gi". Applying this to controller_block_overhead as well.

Signed-off-by: Arik Hadas <[email protected]>
Signed-off-by: Liran Rotenberg <[email protected]>
Copy link

sonarcloud bot commented Dec 12, 2023

Quality Gate Passed Quality Gate passed

Kudos, no new issues were introduced!

0 New issues
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarCloud

@liranr23 liranr23 merged commit 4449c64 into kubev2v:release-v2.5.4 Dec 12, 2023
5 checks passed
@liranr23 liranr23 deleted the block_overhead branch December 12, 2023 16:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants