Documentation
¶
Index ¶
- Variables
- func CreateVolumeSnapshot(snapshotClassName string, snapshotName string, pvc string, namespace string) (*v1.VolumeSnapshot, string, error)
- func DeleteFailedVolumeSnapshot(snapshotClassName string, snapshotName string, snapshotContentName string, ...) error
- func DeleteVolumeSnapshot(snapshotClassName string, snapshotName string, namespace string) error
- func RemoveFailedSnapshot(snapshotName string, snapshotContentName string, namespace string) error
- func VerifySnapshotReplicas(snapUuid string, replicaCount int, volUuid string) (bool, error)
- func VerifySuccessfulCpSnapshotCreation(snapshotName string, volUuid string, namespace string) (bool, error)
- func VerifySuccessfulSnapshotCreation(snapshotName string, snapshotContentName string, namespace string, ...) (bool, error)
- func WaitForCpSnapshotReadyStatus(snapshotUid string, volUuid string) (bool, error)
- func WaitForSnapshotContentReadyStatus(snapshotContentName string, skipSnapError bool) (bool, error)
- func WaitForSnapshotError(snapshot string, namespace string, errorMessageSubstring string) (bool, error)
- func WaitForSnapshotReadyStatus(snapshotName string, namespace string, skipSnapError bool) (bool, error)
Constants ¶
This section is empty.
Variables ¶
var ( DefTimeoutSecs = 330 //exponential retry has max timeout of 300 seconds, so DefTimeoutSecs is set to 330 seconds DefSnapsErrorTimeout = 60 // in seconds IoEnginePodName = e2e_config.GetConfig().Product.IOEnginePodName FioRunTime = 1200 // in seconds VolSizeMb = 8192 // in MiB BadRequestErrorSubstring = "400 Bad Request" PreConditionFailedErrorSubstring = "412 Precondition Failed" PreConditionFailedFsfreezeErrorSubstring = "Preflight check for fsfreeze failed, nvmf subsystem not in desired state" DefCpTimeoutSecs = 60 // in seconds, timeout value used for snapshot verification via control plane )
Functions ¶
func CreateVolumeSnapshot ¶
func CreateVolumeSnapshot(snapshotClassName string, snapshotName string, pvc string, namespace string) (*v1.VolumeSnapshot, string, error)
CreateVolumeSnapshot create snapshot class and snapshot it return snapshot object , snapshot content name and err
func DeleteFailedVolumeSnapshot ¶
func DeleteFailedVolumeSnapshot(snapshotClassName string, snapshotName string, snapshotContentName string, namespace string) error
DeleteVolumeSnapshot delete snapshot class and snapshot and returns an err
func DeleteVolumeSnapshot ¶
DeleteVolumeSnapshot delete snapshot class and snapshot and returns an err
func RemoveFailedSnapshot ¶
RemoveFailedSnapshot delete a snapshot and remove annotation from snapshot content and verify that
- The Volume Snapshot is deleted
- The associated Volume Snapshot ContentPV is deleted
func VerifySnapshotReplicas ¶
VerifySnapshotReplicas to check if number of SNAPSHOT_REPLICAS for a volume matches with the number of replicas for a volume
func VerifySuccessfulCpSnapshotCreation ¶
func VerifySuccessfulCpSnapshotCreation(snapshotName string, volUuid string, namespace string) (bool, error)
VerifySuccessfulCpSnapshotCreation verify control plane using kubectl mayastor plugin : 1. snapshot and snapshot content ready status 2. snapshot restore size should not be zero 3. snapshot creation time should not be empty
func VerifySuccessfulSnapshotCreation ¶
func VerifySuccessfulSnapshotCreation(snapshotName string, snapshotContentName string, namespace string, skipSnapError bool) (bool, error)
VerifySuccessfulSnapshotCreation verify: 1. snapshot and snapshot content ready status 2. snapshot restore size should not be zero 3. snapshot creation time should not be empty
func WaitForCpSnapshotReadyStatus ¶
Wait for the Snapshot to be ready as per control plane.
func WaitForSnapshotContentReadyStatus ¶
func WaitForSnapshotContentReadyStatus(snapshotContentName string, skipSnapError bool) (bool, error)
Wait for the Snapshot content to be ready.
Types ¶
This section is empty.