Uploaded image for project: 'Satellite'
  1. Satellite
  2. SAT-18016

satellite-maintain service enable fails to enable all services previously disabled by satellite-maintain service disable

XMLWordPrintable

    • 0
    • False
    • Important
    • None
    • None
    • None
    • None

      Description of problem:
      After disabling Satellite services using the 'satellite-maintain service disable' command, not all services are re-enabled after running the 'satellite-maintain service enable' command.

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

      How reproducible:
      100%

      Steps to Reproduce:
      1. On a functional Satellite instance, check the status of services (should return Status: ok)

      1. hammer ping

      2. Disable applicable services:

      1. satellite-maintain service disable

      3. Enable applicable services:

      1. satellite-maintain service enable

      4. Reboot Satellite server

      5. Check the status of services

      1. hammer ping

      Actual results:
      Before making any changes, Satellite services return Status: ok.
      ~~~
      [root@sat610 ~]# hammer ping
      database:
      Status: ok
      Server Response: Duration: 0ms
      katello_agent:
      Status: ok
      message: 0 Processed, 0 Failed
      Server Response: Duration: 0ms
      candlepin:
      Status: ok
      Server Response: Duration: 27ms
      candlepin_auth:
      Status: ok
      Server Response: Duration: 37ms
      candlepin_events:
      Status: ok
      message: 84 Processed, 0 Failed
      Server Response: Duration: 0ms
      katello_events:
      Status: ok
      message: 9 Processed, 0 Failed
      Server Response: Duration: 1ms
      pulp3:
      Status: ok
      Server Response: Duration: 94ms
      pulp3_content:
      Status: ok
      Server Response: Duration: 99ms
      foreman_tasks:
      Status: ok
      Server Response: Duration: 10ms
      ~~~

      Disable applicable services:
      ~~~

      1. satellite-maintain service disable
        Disabling the following service(s):
        rh-redis5-redis, postgresql, pulpcore-api, pulpcore-content, qdrouterd, qpidd, pulpcore-worker@1.service, pulpcore-worker@2.service, pulpcore-worker@3.service, pulpcore-worker@4.service, pulpcore-worker@5.service, pulpcore-worker@6.service, tomcat, dynflow-sidekiq@orchestrator, foreman, httpd, puppetserver, dynflow-sidekiq@worker-1, dynflow-sidekiq@worker-hosts-queue-1, foreman-proxy

      Skipping disable for pulpcore-worker@1.service, pulpcore-worker@2.service, pulpcore-worker@3.service, pulpcore-worker@4.service, pulpcore-worker@5.service, pulpcore-worker@6.service.

      All services disabled [OK]
      ~~~

      Enable applicable services. Note: The 'foreman, pulpcore-api, pulpcore-content' services were disabled but not enabled.
      ~~~

      1. satellite-maintain service enable
        Enabling the following service(s):
        rh-redis5-redis, postgresql, qdrouterd, qpidd, tomcat, dynflow-sidekiq@orchestrator, httpd, puppetserver, dynflow-sidekiq@worker-1, dynflow-sidekiq@worker-hosts-queue-1, foreman-proxy
      • All services enabled [OK]
        ~~~~

      After rebooting the Satellite server, pulp3_content and foreman_tasks services failed.
      ~~~
      [root@sat610 ~]# hammer ping
      database:
      Status: ok
      Server Response: Duration: 0ms
      katello_agent:
      Status: ok
      message: 0 Processed, 0 Failed
      Server Response: Duration: 0ms
      candlepin:
      Status: ok
      Server Response: Duration: 25ms
      candlepin_auth:
      Status: ok
      Server Response: Duration: 30ms
      candlepin_events:
      Status: ok
      message: 0 Processed, 0 Failed
      Server Response: Duration: 0ms
      katello_events:
      Status: ok
      message: 0 Processed, 0 Failed
      Server Response: Duration: 0ms
      pulp3:
      Status: ok
      Server Response: Duration: 6104ms
      pulp3_content:
      Status: FAIL
      Server Response: Message: No pulpcore content apps are running at https://sat610.example.org/pulp/api/v3.
      foreman_tasks:
      Status: FAIL
      Server Response: Message: some executors are not responding, check /foreman_tasks/dynflow/status
      ~~~

      The 'foreman' and 'pulpcore-api' services started but remained disabled. The 'pulpcore-content' service remained disabled and inactive.
      ~~~

      1. systemctl status foreman
        foreman.service - Foreman
        Loaded: loaded (/usr/lib/systemd/system/foreman.service; disabled; vendor preset: disabled)
        Drop-In: /etc/systemd/system/foreman.service.d
        Active: active (running) since Thu 2022-02-17 15:36:12 GMT; 9min ago
      1. systemctl status pulpcore-api
        pulpcore-api.service - Pulp API Server
        Loaded: loaded (/etc/systemd/system/pulpcore-api.service; disabled; vendor preset: disabled)
        Active: active (running) since Thu 2022-02-17 15:36:14 GMT; 9min ago
      1. systemctl status pulpcore-content
        pulpcore-content.service - Pulp Content App
        Loaded: loaded (/etc/systemd/system/pulpcore-content.service; disabled; vendor preset: disabled)
        Active: inactive (dead)
        ~~~

      After starting the pulpcore-content service manually, all Satellite services return Status: ok.
      ~~~

      1. hammer ping
        database:
        Status: ok
        Server Response: Duration: 0ms
        katello_agent:
        Status: ok
        message: 0 Processed, 0 Failed
        Server Response: Duration: 0ms
        candlepin:
        Status: ok
        Server Response: Duration: 33ms
        candlepin_auth:
        Status: ok
        Server Response: Duration: 24ms
        candlepin_events:
        Status: ok
        message: 0 Processed, 0 Failed
        Server Response: Duration: 0ms
        katello_events:
        Status: ok
        message: 0 Processed, 0 Failed
        Server Response: Duration: 1ms
        pulp3:
        Status: ok
        Server Response: Duration: 197ms
        pulp3_content:
        Status: ok
        Server Response: Duration: 246ms
        foreman_tasks:
        Status: ok
        Server Response: Duration: 3ms
        ~~~

      Expected results:
      All services disabled by 'satellite-maintain service disable' should be enabled 'satellite-maintain service enable'.
      If enabling the services fails, a reason should be given for the failed enable.

      Additional info:

              egolov@redhat.com Evgeni Golov
              jira-bugzilla-migration RH Bugzilla Integration
              Radek Mynar Radek Mynar
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: