ceph-volume: add some flexibility to bytes_to_extents#38687
ceph-volume: add some flexibility to bytes_to_extents#38687jan--f merged 2 commits intoceph:masterfrom
Conversation
2de05d6 to
50a3671
Compare
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>
50a3671 to
c4bbb1b
Compare
|
jenkins test ceph-volume all |
|
jenkins test ceph-volume tox |
|
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 ? |
|
I have used the same fixes in my setup here where I pass through physical
spinning disks in oVirt to the virtual machines in order to have the OSDs
virtualized. Thanks for putting in the work Jan.
…On Thu, Jan 21, 2021 at 7:20 AM Jan Fajerski ***@***.***> wrote:
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
<https://github.com/jmolmo> @guits <https://github.com/guits>
@rishabh-d-dave <https://github.com/rishabh-d-dave> ?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#38687 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AGKXNU6ZJ3667BPL5CAGSZ3S3ASZLANCNFSM4VFVQ6PA>
.
|
ping again. I no one willing to review this? |
|
Yes, could we please get a review on this!
…On Fri, Jan 29, 2021 at 5:32 AM Jan Fajerski ***@***.***> wrote:
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
<https://github.com/jmolmo> @guits <https://github.com/guits>
@rishabh-d-dave <https://github.com/rishabh-d-dave> ?
ping again. I no one willing to review this?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#38687 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABO2Q4YST5UM7OFS6HAWF3LS4KTFNANCNFSM4VFVQ6PA>
.
|
|
|
Awesome! Thanks for the approval! Time to get some SSDs in my cluster!
…On Tue, Feb 2, 2021 at 8:53 AM Juan Miguel Olmo ***@***.***> wrote:
Reopened #38687 <#38687>.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#38687 (comment)>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABO2Q45YZKCBEBFQIIUCH2LS5ANX3ANCNFSM4VFVQ6PA>
.
|
|
@jan--f looks like this is failing some tests |
That's just an intermittent infrastructure issue. |
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
Show available Jenkins commands
jenkins retest this pleasejenkins test classic perfjenkins test crimson perfjenkins test signedjenkins test make checkjenkins test make check arm64jenkins test submodulesjenkins test dashboardjenkins test apijenkins test docsjenkins render docsjenkins test ceph-volume alljenkins test ceph-volume tox