Ask Your Question
0

nova.console.websocketproxy handler eception : Invalid token

asked 2015-03-21 02:57:34 -0500

Pauravi gravatar image

updated 2015-04-02 03:17:30 -0500

I am installing Openstack Juno using UBUNTU .

Whenever I launch an instance in the console , I get this error

Failed to connect to server(1006)

I checked the log /var/log/upstart/nov-novncproxy.log

I get these detail nova.console.websocketproxy handler eception : Invalid token

How do I solve this?

nova.conf on compute node

[DEFAULT] 
dhcpbridge_flagfile=/etc/nova/nova.conf 
dhcpbridge=/usr/bin/nova-dhcpbridge 
logdir=/var/log/nova
 state_path=/var/lib/nova 
lock_path=/var/lock/nova
 force_dhcp_release=True 
libvirt_use_virtio_for_bridges=True
 verbose=True 
ec2_private_dns_show_ip=True 
api_paste_config=/etc/nova/api-paste.ini 
enabled_apis=ec2,osapi_compute,metadata 
rpc_backend = rabbit
 rabbit_host = controller 
rabbit_password = controller_pass 
auth_strategy = keystone 
my_ip = 10.10.10.11
 vnc_enabled = True
 vncserver_listen = 0.0.0.0 
vncserver_proxyclient_address = 10.10.10.11 
novncproxy_base_url = http://controller:6080/vnc_auto.html

nova.conf file on controller

[DEFAULT) 
dhcpbridge_flagfile=/etc/nova/nova.conf
 dhcpbridge=/usr/bin/nova-dhcpbridge 
logdir=/var/log/nova 
state_path=/var/lib/nova 
lock_path=/var/lock/nova 
force_dhcp_release=True 
libvirt_use_virtio_for_bridges=True
 verbose=True 
ec2_private_dns_show_ip=True 
api_paste_config=/etc/nova/api-paste.ini 
enabled_api=ec2,osapi_compute,metadata 
rpc_backend = rabbit 
rabbit_host = controller 
rabbit_password = controller_pass 
my_ip = 10.10.10.10
 vncserver_listen = 10.10.10.10 
vncserver_proxyclient_address = 10.10.10.10 
network_api_class = nova.network.neutronv2.api.API 
security_group_api = neutron
 linuxnet_interface_driver = nova.network.linux_net.LinuxOVSInterfaceDriver 
firewall_driver = nova.virt.firewall.NoopFirewallDriver

[database] connection = mysql://nova:openstack@controller/nova

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted
0

answered 2015-04-13 16:07:47 -0500

nixman gravatar image

Hello

Do you solve the problem ? i have same issue.

edit flag offensive delete link more
0

answered 2015-03-21 15:11:38 -0500

It seems that you dont have nova-consoleauth running. That service needs to be running to provide token to novnc proxy.

edit flag offensive delete link more

Comments

it is running! i restarted all sevices on controller node

Pauravi gravatar imagePauravi ( 2015-03-24 12:33:27 -0500 )edit

paste the logs from nova-consoleauth.

sfcloudman gravatar imagesfcloudman ( 2015-03-24 15:03:37 -0500 )edit

Operational Error cant connect to mysql server on 'controller' (111)

this is the error in nova-consoleauth log

Pauravi gravatar imagePauravi ( 2015-03-25 12:37:10 -0500 )edit

Well then, this is the problem. nova-consoleauth uses nova.conf to get sql connection string. If this is not correct Im not even sure how you are able to spin up VMs since nova uses this string as well. Can you paste your nova.conf?

sfcloudman gravatar imagesfcloudman ( 2015-03-25 13:22:16 -0500 )edit

I dont see a mysql server directive in your conf file. How is your environment working at all?

sfcloudman gravatar imagesfcloudman ( 2015-03-29 20:16:06 -0500 )edit

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

2 followers

Stats

Asked: 2015-03-21 02:57:34 -0500

Seen: 2,309 times

Last updated: Apr 02 '15