Merge "Mount OVMF path for nova-compute and libvirt to support uefi"
This commit is contained in:
commit
5165bc4f7c
|
@ -37,6 +37,13 @@ class LibvirtHelm(openstack.OpenstackBaseHelm):
|
|||
'namespaces': [],
|
||||
'clear_emulator_capabilities': 0
|
||||
}
|
||||
},
|
||||
'pod': {
|
||||
'mounts': {
|
||||
'libvirt': {
|
||||
'libvirt': self._get_mount_uefi_overrides()
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -65,6 +65,11 @@ class NovaHelm(openstack.OpenstackBaseHelm):
|
|||
overrides = {
|
||||
common.HELM_NS_OPENSTACK: {
|
||||
'pod': {
|
||||
'mounts': {
|
||||
'nova_compute': {
|
||||
'nova_compute': self._get_mount_uefi_overrides()
|
||||
}
|
||||
},
|
||||
'replicas': {
|
||||
'api_metadata': self._num_controllers(),
|
||||
'placement': self._num_controllers(),
|
||||
|
|
|
@ -396,3 +396,28 @@ class OpenstackBaseHelm(base.BaseHelm):
|
|||
def _get_service_default_dns_name(self, service):
|
||||
return "{}.{}.svc.{}".format(service, common.HELM_NS_OPENSTACK,
|
||||
constants.DEFAULT_DNS_SERVICE_DOMAIN)
|
||||
|
||||
def _get_mount_uefi_overrides(self):
|
||||
|
||||
# This path depends on OVMF packages and for starlingx
|
||||
# we don't care about aarch64.
|
||||
# This path will be used by nova-compute and libvirt pods.
|
||||
uefi_loader_path = "/usr/share/OVMF"
|
||||
|
||||
uefi_config = {
|
||||
'volumes': [
|
||||
{
|
||||
'name': 'ovmf',
|
||||
'hostPath': {
|
||||
'path': uefi_loader_path
|
||||
}
|
||||
}
|
||||
],
|
||||
'volumeMounts': [
|
||||
{
|
||||
'name': 'ovmf',
|
||||
'mountPath': uefi_loader_path
|
||||
},
|
||||
]
|
||||
}
|
||||
return uefi_config
|
||||
|
|
Loading…
Reference in New Issue