Ask Your Question
0

devstack duplicate keypair problem

asked 2013-02-19 20:51:14 -0500

edbergavera gravatar image

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: [ , ]. Request Method: POST Request URL: http://192.168.1.190/project/access_and_security/ (http://192.168.1.190/project/access_a...) 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 (https://www.dropbox.com/s/8b9h1ucecs8...)

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

Eduardo B.

edit retag flag offensive close merge delete

10 answers

Sort by ยป oldest newest most voted
0

answered 2013-02-20 01:44:44 -0500

zzs gravatar image

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

edit flag offensive delete link more
0

answered 2013-02-20 09:40:45 -0500

edbergavera gravatar image

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

edit flag offensive delete link more
0

answered 2013-02-20 18:33:58 -0500

zzs gravatar image

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.

edit flag offensive delete link more
0

answered 2013-02-20 00:00:18 -0500

edbergavera gravatar image

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

edit flag offensive delete link more
0

answered 2013-02-19 21:19:26 -0500

zzs gravatar image

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

edit flag offensive delete link more
0

answered 2013-02-19 21:50:27 -0500

edbergavera gravatar image

@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.

edit flag offensive delete link more
0

answered 2013-02-19 22:10:09 -0500

edbergavera gravatar image

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.

edit flag offensive delete link more
0

answered 2013-02-19 22:12:50 -0500

zzs gravatar image

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.

edit flag offensive delete link more
0

answered 2013-02-19 22:22:26 -0500

edbergavera gravatar image

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.

edit flag offensive delete link more
0

answered 2013-02-19 23:04:25 -0500

zzs gravatar image

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

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2013-02-19 20:51:14 -0500

Seen: 139 times

Last updated: Feb 20 '13