[openstack-dev] novnc console connection timetout

张扬 w90p710 at gmail.com
Fri Jun 5 02:14:27 UTC 2015


Thanks folks, Its fixed via https://bugs.launchpad.net/mos/+bug/1409661 :-0

2015-06-04 20:29 GMT+08:00 张扬 <w90p710 at gmail.com>:

> Hi Guys,
>
> I am a newbie on openstack, I deployed my first openstack env via Fuel
> 6.0, but unfortunately I always could not access the vm's vnc console, it
> hints the connection time, I also found the following calltrace in
> nova-novncproxy.log,  Could anybody give me a hint on it? I am not sure
> whether its appropriate to send them to the mail list nor not, if not,
> please help me forward it to the right mail list. Thanks in advance! :-).
>
> BTW: I also tried to change the def_con_timeout, but it did not work for me
> The following is about the log information.
>
> controller: nova.conf
>
> root at node-9:~# 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
> iscsi_helper=tgtadm
> libvirt_use_virtio_for_bridges=True
> connection_type=libvirt
> root_helper=sudo nova-rootwrap /etc/nova/rootwrap.conf
> verbose=True
> ec2_private_dns_show_ip=True
> api_paste_config=/etc/nova/api-paste.ini
> volumes_path=/var/lib/nova/volumes
> enabled_apis=ec2,osapi_compute
> flat_interface=eth2.103
> #debug=False
> debug=True
> log_dir=/var/log/nova
> network_manager=nova.network.manager.FlatDHCPManager
> amqp_durable_queues=False
> rabbit_hosts=10.0.21.5:5672
> quota_volumes=100
> notify_api_faults=False
> flat_network_bridge=br100
> resume_guests_state_on_host_boot=True
> memcached_servers=10.0.21.5:11211
>
> scheduler_default_filters=RetryFilter,AvailabilityZoneFilter,RamFilter,CoreFilter,DiskFilter,ComputeFilter,ComputeCapabilitiesFilter,ImagePropertiesFilter,ServerGroupAntiAffinityFilter,ServerGroupAffinityFilter
> rabbit_use_ssl=False
> quota_ram=51200
> notification_driver=messaging
> max_io_ops_per_host=8
> quota_max_injected_file_content_bytes=102400
> s3_listen=0.0.0.0
> quota_driver=nova.quota.NoopQuotaDriver
> glance_api_servers=192.168.1.103:9292
> max_age=0
> quota_security_groups=10
> novncproxy_host=192.168.1.103
> rabbit_userid=nova
> rabbit_ha_queues=True
> rabbit_password=FMskSLdn
> report_interval=10
> scheduler_weight_classes=nova.scheduler.weights.all_weighers
> quota_cores=100
> reservation_expire=86400
> rabbit_virtual_host=/
> force_snat_range=0.0.0.0/0
> image_service=nova.image.glance.GlanceImageService
> use_cow_images=True
> quota_max_injected_files=50
> notify_on_state_change=vm_and_task_state
> scheduler_host_subset_size=30
> novncproxy_port=6080
> ram_allocation_ratio=1.0
> compute_scheduler_driver=nova.scheduler.filter_scheduler.FilterScheduler
> quota_security_group_rules=20
> disk_allocation_ratio=1.0
> quota_max_injected_file_path_bytes=4096
> quota_floating_ips=100
> quota_key_pairs=10
> scheduler_max_attempts=3
> cpu_allocation_ratio=8.0
> multi_host=True
> max_instances_per_host=50
> scheduler_available_filters=nova.scheduler.filters.all_filters
> public_interface=eth1
> service_down_time=60
> syslog_log_facility=LOG_LOCAL6
> quota_gigabytes=1000
> use_syslog_rfc_format=True
> quota_instances=100
> scheduler_host_manager=nova.scheduler.host_manager.HostManager
> notification_topics=notifications
> osapi_compute_listen=0.0.0.0
> ec2_listen=0.0.0.0
> volume_api_class=nova.volume.cinder.API
> service_neutron_metadata_proxy=False
> use_forwarded_for=False
> osapi_volume_listen=0.0.0.0
> metadata_listen=0.0.0.0
> auth_strategy=keystone
> ram_weight_multiplier=1.0
> keystone_ec2_url=http://10.0.21.5:5000/v2.0/ec2tokens
> quota_metadata_items=1024
> osapi_compute_workers=8
> rootwrap_config=/etc/nova/rootwrap.conf
> rpc_backend=nova.openstack.common.rpc.impl_kombu
> fixed_range=10.0.23.0/24
> use_syslog=True
> metadata_workers=8
> dhcp_domain=novalocal
> allow_resize_to_same_host=True
> flat_injected=False
>
> [DATABASE]
> max_pool_size=30
> max_retries=-1
> max_overflow=40
>
> [database]
> idle_timeout=3600
> connection=mysql://nova:LcHgm0PN@127.0.0.1/nova?read_timeout=60
>
> [keystone_authtoken]
> signing_dirname=/tmp/keystone-signing-nova
> signing_dir=/tmp/keystone-signing-nova
> auth_port=35357
> admin_password=FMxM1wqW
> admin_user=nova
> auth_protocol=http
> auth_host=10.0.21.5
> admin_tenant_name=services
> auth_uri=http://10.0.21.5:5000/
>
> [conductor]
> workers=8
>
> ===============================================================
> compute node: nova.conf
>
> root at node-8:~# cat /etc/nova/nova.conf
> [DEFAULT]
> notification_driver=ceilometer.compute.nova_notifier
> notification_driver=nova.openstack.common.notifier.rpc_notifier
> 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
> iscsi_helper=tgtadm
> libvirt_use_virtio_for_bridges=True
> connection_type=libvirt
> root_helper=sudo nova-rootwrap /etc/nova/rootwrap.conf
> verbose=True
> ec2_private_dns_show_ip=True
> api_paste_config=/etc/nova/api-paste.ini
> volumes_path=/var/lib/nova/volumes
> enabled_apis=metadata
> flat_interface=eth2.103
> debug=False
> log_dir=/var/log/nova
> network_manager=nova.network.manager.FlatDHCPManager
> amqp_durable_queues=False
> vncserver_proxyclient_address=10.0.21.4
> rabbit_hosts=10.0.21.5:5672
> notify_api_faults=False
> flat_network_bridge=br100
> memcached_servers=127.0.0.1:11211
> rabbit_use_ssl=False
> notification_driver=
> glance_api_servers=10.0.21.5:9292
> rabbit_userid=nova
> rabbit_ha_queues=True
> rabbit_password=FMskSLdn
> report_interval=10
> vnc_enabled=True
> rabbit_virtual_host=/
> force_snat_range=0.0.0.0/0
> image_service=nova.image.glance.GlanceImageService
> notify_on_state_change=vm_and_task_state
> instance_usage_audit=True
> novncproxy_base_url=http://192.168.1.103:6080/vnc_auto.html
> public_interface=eth1
> service_down_time=60
> syslog_log_facility=LOG_LOCAL6
> vncserver_listen=0.0.0.0
> notification_topics=notifications
> instance_usage_audit_period=hour
> osapi_compute_listen=10.0.21.4
> ec2_listen=10.0.21.4
> volume_api_class=nova.volume.cinder.API
> service_neutron_metadata_proxy=False
> use_forwarded_for=False
> osapi_volume_listen=10.0.21.4
> metadata_listen=0.0.0.0
> auth_strategy=keystone
> compute_driver=libvirt.LibvirtDriver
> osapi_compute_workers=1
> rootwrap_config=/etc/nova/rootwrap.conf
> rpc_backend=nova.openstack.common.rpc.impl_kombu
> fixed_range=10.0.23.0/24
> use_syslog=True
> metadata_workers=8
> dhcp_domain=novalocal
> use_cow_images=True
> compute_scheduler_driver=nova.scheduler.filter_scheduler.FilterScheduler
> metadata_host=10.0.21.4
> cinder_catalog_info=volume:cinder:internalURL
> send_arp_for_ha=True
> multi_host=True
> use_syslog_rfc_format=True
> allow_resize_to_same_host=True
> flat_injected=False
>
> [database]
> idle_timeout=3600
> connection=mysql://nova:LcHgm0PN@10.0.21.5/nova?read_timeout=60
>
> [libvirt]
> disk_cachemodes="network=writeback","block=none"
> cpu_mode=host-model
> virt_type=kvm
>
> live_migration_flag=VIR_MIGRATE_UNDEFINE_SOURCE,VIR_MIGRATE_PEER2PEER,VIR_MIGRATE_LIVE,VIR_MIGRATE_PERSIST_DEST
> rbd_secret_uuid=a5d0dd94-57c4-ae55-ffe0-7e3732a24455
> rbd_user=compute
>
> [keystone_authtoken]
> auth_port=35357
> admin_password=FMxM1wqW
> admin_user=nova
> auth_protocol=http
> auth_host=10.0.21.5
> admin_tenant_name=services
> auth_uri=http://10.0.21.5:5000/
>
> [conductor]
> workers=8
>
> ======================================================
> cat /var/log/nova/nova-novncproxy.log
>
> 2015-06-04 11:48:23.463 4476 DEBUG nova.console.websocketproxy [-]
> exception vmsg /usr/lib/python2.7/dist-packages/websockify/websocket.py:824
> 2015-06-04 11:48:23.463 4476 TRACE nova.console.websocketproxy Traceback
> (most recent call last):
> 2015-06-04 11:48:23.463 4476 TRACE nova.console.websocketproxy   File
> "/usr/lib/python2.7/dist-packages/websockify/websocket.py", line 874, in
> top_new_client
> 2015-06-04 11:48:23.463 4476 TRACE nova.console.websocketproxy     client
> = self.do_handshake(startsock, address)
> 2015-06-04 11:48:23.463 4476 TRACE nova.console.websocketproxy   File
> "/usr/lib/python2.7/dist-packages/websockify/websocket.py", line 809, in
> do_handshake
> 2015-06-04 11:48:23.463 4476 TRACE nova.console.websocketproxy
> self.RequestHandlerClass(retsock, address, self)
> 2015-06-04 11:48:23.463 4476 TRACE nova.console.websocketproxy   File
> "/usr/lib/python2.7/dist-packages/nova/console/websocketproxy.py", line
> 105, in __init__
> 2015-06-04 11:48:23.463 4476 TRACE nova.console.websocketproxy
> websockify.ProxyRequestHandler.__init__(self, *args, **kwargs)
> 2015-06-04 11:48:23.463 4476 TRACE nova.console.websocketproxy   File
> "/usr/lib/python2.7/dist-packages/websockify/websocket.py", line 112, in
> __init__
> 2015-06-04 11:48:23.463 4476 TRACE nova.console.websocketproxy
> SimpleHTTPRequestHandler.__init__(self, req, addr, server)
> 2015-06-04 11:48:23.463 4476 TRACE nova.console.websocketproxy   File
> "/usr/lib/python2.7/SocketServer.py", line 638, in __init__
> 2015-06-04 11:48:23.463 4476 TRACE nova.console.websocketproxy
> self.handle()
> 2015-06-04 11:48:23.463 4476 TRACE nova.console.websocketproxy   File
> "/usr/lib/python2.7/dist-packages/websockify/websocket.py", line 540, in
> handle
> 2015-06-04 11:48:23.463 4476 TRACE nova.console.websocketproxy
> SimpleHTTPRequestHandler.handle(self)
> 2015-06-04 11:48:23.463 4476 TRACE nova.console.websocketproxy   File
> "/usr/lib/python2.7/BaseHTTPServer.py", line 340, in handle
> 2015-06-04 11:48:23.463 4476 TRACE nova.console.websocketproxy
> self.handle_one_request()
> 2015-06-04 11:48:23.463 4476 TRACE nova.console.websocketproxy   File
> "/usr/lib/python2.7/BaseHTTPServer.py", line 328, in handle_one_request
> 2015-06-04 11:48:23.463 4476 TRACE nova.console.websocketproxy     method()
> 2015-06-04 11:48:23.463 4476 TRACE nova.console.websocketproxy   File
> "/usr/lib/python2.7/dist-packages/websockify/websocket.py", line 506, in
> do_GET
> 2015-06-04 11:48:23.463 4476 TRACE nova.console.websocketproxy     if not
> self.handle_websocket():
> 2015-06-04 11:48:23.463 4476 TRACE nova.console.websocketproxy   File
> "/usr/lib/python2.7/dist-packages/websockify/websocket.py", line 450, in
> handle_websocket
> 2015-06-04 11:48:23.463 4476 TRACE nova.console.websocketproxy     if not
> self.do_websocket_handshake():
> 2015-06-04 11:48:23.463 4476 TRACE nova.console.websocketproxy   File
> "/usr/lib/python2.7/dist-packages/websockify/websocket.py", line 435, in
> do_websocket_handshake
> 2015-06-04 11:48:23.463 4476 TRACE nova.console.websocketproxy
> self.send_header("Sec-WebSocket-Protocol", "binary")
> 2015-06-04 11:48:23.463 4476 TRACE nova.console.websocketproxy   File
> "/usr/lib/python2.7/BaseHTTPServer.py", line 401, in send_header
> 2015-06-04 11:48:23.463 4476 TRACE nova.console.websocketproxy
> self.wfile.write("%s: %s\r\n" % (keyword, value))
> 2015-06-04 11:48:23.463 4476 TRACE nova.console.websocketproxy   File
> "/usr/lib/python2.7/socket.py", line 324, in write
> 2015-06-04 11:48:23.463 4476 TRACE nova.console.websocketproxy
> self.flush()
> 2015-06-04 11:48:23.463 4476 TRACE nova.console.websocketproxy   File
> "/usr/lib/python2.7/socket.py", line 303, in flush
> 2015-06-04 11:48:23.463 4476 TRACE nova.console.websocketproxy
> self._sock.sendall(view[write_offset:write_offset+buffer_size])
> 2015-06-04 11:48:23.463 4476 TRACE nova.console.websocketproxy   File
> "/usr/lib/python2.7/dist-packages/eventlet/greenio.py", line 357, in sendall
> 2015-06-04 11:48:23.463 4476 TRACE nova.console.websocketproxy     tail =
> self.send(data, flags)
> 2015-06-04 11:48:23.463 4476 TRACE nova.console.websocketproxy   File
> "/usr/lib/python2.7/dist-packages/eventlet/greenio.py", line 340, in send
> 2015-06-04 11:48:23.463 4476 TRACE nova.console.websocketproxy
> total_sent += fd.send(data[total_sent:], flags)
> 2015-06-04 11:48:23.463 4476 TRACE nova.console.websocketproxy error:
> [Errno 32] Broken pipe
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20150605/8ee913d8/attachment.html>


More information about the OpenStack-dev mailing list