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 2058269 - satellite-maintain command does not enable all services correctly
Summary: satellite-maintain command does not enable all services correctly
Keywords:
Status: CLOSED DUPLICATE of bug 2055790
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Satellite Maintain
Version: 6.9.8
Hardware: All
OS: Linux
medium
medium
Target Milestone: Unspecified
Assignee: satellite6-bugs
QA Contact: Gaurav Talreja
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-02-24 15:44 UTC by dgupte
Modified: 2023-02-16 13:52 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-07-22 13:04:05 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description dgupte 2022-02-24 15:44:34 UTC
Description of problem:
>>>
Multiple services missing after  "satellite-maintain service disable" command executed and can not be enabled the same services by "satellite-maintain service enable"  command.
Once the issue occurs (disable/enable) the Capsule services can't be started with satellite-maintain due to services missing.

Issue is not reproducible on Satellite Capsule 6.9.7 version. 

Version-Release number of selected component (if applicable):
>>>
satellite-capsule-6.9.8-1.el7sat.noarch

Steps to Reproduce:
>>>
On Satellite Capsule 6.9.8 version, 

  # satellite-maintain service list    <--- Check enabled services
  # satellite-maintain service stop
  # satellite-maintain service disable 
  # satellite-maintain service enable
  # satellite-maintain service list      <--- Multiple services missing
  # satellite-maintain service start

Actual results:
>>> 
Multiple services missing after  "satellite-maintain service disable" command executed.

Expected results:
>>>
Discrepancy in services when 'satellite-maintain' disable then enable command executed.
Should enable all the required services. 

Additional info:
>>>

[root@dhcp130-157 ~]# rpm -qa | grep satellite-cap
satellite-capsule-6.9.8-1.el7sat.noarch

[root@dhcp130-157 ~]# satellite-maintain service list
Running Service List
================================================================================
List applicable services: 
foreman-proxy.service                         enabled 
goferd.service                                enabled 
httpd.service                                 enabled 
pulp_celerybeat.service                       enabled 
pulp_resource_manager.service                 enabled 
pulp_streamer.service                         enabled 
pulp_workers.service                          enabled 
puppetserver.service                          enabled 
qdrouterd.service                             enabled 
qpidd.service                                 enabled 
rh-mongodb34-mongod.service                   enabled 
smart_proxy_dynflow_core.service              enabled 
squid.service                                 enabled

All services listed                                                   [OK]
--------------------------------------------------------------------------------

[root@dhcp130-157 ~]# satellite-maintain service stop
Running Stop Services
================================================================================
Check if command is run as root user:                                 [OK]
--------------------------------------------------------------------------------
Stop applicable services: 

Stopping the following service(s):
rh-mongodb34-mongod, qdrouterd, qpidd, squid, pulp_celerybeat, pulp_resource_manager, pulp_streamer, pulp_workers, smart_proxy_dynflow_core, goferd, httpd, puppetserver, foreman-proxy
- All services stopped                                                [OK]      
--------------------------------------------------------------------------------

[root@dhcp130-157 ~]# 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-mongodb34-mongod, qdrouterd, qpidd, squid, pulp_celerybeat, pulp_resource_manager, pulp_streamer, pulp_workers, smart_proxy_dynflow_core, goferd, httpd, puppetserver, foreman-proxy
\ disabling rh-mongodb34-mongod                                                 
Removed symlink /etc/systemd/system/multi-user.target.wants/rh-mongodb34-mongod.service.
- disabling squid                                                               
Removed symlink /etc/systemd/system/multi-user.target.wants/qdrouterd.service.

Removed symlink /etc/systemd/system/multi-user.target.wants/qpidd.service.

Removed symlink /etc/systemd/system/multi-user.target.wants/squid.service.
| disabling smart_proxy_dynflow_core                                            
Removed symlink /etc/systemd/system/multi-user.target.wants/pulp_celerybeat.service.

Removed symlink /etc/systemd/system/multi-user.target.wants/pulp_resource_manager.service.

Removed symlink /etc/systemd/system/multi-user.target.wants/pulp_streamer.service.

Removed symlink /etc/systemd/system/multi-user.target.wants/pulp_workers.service.

Removed symlink /etc/systemd/system/multi-user.target.wants/smart_proxy_dynflow_core.service.
- disabling puppetserver                                                        
Removed symlink /etc/systemd/system/multi-user.target.wants/goferd.service.

Removed symlink /etc/systemd/system/multi-user.target.wants/httpd.service.

Removed symlink /etc/systemd/system/multi-user.target.wants/puppetserver.service.
\ disabling foreman-proxy                                                       
Removed symlink /etc/systemd/system/multi-user.target.wants/foreman-proxy.service.
| All services disabled                                               [OK]      
--------------------------------------------------------------------------------

[root@dhcp130-157 ~]# satellite-maintain service list
Running Service List
================================================================================
List applicable services: 
foreman-proxy.service                         disabled
httpd.service                                 disabled
puppetserver.service                          disabled
smart_proxy_dynflow_core.service              disabled

All services listed                                                   [OK]
--------------------------------------------------------------------------------

[root@dhcp130-157 ~]# 
[root@dhcp130-157 ~]# satellite-maintain service enable
Running Enable Services
================================================================================
Check if command is run as root user:                                 [OK]
--------------------------------------------------------------------------------
Enable applicable services: 

Enabling the following service(s):
smart_proxy_dynflow_core, httpd, puppetserver, foreman-proxy
- enabling smart_proxy_dynflow_core                                             
Created symlink from /etc/systemd/system/multi-user.target.wants/smart_proxy_dynflow_core.service to /usr/lib/systemd/system/smart_proxy_dynflow_core.service.
| enabling puppetserver                                                         
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 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]      
--------------------------------------------------------------------------------

[root@dhcp130-157 ~]# satellite-maintain service list
Running Service List
================================================================================
List applicable services: 
foreman-proxy.service                         enabled 
httpd.service                                 enabled 
puppetserver.service                          enabled 
smart_proxy_dynflow_core.service              enabled

All services listed                                                   [OK]

[root@dhcp130-157 ~]# satellite-maintain service start
Running Start Services
================================================================================
Check if command is run as root user:                                 [OK]
--------------------------------------------------------------------------------
Start applicable services: 

Starting the following service(s):
smart_proxy_dynflow_core, httpd, puppetserver, foreman-proxy
/ All services started                                                [OK]      
--------------------------------------------------------------------------------

Comment 2 Pavel Moravec 2022-07-22 13:04:05 UTC
This is imho duplicate of bz2055790.

*** This bug has been marked as a duplicate of bug 2055790 ***


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