Open Conan-Kudo opened 2 months ago
When setting up the OBS storage VG and allocating >50% of it to the server LV, obsstoragesetup fails because the math used results in negative numbers.
server
https://github.com/openSUSE/open-build-service/blob/2555059ee1b6002be75fa2ad38918670a32ba4e4/dist/obsstoragesetup#L226-L250
obsstoragesetup should be able to determine when this happens and handle it accordingly.
obsstoragesetup
OBS
This was with OBS server 2.10.22, but also reproduces with Git master.
@M0ses is this similar to https://github.com/openSUSE/open-build-service/issues/14579 ?
Issue Description
When setting up the OBS storage VG and allocating >50% of it to the
server
LV, obsstoragesetup fails because the math used results in negative numbers.https://github.com/openSUSE/open-build-service/blob/2555059ee1b6002be75fa2ad38918670a32ba4e4/dist/obsstoragesetup#L226-L250
Expected Result
obsstoragesetup
should be able to determine when this happens and handle it accordingly.How to Reproduce
OBS
VG.server
LV with 60% of the VG space.Further Information
This was with OBS server 2.10.22, but also reproduces with Git master.