Red Hat Bugzilla – 2095912 – 'satellite-maintain service disable' disables all satellite services but 'satellite-maintain service enable' only enables some of them.
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.
DescriptionGanesh Payelkar
2022-06-10 23:10:22 UTC
Description of problem:
'satellite-maintain service disable' disables all satellite services but 'satellite-maintain service enable' only enables some of them.
Version-Release number of selected component (if applicable):
satellite-6.10.6
How reproducible:
Steps to Reproduce:
1. To disable all the services perform # satellite-maintain service disable
2. To enable services # satellite-maintain service enable
3.
Actual results:
When you perform # 'satellite-maintain service disable' it will disable all the services of the satellite server
# satellite-maintain service list
Running Service List
================================================================================
List applicable services:
dynflow-sidekiq@.service enabled
foreman-proxy.service enabled
foreman.service enabled
httpd.service enabled
postgresql.service enabled
pulpcore-api.service enabled
pulpcore-content.service enabled
pulpcore-worker@.service enabled
puppetserver.service enabled
rh-redis5-redis.service enabled
tomcat.service enabled
All services listed [OK]
--------------------------------------------------------------------------------
# satellite-maintain service disable
Running Disable Services
================================================================================
Check if command is run as root user: [OK]
--------------------------------------------------------------------------------
Disable applicable services:
Disabling the following service(s):
rh-redis5-redis, postgresql, pulpcore-api, pulpcore-content, pulpcore-worker, pulpcore-worker, tomcat, dynflow-sidekiq@orchestrator, foreman, httpd, puppetserver, dynflow-sidekiq@worker-1, dynflow-sidekiq@worker-hosts-queue-1, foreman-proxy
/ disabling rh-redis5-redis
Removed symlink /etc/systemd/system/multi-user.target.wants/rh-redis5-redis.service.
| disabling pulpcore-content
Removed symlink /etc/systemd/system/multi-user.target.wants/rh-postgresql12-postgresql.service.
Removed symlink /etc/systemd/system/multi-user.target.wants/pulpcore-api.service.
Removed symlink /etc/systemd/system/multi-user.target.wants/pulpcore-content.service.
/ disabling tomcat
WARNING: Skipping disable for pulpcore-worker as there are a variable amount of services to manage
and this command will not respond to glob operators. These services have been configured by
the installer and it is recommended to keep them enabled to prevent misconfiguration.
WARNING: Skipping disable for pulpcore-worker as there are a variable amount of services to manage
and this command will not respond to glob operators. These services have been configured by
the installer and it is recommended to keep them enabled to prevent misconfiguration.
/ disabling tomcat
Removed symlink /etc/systemd/system/multi-user.target.wants/tomcat.service.
- disabling puppetserver
Removed symlink /etc/systemd/system/multi-user.target.wants/dynflow-sidekiq.
Removed symlink /etc/systemd/system/multi-user.target.wants/foreman.service.
Removed symlink /etc/systemd/system/multi-user.target.wants/httpd.service.
Removed symlink /etc/systemd/system/multi-user.target.wants/puppetserver.service.
| disabling dynflow-sidekiq@worker-hosts-queue-1
Removed symlink /etc/systemd/system/multi-user.target.wants/dynflow-sidekiq.
Removed symlink /etc/systemd/system/multi-user.target.wants/dynflow-sidekiq.
- disabling foreman-proxy
Removed symlink /etc/systemd/system/multi-user.target.wants/foreman-proxy.service.
\ All services disabled [OK]
--------------------------------------------------------------------------------
# satellite-maintain service list
Running Service List
================================================================================
List applicable services:
dynflow-sidekiq@.service disabled
foreman-proxy.service disabled
httpd.service disabled
postgresql.service disabled
puppetserver.service disabled
rh-redis5-redis.service disabled
tomcat.service disabled
All services listed [OK]
--------------------------------------------------------------------------------
Whereas when you try to enable services through # 'satellite-maintain service enable' it will not enable foreman/pulp* services
# satellite-maintain service enable
Running Enable Services
================================================================================
Check if command is run as root user: [OK]
--------------------------------------------------------------------------------
Enable applicable services:
Enabling the following service(s):
rh-redis5-redis, postgresql, tomcat, dynflow-sidekiq@orchestrator, httpd, puppetserver, dynflow-sidekiq@worker-1, dynflow-sidekiq@worker-hosts-queue-1, foreman-proxy
\ enabling rh-redis5-redis
Created symlink from /etc/systemd/system/multi-user.target.wants/rh-redis5-redis.service to /usr/lib/systemd/system/rh-redis5-redis.service.
/ enabling postgresql
Created symlink from /etc/systemd/system/multi-user.target.wants/rh-postgresql12-postgresql.service to /usr/lib/systemd/system/rh-postgresql12-postgresql.service.
- enabling tomcat
Created symlink from /etc/systemd/system/multi-user.target.wants/tomcat.service to /usr/lib/systemd/system/tomcat.service.
/ enabling puppetserver
Created symlink from /etc/systemd/system/multi-user.target.wants/dynflow-sidekiq to /usr/lib/systemd/system/dynflow-sidekiq@.service.
Created symlink from /etc/systemd/system/multi-user.target.wants/httpd.service to /usr/lib/systemd/system/httpd.service.
Created symlink from /etc/systemd/system/multi-user.target.wants/puppetserver.service to /usr/lib/systemd/system/puppetserver.service.
\ enabling dynflow-sidekiq@worker-hosts-queue-1
Created symlink from /etc/systemd/system/multi-user.target.wants/dynflow-sidekiq to /usr/lib/systemd/system/dynflow-sidekiq@.service.
Created symlink from /etc/systemd/system/multi-user.target.wants/dynflow-sidekiq to /usr/lib/systemd/system/dynflow-sidekiq@.service.
| enabling foreman-proxy
Created symlink from /etc/systemd/system/multi-user.target.wants/foreman-proxy.service to /usr/lib/systemd/system/foreman-proxy.service.
/ All services enabled [OK]
--------------------------------------------------------------------------------
# satellite-maintain service list
Running Service List
================================================================================
List applicable services:
dynflow-sidekiq@.service enabled
foreman-proxy.service enabled
httpd.service enabled
postgresql.service enabled
puppetserver.service enabled
rh-redis5-redis.service enabled
tomcat.service enabled
All services listed [OK]
Expected results:
command # satellite-maintain service enable should enable all the required services as well.
Additional info:
# satellite-maintain service restart
Running Restart Services
================================================================================
Check if command is run as root user: [OK]
--------------------------------------------------------------------------------
Restart applicable services:
Stopping the following service(s):
rh-redis5-redis, postgresql, tomcat, dynflow-sidekiq@orchestrator, httpd, puppetserver, dynflow-sidekiq@worker-1, dynflow-sidekiq@worker-hosts-queue-1, foreman-proxy
/ All services stopped
Starting the following service(s):
rh-redis5-redis, postgresql, tomcat, dynflow-sidekiq@orchestrator, httpd, puppetserver, dynflow-sidekiq@worker-1, dynflow-sidekiq@worker-hosts-queue-1, foreman-proxy
/ All services started [OK]
--------------------------------------------------------------------------------
# satellite-maintain service status -b
Running Status Services
================================================================================
Get status of applicable services:
Displaying the following service(s):
rh-redis5-redis, postgresql, tomcat, dynflow-sidekiq@orchestrator, httpd, puppetserver, dynflow-sidekiq@worker-1, dynflow-sidekiq@worker-hosts-queue-1, foreman-proxy
| displaying rh-redis5-redis [OK]
| displaying postgresql [OK]
| displaying tomcat [OK]
| displaying dynflow-sidekiq@orchestrator [OK]
| displaying httpd [OK]
| displaying puppetserver [OK]
| displaying dynflow-sidekiq@worker-1 [OK]
| displaying dynflow-sidekiq@worker-hosts-queue-1 [OK]
| displaying foreman-proxy [OK]
| All services are running [OK]
--------------------------------------------------------------------------------
--------------------------
Workaround:
--------------------------
Re-run installer which will create the symlink
# satellite-installer -S satellite
# satellite-maintain service status -b
- displaying rh-redis5-redis [OK]
\ displaying postgresql [OK]
\ displaying pulpcore-api [OK]
\ displaying pulpcore-content [OK]
\ displaying pulpcore-worker [OK]
\ displaying pulpcore-worker [OK]
\ displaying tomcat [OK]
\ displaying dynflow-sidekiq@orchestrator [OK]
\ displaying foreman [OK]
\ displaying httpd [OK]
\ displaying puppetserver [OK]
\ displaying dynflow-sidekiq@worker-1 [OK]
\ displaying dynflow-sidekiq@worker-hosts-queue-1 [OK]
\ displaying foreman-proxy [OK]