Add webconsole support in ironic

Add webconsole support in ironic by pxe_ipmitool driver.
Serial speed must be the same as the serial configuration in
the BIOS settings, so that the operating system boot process
can be seen in the web console.

see:
https://docs.openstack.org/project-install-guide/baremetal/draft/advanced.html#appending-kernel-parameters-to-boot-instances

Change-Id: I967ed2f63a50d024c54e0762ec6c0ae09b66d6bd
This commit is contained in:
shaofeng_cheng 2017-06-20 10:58:42 +08:00
parent ea5d1a581b
commit 7f7b6a08ed
3 changed files with 20 additions and 1 deletions

View File

@ -57,7 +57,7 @@ ironic_logging_debug: "{{ openstack_logging_debug }}"
openstack_ironic_auth: "{{ openstack_auth }}" openstack_ironic_auth: "{{ openstack_auth }}"
openstack_ironic_inspector_auth: "{{ openstack_auth }}" openstack_ironic_inspector_auth: "{{ openstack_auth }}"
######### #########
@ -67,3 +67,4 @@ openstack_ironic_inspector_auth: "{{ openstack_auth }}"
ironic_dnsmasq_interface: "{{ api_interface }}" ironic_dnsmasq_interface: "{{ api_interface }}"
ironic_dnsmasq_dhcp_range: ironic_dnsmasq_dhcp_range:
ironic_cleaning_network: ironic_cleaning_network:
ironic_console_serial_speed: "115200n8"

View File

@ -79,3 +79,6 @@ enabled = true
deploy_logs_local_path = /var/log/kolla/ironic deploy_logs_local_path = /var/log/kolla/ironic
deploy_logs_storage_backend = local deploy_logs_storage_backend = local
deploy_logs_collect = always deploy_logs_collect = always
[pxe]
pxe_append_params = nofb nomodeset vga=normal console=tty0 console=ttyS0,{{ ironic_console_serial_speed }}

View File

@ -20,6 +20,21 @@ The Ironic implementation is "tech preview", so currently instances can only be
deployed on baremetal. Further work will be done to allow scheduling for both deployed on baremetal. Further work will be done to allow scheduling for both
virtualized and baremetal deployments. virtualized and baremetal deployments.
Configuring Web Console
=======================
Configuration based off upstream web_console_documentation_.
Serial speed must be the same as the serial configuration in the BIOS settings.
Default value: 115200bps, 8bit, non-parity.If you have different serial speed.
Set ironic_console_serial_speed in ``/etc/kolla/globals.yml``:
::
ironic_console_serial_speed: 9600n8
.. _web_console_documentation: https://docs.openstack.org/developer/ironic/deploy/console.html#node-web-console
Post-deployment configuration Post-deployment configuration
============================= =============================
Configuration based off upstream documentation_. Configuration based off upstream documentation_.