-
Notifications
You must be signed in to change notification settings - Fork 200
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create a cloned OpenEBS (jiva) Volume from a snapshot (#283)
The Volume Create Spec is extended to include: - CloneIP - Source Controller IP - SnapshotName - Source Volume Snapshot Name The Jiva Replica command line takes 3 new ags: - cloneIP : This is frontendIP of running source controller, which will be used to make a clone request, will be passed as a argument while starting clone replica. - type=clone: Type of replica, now we can pass type as clone to trigger the clone API of jiva, which says the new replica is getting added as clone not as usual replica. - snapName : Name of the snapshot which will be synced/cloned to a new persistent volume. The replica when it comes up as clone, will register itself with it controller in write-only mode. Then issue a sync request to the source controller. Restore to the snapshot provided and convert itself into read-write mode. Current implementation only support launching of clone volume in read-only mode. To support read-write clones, further cases need to be handled. Signed-off-by: prateekpandey14 <prateekpandey14@gmail.com>
- Loading branch information
1 parent
33bbdcb
commit 362bdfa
Showing
4 changed files
with
43 additions
and
9 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