Actions
Bug #17134
closedpuppet-agent-oauth release upgrade uninstalls gem
Difficulty:
Triaged:
Description
On upgrade from puppet-agent-oauth 0.5.1-1 to -2, the gem is uninstalled from the AIO environment:
# rpm -ivh http://yum.theforeman.org/releases/1.13/el7/x86_64/puppet-agent-oauth-0.5.1-1.el7.noarch.rpm Retrieving http://yum.theforeman.org/releases/1.13/el7/x86_64/puppet-agent-oauth-0.5.1-1.el7.noarch.rpm warning: /var/tmp/rpm-tmp.BXsAvf: Header V4 RSA/SHA256 Signature, key ID 7dfe6fc2: NOKEY Preparing... ################################# [100%] Updating / installing... 1:puppet-agent-oauth-0.5.1-1.el7 ################################# [100%] # /opt/puppetlabs/puppet/bin/gem list -a oauth *** LOCAL GEMS *** oauth (0.5.1) # rpm -Uvh http://yum.theforeman.org/releases/1.13/el7/x86_64/puppet-agent-oauth-0.5.1-2.el7.noarch.rpm Retrieving http://yum.theforeman.org/releases/1.13/el7/x86_64/puppet-agent-oauth-0.5.1-2.el7.noarch.rpm warning: /var/tmp/rpm-tmp.xH9pS3: Header V4 RSA/SHA256 Signature, key ID 7dfe6fc2: NOKEY Preparing... ################################# [100%] Updating / installing... 1:puppet-agent-oauth-0.5.1-2.el7 ################################# [ 50%] Cleaning up / removing... 2:puppet-agent-oauth-0.5.1-1.el7 ################################# [100%] # /opt/puppetlabs/puppet/bin/gem list -a oauth *** LOCAL GEMS ***
This is due to the preun being run on the old package after the installation of the new, causing uninstallation of the gem. When the release (not version) is incremented, the gem shouldn't be uninstalled by the old package as both packages install the same version.
Actions