Project

General

Profile

Actions

Bug #17134

closed

puppet-agent-oauth release upgrade uninstalls gem

Added by Dominic Cleal over 7 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
RPMs
Target version:
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

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 #1

Updated by The Foreman Bot over 7 years ago

  • Status changed from Assigned to Ready For Testing
  • Pull request https://github.com/theforeman/foreman-packaging/pull/1400 added
Actions #2

Updated by Dominic Cleal over 7 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100
Actions

Also available in: Atom PDF