forked from kubevirt/kubevirt
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This patch moves most network configuration operations from virt-launcher into virt-handler. The ultimate goal is to move all of them from virt-launcher, which should allow to drop NET_ADMIN capability from launcher pods. This patch lays foundation for achieving this goal, but doesn't go as far as to remove all network configuration from launcher pods yet. Specifically, virt-launcher still starts DHCP server for interfaces that require it (meaning, masquerade and bridge types). DHCP server migration out of virt-launcher is left as a separate exercise because it introduces its own resource management and availability complexities that are better to handle separately. (Specifically, there are concerns about what would happen now if virt-handler is dead or being upgraded - will all VMIs running on the node lose DHCP service for some time? Another concern is that because DHCP thread would now be untied from the fate of its corresponding launcher pod, we will need to handle cleanup of these threads explicitly on failure of launchers. There may be other complexities with this migration, hence leaving it out of scope for this patch.) Once DHCP server is moved from virt-launcher, kubevirt should be ready to drop NET_ADMIN from launcher pods. Note that libvirtd may have its own expectations as to NET_ADMIN presence. Specifically, the libvirt version that we currently use doesn't support using a pre-created tap device to connect a VM to network. And because creating a tap device requires NET_ADMIN, we can't easily drop the capability just yet. But: the latest libvirt releases now support re-using a pre-created tap device, so once the newest libvirt hits fedora repositories, we should be able to remove the capability (perhaps with some adjustments on kubevirt side to pre-create the tap device in virt-handler). Signed-off-by: Ihar Hrachyshka <[email protected]>
- Loading branch information
Showing
66 changed files
with
2,793 additions
and
496 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
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
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
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
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
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
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
Oops, something went wrong.