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

asked 2017-07-28 01:16:48 -0600

Arulraj Anto gravatar image

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 ... (more)

edit retag flag offensive close merge delete