Fix baremetal serial console autoenable

If ironic_serial_console_autoenable is set to true, ironic compute node
serial consoles are automatically enabled during kayobe overcloud post
configure. However, the baremetal-compute-serial-console.yml playbook
expects a variable called cmd to be defined, and set to 'enable' in
order to enable serial consoles. This patch fixes the issue.

We also add a conditional to only import the playbook when ironic is
enabled in the overcloud.

Change-Id: Ice26a113f9023b1a25a4af0552d07c5e95e64556
Story: 2006662
Task: 36924
This commit is contained in:
Mark Goddard 2019-10-04 16:49:17 +01:00
parent 886fe4fd76
commit 5977a44119
2 changed files with 14 additions and 2 deletions

View File

@ -1,6 +1,11 @@
---
# This is a wrapper around baremetal-compute-serial-console which only runs the playbook when
# This is a wrapper around baremetal-compute-serial-console which only runs the
# playbook when Ironic is enabled in the overcloud and
# ironic_serial_console_autoenable is set to true.
- import_playbook: baremetal-compute-serial-console.yml
when: ironic_serial_console_autoenable | bool
vars:
cmd: enable
when:
- kolla_enable_ironic | bool
- ironic_serial_console_autoenable | bool

View File

@ -0,0 +1,7 @@
---
fixes:
- |
Fixes an issue with ``kayobe overcloud post configure`` when Ironic is
disabled, but ``ironic_serial_console_autoenable`` is set to ``true``.
See `story 2006662 <https://storyboard.openstack.org/#!/story/2006662>`__
for details.