Underscores not allowed when creating new key pair

Bug #1743887 reported by Ola Khalifa
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Dashboard (Horizon)
Fix Released
Low
Marek Lyčka

Bug Description

When creating a new key pair horizon doesn't allow underscores in key pair name. However, according to the nova api this is allowed.

Nova api: https://github.com/openstack/nova/blob/master/nova/compute/api.py#L3690

Revision history for this message
Akihiro Motoki (amotoki) wrote :

The link of nova/compute/api.py is out-of-date.
I think the bug reporter would like to mention https://github.com/openstack/nova/blob/67808db2a136de3685421a2cc857c1ebfe86b220/nova/compute/api.py#L5207-L5212

Changed in horizon:
status: New → Confirmed
importance: Undecided → Low
tags: added: low-hanging-fruit
Changed in horizon:
assignee: nobody → venkatamahesh (venkatamaheshkotha)
Revision history for this message
Marek Lyčka (mareklycka) wrote :

Hi,

is this currently being worked on or can I take it over?

Thanks.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to horizon (master)

Fix proposed to branch: master
Review: https://review.openstack.org/598079

Changed in horizon:
assignee: venkatamahesh (venkatamaheshkotha) → Marek Lyčka (mareklycka)
status: Confirmed → In Progress
Revision history for this message
Marek Lyčka (mareklycka) wrote :

Since no one seemed interested, I took over the task.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to horizon (master)

Reviewed: https://review.openstack.org/598079
Committed: https://git.openstack.org/cgit/openstack/horizon/commit/?id=f269ab3b22eb2500d8d93d613c631b08865b4cc1
Submitter: Zuul
Branch: master

commit f269ab3b22eb2500d8d93d613c631b08865b4cc1
Author: Marek <email address hidden>
Date: Thu Aug 30 10:03:47 2018 +0200

    Fixes input validation in angular kepyairs.

    Modifies the regexp used by the angular form validation
    to match the allowed characters in Nova API as well
    as the description thereof.

    Change-Id: I5bb1c1cc531565416efbce16994306cb9ad79000
    Closes-bug: #1743887

Changed in horizon:
status: In Progress → Fix Released
Akihiro Motoki (amotoki)
tags: added: rocky-backport-potential
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/horizon 15.0.0.0b1

This issue was fixed in the openstack/horizon 15.0.0.0b1 development milestone.

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.