Madhu Rajanna
e08143a88b
cephfs: fix subvolumegroup creation for multiple fs
...
In a cluster we can have multiple filesystem
for that we need to have a map of
subvolumegroups to check filesystem is created
nor not.
Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
(cherry picked from commit e56621cd66
)
2022-09-08 11:37:05 +00:00
Prasanna Kumar Kalever
30244bf11b
cephfs: snapshots honor --setmetadata
option
...
`--setmetadata` is false by default, honoring it
will keep the metadata disabled by default
Signed-off-by: Prasanna Kumar Kalever <prasanna.kalever@redhat.com>
2022-08-01 07:15:29 +00:00
Prasanna Kumar Kalever
de7128b3a2
cephfs: Add clusterName as metadata on snapshots
...
Example:
sh-4.4$ ceph fs subvolume snapshot metadata ls myfs csi-vol-ba248f9e-0e75-11ed-b774-8e97192ff5ec \
csi-snap-ce24e3bb-0e75-11ed-b774-8e97192ff5ec --group_name csi
{
"csi.ceph.com/cluster/name": "\"K8s-cluster-1\"",
"csi.storage.k8s.io/volumesnapshot/name": "cephfs-pvc-snapshot",
"csi.storage.k8s.io/volumesnapshot/namespace": "rook-ceph",
"csi.storage.k8s.io/volumesnapshotcontent/name": "snapcontent-2e89e1b2-e6e9-48fe-b365-edb493d7022e"
}
Signed-off-by: Prasanna Kumar Kalever <prasanna.kalever@redhat.com>
2022-08-01 07:15:29 +00:00
Prasanna Kumar Kalever
856d7c264c
cephfs: handle metadata op-failures with unsupported ceph versions
...
Signed-off-by: Prasanna Kumar Kalever <prasanna.kalever@redhat.com>
2022-07-28 19:37:23 +00:00
Prasanna Kumar Kalever
8c0dd482fa
cephfs: add set/Remove subvolume snapshot metadata utility functions
...
Add utility functions to set/Remove
snapshot-name/snapshot-namespace/snapshotcontent-name metadata on
subvolume snapshots.
Signed-off-by: Prasanna Kumar Kalever <prasanna.kalever@redhat.com>
2022-07-28 19:37:23 +00:00