Bug 1328767

Summary: [Negative] Adding new OpenStack key pair throws un-comprehensive error message
Product: Red Hat CloudForms Management Engine Reporter: Ronnie Rasouli <rrasouli>
Component: ProvidersAssignee: Marek Aufart <maufart>
Status: CLOSED ERRATA QA Contact: Ola Pavlenko <opavlenk>
Severity: medium Docs Contact:
Priority: high    
Version: 5.6.0CC: dajohnso, gblomqui, jfrey, jhardy, obarenbo, simaishi
Target Milestone: GA   
Target Release: 5.6.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: openstack:provider
Fixed In Version: 5.6.0.6 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-06-29 15:51:26 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:
Embargoed:
Attachments:
Description Flags
Error message after adding bad key none

Description Ronnie Rasouli 2016-04-20 09:10:12 UTC
Created attachment 1148936 [details]
Error message after adding bad key

Description of problem:

We should be able to inform the user that the ssh key format is wrong.

Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.login the CFME
2. go to clouds key pairs 
3. add new key pair with wrong values 
4. Click add

Actual results:

Error message that does not indicate the root cause

Expected results:

Nice user experience message

Additional info:

Comment 4 CFME Bot 2016-05-03 07:15:38 UTC
New commit detected on ManageIQ/manageiq/master:
https://github.com/ManageIQ/manageiq/commit/386d3c55ef23cb3775b2bd0b256fc5f98a9bbe7e

commit 386d3c55ef23cb3775b2bd0b256fc5f98a9bbe7e
Author:     Marek Aufart <maufart>
AuthorDate: Fri Apr 29 16:10:38 2016 +0200
Commit:     Marek Aufart <maufart>
CommitDate: Mon May 2 18:18:19 2016 +0200

    Fix openstack keypair throws un-comprehensive error message
    
    Openstack keypair throws long and complicated error message when
    public key has an invalid format.
    
    Error message was shortened, so it should be more descriptive now.
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1328767

 app/controllers/auth_key_pair_cloud_controller.rb       |  9 +++++++--
 spec/controllers/auth_key_pair_cloud_controller_spec.rb | 14 ++++++++++++++
 2 files changed, 21 insertions(+), 2 deletions(-)

Comment 7 errata-xmlrpc 2016-06-29 15:51:26 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2016:1348