Bug 1402651

Summary: "rhui-manager cert upload" command is not available in RHUI v3
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: high 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 09:09:38 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 03:48:37 UTC
Description of problem:
In RHUI v2, we can upload RHUI content cert with using 'cert upload' sub command of rhui-manager however it seems disappeared in RHUI v3.


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


How reproducible: Always


Additional info:
If it's difficult or takes some to implement this into rhui-manager.
An wrapper script or something does this may be enough such like:

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

usage="$0 CERT_PATH"
if test $# -lt 1; then
    echo $usage
    exit 1
fi

read -s -p 'Password: ' -t 5 passwd
cat << EOC | rhui-manager --username admin --password ${passwd:?}
n
u
${1}
y
q
EOC
----------------------------------------------------

Comment 6 Irina Gulina 2017-01-11 09:09:38 UTC
'rhui-manager' CLI was returned back within Beta2 iso 20161220: 

>> rhui-manager cert upload --help
Usage: rhui-manager [options]

Options:
  -h, --help     show this help message and exit
upload: uploads a new content certificate
    --cert - full path to the new content certificate (required)
    --key - full path to the new content certificate's key


Closing. NOTABUG.