Bug 1480475 - [RHUI 3.0] Installation and registration of CDS fails when ssh key pair is created with a passphrase.
[RHUI 3.0] Installation and registration of CDS fails when ssh key pair is cr...
Status: CLOSED ERRATA
Product: Red Hat Update Infrastructure for Cloud Providers
Classification: Red Hat
Component: Documentation (Show other bugs)
3.0.0
Unspecified Unspecified
unspecified Severity high
: ---
: ---
Assigned To: Les Williams
Radek Bíba
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2017-08-11 04:43 EDT by Tapomoy Bhowmik
Modified: 2017-09-11 08:26 EDT (History)
3 users (show)

See Also:
Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2017-09-11 08:26:30 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Tapomoy Bhowmik 2017-08-11 04:43:38 EDT
Document URL: https://access.redhat.com/documentation/en-us/red_hat_update_infrastructure/3.0/single/system_administrators_guide/#generate_keypair


Section Number and Name: 

Point number 3 under section "6.1.1. RSA Key Pair for Version 2 of the SSH Protocol"
Point number 3 under section "6.1.2. ECDSA Key Pair for Version 2 of the SSH Protocol"


Describe the issue: 

As per the documentation of RHUI 3.0 System Administrator's Guide [6.1. GENERATE AN RSA KEY PAIR] under point 3 of section 6.1.1 and 6.1.2, it is mentioned that we need to enter a password while generating RSA Key Pair or ECDSA Key Pair. If we will create the key pair using a passphrase then RHUI won't be able to decrypt it and the installation and registration of CDS will fail.

We will get the below error in ~/.rhui/rhui.log:

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Failed to authenticate with the SSH server at cdsuser@rhcds1:22
using the private key /root/.ssh/id_rsa.
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/rhui/tools/shell.py", line 88, in safe_listen
    self.listen(clear=first_run)
  File "/usr/lib/python2.7/site-packages/rhui/tools/shell.py", line 127, in listen
    Shell.listen(self)
  File "/usr/lib/python2.7/site-packages/rhui/common/shell.py", line 186, in listen
    item.func(*args, **item.kwargs)
  File "/usr/lib/python2.7/site-packages/rhui/tools/screens/instances.py", line 191, in register
    self._register(new_instance, ssh_policy, force=force)
  File "/usr/lib/python2.7/site-packages/rhui/tools/screens/instances.py", line 239, in _register
    private_key=ssh_keyfile)
RhuiException: Failed to authenticate with the SSH server at cdsuser@rhcds1:22
using the private key /root/.ssh/id_rsa.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


Suggestions for improvement: 

Need to modify the document mentioning that we should not provide any passphrase when asked for rather we should keep it as blank. Also, a note should be provided that if a passphrase is provided while generating key pair then the installation and registration of CDS will fail.


Additional information:

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