Bug 1397555

Summary: [RFE] The output of katello-service should be machine readable
Product: Red Hat Satellite Reporter: sthirugn <sthirugn>
Component: UsabilityAssignee: satellite6-bugs <satellite6-bugs>
Status: CLOSED CURRENTRELEASE QA Contact: Katello QA List <katello-qa-list>
Severity: medium Docs Contact:
Priority: high    
Version: 6.2.4CC: bkearney, fgarciad, jcallaha, oprazak, sudo, swadeley
Target Milestone: UnspecifiedKeywords: FutureFeature, PrioBumpPM
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-09-04 19:06:22 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 260381    
Attachments:
Description Flags
sample output none

Description sthirugn@redhat.com 2016-11-22 19:29:01 UTC
Created attachment 1222830 [details]
sample output

Description of problem:
The output of katello-service should be machine readable

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

How reproducible:
Always

Steps to Reproduce:
1. Run `katello-service status` in Satellite 6.2.4 - a sample output is attached to the bugzilla

Actual results:
The output of `katello-service status` is not machine readable and this prevents automation of tasks using this command.

Expected results:
The output of `katello-service status` should be machine readable and be easily used for automation process.

Additional info:

Comment 5 Ondřej Pražák 2018-01-24 13:53:49 UTC
Created redmine issue http://projects.theforeman.org/issues/22410 from this bug

Comment 6 sthirugn@redhat.com 2018-07-18 12:32:47 UTC
*** Bug 1366691 has been marked as a duplicate of this bug. ***

Comment 7 Bryan Kearney 2018-09-04 18:56:01 UTC
Thank you for your interest in Satellite 6. We have evaluated this request, and we do not expect this to be implemented in the product in the foreseeable future. We are therefore closing this out as WONTFIX. If you have any concerns about this, please feel free to contact Rich Jerrido or Bryan Kearney. Thank you.

Comment 8 Bryan Kearney 2018-09-04 19:06:22 UTC
Thank you for your interest in Satellite 6. We have evaluated this request, and we do not expect this to be implemented in the product in the foreseeable future. We are therefore closing this out as WONTFIX. If you have any concerns about this, please feel free to contact Rich Jerrido or Bryan Kearney. Thank you.

Comment 9 sthirugn@redhat.com 2019-05-01 18:12:20 UTC
You can do this now in Satellite 6.4:

# foreman-maintain service status -b
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, goferd, httpd, puppetserver, foreman-proxy
\ displaying rh-mongodb34-mongod                   [OK]                         
\ displaying postgresql                            [OK]                         
\ displaying qdrouterd                             [OK]                         
\ displaying qpidd                                 [OK]                         
\ displaying squid                                 [OK]                         
| displaying pulp_celerybeat                       [OK]                         
| displaying pulp_resource_manager                 [OK]                         
| displaying pulp_streamer                         [OK]                         
| displaying pulp_workers                          [OK]                         
| displaying smart_proxy_dynflow_core              [OK]                         
| displaying tomcat                                [OK]                         
| displaying dynflowd                              [OK]                         
| displaying goferd                                [OK]                         
| displaying httpd                                 [OK]                         
| displaying puppetserver                          [OK]                         
| displaying foreman-proxy                         [OK]                         
| All services are running                                            [OK]      
--------------------------------------------------------------------------------