Horizon throws a generic error when failing to import a public key

Bug #1270984 reported by Thomas Orozco
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
OpenStack Dashboard (Horizon)
Confirmed
Low
Unassigned

Bug Description

When a user attempts to import a keypair into Horizon, and the import fails, they are faced with a generic error message: "unable to import keypair".

This does not help the user in identifying what they may have done wrong (invalid name, invalid, maybe they even mistakenly pasted a private key in there).

Additionally, this doesn't help the user identify whether they made the mistake (this would be a Bad Request), or whether there's an issue with nova that their administrator should be looking at.

Since the import is done through novaclient, we can get use the error message from Nova when faced with a Bad Request, and fall back to the generic error message in case we received another error.

Here is a proposed fix: https://review.openstack.org/#/c/67334/

Thomas Orozco (torozco)
description: updated
Kieran Spear (kspear)
Changed in horizon:
assignee: nobody → Thomas Orozco (thomis)
status: New → In Progress
importance: Undecided → Low
Timur Sufiev (tsufiev-x)
Changed in horizon:
assignee: Thomas Orozco (torozco) → nobody
status: In Progress → Confirmed
Changed in horizon:
assignee: nobody → Sunkara Ramya Sree (ramyasunkara)
Monika (970954-monika)
Changed in horizon:
assignee: Sunkara Ramya Sree (ramyasunkara) → Monika (970954-monika)
Revision history for this message
Gary W. Smith (gary-w-smith) wrote :

Unassigning due to inactivity

Changed in horizon:
assignee: Monika (970954-monika) → nobody
tags: added: error-reporting keystone
Revision history for this message
Akihiro Motoki (amotoki) wrote :

The import key feature is related to not keystone but nova, so I change the tag.

tags: added: nova
removed: keystone
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.