Ask Your Question
0

novnc token invalid on first attempt, but valid on second

asked 2012-12-11 18:04:39 -0500

jesse-pretorius gravatar image

When I use ‘nova get-vnc-console test3 novnc’ to create the URL including the token for novnc access to an instance console, the novnc proxy can't connect on the first attempt. When refreshing the browser using the same URL/token it works.

In examining the logs I see that nova-consoleauth checks the token on the first attempt via rabbitmq, but I don't understand why it doesn't complete the validation properly on the first round.

Can anyone point me to a way to make this work properly the first time around using Ubuntu Precise, ideally using the standard packages? Alternatively what modifications are required to make it work?

Environment: Ubuntu Precise, Openstack Essex, multi-host

edit retag flag offensive close merge delete

3 answers

Sort by » oldest newest most voted
0

answered 2012-12-11 18:25:44 -0500

vishvananda gravatar image

Are you running more than one copy of nova-consoleauth? This will cause intermittent failures. You can get around it by only running one copy or using a memcached server to share tokens. You will need to specify the host/port of your server in memcached_servers config opt.

Vish

On Dec 11, 2012, at 10:06 AM, Jesse Pretorius question216534@answers.launchpad.net wrote:

New question #216534 on OpenStack Compute (nova): https://answers.launchpad.net/nova/+q...

When I use ‘nova get-vnc-console test3 novnc’ to create the URL including the token for novnc access to an instance console, the novnc proxy can't connect on the first attempt. When refreshing the browser using the same URL/token it works.

In examining the logs I see that nova-consoleauth checks the token on the first attempt via rabbitmq, but I don't understand why it doesn't complete the validation properly on the first round.

Can anyone point me to a way to make this work properly the first time around using Ubuntu Precise, ideally using the standard packages? Alternatively what modifications are required to make it work?

Environment: Ubuntu Precise, Openstack Essex, multi-host


You received this question notification because you are a member of Nova Core, which is an answer contact for OpenStack Compute (nova).

edit flag offensive delete link more
0

answered 2012-12-11 18:35:37 -0500

jesse-pretorius gravatar image

For the moment, during this testing, I'm only running one copy of nova-consoleauth. I will eventually want to run more, but that'll be something I work on once this is working.

edit flag offensive delete link more
0

answered 2012-12-12 10:22:48 -0500

jesse-pretorius gravatar image

Thanks Vish Ishaya, that solved my question.

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: 2012-12-11 18:04:39 -0500

Seen: 111 times

Last updated: Dec 12 '12