Bug 1619533 - Upgrade katello-ca-consumer rpm will cause rhsm.conf to point back to customer portal.
Summary: Upgrade katello-ca-consumer rpm will cause rhsm.conf to point back to custome...
Keywords:
Status: NEW
Alias: None
Product: Red Hat Satellite 6
Classification: Red Hat
Component: Registration
Version: 6.5.0
Hardware: Unspecified
OS: Unspecified
unspecified
medium vote
Target Milestone: Unspecified
Assignee: satellite6-bugs
QA Contact: Stephen Wadeley
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-08-21 06:56 UTC by Hao Chang Yu
Modified: 2019-09-16 03:25 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:


Attachments (Terms of Use)


Links
System ID Priority Status Summary Last Updated
Foreman Issue Tracker 25683 None None None 2018-12-13 22:07:15 UTC

Description Hao Chang Yu 2018-08-21 06:56:12 UTC
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 && command cp /etc/rhsm/rhsm.conf.kat-backup /etc/rhsm/rhsm.conf   <========= move the backup rhsm.conf back
...


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

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

Comment 2 Andrew Kofink 2018-12-13 22:07:14 UTC
Created redmine issue https://projects.theforeman.org/issues/25683 from this bug

Comment 3 Michael Cronenworth 2019-06-04 00:25:27 UTC
Still present in Satellite 6.5. :(


Note You need to log in before you can comment on or make changes to this bug.