Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding virt-ssh-helpers to nova_migration sudoers and wrapper
Since libvirt 6.8.0, virt-ssh-helper is replacing the netcat command by default for live migration. This has been worked around by adding a proxy=netcat to the live migration URI in TripleO [1] but we need to have a path toward using virt-ssh-helper. Just like netcat, nova-migration-wrapper will call virt-ssh-helper using sudo as the nova user so we need to add it to sudoers as well. [1] https://review.opendev.org/779313 Closes-Bug: #1918250 Related: https://bugzilla.redhat.com/show_bug.cgi?id=1936804 Change-Id: I946bb8e9ece47185b98b2ac69ae24a64943b92aa
- Loading branch information
1 parent
c19d80b
commit d5aba75
Showing
2 changed files
with
44 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
Defaults:nova_migration !requiretty | ||
|
||
nova_migration ALL = (nova) NOPASSWD: /usr/bin/nc -U /var/run/libvirt/libvirt-sock | ||
nova_migration ALL = (nova) NOPASSWD: /usr/bin/nc -U /var/run/libvirt/libvirt-sock, /usr/bin/virt-ssh-helper qemu\:///system | ||
nova_migration ALL = (root) NOPASSWD: /usr/bin/nova-rootwrap /etc/nova/migration/rootwrap.conf * |