Bug 1402651 - "rhui-manager cert upload" command is not available in RHUI v3
Summary: "rhui-manager cert upload" command is not available in RHUI v3
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
high
Target Milestone: ---
: ---
Assignee: RHUI Bug List
QA Contact: Vratislav Hutsky
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-12-08 03:48 UTC by Satoru SATOH
Modified: 2017-01-11 09:09 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 09:09:38 UTC
Target Upstream Version:


Attachments (Terms of Use)

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.


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