Actions
Bug #18301
closed--upgrade-puppet is broken as installer is trying to ensure puppet-server
Difficulty:
Triaged:
Bugzilla link:
Description
Though I'm upgrading to puppet4 the installer first remove p3 puppet-server and later on tries to ensure that p3 puppet-server package is present.
But that fails as p4 puppet-agent got already installed.
Yet p4 server package is named puppetserver (without dash)
Steps to reproduce:
1. Install katello scenario using puppet3 # foreman-installer -S katello 2. Enable puppet4 repo # rpm -ivh https://yum.puppetlabs.com/puppetlabs-release-pc1-el-7.noarch.rpm 3. Upgrade puppet using installer # foreman-installer --upgrade-puppet ... Upgrade Step: upgrade_puppet_package... ================================================================================ Package Arch Version Repository Size ================================================================================ Removing: puppet-server noarch 3.8.7-1.el7 @puppetlabs-products 4.9 k Transaction Summary ================================================================================ Remove 1 Package Installed size: 4.9 k Warning: RPMDB altered outside of yum. Removed: puppet-server.noarch 0:3.8.7-1.el7 ================================================================================ Package Arch Version Repository Size ================================================================================ Installing: puppet-agent x86_64 1.8.3-1.el7 puppetlabs-pc1 25 M replacing facter.x86_64 1:2.4.6-1.el7 replacing puppet.noarch 3.8.7-1.el7 puppetserver noarch 2.7.2-1.el7 puppetlabs-pc1 33 M Installing for dependencies: java-1.8.0-openjdk-headless x86_64 1:1.8.0.121-0.b13.el7_3 rhel-7-server-rpms 31 M Transaction Summary ================================================================================ Install 2 Packages (+1 Dependent package) ... Puppet 3 to 4 upgrade initialization complete, continuing with installation Execution of '/usr/bin/yum -d 0 -e 0 -y install puppet-server' returned 1: Package puppet-3.8.7-1.el7.noarch is obsoleted by puppet-agent-1.8.3-1.el7.x86_64 which is already installed Package: puppet-server-3.8.7-1.el7.noarch (puppetlabs-products) Requires: puppet = 3.8.7-1.el7 Installed: puppet-agent-1.8.3-1.el7.x86_64 (@puppetlabs-pc1) puppet >= 4.0.0-1.el7 ... /Stage[main]/Puppet::Server::Install/Package[puppet-server]/ensure: change from purged to present failed: Execution of '/usr/bin/yum -d 0 -e 0 -y install puppet-server' returned 1: Package puppet-3.8.7-1.el7.noarch is obsoleted by puppet-agent-1.8.3-1.el7.x86_64 which is already installed
Actions