Bug 1725131

Summary: glibc: Account for size of locale-archive in rpm package.
Product: Red Hat Enterprise Linux 8 Reporter: Florian Weimer <fweimer>
Component: glibcAssignee: Carlos O'Donell <codonell>
Status: CLOSED ERRATA QA Contact: qe-baseos-tools-bugs
Severity: high Docs Contact:
Priority: high    
Version: ---CC: ashankar, codonell, dj, fweimer, mnewsome, pfrankli, skolosov
Target Milestone: rcKeywords: Patch, Triaged
Target Release: 8.2   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: glibc-2.28-68.el8 Doc Type: Bug Fix
Doc Text:
Installing glibc-all-langpacks transiently takes up to twice the storage space required during installation. If the target has less than ~250MiB of extra free disk space then the installation of the package may fail abnormally. The glibc-all-langpacks rpm package has been fixed to correctly account for the extra required space. Installs on low-disk space systems will now fail early as dnf detects the lack of required disk space.
Story Points: ---
Clone Of: 1714888 Environment:
Last Closed: 2019-11-05 21:29:05 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: 1684559, 1714888    

Description Florian Weimer 2019-06-28 13:43:56 UTC
+++ This bug was initially created as a clone of Bug #1714888 +++

Description of problem:

Please see also bug 1491786 for more background.


If the root filesystem is low on space, it starts the update but runs out of space during the installation of the RPMs. Yum then fails, leaving the system in a corrupted state.


Version-Release number of selected component (if applicable):
 yum-3.4.3-150.el7.noarch
 kernel-3.10.0-514.6.2.el7.x86_64 (RHEL 7.3)

How reproducible:
-

Steps to Reproduce:
1.1. Build a server with our standard layout including a  3G root filesystem
2. Create a 1.5G file in /usr
	dd if=/dev/urandom of=/usr/bigfile bs=1024k count=1500
3. Update the server:
    yum clean all && yum update -y


Actual results:
RPM installation then fails, leaving packages broken and in an consistent state. The server is then broken; processes no longer can run because dependent libraries are not installed or are installed in inconsistent versions.

Expected results:
Yum transaction check accurately determines if there is enough space before installing packages.

Comment 2 Sergey Kolosov 2019-09-18 16:00:19 UTC
Verified, glibc-all-langpacks rpm size now calculated as the double size of /usr/lib/locale/locale-archive.tmpl file.

Comment 3 Sergey Kolosov 2019-10-03 17:32:07 UTC
Also verified, glibc-all-langpacks mention has been removed from glibc.spec in glibc-2.17-305.el7.

Comment 5 errata-xmlrpc 2019-11-05 21:29:05 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://access.redhat.com/errata/RHSA-2019:3513