Add support for Debian Bullseye (11) as host distro

Makes nova-libvirt container always run in 'host' CgroupnsMode
to ensure it works.

Change-Id: I75105baf434977c68bc5c8ca1f5213e602c52c8c
(cherry picked from commit 9a77fb1ca0)
This commit is contained in:
Radosław Piliszek 2021-05-30 18:32:05 +00:00
parent efd51bccb0
commit 7b31908716
5 changed files with 8 additions and 0 deletions

View File

@ -8,6 +8,7 @@ nova_cell_services:
enabled: "{{ nova_compute_virt_type in ['kvm', 'qemu'] }}"
image: "{{ nova_libvirt_image_full }}"
pid_mode: "host"
cgroupns_mode: "host"
privileged: True
volumes: "{{ nova_libvirt_default_volumes + nova_libvirt_extra_volumes }}"
dimensions: "{{ nova_libvirt_dimensions }}"

View File

@ -100,6 +100,7 @@
name: "{{ service.container_name }}"
image: "{{ service.image }}"
pid_mode: "{{ service.pid_mode | default('') }}"
cgroupns_mode: "{{ service.cgroupns_mode | default(omit) }}"
privileged: "{{ service.privileged | default(False) }}"
volumes: "{{ service.volumes|reject('equalto', '')|list }}"
dimensions: "{{ service.dimensions }}"

View File

@ -8,6 +8,7 @@
image: "{{ item.value.image }}"
environment: "{{ item.value.environment|default(omit) }}"
pid_mode: "{{ item.value.pid_mode|default('') }}"
cgroupns_mode: "{{ item.value.cgroupns_mode|default(omit) }}"
ipc_mode: "{{ item.value.ipc_mode|default(omit) }}"
privileged: "{{ item.value.privileged|default(False) }}"
volumes: "{{ item.value.volumes|reject('equalto', '')|list }}"

View File

@ -13,6 +13,7 @@ host_os_distributions:
- "8"
Debian:
- "buster"
- "bullseye"
RHEL:
- "8"
Ubuntu:

View File

@ -0,0 +1,4 @@
---
features:
- |
Supports Debian Bullseye (11) as host distribution.