Project

General

Profile

Bug #25683

Upgrade katello-ca-consumer rpm will cause rhsm.conf to point back to customer portal.

Added by Andrew Kofink over 1 year ago. Updated 7 months ago.

Status:
Closed
Priority:
Normal
Category:
Foreman modules
Target version:
-
Difficulty:
Triaged:
Yes
Bugzilla link:

Description

Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1619533

Description of problem:
I think this is the regression of Bug #1371585.

%postun will be triggered on upgrade and cause the rhsm.conf to restore back to default.

...
postun
test -f /etc/rhsm/rhsm.conf.kat-backup &x%x
command cp /etc/rhsm/rhsm.conf.kat-backup /etc/rhsm/rhsm.conf <========= move the backup rhsm.conf back
...

  1. rpm -Uvh katello-ca-consumer-foo.com-1.0-8.noarch.rpm
    Preparing... ################################# [100%]
    Updating / installing...
    1:katello-ca-consumer-foo.com################################# [ 50%]
    Cleaning up / removing...
    2:katello-ca-consumer-foo.com################################# [100%] <=========== %postun will be triggered here

% egrep -i 'host|server' /etc/rhsm/rhsm.conf | egrep -v '^#'
[server]
hostname = subscription.rhsm.redhat.com

Associated revisions

Revision 7bea39e9 (diff)
Added by Justin Sherrill 7 months ago

Fixes #25683 - Do not run postun script if upgrading

History

#1 Updated by Andrew Kofink over 1 year ago

  • Subject changed from Upgrade katello-ca-consumer rpm will cause rhsm.conf to point back to customer portal. to Upgrade katello-ca-consumer rpm will cause rhsm.conf to point back to customer portal.
  • Found in Releases Katello 3.7.1 added

#2 Updated by John Mitsch over 1 year ago

  • Triaged changed from No to Yes
  • Target version set to Katello 3.11.0
  • Category set to Client/Agent

#3 Updated by Jonathon Turel over 1 year ago

  • Target version changed from Katello 3.11.0 to Katello Backlog

#4 Updated by Justin Sherrill 7 months ago

  • Target version deleted (Katello Backlog)
  • Assignee set to Justin Sherrill
  • Category changed from Client/Agent to Foreman modules
  • Project changed from Katello to Installer

#5 Updated by The Foreman Bot 7 months ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/theforeman/puppet-certs/pull/267 added

#6 Updated by The Foreman Bot 7 months ago

  • Fixed in Releases 2.0.0 added

#7 Updated by Justin Sherrill 7 months ago

  • Status changed from Ready For Testing to Closed

#8 Updated by The Foreman Bot 7 months ago

  • Pull request https://github.com/theforeman/puppet-certs/pull/271 added

#9 Updated by Ewoud Kohl van Wijngaarden 7 months ago

  • Pull request deleted (https://github.com/theforeman/puppet-certs/pull/271)

Disregard that, it was just me making a PR for a release with the incorrect base branch.

Also available in: Atom PDF