Skip to content

Commit d80d0fc

Browse files
authored
Merge pull request #20 from stackhpc/wallaby_soft_raid
2 parents 264f7cc + 2f4f885 commit d80d0fc

File tree

6 files changed

+55
-1
lines changed

6 files changed

+55
-1
lines changed

ansible/group_vars/all/bifrost

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,18 @@ kolla_bifrost_dib_env_vars: "{{ kolla_bifrost_dib_env_vars_default | combine(kol
5858
# List of DIB packages to install.
5959
kolla_bifrost_dib_packages: []
6060

61+
###############################################################################
62+
# Disk image deployment configuration.
63+
64+
# Name of disk image file to deploy. Default is "deployment_image.qcow2".
65+
kolla_bifrost_deploy_image_filename: "deployment_image.qcow2"
66+
67+
# UUID of the root filesystem contained within the deployment image.
68+
# See below URL for instructions on how to extract it:
69+
# https://docs.openstack.org/ironic/latest/admin/raid.html#image-requirements
70+
# Default is none.
71+
kolla_bifrost_deploy_image_rootfs:
72+
6173
###############################################################################
6274
# Ironic configuration.
6375

ansible/kolla-bifrost-hostvars.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
ansible_host: "{{ hostvars[seed_host].ansible_host | default(seed_host) }}"
1515
bifrost_hostvars:
1616
addressing_mode: static
17+
deploy_image_filename: "{{ kolla_bifrost_deploy_image_filename }}"
18+
deploy_image_rootfs: "{{ kolla_bifrost_deploy_image_rootfs | default(omit, true) }}"
1719
ipv4_interface_mac: "{% raw %}{{ extra.pxe_interface_mac | default }}{% endraw %}"
1820
ipv4_address: "{{ admin_oc_net_name | net_ip }}"
1921
ipv4_subnet_mask: "{{ admin_oc_net_name | net_mask }}"

doc/source/configuration/reference/bifrost.rst

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,22 @@ Rather than needing to write a custom DIB element, we can use the
179179
kolla_bifrost_dib_packages:
180180
- "biosdevname"
181181
182+
Disk image deployment configuration
183+
===================================
184+
185+
The name of the root disk image to deploy can be configured via the
186+
``kolla_bifrost_deploy_image_filename`` option, which defaults to
187+
``deployment_image.qcow2``. It can be defined globally in
188+
``${KAYOBE_CONFIG_PATH}/bifrost.yml``, or defined per-group or per-host in the
189+
Kayobe inventory. This can be used to provision different images across the
190+
overcloud.
191+
192+
.. note::
193+
194+
Support for building multiple disk images is not yet available. Images can
195+
be manually renamed before changing the Kayobe configuration to build a
196+
different image.
197+
182198
Ironic configuration
183199
====================
184200

@@ -285,7 +301,7 @@ Inventory configuration
285301
This feature is currently not well tested. It is advisable to use
286302
autodiscovery of overcloud servers instead.
287303

288-
The following options are used to configure a static inventory of servers for
304+
The following option is used to configure a static inventory of servers for
289305
Bifrost.
290306

291307
``kolla_bifrost_servers``

etc/kayobe/bifrost.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,18 @@
5757
# List of DIB packages to install. Default is to install no extra packages.
5858
#kolla_bifrost_dib_packages:
5959

60+
###############################################################################
61+
# Disk image deployment configuration.
62+
63+
# Name of disk image file to deploy. Default is "deployment_image.qcow2".
64+
#kolla_bifrost_deploy_image_filename:
65+
66+
# UUID of the root filesystem contained within the deployment image.
67+
# See below URL for instructions on how to extract it:
68+
# https://docs.openstack.org/ironic/latest/admin/raid.html#image-requirements
69+
# Default is none.
70+
#kolla_bifrost_deploy_image_rootfs:
71+
6072
###############################################################################
6173
# Ironic configuration.
6274

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
features:
3+
- |
4+
Adds support for setting root filesystem's UUID via a new variable
5+
``kolla_bifrost_deploy_image_rootfs``. This is useful when deploying
6+
overcloud hosts with software RAID based root disk devices.
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
features:
3+
- |
4+
Adds a new ``kolla_bifrost_deploy_image_filename`` variable used to define
5+
the name of the root disk image to provision. This may be used to deploy
6+
different images on different hosts.

0 commit comments

Comments
 (0)