Bug 1402622 - 'rhui-manager status' command is missing
Summary: 'rhui-manager status' command is missing
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Update Infrastructure for Cloud Providers
Classification: Red Hat
Component: Tools
Version: 3.0.0
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ---
: ---
Assignee: RHUI Bug List
QA Contact: Vratislav Hutsky
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-12-08 00:32 UTC by Satoru SATOH
Modified: 2017-01-11 08:21 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-01-11 08:21:22 UTC
Target Upstream Version:


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.