Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 1.4k
Fix issue when restoring backup after migration of volume#12549
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
Uh oh!
There was an error while loading. Please reload this page.
Changes from all commits
f51e048348c9ee101e2a0896bae2fe764c06f23a2da626760f21d4936164d41File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading. Please reload this page.
Jump to
Uh oh!
There was an error while loading. Please reload this page.
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -31,9 +31,9 @@ public class RestoreBackupCommand extends Command { | ||
| private String backupRepoType; | ||
| private String backupRepoAddress; | ||
| private List<String> volumePaths; | ||
| private List<String> backupFiles; | ||
| private String diskType; | ||
Comment on lines
31
to
35
CopilotAI | ||
| private Boolean vmExists; | ||
| private String restoreVolumeUUID; | ||
| private VirtualMachine.State vmState; | ||
| protected RestoreBackupCommand() { | ||
| @@ -80,6 +80,14 @@ public void setVolumePaths(List<String> volumePaths) { | ||
| this.volumePaths = volumePaths; | ||
| } | ||
| public List<String> getBackupFiles() { | ||
| return backupFiles; | ||
| } | ||
| public void setBackupFiles(List<String> backupFiles) { | ||
| this.backupFiles = backupFiles; | ||
| } | ||
| public Boolean isVmExists() { | ||
| return vmExists; | ||
| } | ||
| @@ -104,14 +112,6 @@ public void setMountOptions(String mountOptions) { | ||
| this.mountOptions = mountOptions; | ||
| } | ||
| public String getRestoreVolumeUUID() { | ||
| return restoreVolumeUUID; | ||
| } | ||
| public void setRestoreVolumeUUID(String restoreVolumeUUID) { | ||
| this.restoreVolumeUUID = restoreVolumeUUID; | ||
| } | ||
| public VirtualMachine.State getVmState() { | ||
| return vmState; | ||
| } | ||
Uh oh!
There was an error while loading. Please reload this page.
CopilotAIFeb 9, 2026
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.
Changing the agent command payload from
volumePaths(List) tovolumePathsAndUuids(Map) breaks compatibility with older KVM agents during upgrades (they will ignore the new field and restore will have no volumes to process). If mixed-version operation is expected, consider keeping/populating the old field as a fallback or introducing a new Command class to version the contract.