Horizon throws a generic error when failing to import a public key
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:/
description: | updated |
Changed in horizon: | |
assignee: | nobody → Thomas Orozco (thomis) |
status: | New → In Progress |
importance: | Undecided → Low |
Changed in horizon: | |
assignee: | Thomas Orozco (torozco) → nobody |
status: | In Progress → Confirmed |
Changed in horizon: | |
assignee: | nobody → Sunkara Ramya Sree (ramyasunkara) |
Changed in horizon: | |
assignee: | Sunkara Ramya Sree (ramyasunkara) → Monika (970954-monika) |
Unassigning due to inactivity