Bug 1894642

Summary: [RFE] storage: support volume sizes as a percentage of pool
Product: Red Hat Enterprise Linux 8 Reporter: David Lehman <dlehman>
Component: rhel-system-rolesAssignee: David Lehman <dlehman>
Status: CLOSED ERRATA QA Contact: Lin Li <lilin>
Severity: unspecified Docs Contact: Eliane Ramos Pereira <elpereir>
Priority: unspecified    
Version: 8.3CC: djez, elpereir, lilin, nhosoi, rmeggins, yizhan
Target Milestone: rcKeywords: FutureFeature, Triaged
Target Release: 8.5   
Hardware: All   
OS: Linux   
Whiteboard: role:storage
Fixed In Version: rhel-system-roles-1.6.4-1.el8 Doc Type: Enhancement
Doc Text:
.Support for volume sizes expressed as a percentage is available in the `storage` System Role This enhancement adds support to the `storage` RHEL System Role to express LVM volume sizes as a percentage of the pool's total size. You can specify the size of LVM volumes as a percentage of the pool/VG size, for example: `50%` in addition to the human-readable size of the file system, for example, `10g`, `50 GiB`.
Story Points: ---
Clone Of:
: 1984583 (view as bug list) Environment:
Last Closed: 2021-11-09 17:44:38 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:
Bug Depends On:    
Bug Blocks: 1984583    

Description David Lehman 2020-11-04 17:01:22 UTC
Description of problem:
Volume sizes expressed as a percentage of the pool size would be a significant convenience for users.


Example:

  storage_pools:
    - name: testpool
      ...
      volumes:
        - name: vol1
          size: 25%
        - name: vol2
          size: 25%
        - name: vol3
          size: 50%


Note: Since the percentage describes the size as a percentage of the pool overall size the idempotence requirement is met.

Comment 2 Rich Megginson 2021-03-16 18:38:27 UTC
@dlehman is this covered by https://github.com/linux-system-roles/storage/pull/39 ?

Comment 3 David Lehman 2021-03-16 19:56:47 UTC
(In reply to Rich Megginson from comment #2)
> @dlehman is this covered by
> https://github.com/linux-system-roles/storage/pull/39 ?

Yes.

Comment 4 Lin Li 2021-06-01 07:53:27 UTC
Hi David,
It seems that ITM 14 is not feasible.
Could you set DTM so that I can set ITM?
Thanks!

Comment 20 errata-xmlrpc 2021-11-09 17:44:38 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (rhel-system-roles bug fix and enhancement update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2021:4159