Bug 1328767 - [Negative] Adding new OpenStack key pair throws un-comprehensive error message
Summary: [Negative] Adding new OpenStack key pair throws un-comprehensive error message
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat CloudForms Management Engine
Classification: Red Hat
Component: Providers
Version: 5.6.0
Hardware: Unspecified
OS: Unspecified
high
medium
Target Milestone: GA
: 5.6.0
Assignee: Marek Aufart
QA Contact: Ola Pavlenko
URL:
Whiteboard: openstack:provider
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-04-20 09:10 UTC by Ronnie Rasouli
Modified: 2017-08-30 03:49 UTC (History)
6 users (show)

Fixed In Version: 5.6.0.6
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-06-29 15:51:26 UTC
Category: ---
Cloudforms Team: ---
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
Error message after adding bad key (57.16 KB, image/png)
2016-04-20 09:10 UTC, Ronnie Rasouli
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2016:1348 0 normal SHIPPED_LIVE CFME 5.6.0 bug fixes and enhancement update 2016-06-29 18:50:04 UTC

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


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