You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* go.mod: bumped github.com/gophercloud/gophercloud to v0.19.0
* removed hardcoded checks for cephfs, added checks for caps in parent share
This commit removes all hard-coded checks for CephFS shares,
preventing them from being snapshotted. Instead, manila-csi
now checks for snapshot_support and create_share_from_snapshot
capabilities.
* share: added handling for creating_from_snapshot status
* docs: added a note about snapshots
* go.sum: added k8s.io/code-generator
* go.mod fix 2: added github.com/gophercloud/gophercloud v0.19.0
Copy file name to clipboardExpand all lines: docs/manila-csi-plugin/using-manila-csi-plugin.md
+3-1Lines changed: 3 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -21,7 +21,9 @@
21
21
22
22
# CSI Manila driver
23
23
24
-
The CSI Manila driver is able to create, expand and mount OpenStack Manila shares. Snapshots and recovering shares from snapshots is supported as well (support for CephFS snapshots will be added soon).
24
+
The CSI Manila driver is able to create, expand, snapshot, restore and mount OpenStack Manila shares.
25
+
26
+
Currently supported Manila backends are NFS and native CephFS.
returnnil, status.Errorf(codes.NotFound, "failed to create snapshot %s for volume %s because the volume doesn't exist: %v", req.GetName(), req.GetSourceVolumeId(), err)
259
250
}
260
251
261
-
returnnil, status.Errorf(codes.Internal, "failed to create a snapshot %s of volume %s: %v", req.GetName(), req.GetSourceVolumeId(), err)
252
+
returnnil, status.Errorf(codes.Internal, "failed to create snapshot %s of volume %s: %v", req.GetName(), req.GetSourceVolumeId(), err)
returnfalse, fmt.Errorf("share %s is in error state, error description could not be retrieved: %v", shareID, err)
166
191
}
167
192
168
193
manilaErrCode=manilaErrMsg.errCode
169
-
returnfalse, fmt.Errorf("share %s is in error state: %s", shareID, manilaErrMsg.message)
170
-
default:
171
-
returnfalse, fmt.Errorf("share %s is in an unexpected state: wanted either %s or %s, got %s", shareID, currentStatus, desiredStatus, share.Status)
194
+
returnfalse, fmt.Errorf("share %s is in error state \"%s\": %s", shareID, share.Status, manilaErrMsg.message)
172
195
}
173
196
174
-
returnisAvailable, nil
197
+
returnfalse, fmt.Errorf("share %s is in an unexpected state: wanted either %v or %s, got %s", shareID, validTransientStates, desiredStatus, share.Status)
0 commit comments