Comment 2 for bug 1696701

Revision history for this message
Markus Zoeller (markus_z) (mzoeller) wrote :

Two services need to be configured:
* nova-serialproxy (on controller node)
* nova-compute (on compute nodes)

The needed config options in "nova.conf" are all defined in the
section [serial_console] at:
https://github.com/openstack/nova/blob/master/nova/conf/serial_console.py

`nova-serialproxy` reads:
    serialproxy_host
    serialproxy_port

`nova-compute` reads:
    enabled
    port_range
    base_url
    proxyclient_address

Example nova-compute nova.conf:
    [DEFAULT]
    my_ip=192.168.12.75
    [serial_console]
    enabled=True
    port_range=10000:20000
    base_url=ws://192.168.12.10:6083/
    proxyclient_address=192.168.12.75

Example nova-serialproxy "nova.conf":
    [DEFAULT]
    my_ip=192.168.12.10
    [serial_console]
    serialproxy_host=192.168.12.10
    serialproxy_port=6083

This example uses `192.168.12.10` as publicly accessible IP address
of the controller node. That's the IP address any user/client would
use to connect to the nova API (or other API services). The IP address
`192.168.12.75` is the address the `nova-serialproxy` will use internally
to establish a connection to the serial console of the instance of *that*
compute node.

Be aware that the code in Nova is confusing in that area. If the
documentation in the nova sample config isn't helpful enough, please
let me know (via IRC).