Bug 2142781

Summary: Topolvm does not consider the spare-gb setting when annotating the node
Product: [Red Hat Storage] Red Hat OpenShift Data Foundation Reporter: N Balachandran <nibalach>
Component: topolvmAssignee: N Balachandran <nibalach>
Status: CLOSED CURRENTRELEASE QA Contact: Rahul Deore <rdeore>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 4.12CC: ebenahar, muagarwa, nigoyal, ocs-bugs, odf-bz-bot, rcyriac, rdeore, rsinghal
Target Milestone: ---   
Target Release: ODF 4.12.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: 4.12.0-125 Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-02-08 14:06:28 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description N Balachandran 2022-11-15 09:23:46 UTC
Description of problem (please be detailed as possible and provide log
snippets):

Additional details at:
https://issues.redhat.com/browse/USHIFT-570
and
https://github.com/topolvm/topolvm/issues/595


"If spare-gb and the size of volumes we attempt to create are larger than the size of the VG, we expect volumes will not be created, but they do.

To Reproduce
Steps to reproduce the behavior:

create a VG with 40GB.
set spare-gb to 20GB.
create a PV with 30GB.
the PV is created
Expected behavior

The PV should not be created."

Version of all relevant components (if applicable):


Does this issue impact your ability to continue to work with the product
(please explain in detail what is the user impact)?


Is there any workaround available to the best of your knowledge?
No

Rate from 1 - 5 the complexity of the scenario you performed that caused this
bug (1 - very simple, 5 - very complex)?


Can this issue reproducible?
Yes

Can this issue reproduce from the UI?


If this is a regression, please provide more details to justify this:


Steps to Reproduce:
1.
2.
3.


Actual results:


Expected results:


Additional info:

Comment 5 Shay Rozen 2023-01-16 13:03:22 UTC
Can you elaborate how to configure the spare-gb.