<div dir="ltr"><div><div><div>Hi Markus,<br><br></div>Thanks a lot for a detailed document. I had a problem with installing websocket but using the git repo u shared, I could install successfully and got a console.<br><br></div>Regards,<br></div>Prathyusha<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Dec 14, 2015 at 11:34 PM, Markus Zoeller <span dir="ltr"><<a href="mailto:mzoeller@de.ibm.com" target="_blank">mzoeller@de.ibm.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Prathyusha Guduri <<a href="mailto:prathyushaconnects@gmail.com">prathyushaconnects@gmail.com</a>> wrote on 12/11/2015<br>
06:37:02 AM:<br>
<br>
> From: Prathyusha Guduri <<a href="mailto:prathyushaconnects@gmail.com">prathyushaconnects@gmail.com</a>><br>
> To: "OpenStack Development Mailing List (not for usage questions)"<br>
> <<a href="mailto:openstack-dev@lists.openstack.org">openstack-dev@lists.openstack.org</a>><br>
> Date: 12/11/2015 06:39 AM<br>
> Subject: [openstack-dev] [nova][serial-console-proxy]<br>
<span class="">><br>
> Hi All,<br>
<br>
> I have set up open stack on an Arm64 machine and all the open stack<br>
> related services are running fine. Also am able to launch an instance<br>
> successfully. Now that I need to get a console for my instance. The<br>
> noVNC console is not supported in the machine am using. So I have to<br>
> use a serial-proxy console or spice-proxy console.<br>
<br>
> After rejoining the stack, I have stopped the noVNC service and<br>
> started the serial proxy service in /usr/local/bin as<br>
><br>
> ubuntu@ubuntu:~/devstack$ /usr/local/bin/nova-serialproxy --config-<br>
> file /etc/nova/nova.conf<br>
> 2015-12-10 19:07:13.786 21979 INFO nova.console.websocketproxy [-]<br>
> WebSocket server settings:<br>
> 2015-12-10 19:07:13.786 21979 INFO nova.console.websocketproxy [-]<br>
</span>-Listen on<br>
<div><div class="h5">> <a href="http://0.0.0.0:6083" rel="noreferrer" target="_blank">0.0.0.0:6083</a><br>
> 2015-12-10 19:07:13.787 21979 INFO nova.console.websocketproxy [-] -<br>
> Flash security policy server<br>
> 2015-12-10 19:07:13.787 21979 INFO nova.console.websocketproxy [-] -<br>
> No SSL/TLS support (no cert file)<br>
> 2015-12-10 19:07:13.790 21979 INFO nova.console.websocketproxy [-] -<br>
> proxying from <a href="http://0.0.0.0:6083" rel="noreferrer" target="_blank">0.0.0.0:6083</a> to None:None<br>
<br>
> But<br>
> ubuntu@ubuntu:~/devstack$ nova get-serial-console vm20<br>
> ERROR (ClientException): The server has either erred or is incapable<br>
> of performing the requested operation. (HTTP 500) (Request-ID: req-<br>
> cfe7d69d-3653-4d62-ad0b-50c68f1ebd5e)<br>
<br>
><br>
> the problem seems to be that the nova-compute is not able to<br>
> communicate with nova-serial-proxy. The IP and port for serial proxy<br>
> that I have given in nova.conf is correct.<br>
<br>
> I really dont understand where am going wrong. Some help would be very<br>
> grateful.<br>
><br>
<br>
> My nova.conf -<br>
><br>
><br>
> [DEFAULT]<br>
> vif_plugging_timeout = 300<br>
> vif_plugging_is_fatal = True<br>
> linuxnet_interface_driver =<br>
> security_group_api = neutron<br>
> network_api_class = nova.network.neutronv2.api.API<br>
> firewall_driver = nova.virt.firewall.NoopFirewallDriver<br>
> compute_driver = libvirt.LibvirtDriver<br>
> default_ephemeral_format = ext4<br>
> metadata_workers = 24<br>
> ec2_workers = 24<br>
> osapi_compute_workers = 24<br>
> rpc_backend = rabbit<br>
> keystone_ec2_url = <a href="http://10.167.103.101:5000/v2.0/ec2tokens" rel="noreferrer" target="_blank">http://10.167.103.101:5000/v2.0/ec2tokens</a><br>
> ec2_dmz_host = 10.167.103.101<br>
> vncserver_proxyclient_address = 127.0.0.1<br>
> vncserver_listen = 127.0.0.1<br>
> vnc_enabled = false<br>
> xvpvncproxy_base_url = <a href="http://10.167.103.101:6081/console" rel="noreferrer" target="_blank">http://10.167.103.101:6081/console</a><br>
> novncproxy_base_url = <a href="http://10.167.103.101:6080/vnc_auto.html" rel="noreferrer" target="_blank">http://10.167.103.101:6080/vnc_auto.html</a><br>
> logging_context_format_string = %(asctime)s.%(msecs)03d %(levelname)s<br>
> %(name)s [%(request_id)s %(user_name)s %(project_name)s]<br>
%(instance)s%(message)s<br>
> force_config_drive = True<br>
> instances_path = /opt/stack/data/nova/instances<br>
> state_path = /opt/stack/data/nova<br>
> enabled_apis = ec2,osapi_compute,metadata<br>
> instance_name_template = instance-%08x<br>
> my_ip = 10.167.103.101<br>
> s3_port = 3333<br>
> s3_host = 10.167.103.101<br>
> default_floating_pool = public<br>
> force_dhcp_release = True<br>
> dhcpbridge_flagfile = /etc/nova/nova.conf<br>
> scheduler_driver = nova.scheduler.filter_scheduler.FilterScheduler<br>
> rootwrap_config = /etc/nova/rootwrap.conf<br>
> api_paste_config = /etc/nova/api-paste.ini<br>
> allow_migrate_to_same_host = True<br>
> allow_resize_to_same_host = True<br>
> debug = True<br>
> verbose = True<br>
><br>
> [database]<br>
> connection = mysql://<a href="http://root:open@127.0.0.1/nova?charset=utf8" rel="noreferrer" target="_blank">root:open@127.0.0.1/nova?charset=utf8</a><br>
><br>
> [osapi_v3]<br>
> enabled = True<br>
><br>
> [keystone_authtoken]<br>
> signing_dir = /var/cache/nova<br>
> cafile = /opt/stack/data/ca-bundle.pem<br>
> auth_uri = <a href="http://10.167.103.101:5000" rel="noreferrer" target="_blank">http://10.167.103.101:5000</a><br>
> project_domain_id = default<br>
> project_name = service<br>
> user_domain_id = default<br>
> password = open<br>
> username = nova<br>
> auth_url = <a href="http://10.167.103.101:35357" rel="noreferrer" target="_blank">http://10.167.103.101:35357</a><br>
> auth_plugin = password<br>
><br>
> [oslo_concurrency]<br>
> lock_path = /opt/stack/data/nova<br>
><br>
> [spice]<br>
> #agent_enabled = True<br>
> enabled = false<br>
> html5proxy_base_url = <a href="http://10.167.103.101:6082/spice_auto.html" rel="noreferrer" target="_blank">http://10.167.103.101:6082/spice_auto.html</a><br>
> #server_listen = 127.0.0.1<br>
> #server_proxyclient_address = 127.0.0.1<br>
><br>
> [oslo_messaging_rabbit]<br>
> rabbit_userid = stackrabbit<br>
> rabbit_password = open<br>
> rabbit_hosts = 10.167.103.101<br>
><br>
> [glance]<br>
> api_servers = <a href="http://10.167.103.101:9292" rel="noreferrer" target="_blank">http://10.167.103.101:9292</a><br>
><br>
> [cinder]<br>
> os_region_name = RegionOne<br>
><br>
> [libvirt]<br>
> vif_driver = nova.virt.libvirt.vif.LibvirtGenericVIFDriver<br>
> inject_partition = -2<br>
> live_migration_uri = qemu+ssh://ubuntu@%s/system<br>
> use_usb_tablet = False<br>
> cpu_mode = host-model<br>
> virt_type = kvm<br>
><br>
> [neutron]<br>
> service_metadata_proxy = True<br>
> url = <a href="http://10.167.103.101:9696" rel="noreferrer" target="_blank">http://10.167.103.101:9696</a><br>
> region_name = RegionOne<br>
> admin_tenant_name = service<br>
> auth_strategy = keystone<br>
> admin_auth_url = <a href="http://10.167.103.101:35357/v2.0" rel="noreferrer" target="_blank">http://10.167.103.101:35357/v2.0</a><br>
> admin_password = open<br>
> admin_username = neutron<br>
><br>
> [keymgr]<br>
> fixed_key =<br>
c5861a510cda58d367a44fc0aee6405e8e03a70f58c03fdc263af8405cf9a0c6<br>
><br>
> [serial_console]<br>
> enabled = true<br>
><br>
> # Location of serial console proxy. (string value)<br>
> base_url = ws://<a href="http://127.0.0.1:6083/" rel="noreferrer" target="_blank">127.0.0.1:6083/</a><br>
><br>
> # IP address on which instance serial console should listen<br>
> # (string value)<br>
> listen = 127.0.0.1<br>
><br>
> # The address to which proxy clients (like nova-serialproxy)<br>
> # should connect (string value)<br>
> proxyclient_address = 127.0.0.1<br>
<br>
><br>
> Thanks,<br>
> Prathyusha<br>
><br>
</div></div><span class="">__________________________________________________________________________<br>
> OpenStack Development Mailing List (not for usage questions)<br>
> Unsubscribe:<br>
<a href="http://OpenStack-dev-request@lists.openstack.org?subject:unsubscribe" rel="noreferrer" target="_blank">OpenStack-dev-request@lists.openstack.org?subject:unsubscribe</a><br>
> <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" rel="noreferrer" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br>
<br>
</span>The following setup allowed me to connect to the serial console:<br>
* devstack's "local.conf": <a href="http://paste.openstack.org/show/481841/" rel="noreferrer" target="_blank">http://paste.openstack.org/show/481841/</a><br>
* Nova version: commit 415b221e3345e332f78c9833c2e4e7f0d38bf9c5<br>
* Launch and access via CLI: <a href="http://paste.openstack.org/show/481840/" rel="noreferrer" target="_blank">http://paste.openstack.org/show/481840/</a><br>
<br>
Things to consider<br>
==================<br>
* When trying out things with devstack, sometimes things won't get<br>
cleaned up very well, try:<br>
$ make unstack<br>
$ make clean<br>
$ make stack<br>
<br>
* Enable the "nova-serialproxy" service in devstack:<br>
# local.conf<br>
enable_service n-sproxy<br>
<br>
* You can check if the connection with telnet is possible:<br>
$ telnet 127.0.0.1 10005<br>
<br>
* You could give larsks's "novaconsole" [1] a try:<br>
$ novaconsole my-server<br>
<br>
Notes<br>
=====<br>
* Please be aware that only one connection at a time to a serial console<br>
port of an instance is allowed.<br>
* The option "vnc_enabled" is deprecated in favor of the<br>
option "enabled" in the new section "vnc" in the "nova.conf" file<br>
<br>
References<br>
==========<br>
[1]<br>
<a href="http://blog.oddbit.com/2014/12/22/accessing-the-serial-console-of-your-nova-servers/" rel="noreferrer" target="_blank">http://blog.oddbit.com/2014/12/22/accessing-the-serial-console-of-your-nova-servers/</a><br>
<br>
Regards, Markus Zoeller (markus_z)<br>
<div class="HOEnZb"><div class="h5"><br>
<br>
__________________________________________________________________________<br>
OpenStack Development Mailing List (not for usage questions)<br>
Unsubscribe: <a href="http://OpenStack-dev-request@lists.openstack.org?subject:unsubscribe" rel="noreferrer" target="_blank">OpenStack-dev-request@lists.openstack.org?subject:unsubscribe</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" rel="noreferrer" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br>
</div></div></blockquote></div><br></div>