Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 1518289

Summary: [RFE] Installing katello-ca-consumer should not restart docker, but notify of required action
Product: Red Hat Satellite Reporter: ktbzimm
Component: CertificatesAssignee: Stephen Benjamin <stbenjam>
Status: CLOSED ERRATA QA Contact: Sanket Jagtap <sjagtap>
Severity: high Docs Contact:
Priority: unspecified    
Version: 6.2.12CC: arusso, bmidwood, cdonnell, dlbewley, mmccune, sjagtap
Target Milestone: UnspecifiedKeywords: FutureFeature, PrioBumpGSS, Triaged
Target Release: Unused   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-04-13 13:36:16 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description ktbzimm 2017-11-28 14:57:19 UTC
Description of problem:
RHEL 7.4 client
During the process of registering a system to Satellite, installing katello-ca-consumer-latest.noarch.rpm runs /usr/bin/katello-rhsm-consumer on postinstall.
This script automatically restarts Docker.
This unexpected behavior is a surprise to anyone who has Docker containers running on the system.

Version-Release number of selected component (if applicable):
satellite-6.2.12-6.0.el7sat.noarch


How reproducible:
Always

Steps to Reproduce:
1. rpm -Uvh http://<satellite host>/pub/katello-ca-consumer-latest.noarch.rpm
2.
3.

Actual results:
Katello gets installed, but restarts the Docker service along the way.

Expected results:
Katello gets installed, leaving Docker service alone.

Additional info:

Comment 1 Craig Donnelly 2017-12-01 16:56:54 UTC
Hello,

The reason that the katello-ca-consumer script restarts docker is due to the fact that we are importing the CA into RHEL and need to make that certificate available for use with the docker services and the systems hosted by it.

I think it would be logical for us to include some better documentation around that fact that this is going to happen, but we need to ensure the services is restarted so that it can properly use entitlement information derived from the Satellite.

Comment 2 ktbzimm 2017-12-07 18:33:43 UTC
Hi Craig,

I get what you're saying.  However, this process is automated for us, and for installation of katello to yank our Docker instances out from under us on production servers is very disconcerting and problematic.  Could I propose instead that the Docker restart is removed, and documentation include a reference to restarting Docker at the admin's earliest convenience?

Thanks!

Comment 3 Craig Donnelly 2017-12-08 18:54:29 UTC
Thank you, and I understand your position.

We agree that this action probably should not be taken on your behalf, so I am converting this to an RFE for the katello-bootstrap package (via certificates) and we are proposing that the path forward be to detect a running docker service on the host of install, and notify via terminal/cli where the action occurs that a service restart will be required to consume entitlements for those hosts.

Comment 4 dlbewley 2018-02-14 22:41:23 UTC
A very strong +1 on this one. 

I just spent a few hours trying to figure out how our Satellite registration playbook caused an OpenShift outage. :(

Comment 5 Aaron Russo 2018-02-15 00:03:43 UTC
It appears this was fixed in upstream Katello, Satellite just needs to catch up.

https://github.com/theforeman/puppet-certs/pull/156
https://github.com/theforeman/puppet-certs/blob/master/templates/rhsm-katello-reconfigure.erb

If we're not moving to a sufficient version of Katello in 6.3, then it should be backported.

Comment 6 Satellite Program 2018-02-15 03:06:02 UTC
Upstream bug assigned to stbenjam

Comment 7 Satellite Program 2018-02-15 03:06:05 UTC
Moving this bug to POST for triage into Satellite 6 since the upstream issue http://projects.theforeman.org/issues/19271 has been resolved.

Comment 13 errata-xmlrpc 2018-04-13 13:36:16 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2018:1127