novnc token invalid on first attempt, but valid on second
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
Question information
- Language:
- English Edit question
- Status:
- Solved
- Assignee:
- No assignee Edit question
- Solved by:
- Vish Ishaya
- Solved:
- 2012-12-12
- Last query:
- 2012-12-12
- Last reply:
- 2012-12-11
|
#1 |
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 <email address hidden> wrote:
> New question #216534 on OpenStack Compute (nova):
> https:/
>
> 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).
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.
Thanks Vish Ishaya, that solved my question.