Force config drive on s390x architecture
When running on s390x force the use of config drive, this is because on that architecture the DMI data won't be included in the libvirt's domain definition, this will prevent cloud-init from knowing the platform where the virtual machine is running on and it will default to the config drive mechanism. Change-Id: I74ecf45c8a7a127de2f903d6783473b45e6ea219 Closes-Bug: #2069607 Signed-off-by: Felipe Reyes <felipe.reyes@canonical.com>
This commit is contained in:
@@ -117,6 +117,17 @@ volume_api_class = nova.volume.cinder.API
|
||||
instances_path = {{ instances_path }}
|
||||
{% endif -%}
|
||||
|
||||
{% if arch == 's390x' -%}
|
||||
# When running on s390x force the use of config drive, this is because on that
|
||||
# architecture the DMI data won't be included in the libvirt's domain
|
||||
# definition, this will prevent cloud-init from knowing the platform where the
|
||||
# virtual machine is running on and it will default to the config drive
|
||||
# mechanism.
|
||||
#
|
||||
# More details at http://pad.lv/2069607
|
||||
force_config_drive = True
|
||||
{% endif -%}
|
||||
|
||||
{% if sections and 'DEFAULT' in sections -%}
|
||||
{% for key, value in sections['DEFAULT'] -%}
|
||||
{{ key }} = {{ value }}
|
||||
|
Reference in New Issue
Block a user