Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 8 additions & 6 deletions common/mayastor/offline_pool_delete/offline_pool_delete.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,14 @@ import (
// FixME : error messages related to offline pool delete

var (
PoolOnlineState = "purge not allowed"
DeleteWithoutPurgeFlag = "purge flag is required to delete pool, pool is not in online state"
DeleteOfflinePoolWithoutCordon = "cannot delete pool that is offline without cordoning it first"
DeleteOfflinePoolWithReplica = "pool has replicas, cannot delete without confirm flag"
DeleteOfflinePoolWithSnapshots = "pool has snapshots, cannot delete without confirm snapshot loss flag"
DeleteOfflinePoolWithData = "pool has data, cannot delete without confirm data loss flag" // last healthy replica is scheduled on this pool
PoolOnlineState = "purge not allowed"
DeleteWithoutPurgeFlag = "purge flag is required to delete pool, pool is not in online state"
DeleteOfflinePoolWithoutCordon = "cannot delete pool that is offline without cordoning it first"
DeleteOfflinePoolWithReplica = "pool has replicas, cannot delete without confirm flag"
DeleteOfflinePoolWithSnapshots = "pool has snapshots, cannot delete without confirm snapshot loss flag"
DeleteOfflinePoolWithOnlyReplicaCordon = "pool must be cordoned with snapshot and replica flag to delete pool"
DeleteOfflinePoolWithOnlySnapshotCordon = "pool must be cordoned with snapshot and replica flag to delete pool"
DeleteOfflinePoolWithData = "pool has data, cannot delete without confirm data loss flag" // last healthy replica is scheduled on this pool
)

// DeleteOfflinePool deletes the offline pool via control plane plugin
Expand Down
Loading