Debugging noVNC Problem (Error 1006/111)
I'm running a OpenStack Kilo on VMware VMs, everything goes well except online console. (I was following the Getting Started guide on OpenStack website)
The console shows Starting VNC handshake
and then Failed to connect to server (code: 1006)
If any further information is needed, please comment! (included, nova.conf for both compute and controller, network information, and novncproxy log)
My network configuration:
* Controller (controller)
> 2 NIC
- Management
* 172.16.135.131
- External
* 172.16.155.150
* Compute (compute1)
> 2 NIC
- Management
* 172.16.135.133
- Tunnel
- 192.168.38.20
* Compute (compute2)
> 2 NIC
- Management
* 172.16.135.137
- Tunnel
* 192.168.38.21
DNS Settings
openstack.local maps to 172.16.155.150
controller.openstack.local maps to 172.16.135.131
Here's my configuration file on the controller node:
> cat /etc/nova/nova.conf
[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
auth_strategy = keystone
my_ip = 172.16.135.131
vncserver_listen = 172.16.135.131
vncserver_proxyclient_address = 172.16.135.131
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:PASSWORD@controller.openstack.local/nova
[oslo_messaging_rabbit]
rabbit_host = controller.openstack.local
rabbit_userid = openstack
rabbit_password = PASSWORD
[oslo_concurrency]
lock_path = /var/lock/nova
[keystone_authtoken]
auth_uri = http://controller.openstack.local:5000
auth_url = http://controller.openstack.local:35357
auth_plugin = password
project_domain_id = default
user_domain_id = default
project_name = service
username = nova
password = PASSWORD
[glance]
host = controller.openstack.local
[neutron]
service_metadata_proxy = True
metadata_proxy_shared_secret = PASSWORD
url = http://controller.openstack.local:9696
auth_strategy = keystone
admin_auth_url = http://controller.openstack.local:35357/v2.0
admin_tenant_name = service
admin_username = neutron
admin_password = PASSWORD
And this is the configuration file on each of the compute node:
> cat /etc/nova/nova.conf
[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
auth_strategy = keystone
my_ip = 172.16.135.137
vnc_enabled = True
vncserver_listen = 0.0.0.0
vncserver_proxyclient_address = 172.16.135.131
novncproxy_base_url = http://openstack.local:6080/vnc_auto.html
# verbose = True
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
[oslo_messaging_rabbit]
rabbit_host = controller.openstack.local
rabbit_userid = openstack
rabbit_password = PASSWORD
[keystone_authtoken]
auth_uri = http://controller.openstack.local:5000
auth_url = http://controller.openstack.local:35357
auth_plugin = password
project_domain_id = default
user_domain_id = default
project_name = service
username = nova
password = PASSWORD
[glance]
host = controller.openstack.local
[oslo_concurrency]
lock_path = /var/lock/nova
[neutron]
url = http://controller.openstack.local:9696
auth_strategy = keystone
admin_auth_url = http://controller.openstack.local:35357/v2.0
admin_tenant_name = service
admin_username = neutron
admin_password = PASSWORD
Logs on controller
ConsoleAuth
> tail nova-consoleauth.log
2015-05-13 01:56:23.577 2000 INFO oslo_messaging._drivers.impl_rabbit [req-5e0aabb6-6582-47c0-9e06-5c19489412b5 84ef4aea3bea495bb37588a22d3f3684 e20b13df269146daaa14395b570f04f8 - - -] Connecting to AMQP server on controller.openstack.local:5672
2015-05-13 01:56:23.608 ...