Add /run/libvirt to nova_migration_target container

[1] removed the bind mount from /run inside the nova_migration_target
container. But the nova-migration-wrapper inside the container needs
access to the libvirt socket [2].

This adds the bind mount of /run/libvirt to the nova_migration_target
container to fix live migration issues.

[1] https://review.opendev.org/#/c/662109/
[2] https://github.com/rdo-packages/nova-distgit/blob/rpm-master/nova-migration-wrapper#L31

Change-Id: I7e236b838328a7a140a0aba0745bd8ac1db00015
Closes-Bug: #1834330
(cherry picked from commit 537822d47c)
(cherry picked from commit 1425671a38)
This commit is contained in:
Martin Schuppert 2019-06-26 14:57:48 +02:00
parent 6ab39103a2
commit 95347b3aa9
2 changed files with 10 additions and 0 deletions

View File

@ -149,6 +149,7 @@ outputs:
- /var/lib/kolla/config_files/nova-migration-target.json:/var/lib/kolla/config_files/config.json:ro
- /var/lib/config-data/puppet-generated/nova_libvirt/:/var/lib/kolla/config_files/src:ro
- /etc/ssh/:/host-ssh/:ro
- /run/libvirt:/run/libvirt
- /var/lib/nova:/var/lib/nova:shared
environment:
- KOLLA_CONFIG_STRATEGY=COPY_ALWAYS

View File

@ -0,0 +1,9 @@
---
fixes:
- |
https://review.opendev.org/#/c/662109/ removed the bind mount from /run
inside the nova_migration_target container. But the nova-migration-wrapper
inside the container needs access to the libvirt socket -
https://github.com/rdo-packages/nova-distgit/blob/rpm-master/nova-migration-wrapper#L31 .
This adds the bind mount of /run/libvirt to the nova_migration_target
container to fix live migration issues.