Skip to content

Commit 439d95e

Browse files
Merge pull request #268 from openebs/fix-offline
fix(util): add error message for offline pool deletion feature
2 parents a819cbc + c9d0363 commit 439d95e

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

common/mayastor/offline_pool_delete/offline_pool_delete.go

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,14 @@ import (
99
// FixME : error messages related to offline pool delete
1010

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

2022
// DeleteOfflinePool deletes the offline pool via control plane plugin

0 commit comments

Comments
 (0)