Bug 1366691

Summary: [RFE] katello-service status output is very difficult to overview
Product: Red Hat Satellite Reporter: Magnus Glantz <sudo>
Component: InfrastructureAssignee: satellite6-bugs <satellite6-bugs>
Status: CLOSED DUPLICATE QA Contact: jcallaha
Severity: medium Docs Contact:
Priority: medium    
Version: 6.2.0CC: adprice, jcallaha, ldelouw, pdudley, pgervase, sthirugn
Target Milestone: UnspecifiedKeywords: FutureFeature, Triaged, UserExperience
Target Release: Unused   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-07-18 12:32:47 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
Suggested patch to limit output none

Description Magnus Glantz 2016-08-12 15:19:16 UTC
Created attachment 1190465 [details]
Suggested patch to limit output

Description of problem:
katello-service status output is very difficult to overview. When you run katello-service status you want a brief overview of the solutions status, not the full systemctl status output.

Version-Release number of selected component (if applicable):
Satellite 6.2.0
katello-service-2.2.0.19-1.el7sat.noarch
katello-common-2.2.0.19-1.el7sat.noarch

How reproducible:
katello-service status

Steps to Reproduce:
1. Run katello-service status
2. Observe that it's output is over 182 lines.

Actual results:
Status output is over 182 lines. Impossible to overview.

Expected results:
Just information about what services and what state it has, not the full systemctl status output.

Additional info:
With my patch output is displayed as follows:

[root@sat6 ~]# /usr/bin/katello-service.new status
Status for: mongod
   Active: active (running) since Fri 2016-08-12 14:37:06 CEST; 2h 39min ago
Status for: qpidd
   Active: active (running) since Fri 2016-08-12 16:45:06 CEST; 31min ago
Status for: qdrouterd
   Active: active (running) since Fri 2016-08-12 14:37:11 CEST; 2h 39min ago
Status for: tomcat
   Active: active (running) since Fri 2016-08-12 14:37:12 CEST; 2h 39min ago
Status for: elasticsearch
   Active: active (running) since Fri 2016-08-12 14:37:12 CEST; 2h 39min ago
Status for: foreman-proxy
   Active: active (running) since Fri 2016-08-12 14:37:30 CEST; 2h 39min ago
Status for: pulp_celerybeat
   Active: active (running) since Fri 2016-08-12 16:47:49 CEST; 28min ago
Status for: pulp_resource_manager
   Active: active (running) since Fri 2016-08-12 14:37:32 CEST; 2h 38min ago
Status for: pulp_workers
   Active: active (exited) since Fri 2016-08-12 14:37:33 CEST; 2h 38min ago
Status for: httpd
   Active: active (running) since Fri 2016-08-12 14:37:35 CEST; 2h 38min ago
Status for: foreman-tasks
   Active: active (running) since Fri 2016-08-12 14:39:17 CEST; 2h 37min ago
Success!

Comment 2 Brad Buckingham 2017-09-20 19:20:04 UTC
*** Bug 1492585 has been marked as a duplicate of this bug. ***

Comment 3 Brad Buckingham 2017-09-20 19:20:42 UTC
*** Bug 1450438 has been marked as a duplicate of this bug. ***

Comment 4 Brad Buckingham 2017-09-20 19:21:57 UTC
When implementing the solution to this bugzilla, please refer to attached duplicates (e.g. Blocks) for additional input on possible solutions.

Comment 5 sthirugn@redhat.com 2018-07-18 12:32:47 UTC

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