Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

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.5Flags: pm-rhel: mirror+
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