Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Failed to connect to server (code: 1006) in openstack newton

Hi All,

i can able to launch the instance also i could able to take the VM remotely, but when i was trying to open the console it's throwing "Failed to connect to server (code: 1006)" error on openstack newton. Nova configuration details are below,

controller ""/etc/nova/nova.conf""

[DEFAULT] dhcpbridge_flagfile=/etc/nova/nova.conf dhcpbridge=/usr/bin/nova-dhcpbridge log-dir=/var/log/nova state_path=/var/lib/nova force_dhcp_release=True verbose=True ec2_private_dns_show_ip=True enabled_apis=osapi_compute,metadata transport_url = rabbit://openstack:123ggg@controller auth_strategy = keystone my_ip = 10.0.0.11 use_neutron = True firewall_driver = nova.virt.firewall.NoopFirewallDriver vnc_enabled= True

[database]

connection=sqlite:////var/lib/nova/nova.sqlite

connection = mysql+pymysql://nova:aaa@controller/nova

[api_database]

connection=sqlite:////var/lib/nova/nova.sqlite

connection = mysql+pymysql://nova:aaa@controller/nova_api

[oslo_concurrency] lock_path=/var/lock/nova

[libvirt] use_virtio_for_bridges=True

[wsgi] api_paste_config=/etc/nova/api-paste.ini

[keystone_authtoken] auth_uri = http://controller:5000 auth_url = http://controller:35357 memcached_servers = controller:11211 auth_type = password project_domain_name = Default user_domain_name = Default project_name = service username = nova password = 123aaa

[vnc] vncserver_listen = 10.0.0.11 vncserver_proxyclient_address = 10.0.0.11 vnc_enabled=true

[glance] api_servers = http://controller:9292

[oslo_concurrency] lock_path = /var/lib/nova/tmp

[libvirt] use_virtio_for_bridges=True

[wsgi] api_paste_config=/etc/nova/api-paste.ini

[keystone_authtoken] auth_uri = http://controller:5000 auth_url = http://controller:35357 memcached_servers = controller:11211 auth_type = password project_domain_name = Default user_domain_name = Default project_name = service username = nova password = 123aaa

[vnc] vncserver_listen = 10.0.0.11 vncserver_proxyclient_address = 10.0.0.11 vnc_enabled=true

[glance] api_servers = http://controller:9292

[oslo_concurrency] lock_path = /var/lib/nova/tmp

[neutron] url = http://controller:9696 auth_url = http://controller:35357 auth_type = password project_domain_name = Default user_domain_name = Default region_name = RegionOne project_name = service username = neutron password = 123aaa service_metadata_proxy = True metadata_proxy_shared_secret = 123aaa

[cinder] os_region_name = RegionOne

compute: "/etc/nova/nova.conf"

[DEFAULT] dhcpbridge_flagfile=/etc/nova/nova.conf dhcpbridge=/usr/bin/nova-dhcpbridge log-dir=/var/log/nova state_path=/var/lib/nova force_dhcp_release=True verbose=True ec2_private_dns_show_ip=True enabled_apis=osapi_compute,metadata transport_url = rabbit://openstack:123aaa@controller auth_strategy = keystone my_ip = 10.0.0.12 use_neutron = True firewall_driver = nova.virt.firewall.NoopFirewallDriver vnc_enabled=True

[database] connection=sqlite:////var/lib/nova/nova.sqlite

[api_database] connection=sqlite:////var/lib/nova/nova.sqlite

[oslo_concurrency] lock_path=/var/lock/nova

[libvirt] use_virtio_for_bridges=True

[wsgi] api_paste_config=/etc/nova/api-paste.ini

[keystone_authtoken] auth_uri = http://controller:5000 auth_url = http://controller:35357 memcached_servers = controller:11211 auth_type = password project_domain_name = Default user_domain_name = Default project_name = service username = nova password = 123aaa

[vnc] novncproxy_port=6080 vncserver_listen = 0.0.0.0 vncserver_proxyclient_address = 10.0.0.12 novncproxy_base_url = http://controller:6080/vnc_auto.html

[glance] api_servers = http://controller:9292

[oslo_concurrency] lock_path = /var/lib/nova/tmp

[neutron] url = http://controller:9696 auth_url = http://controller:35357 auth_type = password project_domain_name = Default user_domain_name = Default region_name = RegionOne project_name = service username = neutron password = 123aaa

Can you please check and help me to resolve this VNC issue.

Logs are below,

compute log less /var/log/nova/nova-compute.log 2017-07-28 11:39:31.498 1805 WARNING nova.scheduler.client.report [req-35149c28-54c4-4485-8c12-3c4c974cc421 - - - - -] Unable to refresh my resource provider record 2017-07-28 11:39:31.498 1805 INFO nova.compute.resource_tracker [req-35149c28-54c4-4485-8c12-3c4c974cc421 - - - - -] Compute_service record updated for compute1:compute1 2017-07-28 11:40:33.319 1805 INFO nova.compute.resource_tracker [req-35149c28-54c4-4485-8c12-3c4c974cc421 - - - - -] Auditing locally available compute resources for node compute1 2017-07-28 11:40:33.448 1805 WARNING nova.scheduler.client.report [req-35149c28-54c4-4485-8c12-3c4c974cc421 - - - - -] Unable to refresh my resource provider record 2017-07-28 11:40:33.490 1805 INFO nova.compute.resource_tracker [req-35149c28-54c4-4485-8c12-3c4c974cc421 - - - - -] Total usable vcpus: 8, total allocated vcpus: 4 2017-07-28 11:40:33.490 1805 INFO nova.compute.resource_tracker [req-35149c28-54c4-4485-8c12-3c4c974cc421 - - - - -] Final resource view: name=compute1 phys_ram=32080MB used_ram=8704MB phys_disk=410GB used_disk=100GB total_vcpus=8 used_vcpus=4 pci_stats=[] 2017-07-28 11:40:33.507 1805 WARNING nova.scheduler.client.report [req-35149c28-54c4-4485-8c12-3c4c974cc421 - - - - -] No authentication information found for placement API. Placement is optional in Newton, but required in Ocata. Please enable the placement service before upgrading. 2017-07-28 11:40:33.507 1805 WARNING nova.scheduler.client.report [req-35149c28-54c4-4485-8c12-3c4c974cc421 - - - - -] Unable to refresh my resource provider record 2017-07-28 11:40:33.508 1805 INFO nova.compute.resource_tracker [req-35149c28-54c4-4485-8c12-3c4c974cc421 - - - - -] Compute_service record updated for compute1:compute1

controller log less /var/log/nova/nova-novncproxy.log

2017-07-28 11:23:02.147 20743 INFO nova.console.websocketproxy [-] 10.0.0.12: ignoring socket not ready 2017-07-28 11:25:32.784 2640 INFO nova.console.websocketproxy [-] In exit 2017-07-28 11:26:44.316 2905 WARNING oslo_reports.guru_meditation_report [-] Guru meditation now registers SIGUSR1 and SIGUSR2 by default for backward compatibility. SIGUSR1 will no longer be registered in a future release, so please use SIGUSR2 to generate reports. 2017-07-28 11:26:44.317 2905 INFO nova.console.websocketproxy [-] WebSocket server settings: 2017-07-28 11:26:44.317 2905 INFO nova.console.websocketproxy [-] - Listen on 0.0.0.0:6080 2017-07-28 11:26:44.318 2905 INFO nova.console.websocketproxy [-] - Flash security policy server 2017-07-28 11:26:44.318 2905 INFO nova.console.websocketproxy [-] - Web server (no directory listings). Web root: /usr/share/novnc 2017-07-28 11:26:44.319 2905 INFO nova.console.websocketproxy [-] - No SSL/TLS support (no cert file) 2017-07-28 11:26:44.319 2905 INFO nova.console.websocketproxy [-] - proxying from 0.0.0.0:6080 to None:None

please help me to resolve this issue.