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 1284660

Summary: issue: kickstart fails with 3way raid1 array setup on RHEL 7.1
Product: Red Hat Enterprise Linux 7 Reporter: jcastran
Component: python-blivetAssignee: Vratislav Podzimek <vpodzime>
Status: CLOSED ERRATA QA Contact: Release Test Team <release-test-team-automation>
Severity: high Docs Contact:
Priority: medium    
Version: 7.1CC: cww, jcastran, mbanas, mkovarik, sagarun, saga, salmy
Target Milestone: rc   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: python-blivet-0.61.15.41-1 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-11-03 23:51:51 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: 1203710, 1295926, 1313485    
Attachments:
Description Flags
7.2-program.log
none
7.2-ifcfg.log
none
7.2-anaconda.log
none
7.2-storage.log
none
7.2-partdata - partition kickstart commands
none
7.2-storage.state
none
7.2-syslog none

Description jcastran 2015-11-23 19:43:21 UTC
Description of problem:
it complains about insufficient disks only when i try to create raid level 1 across more than 2 disk partitions using kickstart file. (see logs boot_3on6_rh7.tgz (63.3 kB))
Creating raid 1 across 2 disk partitions works fine (see logs raid-2on2_rh7_logs.tgz (59.0 kB) )

Version-Release number of selected component (if applicable):
7.1

Actual results:
 ERR anaconda: storage configuration failed: not enough space for LVM requests
 INFO anaconda: fs space: 0 B  needed: 1524.54 MiB

Expected results:
 Space is available and installable

Additional info:
  > Not enough space in file systems for the current software selection. An additional 1524.54 MiB is needed.

In anaconda.log:
23:05:29,005 ERR anaconda: storage configuration failed: not enough space for LVM requests
23:05:33,688 INFO anaconda: fs space: 0 B  needed: 1524.54 MiB

The needed size almost matches the os image specified in liveimg kickstart command.

In packaging.log:
23:05:26,741 DEBUG packaging: liveimg size is 1598596032


The related code:
        free = Size(self.storage.fileSystemFreeSpace)
        needed = self.payload.spaceRequired
        log.info("fs space: %s  needed: %s", free, needed)

------------
def growLVM(storage):
    """ Grow LVs according to the sizes of the PVs.

        Strategy for growth involving thin pools:
            - Applies to device factory class as well.
            - Overcommit is not allowed.
            - Pool lv's base size includes sizes of thin lvs within it.
            - Pool is grown along with other non-thin lvs.
            - Thin lvs within each pool are grown separately using the
              ThinPoolChunk class.
    """
    for vg in storage.vgs:
        total_free = vg.freeSpace
        if total_free < 0:
            # by now we have allocated the PVs so if there isn't enough
            # space in the VG we have a real problem
            raise PartitioningError(_("not enough space for LVM requests"))
        elif not total_free:
            log.debug("vg %s has no free space", vg.name)
            continue

Comment 2 Brian Lane 2015-11-25 00:29:46 UTC
Please retry with RHEL7.2, and if it still fails attach the logs from /tmp/*log as individual text/plain attachments.

Comment 3 Arun S A G 2015-12-02 00:26:46 UTC
Created attachment 1101171 [details]
7.2-program.log

Comment 4 Arun S A G 2015-12-02 00:27:34 UTC
Created attachment 1101173 [details]
7.2-ifcfg.log

Comment 5 Arun S A G 2015-12-02 00:28:06 UTC
Created attachment 1101175 [details]
7.2-anaconda.log

Comment 6 Arun S A G 2015-12-02 00:28:52 UTC
Created attachment 1101179 [details]
7.2-storage.log

Comment 7 Arun S A G 2015-12-02 00:29:48 UTC
Created attachment 1101181 [details]
7.2-partdata -  partition kickstart commands

Comment 8 Arun S A G 2015-12-02 00:30:17 UTC
Created attachment 1101182 [details]
7.2-storage.state

Comment 9 Arun S A G 2015-12-02 00:30:48 UTC
Created attachment 1101183 [details]
7.2-syslog

Comment 10 David Lehman 2015-12-02 14:26:27 UTC
This is caused by the code in LVMVolumeGroupDeviec.freeSpace which adds padding for lvm-on-raid. It adds 5 extents for each disk (there are three) in the raid. The user chose a 32 MiB extent size, so each new LV (there are three) uses an extra 480MiB in the VG. The result is that the VG (in blivet's model) runs out of space sooner than it should.

Comment 11 Arun S A G 2015-12-04 02:37:28 UTC
What is the workaround here? Will reducing the extent size help? Like say 4MB?

Comment 12 Vratislav Podzimek 2015-12-04 12:45:34 UTC
(In reply to Arun S A G from comment #11)
> What is the workaround here? Will reducing the extent size help? Like say
> 4MB?

Yes, that should help. The real fix here is to improve calculations of VG free space in Blivet like we did on master/rawhide.

Comment 13 Vratislav Podzimek 2016-04-06 08:47:53 UTC
Ported fixes from the master branch are proposed for the rhel7-branch as:
https://github.com/rhinstaller/blivet/pull/358

Comment 14 Vratislav Podzimek 2016-04-08 07:47:04 UTC
(In reply to Vratislav Podzimek from comment #13)
> Ported fixes from the master branch are proposed for the rhel7-branch as:
> https://github.com/rhinstaller/blivet/pull/358

Merged.

Comment 18 errata-xmlrpc 2016-11-03 23:51:51 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, 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://rhn.redhat.com/errata/RHBA-2016-2168.html