View Issue Details

IDProjectCategoryView StatusLast Update
0007638CentOS-7lvm2public2014-09-24 23:01
ReporterMarkosFountoulakis Assigned To 
Status confirmedResolutionopen 
Platformx86_64OSCentOSOS Version7.0
Product Version7.0-1406 
Summary0007638: lvm2-python-libs-2.02.105-14.el7.x86_64 breaks yum
DescriptionInstalling the package lvm2-python-libs.x86_64 7:2.02.105-14.el7 results in yum not being able to install or remove anymore packages.

You can no longer use yum to maintain the system.
Steps To ReproduceTo reproduce it type:
yum install lvm2-python-libs-2.02.105-14.el7.x86_64
Additional InformationIf you uninstall it with rpm, yum works again:
rpm -evh lvm2-python-libs
TagsNo tags attached.




2014-09-24 21:23

manager   ~0020993

Cannot reproduce the issue. Need more detailed info than "not working". Try running yum with a '-d6' flag to see more output.


2014-09-24 21:36

reporter   ~0020994

Have reproduced it in 3 physical machines and 2 Virtualbox VMs. After installing lvm2-python-libs, trying to remove a package (e.g. yum remove lsof):

Loading "fastestmirror" plugin
Config time: 0.008
Yum version: 3.4.3
rpmdb time: 0.000
Resolving Dependencies
--> Running transaction check
---> Package lsof.x86_64 0:4.87-4.el7 will be erased
Checking deps for lsof.x86_64 0:4.87-4.el7 - e
--> Finished Dependency Resolution
Dependency Process ending
Depsolve time: 0.595

Dependencies Resolved

 Package Arch Version Repository Size
 lsof x86_64 4.87-4.el7 @base 927 k

Transaction Summary
Remove 1 Package

Installed size: 927 k
Is this ok [y/N]: Downloading packages:
Member: lsof.x86_64 0:4.87-4.el7 - e
Removing Package lsof-4.87-4.el7.x86_64
Running transaction check
Transaction check time: 0.001
Running transaction test
Transaction test succeeded
Transaction test time: 0.001
Running transaction
Traceback (most recent call last):
  File "/bin/yum", line 29, in <module>
    yummain.user_main(sys.argv[1:], exit_code=True)
  File "/usr/share/yum-cli/", line 355, in user_main
    errcode = main(args)
  File "/usr/share/yum-cli/", line 261, in main
    return_code = base.doTransaction()
  File "/usr/share/yum-cli/", line 771, in doTransaction
    resultobject = self.runTransaction(cb=cb)
  File "/usr/lib/python2.7/site-packages/yum/", line 1728, in runTransaction
    if self.fssnap.available and ((self.conf.fssnap_automatic_pre or
  File "/usr/lib/python2.7/site-packages/yum/", line 1125, in <lambda>
    fssnap = property(fget=lambda self: self._getFSsnap(),
  File "/usr/lib/python2.7/site-packages/yum/", line 1061, in _getFSsnap
  File "/usr/lib/python2.7/site-packages/yum/", line 156, in __init__
    self._vgnames = _list_vg_names()
  File "/usr/lib/python2.7/site-packages/yum/", line 59, in _list_vg_names
    stdout=subprocess.PIPE, stderr=subprocess.PIPE)
  File "/usr/lib64/python2.7/", line 711, in __init__
    errread, errwrite)
  File "/usr/lib64/python2.7/", line 1308, in _execute_child
    raise child_exception
OSError: [Errno 2] No such file or directory


2014-09-24 21:58

reporter   ~0020997

Just figured it out.

You have to be missing the lvm2 package. You can do:
yum remove lvm2
and then you can reproduce the issue.

It's probably a missing dependency for the lvm2-python-libs package. It causes yum to try and invoke "/sbin/lvm", but this file is not there unless the lvm2 package is installed.


2014-09-24 23:01

manager   ~0020998

OK, I was able to reproduce the error after lvm2 has been removed.

Issue History

Date Modified Username Field Change
2014-09-24 21:02 MarkosFountoulakis New Issue
2014-09-24 21:23 toracat Note Added: 0020993
2014-09-24 21:32 toracat Status new => feedback
2014-09-24 21:36 MarkosFountoulakis Note Added: 0020994
2014-09-24 21:36 MarkosFountoulakis Status feedback => new
2014-09-24 21:58 MarkosFountoulakis Note Added: 0020997
2014-09-24 23:01 toracat Note Added: 0020998
2014-09-24 23:01 toracat Status new => confirmed