Bug 1402622

Summary: 'rhui-manager status' command is missing
Product: Red Hat Update Infrastructure for Cloud Providers Reporter: Satoru SATOH <ssato>
Component: ToolsAssignee: RHUI Bug List <rhui-bugs>
Status: CLOSED NOTABUG QA Contact: Vratislav Hutsky <vhutsky>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 3.0.0CC: igulina, rbiba
Target Milestone: ---   
Target Release: ---   
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: 2017-01-11 08:21: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:

Description Satoru SATOH 2016-12-08 00:32:46 UTC
Description of problem:
rhui-manager in RHUI v2 provides 'status' sub command to show the status
summary of the whole RHUI system but it seems that rhui-manager does
not provide it any more in RHUI v3 Beta 1.

It's a kind of regression for many customers depend on that function for
daily monitoring and health checks.



Version-Release number of selected component (if applicable):
RHUI 3.0 Beta.1


How reproducible: Always

Steps to Reproduce:
1. run 'rhui-manager status'

Actual results:
The interactive shell of rhui-manager is started.


Expected results:
The status overview of the whole RHUI system is shown.


Additional info:
If it's difficult or takes a long time to implement this into rhui-manager,
a kind of script running a bunch of commands (pulp-admin, rhui, etc.)
may be enough, for example:

------------------------------------------------------------------------
#! /bin/bash
# installed as /usr/sbin/rhui-status or something alike.
set -e

pulp-admin login -u admin -p <passwd>

# cds access
for cds in cds_names; do
curl --connect-timeout --cacert /etc/pki/rhui/ca.crt --cert /etc/pki/rhui/product/content.crt \
  --key /etc/pki/rhui/key.pem https://${cds}/pulp/mirror/content/dist/rhel/rhui/server/.../ # url of a repo.
done

# cert
... # do.

# status of last sync of rpm repos
for r in $(pulp-admin rpm repo list --fields id | sed -nr 's/^Id: (.+)/\1/p')
do
    pulp-admin repo history sync --repo-id $r --limit 1
done
------------------------------------------------------------------------

Comment 6 Irina Gulina 2017-01-11 08:21:22 UTC
'rhui-manager status' was returned back on Beta2 iso 20161220. Closing with NOTABUG.