Project

General

Profile

Actions

Bug #25683

closed

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

Added by Andrew Kofink about 6 years ago. Updated about 5 years ago.

Status:
Closed
Priority:
Normal
Category:
Foreman modules
Target version:
-
Difficulty:
Triaged:
Yes
Fixed in Releases:
Found in Releases:

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

Actions

Also available in: Atom PDF