-
Notifications
You must be signed in to change notification settings - Fork 1.2k
KVM incremental snapshot feature #9270
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
Merged
Merged
Changes from 1 commit
Commits
Show all changes
57 commits
Select commit
Hold shift + click to select a range
7d638fc
KVM incremental snapshot feature
JoaoJandre 47ab0c2
fix log
JoaoJandre f57b1aa
Merge remote-tracking branch 'origin/main' into differential-snapshots
JoaoJandre 6f41337
fix merge issues
JoaoJandre 717d330
Merge remote-tracking branch 'origin/main' into differential-snapshots
JoaoJandre 6024631
Merge remote-tracking branch 'origin/main' into differential-snapshots
JoaoJandre 5b37591
Merge remote-tracking branch 'origin/main' into differential-snapshots
JoaoJandre 00d87c2
fix creation of folder
JoaoJandre 63251da
fix snapshot update
JoaoJandre 2baf1ed
Check for hypervisor type during parent search
JoaoJandre e54629d
fix some small bugs
JoaoJandre 6125dd9
fix tests
JoaoJandre b10fee7
Merge remote-tracking branch 'origin/main' into differential-snapshots
JoaoJandre 0871a06
Address reviews
JoaoJandre fb7ff52
Merge remote-tracking branch 'origin/main' into differential-snapshots
JoaoJandre be6b257
do not remove storPool snapshots
JoaoJandre 2b9b2d3
Merge remote-tracking branch 'origin/main' into differential-snapshots
JoaoJandre b088e71
add support for downloading diff snaps
JoaoJandre cdb11c1
Add multiple zones support
JoaoJandre bc8282e
Merge remote-tracking branch 'origin/main' into differential-snapshots
JoaoJandre 52697b3
Merge remote-tracking branch 'origin/main' into differential-snapshots
JoaoJandre 8982356
make copied snapshots have normal names
JoaoJandre eeaa85c
address reviews
JoaoJandre 3a48f1f
Merge remote-tracking branch 'origin/main' into differential-snapshots
JoaoJandre dff1f6d
Fix in progress
JoaoJandre 8e26579
Merge remote-tracking branch 'origin/main' into differential-snapshots
JoaoJandre b8b6b8c
continue fix
JoaoJandre 3dd52c6
Fix bulk delete
JoaoJandre 89cc8b4
change log to trace
JoaoJandre e3443c8
Start fix on multiple secondary storages for a single zone
JoaoJandre 885d2a4
Fix multiple secondary storages for a single zone
JoaoJandre 1d5eebb
Merge remote-tracking branch 'origin/main' into differential-snapshots
JoaoJandre 59dc3e7
Fix tests
JoaoJandre a46e6b9
fix log
JoaoJandre 8114bac
remove bitmaps when deleting snapshots
JoaoJandre e63fb7a
Merge remote-tracking branch 'origin/main' into differential-snapshots
JoaoJandre 91f09c8
minor fixes
JoaoJandre 77b034c
Merge remote-tracking branch 'origin/main' into differential-snapshots
JoaoJandre 3d657f1
update sql to new file
JoaoJandre c026486
Merge remote-tracking branch 'origin/main' into differential-snapshots
JoaoJandre e951d15
Merge remote-tracking branch 'origin/main' into differential-snapshots
JoaoJandre afab72f
Fix merge issues
JoaoJandre 1d849d4
Merge remote-tracking branch 'origin/main' into differential-snapshots
JoaoJandre e2bd617
Merge remote-tracking branch 'origin/main' into differential-snapshots
JoaoJandre 02fcce4
Merge remote-tracking branch 'origin/main' into differential-snapshots
JoaoJandre add5395
Create new snap chain when changing configuration
7d2e48a
Merge remote-tracking branch 'origin/main' into differential-snapshots
JoaoJandre 878350e
add verification
7373a5c
Fix snapshot operation selector
4e6cacd
fix bitmap removal
3a9ebbf
fix chain on different storages
68d15b4
address reviews
JoaoJandre 1766990
fix small issue
JoaoJandre 1940c17
Merge remote-tracking branch 'origin/main' into differential-snapshots
JoaoJandre f7095c3
Merge remote-tracking branch 'origin' into differential-snapshots
JoaoJandre e94280f
fix test
JoaoJandre 51d5f65
Merge remote-tracking branch 'origin/main' into differential-snapshots
JoaoJandre File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
36 changes: 36 additions & 0 deletions
36
core/src/main/java/com/cloud/agent/api/ConvertSnapshotAnswer.java
This file contains hidden or 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 |
|---|---|---|
| @@ -0,0 +1,36 @@ | ||
| /* | ||
| * Licensed to the Apache Software Foundation (ASF) under one | ||
| * or more contributor license agreements. See the NOTICE file | ||
| * distributed with this work for additional information | ||
| * regarding copyright ownership. The ASF licenses this file | ||
| * to you under the Apache License, Version 2.0 (the | ||
| * "License"); you may not use this file except in compliance | ||
| * with the License. You may obtain a copy of the License at | ||
| * | ||
| * http://www.apache.org/licenses/LICENSE-2.0 | ||
| * | ||
| * Unless required by applicable law or agreed to in writing, | ||
| * software distributed under the License is distributed on an | ||
| * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
| * KIND, either express or implied. See the License for the | ||
| * specific language governing permissions and limitations | ||
| * under the License. | ||
| */ | ||
|
|
||
| package com.cloud.agent.api; | ||
|
|
||
| import org.apache.cloudstack.storage.to.SnapshotObjectTO; | ||
|
|
||
| public class ConvertSnapshotAnswer extends Answer { | ||
|
|
||
| private SnapshotObjectTO snapshotObjectTO; | ||
|
|
||
| public ConvertSnapshotAnswer(SnapshotObjectTO snapshotObjectTO) { | ||
| super(null); | ||
| this.snapshotObjectTO = snapshotObjectTO; | ||
| } | ||
|
|
||
| public SnapshotObjectTO getSnapshotObjectTO() { | ||
| return snapshotObjectTO; | ||
| } | ||
| } |
42 changes: 42 additions & 0 deletions
42
core/src/main/java/com/cloud/agent/api/ConvertSnapshotCommand.java
This file contains hidden or 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 |
|---|---|---|
| @@ -0,0 +1,42 @@ | ||
| /* | ||
| * Licensed to the Apache Software Foundation (ASF) under one | ||
| * or more contributor license agreements. See the NOTICE file | ||
| * distributed with this work for additional information | ||
| * regarding copyright ownership. The ASF licenses this file | ||
| * to you under the Apache License, Version 2.0 (the | ||
| * "License"); you may not use this file except in compliance | ||
| * with the License. You may obtain a copy of the License at | ||
| * | ||
| * http://www.apache.org/licenses/LICENSE-2.0 | ||
| * | ||
| * Unless required by applicable law or agreed to in writing, | ||
| * software distributed under the License is distributed on an | ||
| * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
| * KIND, either express or implied. See the License for the | ||
| * specific language governing permissions and limitations | ||
| * under the License. | ||
| */ | ||
|
|
||
| package com.cloud.agent.api; | ||
|
|
||
| import org.apache.cloudstack.storage.to.SnapshotObjectTO; | ||
|
|
||
| public class ConvertSnapshotCommand extends Command { | ||
|
|
||
| public static final String TEMP_SNAPSHOT_NAME = "_temp"; | ||
|
|
||
| SnapshotObjectTO snapshotObjectTO; | ||
|
|
||
| public SnapshotObjectTO getSnapshotObjectTO() { | ||
| return snapshotObjectTO; | ||
| } | ||
|
|
||
| public ConvertSnapshotCommand(SnapshotObjectTO snapshotObjectTO) { | ||
| this.snapshotObjectTO = snapshotObjectTO; | ||
| } | ||
|
|
||
| @Override | ||
| public boolean executeInSequence() { | ||
| return true; | ||
| } | ||
| } |
49 changes: 49 additions & 0 deletions
49
core/src/main/java/com/cloud/agent/api/RecreateCheckpointsCommand.java
This file contains hidden or 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 |
|---|---|---|
| @@ -0,0 +1,49 @@ | ||
| // | ||
| // Licensed to the Apache Software Foundation (ASF) under one | ||
| // or more contributor license agreements. See the NOTICE file | ||
| // distributed with this work for additional information | ||
| // regarding copyright ownership. The ASF licenses this file | ||
| // to you under the Apache License, Version 2.0 (the | ||
| // "License"); you may not use this file except in compliance | ||
| // with the License. You may obtain a copy of the License at | ||
| // | ||
| // http://www.apache.org/licenses/LICENSE-2.0 | ||
| // | ||
| // Unless required by applicable law or agreed to in writing, | ||
| // software distributed under the License is distributed on an | ||
| // "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
| // KIND, either express or implied. See the License for the | ||
| // specific language governing permissions and limitations | ||
| // under the License. | ||
| // | ||
|
|
||
| package com.cloud.agent.api; | ||
|
|
||
| import org.apache.cloudstack.storage.to.VolumeObjectTO; | ||
|
|
||
| import java.util.List; | ||
|
|
||
| public class RecreateCheckpointsCommand extends Command { | ||
|
|
||
| private List<VolumeObjectTO> volumes; | ||
|
|
||
| private String vmName; | ||
|
|
||
| public RecreateCheckpointsCommand(List<VolumeObjectTO> volumes, String vmName) { | ||
| this.volumes = volumes; | ||
| this.vmName = vmName; | ||
| } | ||
|
|
||
| public List<VolumeObjectTO> getDisks() { | ||
| return volumes; | ||
| } | ||
|
|
||
| public String getVmName() { | ||
| return vmName; | ||
| } | ||
|
|
||
| @Override | ||
| public boolean executeInSequence() { | ||
| return true; | ||
| } | ||
| } |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.