Ask Your Question
0

Websocketproxy.py Invalid Token

asked 2015-04-13 16:28:10 -0600

nixman gravatar image

Hello

i have :

1 controller
1 compute 
1neutron 
The controller has nova-consoleauth and nova-novncproxy services running and compute the nova-compute. On controller :
[DEFAULT]
verbose = True
rpc_backend = rabbit
rabbit_host = 172.16.0.10
rabbit_password = secret
auth_strategy = keystone
my_ip = 172.16.0.10
vncserver_listen = 172.16.0.10
vncserver_proxyclient_address = 172.16.0.10
network_api_class = nova.network.neutronv2.api.API
security_group_api = neutron
auto_assign_floating_ip=True
linuxnet_interface_driver = nova.network.linux_net.LinuxOVSInterfaceDriver
libvirt_vif_driver=nova.virt.libvirt.vif.LibvirtGenericVIFDriver
firewall_driver = nova.virt.firewall.NoopFirewallDriver
start_guests_on_host_boot=true
resume_guests_state_on_host_boot=true
novncproxy_base_url = http://172.16.0.10:6080/vnc_auto.html
novncproxy_host=0.0.0.0
novncproxy_port=6080
vif_plugging_is_fatal = False
vif_plugging_timeout = 0
compute_manager=nova.compute.manager.ComputeManager
connection_type=libvirt
compute_driver=libvirt.LibvirtDriver
libvirt_type=kvm
libvirt_inject_key=false
logging_context_format_string = %(asctime)s.%(msecs)03d %(levelname)s %(name)s [%(request_id)s %(user_name)s %(project_name)s] %(instance)s%(message)s
[baremetal]
[cells]
[cinder]
[conductor]
[ephemeral_storage_encryption]
[glance]
host = 172.16.0.10
[hyperv]
[image_file_url]
[ironic]
[keymgr]
[keystone_authtoken]
auth_uri = http://172.16.0.10:5000/v2.0
identity_uri = http://172.16.0.10:35357
admin_tenant_name = service
admin_user = nova
admin_password = secret
[libvirt]
[matchmaker_redis]
[matchmaker_ring]
[metrics]
[neutron]
url = http://172.16.0.10:9696
auth_strategy = keystone
admin_auth_url = http://172.16.0.10:35357/v2.0
admin_tenant_name = service
admin_username = neutron
admin_password = secret
service_metadata_proxy=True
metadata_proxy_shared_secret= secret
[osapi_v3]
[rdp]
[serial_console]
[spice]
[ssl]
[trusted_computing]
[upgrade_levels]
[vmware]
[xenserver]
[zookeeper]
[database]
connection = mysql://nova:secret@172.16.0.10/nova 
on Compute:
[DEFAULT]
verbose = True
rpc_backend = rabbit
rabbit_host = 172.16.0.10
rabbit_password = secret
auth_strategy = keystone
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
vnc_enabled = True
vncserver_listen = 0.0.0.0
vncserver_proxyclient_address = 172.16.0.12
novncproxy_base_url = http://172.16.0.10:6080/vnc_auto.html
my_ip = 172.16.0.12
[baremetal]
[cells]
[cinder]
[conductor]
[ephemeral_storage_encryption]
[glance]
host = 172.16.0.10
[hyperv]
[image_file_url]
[ironic]
[keymgr]
[keystone_authtoken]
auth_uri = http://172.16.0.10:5000/v2.0
identity_uri = http://172.16.0.10:35357
admin_tenant_name = service
admin_user = nova
admin_password = secret
[libvirt]
virt_type=kvm
[matchmaker_redis]
[matchmaker_ring]
[metrics]
[neutron]
url = http://172.16.0.10:9696
auth_strategy = keystone
admin_auth_url = http://172.16.0.10:35357/v2.0
admin_tenant_name = service
admin_username = neutron
admin_password = secret
[osapi_v3]
[rdp]
[serial_console]
[spice]
[ssl]
[trusted_computing]
[upgrade_levels]
[vmware]
[xenserver]
[zookeeper]

Thanks to help please

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2015-04-13 16:32:52 -0600

nixman gravatar image

My log

[root@controller ~]# nova-novncproxy --config-file /etc/nova/nova.conf
WARNING: no 'numpy' module, HyBi protocol will be slower
WebSocket server settings:
  - Listen on 0.0.0.0:6080
  - Flash security policy server
  - Web server. Web root: /usr/share/novnc
  - No SSL/TLS support (no cert file)
  - proxying from 0.0.0.0:6080 to ignore:ignore

2015-04-13 21:31:34.667 32363 INFO nova.console.websocketproxy [-] 172.16.0.1: "GET /vnc_auto.html?token=d110b7fb-b6f1-417a-9039-2699549a49c5&title=test62-fd34071c-b045-421a-b40e-276fcd91678a(fd34071c-b045-421a-b40e-276fcd91678a) HTTP/1.1" 200 -
2015-04-13 21:31:35.283 32364 INFO nova.console.websocketproxy [-] 172.16.0.1: Plain non-SSL (ws://) WebSocket connection
2015-04-13 21:31:35.284 32364 INFO nova.console.websocketproxy [-] 172.16.0.1: Version hybi-13, base64: 'False'
2015-04-13 21:31:35.284 32364 INFO nova.console.websocketproxy [-] 172.16.0.1: Path: '/websockify'
2015-04-13 21:31:35.286 INFO oslo.messaging._drivers.impl_rabbit [req-8d7474f1-fd20-4d0c-b3fe-99399c0ec8a6 None None] Connecting to AMQP server on 172.16.0.10:5672
2015-04-13 21:31:35.302 INFO oslo.messaging._drivers.impl_rabbit [req-8d7474f1-fd20-4d0c-b3fe-99399c0ec8a6 None None] Connected to AMQP server on 172.16.0.10:5672
2015-04-13 21:31:35.304 INFO oslo.messaging._drivers.impl_rabbit [req-8d7474f1-fd20-4d0c-b3fe-99399c0ec8a6 None None] Connecting to AMQP server on 172.16.0.10:5672
2015-04-13 21:31:35.313 INFO oslo.messaging._drivers.impl_rabbit [req-8d7474f1-fd20-4d0c-b3fe-99399c0ec8a6 None None] Connected to AMQP server on 172.16.0.10:5672
2015-04-13 21:31:35.375 INFO nova.console.websocketproxy [req-8d7474f1-fd20-4d0c-b3fe-99399c0ec8a6 None None] connect info: {u'instance_uuid': u'fd34071c-b045-421a-b40e-276fcd91678a', u'internal_access_path': None, u'last_activity_at': 1428960694.321053, u'console_type': u'novnc', u'host': u'172.16.0.12', u'token': u'd110b7fb-b6f1-417a-9039-2699549a49c5', u'port': u'5902'}
2015-04-13 21:31:35.375 INFO nova.console.websocketproxy [req-8d7474f1-fd20-4d0c-b3fe-99399c0ec8a6 None None] connecting to: 172.16.0.12:5902
2015-04-13 21:31:35.380 INFO nova.console.websocketproxy [req-8d7474f1-fd20-4d0c-b3fe-99399c0ec8a6 None None] handler exception: [Errno 113] EHOSTUNREACH
2015-04-13 21:31:35.380 INFO nova.console.websocketproxy [req-8d7474f1-fd20-4d0c-b3fe-99399c0ec8a6 None None] Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/websockify/websocket.py", line 711, in top_new_client
    self.new_client()
  File "/usr/lib/python2.7/site-packages/nova/console/websocketproxy.py", line 132, in new_client
    self.new_websocket_client()
  File "/usr/lib/python2.7/site-packages/nova/console/websocketproxy.py", line 72, in new_websocket_client
    tsock = self.socket(host, port, connect=True)
  File "/usr/lib/python2.7/site-packages/websockify/websocket.py", line 188, in socket
    sock.connect(addrs[0][4])
  File "/usr/lib/python2.7/site-packages/eventlet/greenio.py", line 227, in connect
    socket_checkerr(fd)
  File "/usr/lib/python2.7/site-packages/eventlet/greenio.py", line 43, in socket_checkerr
    raise socket.error(err, errno.errorcode[err])
error: [Errno 113] EHOSTUNREACH 
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: 2015-04-13 16:28:10 -0600

Seen: 959 times

Last updated: Apr 13 '15