Description of problem: While upgrading katello-ca-consumer package on the client system register to satellite, it reverts rhsm.conf to point to CDN/RHN Version-Release number of selected component (if applicable): katello-ca-consumer package How reproducible: Steps to Reproduce: 1. Create a new version of katello-ca-consumer package on satellite 2. Upgrade the same on the client, for example # rpm -Uvh http://ssatellite.example.com/pub/katello-ca-consumer-latest.noarch.rpm 3. Now check hostname entry in /etc/rhsm/rhsm.conf or output of command "subscription-manager config" Actual results: It points to CDN/RHN Expected results: It should point to satellite Additional info:
In the post uninstall section is no differentiation between upgrade and removal. According to the RPM build docs from fedora (https://docs.fedoraproject.org/en-US/packaging-guidelines/Scriptlets/#Syntax) it should look like the following lines: ... %postun if [ $1 -eq 0 ] then test -f /etc/rhsm/rhsm.conf.kat-backup && command cp /etc/rhsm/rhsm.conf.kat-backup /etc/rhsm/rhsm.conf fi ... instead of ... %postun test -f /etc/rhsm/rhsm.conf.kat-backup && command cp /etc/rhsm/rhsm.conf.kat-backup /etc/rhsm/rhsm.conf ... With that in place, it will restore the default configuration if the package gets uninstalled. If the package gets upgraded it won't do anything which is the expected behavior.
Created attachment 1568918 [details] fixed spec file
Hi all, this is a duplicate of BZ #1619533. Please attach your cases to the other one to increase visibility. I'm closing this one. -Roman *** This bug has been marked as a duplicate of bug 1619533 ***