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 1462525 - katello-service attempts to execute services in 'static' state, causing errors
Summary: katello-service attempts to execute services in 'static' state, causing errors
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Packaging
Version: 6.2.9
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: Unspecified
Assignee: Eric Helms
QA Contact: Daniel Lobato Garcia
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-06-18 13:16 UTC by Chris Duryee
Modified: 2019-04-01 20:27 UTC (History)
3 users (show)

Fixed In Version: katello-3.4.4
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-02-21 16:51:07 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 20431 0 None None None 2017-07-27 19:45:57 UTC

Description Chris Duryee 2017-06-18 13:16:25 UTC
Description of problem:

If you run katello-remove on a system, it will set the postgres service to 'static' instead of removing it.

However, if you then install a capsule on the same system, katello-service checks to see whether or not to restart a service based on the result of 'systemctl is-enabled X'. This returns 0 for 'static' services, which causes katello-service to attempt to restart postgres, which no longer exists.

Version-Release number of selected component (if applicable): 6.2.9


How reproducible: every time


Steps to Reproduce:
1. install satellite to a system
2. katello-remove
3. install capsule

Actual results: katello-service start will raise an error about postgres


Expected results: no mention of postgres in katello-service start

Comment 2 Chris Duryee 2017-06-18 13:18:54 UTC
workaround:

mv /etc/systemd/system/postgresql.service /root
systemctl daemon-reload

Comment 4 Eric Helms 2017-07-27 19:45:54 UTC
Created redmine issue http://projects.theforeman.org/issues/20431 from this bug

Comment 5 Satellite Program 2017-07-27 22:02:04 UTC
Upstream bug assigned to ehelms

Comment 6 Satellite Program 2017-07-27 22:02:07 UTC
Upstream bug assigned to ehelms

Comment 7 Satellite Program 2017-07-28 16:01:59 UTC
Moving this bug to POST for triage into Satellite 6 since the upstream issue http://projects.theforeman.org/issues/20431 has been resolved.

Comment 8 Satellite Program 2017-08-03 22:02:04 UTC
Moving this bug to POST for triage into Satellite 6 since the upstream issue http://projects.theforeman.org/issues/20431 has been resolved.

Comment 9 Daniel Lobato Garcia 2017-08-23 09:08:06 UTC
Verified.

Version Tested: Satellite-6.3 Snap 11

I performed the following steps to verify this issue:

  - katello-remove
  - satellite-installer (installing just a capsule)
  - katello-service start works fine, the postgresql service doesn't exist anymore

Comment 10 Bryan Kearney 2018-02-21 16:43:51 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/RHSA-2018:0336

Comment 11 Satellite Program 2018-02-21 16:51:07 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/RHSA-2018:0336


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