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 1625109

Summary: katello-debug.sh still calls katello-service status rather than foreman-maintain
Product: Red Hat Satellite Reporter: Martin Bacovsky <mbacovsk>
Component: PackagingAssignee: satellite6-bugs <satellite6-bugs>
Status: CLOSED ERRATA QA Contact: Lukas Pramuk <lpramuk>
Severity: high Docs Contact:
Priority: unspecified    
Version: 6.4CC: bkearney, egolov, jcallaha
Target Milestone: 6.5.0Keywords: Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: katello-3.9.0-0 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-05-14 12:37:51 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:

Description Martin Bacovsky 2018-09-04 07:04:18 UTC
katello-debug.sh still calls - 
---
add_cmd "katello-service status" "katello_service_status"
---

rather than using foreman-maintain to call the service status. This should be updated to something like -
---
add_cmd "foreman-mainain service status" "foreman-maintain_service_status"
---

to be properly updated and use foreman-maintain

Comment 1 Martin Bacovsky 2018-09-04 07:04:23 UTC
Created from redmine issue https://projects.theforeman.org/issues/24767

Comment 2 Martin Bacovsky 2018-09-04 07:04:27 UTC
Upstream bug assigned to None

Comment 4 Martin Bacovsky 2018-09-04 07:07:55 UTC
This patch is necessary to have valid status of remote databases in foreman-debug.

Comment 7 Lukas Pramuk 2018-12-10 13:20:17 UTC
VERIFIED.

@satellite-6.5.0-5.beta.el7sat.noarch
katello-debug-3.10.0-0.6.rc1.el7sat.noarch

by following manual reproducer:

# foreman-debug -d  /var/tmp/test
Processing... (takes a while)


 HOSTNAME: <SAT_FQDN>
       OS: redhat
  RELEASE: Red Hat Enterprise Linux Server release 7.6 (Maipo)
  FOREMAN: 1.20.0
     RUBY: ruby 2.0.0p648 (2015-12-16) [x86_64-linux]
   PUPPET: 5.5.0
  DENIALS: 0


A debug file has been created: /var/tmp/test.tar.xz (1262848 bytes)

To upload a tarball to our secure site, please use the -u option.

# tar -xOf /var/tmp/test.tar.xz test/foreman-maintain_service_status
COMMAND> foreman-maintain service status

Running Status Services
================================================================================
Get status of applicable services: 
Displaying the following service(s):

rh-mongodb34-mongod, postgresql, qdrouterd, qpidd, squid, pulp_celerybeat, pulp_resource_manager, pulp_streamer, pulp_workers, smart_proxy_dynflow_core, tomcat, dynflowd, httpd, puppetserver, foreman-proxy
/ displaying rh-mongodb34-mongod                                                
● rh-mongodb34-mongod.service - High-performance, schema-free document-oriented database
   Loaded: loaded (/usr/lib/systemd/system/rh-mongodb34-mongod.service; enabled; vendor preset: disabled)
   Active: active (running) since Sun 2018-12-02 04:24:22 EST; 1 weeks 1 days ago
...

| All services are running                                            [OK]      
--------------------------------------------------------------------------------

>>> service statuses are now acquired by foreman-maintain

Comment 10 errata-xmlrpc 2019-05-14 12:37: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-2019:1222