-
Notifications
You must be signed in to change notification settings - Fork 69
refactor: Refactor snapshot/migrate functionality to rename to "save" #1555
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
refactor: Refactor snapshot/migrate functionality to rename to "save" #1555
Conversation
…grate) reword help docs for vm snapshot remove empty append
… save" as a combined state/disk saving mechanism.
…and documentation.
…t should be used rather than creating a new snapshot
@sdelliot is it possible to leave the old commands in place for some amount of time (perhaps marked as deprecated)? Renaming the commands will break some functionality in phenix, so if they can't be left in for a little bit then we might want to coordinate some activities. Thoughts? /cc @jacdavi @glattercj |
That totally makes sense to me. I adjusted it so that the old commands still exist but point to the new functionality. So there should no longer be API changes but the underlying functionality will still be modified. I tested it out and it looks like it works as expected. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Haven't had a chance to run things yet, but did a quick read through.
One general question, compared to #1540 we're losing the functionality of saving just the disk of a VM. I think that's what we had agreed on previously, but I'm just wondering again if that feature was useful.
That's correct. How it was previously implemented, I believe the VM has to be paused to save off the disk, assuming that's correct, there is no loss of functionality as users can just ignore the memory state. If we don't pause a VM and instead used a live migration of just the disk then there would be some loss of functionality. |
This PR accomplishes the primary task of #1540 with the refactoring of
vm snapshot
andvm migrate
. This includes the following:Breaking Changes
vm migrate
->vm save
ns snapshot
->ns save
vm configure migration
->vm configure state
Additional Changes
disk snapshot
and 2) where there were only internal references but could conflict with "state" where state could be overloaded (e.g.,vm state
(BUILDING, RUNNING,...) or the saved VM memory).ns save
output.