Skip to content

ceph-volume: add some flexibility to bytes_to_extents#38687

Merged
jan--f merged 2 commits intoceph:masterfrom
jan--f:c-v-lv-size-request-too-big
Feb 3, 2021
Merged

ceph-volume: add some flexibility to bytes_to_extents#38687
jan--f merged 2 commits intoceph:masterfrom
jan--f:c-v-lv-size-request-too-big

Conversation

@jan--f
Copy link
Copy Markdown
Contributor

@jan--f jan--f commented Dec 22, 2020

For batch we want to report the projected sizes before creating any LVM
structures, we use the device size for that. This means we pass this
projected size to lvm/api.py::create_lv. This could result in situations
where we request more extents for the new LV than are actually
available, as LVM takes up some available space on the block device
(plus alignment).
We fix this by adjusting the extent count downwards if its less than 1% off the
requested value.

Fixes: https://tracker.ceph.com/issues/47758

Signed-off-by: Jan Fajerski jfajerski@suse.com

Checklist

  • References tracker ticket
  • Updates documentation if necessary
  • Includes tests for new functionality or reproducer for bug

Show available Jenkins commands
  • jenkins retest this please
  • jenkins test classic perf
  • jenkins test crimson perf
  • jenkins test signed
  • jenkins test make check
  • jenkins test make check arm64
  • jenkins test submodules
  • jenkins test dashboard
  • jenkins test api
  • jenkins test docs
  • jenkins render docs
  • jenkins test ceph-volume all
  • jenkins test ceph-volume tox

@jan--f jan--f requested a review from a team as a code owner December 22, 2020 14:01
@jan--f jan--f force-pushed the c-v-lv-size-request-too-big branch from 2de05d6 to 50a3671 Compare December 22, 2020 14:45
Jan Fajerski added 2 commits December 22, 2020 16:03
For batch we want to report the projected sizes before creating any LVM
structures, we use the device size for that. This means we pass this
projected size to lvm/api.py::create_lv. This could result in situations
where we request more extents for the new LV than are actually
available, as LVM takes up some available space on the block device
(plus alignment).
We fix this by adjusting the extent count downwards if its less than 1% off the
requested value.

Fixes: https://tracker.ceph.com/issues/47758

Signed-off-by: Jan Fajerski <jfajerski@suse.com>
The real things uses string properties as well.

Signed-off-by: Jan Fajerski <jfajerski@suse.com>
@jan--f jan--f force-pushed the c-v-lv-size-request-too-big branch from 50a3671 to c4bbb1b Compare December 22, 2020 15:04
@jan--f
Copy link
Copy Markdown
Contributor Author

jan--f commented Dec 22, 2020

jenkins test ceph-volume all

@jan--f
Copy link
Copy Markdown
Contributor Author

jan--f commented Dec 22, 2020

jenkins test ceph-volume tox

@kmhughes
Copy link
Copy Markdown

I really need this to be able to use the SSDs in my cluster. Any thoughts on when this will be released, if ever?

@jan--f
Copy link
Copy Markdown
Contributor Author

jan--f commented Jan 21, 2021

I really need this to be able to use the SSDs in my cluster. Any thoughts on when this will be released, if ever?

Yes, we need at least a review on this though. @jmolmo @guits @rishabh-d-dave ?

@lordzkin
Copy link
Copy Markdown

lordzkin commented Jan 21, 2021 via email

@jan--f
Copy link
Copy Markdown
Contributor Author

jan--f commented Jan 29, 2021

I really need this to be able to use the SSDs in my cluster. Any thoughts on when this will be released, if ever?

Yes, we need at least a review on this though. @jmolmo @guits @rishabh-d-dave ?

ping again. I no one willing to review this?

@kmhughes
Copy link
Copy Markdown

kmhughes commented Jan 29, 2021 via email

@jmolmo
Copy link
Copy Markdown
Member

jmolmo commented Feb 2, 2021

ping again. I no one willing to review this?
Sorry @jan--f ... looking forward for this long time !!! i miss the update and review request due to a wicked mail filter configuration

@jmolmo jmolmo closed this Feb 2, 2021
@jmolmo jmolmo reopened this Feb 2, 2021
@kmhughes
Copy link
Copy Markdown

kmhughes commented Feb 2, 2021 via email

@DWSR
Copy link
Copy Markdown

DWSR commented Feb 3, 2021

@jan--f looks like this is failing some tests

@jan--f
Copy link
Copy Markdown
Contributor Author

jan--f commented Feb 3, 2021

@jan--f looks like this is failing some tests

That's just an intermittent infrastructure issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants