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
doc: Update documentation for volume clone #14190
Conversation
3c18878
to
aac9b7d
Compare
CSI driver. The `dataSource` kind should be the `PersistentVolumeClaim` and also storageclass | ||
should be same as the source `PVC`. | ||
CSI driver. The `dataSource` kind should be the `PersistentVolumeClaim`. | ||
The `storageClassName` can be any storageclass (not necessarily same as Parent PVC) with the |
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.
!!! note
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.
The storageClassName
can be any RBD storageclass (not necessarily same as Parent PVC) with the
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.
can we make this section as a note?
The `storageClassName` can be any storageclass (not necessarily same as Parent PVC) with the | ||
following conditions: | ||
|
||
* `provisinor` should be same for both the Parent PVC and the Clone PVC. |
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.
does clone doesnt work cross operator? LIke in a DR operation where there maybe two rook operator?
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.
In the case of 2 different rook operators, the provisioner name will be different too right? hence it won't work for that case
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.
so we can say clone doesn't work cross-cluster....
following conditions: | ||
|
||
* `provisinor` should be same for both the Parent PVC and the Clone PVC. | ||
* The non-encrypted PVC cannot be cloned to an encrypted one and vise-versa. |
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.
can we have a high level chart,
encrypted -> encrypted possible
encrypted -> non-encrypted not possible
and soo on....
CSI driver. The `dataSource` kind should be the `PersistentVolumeClaim`. | ||
The `storageClassName` can be any RBD storageclass (not necessarily same as Parent PVC) | ||
|
||
!!!note |
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.
The notes are usually just short unformatted paragraphs. If using bullets, let's not use the "!!! note". How about this?
!!!note | |
Please note: |
The `storageClassName` can be any RBD storageclass (not necessarily same as Parent PVC) | ||
|
||
!!!note | ||
* `provisinor` should be same for both the Parent PVC and the Clone PVC. |
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.
What if the provisioner is not the same? Is there a scenario for that? If not, let's use "must" instead of "should"
* `provisinor` should be same for both the Parent PVC and the Clone PVC. | |
* `provisioner` must be same for both the Parent PVC and the Clone PVC. |
|
||
!!!note | ||
* `provisinor` should be same for both the Parent PVC and the Clone PVC. | ||
* The non-encrypted PVC cannot be cloned to an encrypted one and vise-versa. |
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.
* The non-encrypted PVC cannot be cloned to an encrypted one and vise-versa. | |
* The non-encrypted PVC cannot be cloned to an encrypted one and vice-versa. |
The `storageClassName` can be any CephFS storageclass (not necessarily same as Parent PVC) | ||
|
||
!!!note | ||
* `provisinor` should be same for both the Parent PVC and the Clone PVC. |
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.
* `provisinor` should be same for both the Parent PVC and the Clone PVC. | |
* `provisioner` must be the same for both the Parent PVC and the Clone PVC. |
CSI driver. The `dataSource` kind should be the `PersistentVolumeClaim`. | ||
The `storageClassName` can be any CephFS storageclass (not necessarily same as Parent PVC) | ||
|
||
!!!note |
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.
same as above
|
||
!!!note | ||
* `provisinor` should be same for both the Parent PVC and the Clone PVC. | ||
* The non-encrypted PVC cannot be cloned to an encrypted one and vise-versa. |
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.
* The non-encrypted PVC cannot be cloned to an encrypted one and vise-versa. | |
* The non-encrypted PVC cannot be cloned to an encrypted one and vice-versa. |
The `storageClassName` can be any RBD storageclass (not necessarily same as Parent PVC) | ||
|
||
Please note: | ||
* `provisinor` must be the same for both the Parent PVC and the Clone PVC. |
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.
typo?
* `provisinor` must be the same for both the Parent PVC and the Clone PVC. | |
* `provisioner` must be the same for both the Parent PVC and the Clone PVC. |
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.
oops, thanks for the catch
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.
lgtm
* encrypted -> encrypted (possible) | ||
* non-encrypted -> non-encrypted (possible) | ||
* encrypted -> non-encrypted (not possible) | ||
* non-encrypted -> encryptes (not possible) |
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.
encryptes
to encrypted
* encrypted -> encrypted (possible) | ||
* non-encrypted -> non-encrypted (possible) | ||
* encrypted -> non-encrypted (not possible) | ||
* non-encrypted -> encryptes (not possible) |
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.
encryptes
to encrypted
/retest Linters |
@Madhu-1 can you please review the PR again. I have updated the same for PVC-restore. |
|
||
Please Note: | ||
* `provisioner` must be the same for both the Parent PVC and the Clone PVC. | ||
* The non-encrypted PVC cannot be cloned to an encrypted one and vice-versa. |
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.
cannot be cloned
to cannot be restored
@@ -143,7 +152,16 @@ The snapshot will be ready to restore to a new PVC when `READYTOUSE` field of th | |||
In | |||
[pvc-restore](https://github.com/rook/rook/tree/master/deploy/examples/csi/cephfs/pvc-restore.yaml), | |||
`dataSource` should be the name of the `VolumeSnapshot` previously | |||
created. The `dataSource` kind should be the `VolumeSnapshot`. | |||
created. The `dataSource` kind should be the `VolumeSnapshot`. The `storageClassName` can be |
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.
This is not applicable to cephfs as of today as we don't support cephfs encryption yet.
@@ -55,8 +63,16 @@ kubectl delete -f deploy/examples/csi/rbd/pvc-clone.yaml | |||
|
|||
In [pvc-clone](https://github.com/rook/rook/tree/master/deploy/examples/csi/cephfs/pvc-clone.yaml), | |||
`dataSource` should be the name of the `PVC` which is already created by CephFS | |||
CSI driver. The `dataSource` kind should be the `PersistentVolumeClaim` and also storageclass | |||
should be same as the source `PVC`. | |||
CSI driver. The `dataSource` kind should be the `PersistentVolumeClaim`. |
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.
Lets not update cephfs section as nothing is tested or support yet.
dc9572f
to
05ecc8b
Compare
after cross-storageclass clone/restore, now we can clone across different storageclass. this commit updates the documentation indicating the same. Signed-off-by: yati1998 <ypadia@redhat.com>
doc: Update documentation for volume clone (backport #14190)
After cross-storageclass clone/restore, now we can clone across different storageclass.
This commit updates the documentation indicating
the same.