devstack duplicate keypair problem

Asked by Eduardo Bergavera

Hi Devstack team,

Just testing devstack on Ubuntu 12.04 server Virtualbox environment. That after creating keypair the dashboard becomes unresponsive momentarily. After reloading the page and creating the keypair for the second time, there appears a exact duplicate of the keypairs. I attempted to delete the keypair but I was greeted by this error instead:

ValueError at /project/access_and_security/
Multiple matches were returned for that id: [<Keypair: test1>, <Keypair: test1>].
Request Method: POST
Request URL: http://192.168.1.190/project/access_and_security/
Django Version: 1.4.3
Exception Type: ValueError
Exception Value:
Multiple matches were returned for that id: [<Keypair: test1>, <Keypair: test1>].
Exception Location: /opt/stack/horizon/openstack_dashboard/wsgi/../../horizon/tables/base.py in get_object_by_id, line 1032
Python Executable: /usr/bin/python
Python Version: 2.7.3
Python Path:
['/opt/stack/horizon/openstack_dashboard/wsgi/../..',
 '/opt/stack/python-keystoneclient',
 '/opt/stack/python-novaclient',
 '/opt/stack/python-openstackclient',
 '/opt/stack/keystone',
 '/opt/stack/glance',
 '/opt/stack/python-glanceclient/setuptools_git-1.0b1-py2.7.egg',
 '/opt/stack/python-glanceclient',
 '/opt/stack/nova',
 '/usr/local/lib/python2.7/dist-packages/requests-0.14.2-py2.7.egg',
 '/opt/stack/horizon',
 '/opt/stack/cinder',
 '/opt/stack/python-cinderclient',
 '/opt/stack/tempest',
 '/usr/local/lib/python2.7/dist-packages',
 '/usr/lib/python2.7',
 '/usr/lib/python2.7/plat-linux2',
 '/usr/lib/python2.7/lib-tk',
 '/usr/lib/python2.7/lib-old',
 '/usr/lib/python2.7/lib-dynload',
 '/usr/lib/python2.7/dist-packages',
 '/usr/lib/python2.7/dist-packages/PIL',
 '/usr/lib/pymodules/python2.7',
 '/opt/stack/horizon/openstack_dashboard']
Server time: Tue, 19 Feb 2013 11:41:59 +0000

Access & Security screenshot: https://www.dropbox.com/s/8b9h1ucecs8w2yg/Access%20%26%20Security%20-%20OpenStack%20Dashboard.png

Could the problem be related to reloading the dashboard? I haven't tried yet removing the keypair on the command line.

Eduardo B.

Question information

Language:
English Edit question
Status:
Answered
For:
devstack Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Jason (zzs) said :
#1

please try to run the ./unstack.sh then run stack.sh again.

Revision history for this message
Eduardo Bergavera (edbergavera) said :
#2

@Jason,

nova keypair-list command shows this:

+-------+------------------------------------------------------------------+
| Name | Fingerprint |
+-------+------------------------------------------------------------------+
| test1 | 9a:b1:d5:ce:42:5c:d4:75:5c:0a:73:80:ee:f0:dd:3e |
| test1 | c2:f2:f8:dd:3b:04:0a:48:18:26:86:4c:d0:68:57:63 |
+-------+------------------------------------------------------------------+

It seems there is bug on horizon dashboard getting the wrong keys or something else.

Revision history for this message
Eduardo Bergavera (edbergavera) said :
#3

I was able to delete the keypairs thru nova keypair-delete command but not on the dashboard. I suspect the the problem arises when reloading the stalled page during keypair generation process. I am now able to create keypair from the dashboard with no problem.

Revision history for this message
Jason (zzs) said :
#4

It is possible that this is a bug but did you see the key pair after you reloaded the page before you create the second one.

Revision history for this message
Eduardo Bergavera (edbergavera) said :
#5

That's the problem. I didn't see a keypair after reloading the page but only after reload does the two identical keypair appears on the dashboard. The nova cli shows the same name of 'test1' but with different fingerprints.

Revision history for this message
Jason (zzs) said :
#6

The fingerprints of two key on dropbox image is same, are you sure the fingerprint is same?

Revision history for this message
Eduardo Bergavera (edbergavera) said :
#7

Yes, the dashboard shows two identical fingerprints while on nova kepair-list command, the fingerprints are different (pls. refer to #2 post).

Revision history for this message
Jason (zzs) said :
#8

Can you reproduce this problem, if so, you can report the bug of the horizon.

Revision history for this message
Eduardo Bergavera (edbergavera) said :
#9

Do you mean, installing from scratch like a fresh install of Ubuntu 12.04 server or thru unstack.sh?

Revision history for this message
Jason (zzs) said :
#10

you do not need to reinstall Ubuntu, only the ./unstack.sh is enough, then redo what you did before to confirm if you can reproduce it again.

Can you help with this problem?

Provide an answer of your own, or ask Eduardo Bergavera for more information if necessary.

To post a message you must log in.