Unable to delete keypairs with consecutive underscores in their names

Bug #1415209 reported by Michael McCune
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Dashboard (Horizon)
New
Low
Unassigned

Bug Description

According to this nova source[1], keypair names can have any combinations of numbers, letters, spaces, hyphens, and underscores. When attempting to delete keypairs with consecutive underscores in their names the keypairs are not deleted and occasionally an info popup is displayed.

steps to reproduce:

test 1
1. create a keypair with the name "__a"
2. delete the keypair with the button on it's line

result is an info box with the text "Please select a row before taking that action."

test 2
1. create a keypair with the name "a__"
2. delete the keypair with the button on it's line

result is no change in the list.

This only appears to be an issue when the name has multiple consecutive underscores. This appears to only happen through the dashboard as these keypairs can be deleted by name from the `nova` cli tool.

If the keypairs are selected using the checkboxes and deleted en masse using the global delete button then they are successfully deleted.

[1]: https://github.com/openstack/nova/blob/master/nova/compute/api.py#L3690

description: updated
description: updated
Changed in horizon:
assignee: nobody → lilly (lilly-spandanabarukula)
Revision history for this message
lilly (lilly-spandanabarukula) wrote :

Hello Michael,

I have reproduced the bug and i am also facing the same issue in two scenerios, am debugging it.

Thanks & Regards,
Lilly

summary: - Unable to delete keypairs with consecutive underscores characters in
- their names
+ Unable to delete keypairs with consecutive underscores in their names
Changed in horizon:
status: New → Confirmed
importance: Undecided → Low
Changed in horizon:
status: Confirmed → In Progress
Akihiro Motoki (amotoki)
Changed in horizon:
status: In Progress → Confirmed
assignee: lilly (lilly-spandanabarukula) → nobody
Revision history for this message
Vishal Manchanda (vishalmanchanda) wrote :

I have tried to reproduce this bug on the master branch but not succeeded.
I have created keypairs start with the name "__a/a__" and deleted the keypair with the button on its line.

Changed in horizon:
status: Confirmed → Incomplete
Revision history for this message
Akihiro Motoki (amotoki) wrote :

Vishal, It was reported in 2015 and the Angular panel was implemented at 2017.
You need to try the Django-based implementation to reproduce this.
IIRC, in the Django-based table implementation, "double underscores" is handled specially, so I guess this bug is valid.

Changed in horizon:
status: Incomplete → New
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.