nova-libvirt doesn't start with f28-based container and podman
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
tripleo |
Fix Released
|
Undecided
|
Damien Ciabrini |
Bug Description
When trying to deploy a standalone stack with f28-based containers and podman, the nova-libvirt container fails to start with the following error:
+ echo 'Running command: '\''/usr/
+ exec /usr/sbin/libvirtd
2019-01-16 13:41:35.375+0000: 452430: info : libvirt version: 4.1.0, package: 5.fc28 (Fedora Project, 2018-08-
2019-01-16 13:41:35.375+0000: 452430: info : hostname: standalone.
2019-01-16 13:41:35.375+0000: 452430: error : virSecuritySELi
2019-01-16 13:41:35.375+0000: 452430: error : qemuSecurityIni
2019-01-16 13:41:35.375+0000: 452430: error : virStateInitial
2019-01-16 13:41:35.375+0000: 452430: error : daemonRunStateI
The following bind mount breaks when using podman:
- /sys/fs/
Changed in tripleo: | |
assignee: | nobody → Damien Ciabrini (dciabrin) |
status: | New → In Progress |
Reviewed: https:/ /review. openstack. org/631235 /git.openstack. org/cgit/ openstack/ tripleo- heat-templates/ commit/ ?id=34d0e5b0209 0bd7fa45693ff95 aa738cd3c7c752
Committed: https:/
Submitter: Zuul
Branch: master
commit 34d0e5b02090bd7 fa45693ff95aa73 8cd3c7c752
Author: Damien Ciabrini <email address hidden>
Date: Wed Jan 16 15:44:37 2019 +0100
nova-libvirt: conditionalize selinux bind-mount
on a F28-based container image nova-libvirt fails to
start in Podman if /sys/fs/selinux is bind-mounted
from the host, with the following logs:
2019-01-16 13:41:35.375+0000: 452430: error : virSecuritySELi nuxQEMUInitiali ze:634 : cannot open SELinux label_handle: No such file or directory t:425 : internal error: Failed to initialize security drivers ize:775 : Initialization of QEMU state driver failed: internal error: Failed to initialize security drivers nit:837 : Driver state initialization failed
2019-01-16 13:41:35.375+0000: 452430: error : qemuSecurityIni
2019-01-16 13:41:35.375+0000: 452430: error : virStateInitial
2019-01-16 13:41:35.375+0000: 452430: error : daemonRunStateI
Perform the bind-mount only when the ContainerCli is set
to 'docker'.
Change-Id: I7a2ca4fb1ff8ea 5950fd52774c648 af5ef274796
Closes-Bug: #1812013
Co-Authored-By: Michele Baldessari <email address hidden>