fix the vms turn transient after libvirt pod restarts
After libvirt pod restarts, the virtual machines created before turn transient ,then opetrate these vms ,nova-compute will throw exception. This is because that the directory /etc/libivrt/qemu in pod contains vitual machines xml files and it is temporary, the xmls files disappear after the pod restarts, so we mount it to hostpath /etc/libvirt/qemu. Change-Id: I48fd712c2b0565cb2cfe850482e8501f4e5022a4 Closed-bug: 1760003
This commit is contained in:
@@ -109,6 +109,8 @@ spec:
|
|||||||
mountPath: /etc/libvirt/qemu.conf
|
mountPath: /etc/libvirt/qemu.conf
|
||||||
subPath: qemu.conf
|
subPath: qemu.conf
|
||||||
readOnly: true
|
readOnly: true
|
||||||
|
- name: etc-libvirt-qemu
|
||||||
|
mountPath: /etc/libvirt/qemu
|
||||||
- mountPath: /lib/modules
|
- mountPath: /lib/modules
|
||||||
name: libmodules
|
name: libmodules
|
||||||
readOnly: true
|
readOnly: true
|
||||||
@@ -179,5 +181,8 @@ spec:
|
|||||||
- name: machine-id
|
- name: machine-id
|
||||||
hostPath:
|
hostPath:
|
||||||
path: /etc/machine-id
|
path: /etc/machine-id
|
||||||
|
- name: etc-libvirt-qemu
|
||||||
|
hostPath:
|
||||||
|
path: /etc/libvirt/qemu
|
||||||
{{ if $mounts_libvirt.volumes }}{{ toYaml $mounts_libvirt.volumes | indent 8 }}{{ end }}
|
{{ if $mounts_libvirt.volumes }}{{ toYaml $mounts_libvirt.volumes | indent 8 }}{{ end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|||||||
Reference in New Issue
Block a user