Bug 1012113

Summary: having lvm2 python bindings installed breaks mock builds
Product: [Fedora] Fedora Reporter: Chris Leech <cleech>
Component: lvm2Assignee: Tony Asleson <tasleson>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 19CC: agk, bmarzins, bmr, dwysocha, heinzm, jonathan, lvm-team, msnitzer, prajnoha, prockai, zkabelac
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: lvm2-2.02.98-14.fc19 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-01-20 03:03:04 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:

Description Chris Leech 2013-09-25 18:11:16 UTC
Description of problem:

If lvm2-python-libs is installed, yum will load the python module and initialize the lvm2 library.  On initialization /etc/lvm/lvm.conf is read and, with the default configuration, umask is changed from 022 to 077.  Having umask set to 077 while yum is running breaks mock builds with reported permission errors on the created RPM database files when attempting to run repoquery.

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

lvm2-python-libs-2.02.98-12.fc19.x86_64
lvm2-2.02.98-12.fc19.x86_64
lvm2-libs-2.02.98-12.fc19.x86_64
yum-3.4.3-106.fc19.noarch
yum-utils-1.1.31-17.fc19.noarch
mock-1.1.33-1.fc19.noarch
rpm-4.11.1-3.fc19.x86_64

How reproducible:
100%

Steps to Reproduce:
1. install lvm2-python-libs
2. attempt a mock build of any srpm as a non-root user

Actual results:
build fails

Expected results:
build succeeds

Additional info:

Comment 1 Tony Asleson 2013-12-23 19:22:33 UTC
Fix committed to upstream: 
http://www.redhat.com/archives/lvm-devel/2013-December/msg00104.html

Comment 2 Fedora Update System 2014-01-15 15:20:45 UTC
lvm2-2.02.98-14.fc19 has been submitted as an update for Fedora 19.
https://admin.fedoraproject.org/updates/lvm2-2.02.98-14.fc19

Comment 3 Fedora Update System 2014-01-16 07:01:03 UTC
Package lvm2-2.02.98-14.fc19:
* should fix your issue,
* was pushed to the Fedora 19 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing lvm2-2.02.98-14.fc19'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2014-0900/lvm2-2.02.98-14.fc19
then log in and leave karma (feedback).

Comment 4 Fedora Update System 2014-01-20 03:03:04 UTC
lvm2-2.02.98-14.fc19 has been pushed to the Fedora 19 stable repository.  If problems still persist, please make note of it in this bug report.