Skip to content

Move common logic in virt-launcher to virt-launcher-common pkg #20

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 21 commits into
base: virtstack-plugin-refactor
Choose a base branch
from

Conversation

harshitgupta1337
Copy link

What this PR does

Before this PR: The logic in virt-launcher that is agnostic of the underlying virtualization stack (e.g., gRPC server for managing VM, DomainManager interface, NotifyClient) was in the same package as the virtualization-stack-specific code.

After this PR: Virtualization-stack-agnostic code has been moved to a separate package called virt-launcher-common. The libvirt/qemu/kvm-specific logic in virt-launcher is left in the virt-launcher package. virt-launcher-common does not depend on any code in the libvirt-specific virt-launcher package.

Copy link
Member

@JocelynBerrendonner JocelynBerrendonner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change is really massive. How can we stage these changes to prevent such a massive PR?

@harshitgupta1337
Copy link
Author

This change is really massive. How can we stage these changes to prevent such a massive PR?

@JocelynBerrendonner I agree that the PR has a very large number of files that are changed. The vast majority of files updated simply have changes to import statements. This is because a lot of the common code in virt-launcher has been moved to virt-launcher-common. Since a lot of other code depends on that core part of virt-launcher's functionality, it necessitated import statement changes in a large number of files.
A potential alternative approach is to let the common parts of virt-launcher remain where they are currently and, instead, move the Libvirt/QEMU/KVM-specific code into another folder named virt-launcher-libvirt-qemu. Although it might also need a number of files to be moved, the PR footprint might be smaller.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants