Feature #1671

Yum should remove packages causing dependency issues

Added by Robert Lazzurs over 3 years ago. Updated about 1 year ago.

Status:Rejected Start date:10/21/2008
Priority:Low Due date:
Assignee:Luke Kanies % Done:

0%

Category:package
Target version:-
Affected Puppet version:0.24.5 Branch:
Keywords:
Votes: 0

Description

Hello,

Currently if a system has a package that conflicts with a package puppet is trying to install puppet will just give up. Given puppet is a configuration management tool it should be viewed as the authorative source of configuration and ensure that configuration. I have included an output below as an example. What I would prefer the yum handler did in this situation is to force the package install, even if this means removing existing packages.

err: //Node[bols]/desktopsys/desktop::packages/Package[kmod-nvidia-xen]/ensure: change from absent to latest failed: Could not update: Execution of '/usr/bin/yum -d 0 -e 0 -y install kmod-nvidia-xen' returned 1: xorg-x11-drv-fglrx-8.522-2.8.08.lvn8.x86_64 from installed has depsolving problems
  --> xorg-x11-drv-fglrx conflicts with xorg-x11-drv-nvidia
xorg-x11-drv-nvidia-173.14.12-1.lvn8.x86_64 from F8-x86_64-livna has depsolving problems
  --> xorg-x11-drv-nvidia conflicts with xorg-x11-drv-fglrx
Error: xorg-x11-drv-nvidia conflicts with xorg-x11-drv-fglrx
Error: xorg-x11-drv-fglrx conflicts with xorg-x11-drv-nvidia
 at /var/lib/puppet/modules/desktop/manifests/packages.pp:60
err: //Node[bols]/desktopsys/desktop::packages/Package[kernel]/ensure: change from 2.6.25.14-69.fc8 to 2.6.26.5-28.fc8 failed: Could not update: Execution of '/usr/bin/yum -d 0 -e 0 -y install kernel' returned 1: kmod-fglrx-2.6.25.14-69.fc8-8.522-2.8.08.lvn8.x86_64 from installed has depsolving problems
  --> Missing Dependency: kernel-x86_64 = 2.6.25.14-69.fc8 is needed by package kmod-fglrx-2.6.25.14-69.fc8-8.522-2.8.08.lvn8.x86_64 (installed)
Error: Missing Dependency: kernel-x86_64 = 2.6.25.14-69.fc8 is needed by package kmod-fglrx-2.6.25.14-69.fc8-8.522-2.8.08.lvn8.x86_64 (installed)
 at /var/lib/puppet/modules/desktop/manifests/packages.pp:12
err: //Node[bols]/desktopsys/desktop::packages/Package[kmod-nvidia]/ensure: change from absent to latest failed: Could not update: Execution of '/usr/bin/yum -d 0 -e 0 -y install kmod-nvidia' returned 1: kmod-fglrx-2.6.25.14-69.fc8-8.522-2.8.08.lvn8.x86_64 from installed has depsolving problems
  --> Missing Dependency: kernel-x86_64 = 2.6.25.14-69.fc8 is needed by package kmod-fglrx-2.6.25.14-69.fc8-8.522-2.8.08.lvn8.x86_64 (installed)
xorg-x11-drv-fglrx-8.522-2.8.08.lvn8.x86_64 from installed has depsolving problems
  --> xorg-x11-drv-fglrx conflicts with xorg-x11-drv-nvidia
xorg-x11-drv-nvidia-173.14.12-1.lvn8.x86_64 from F8-x86_64-livna has depsolving problems
  --> xorg-x11-drv-nvidia conflicts with xorg-x11-drv-fglrx
Error: xorg-x11-drv-nvidia conflicts with xorg-x11-drv-fglrx
Error: xorg-x11-drv-fglrx conflicts with xorg-x11-drv-nvidia
Error: Missing Dependency: kernel-x86_64 = 2.6.25.14-69.fc8 is needed by package kmod-fglrx-2.6.25.14-69.fc8-8.522-2.8.08.lvn8.x86_64 (installed)
 at /var/lib/puppet/modules/desktop/manifests/packages.pp:61

History

Updated by James Turnbull over 3 years ago

  • Category set to package
  • Status changed from Unreviewed to Needs Decision
  • Assignee set to Luke Kanies
  • Target version set to 4

Updated by Luke Kanies over 3 years ago

  • Status changed from Needs Decision to Rejected

Destructive actions like this, without an easy way to revert, will always require intervention from the user.

Updated by James Turnbull about 1 year ago

  • Target version deleted (4)

Also available in: Atom PDF