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 2211960

Summary: satellite-maintain service enable fails to enable all services previously disabled by satellite-maintain service disable
Product: Red Hat Satellite Reporter: Odilon Sousa <osousa>
Component: Satellite MaintainAssignee: Evgeni Golov <egolov>
Status: CLOSED ERRATA QA Contact: Griffin Sullivan <gsulliva>
Severity: high Docs Contact:
Priority: high    
Version: 6.10.2CC: ahumbe, apatel, dgupte, egolov, ehelms, gsulliva, jan3, jbreitwe, kgaikwad, pbadguja, pdwyer, pmoravec, rlavi, satellite6-bugs
Target Milestone: 6.13.2Keywords: Triaged
Target Release: Unused   
Hardware: x86_64   
OS: All   
Whiteboard:
Fixed In Version: rubygem-foreman_maintain-1.2.9-1 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 2055790 Environment:
Last Closed: 2023-07-12 15:37:22 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Comment 2 Griffin Sullivan 2023-06-22 13:37:12 UTC
Verified on 6.13.2 snap 2

satellite-maintain service enable is working correctly.

Steps to Reproduce:

1. # hammer ping

2. # satellite-maintain service disable

3. # satellite-maintain service enable

4. Reboot Satellite server

5. # hammer ping

Results:

All services return `Status: ok`


Note:
After reboot, if you run hammer ping too quickly you will see 

foreman_tasks:    
    Status:          FAIL
    Server Response: Message: some executors are not responding, check /foreman_tasks/dynflow/status

However, after a few more seconds if you rerun you will get status ok.

Comment 11 errata-xmlrpc 2023-07-12 15:37:22 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 (Satellite 6.13.2 Async Update), 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-2023:4043